PandaRoot
PndEmcErrorMatrix.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Description:
3 // Class PndEmcErrorMatrix
4 // Calculate Error Matrix for the given EmcCluster
5 // with parametrization defined by the given parameter PndEmcErrorMatrixPar
6 //
7 //------------------------------------------------------------------------
8 
9 //#pragma once
10 #ifndef PNDEMCERRORMATRIX_H
11 #define PNDEMCERRORMATRIX_H
12 
13 #include "TMatrixD.h"
14 #include "PndEmcCluster.h"
15 #include "TString.h"
16 #include <cstdlib>
17 
20 
27  public:
28  // Constructors
30  // Destructor
32 
34  void InitFromFile(Int_t geomVersion);
36 
37  // Error Matrix for Cluster
38  // 4x4 matrix in E, theta, phi, R
39  TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const;
40 
41  // 4x4 matrix in (px, py, pz, E)
42  TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const;
43 
44  // 7x7 matrix in (x, y, z, px, py, pz, E)
45  TMatrixD GetErrorP7(const PndEmcCluster &cluster) const;
46 
47  private:
48  PndEmcErrorMatrixParObject *fErrorMatrixParObject;
49 
51  PndEmcErrorMatrix &operator=(const PndEmcErrorMatrix &) { return *this; };
52 };
53 
54 // helper function to convert error matrix
55 // copied from BbrGeom/BbrError.cc
56 TMatrixD similarityWith(const TMatrixD &mat, const TMatrixD &m1);
57 
58 #endif
TMatrixD similarityWith(const TMatrixD &mat, const TMatrixD &m1)
void Init(PndEmcErrorMatrixParObject *par)
TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const
Container class for EMC error matrix parameter class is inherited from FairParGenericSet.
TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const
void InitFromFile(Int_t geomVersion)
TMatrixD GetErrorP7(const PndEmcCluster &cluster) const
PndEmcErrorMatrixParObject * GetParObject()
Calculate Error Matrix for the given EmcCluster with parametrization defined by the given parameter P...
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:52