FairRoot/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 {
28  public:
29 
30  // Constructors
32  // Destructor
34 
36  void InitFromFile(Int_t geomVersion);
38 
39  // Error Matrix for Cluster
40  // 4x4 matrix in E, theta, phi, R
41  TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const;
42 
43  // 4x4 matrix in (px, py, pz, E)
44  TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const;
45 
46  // 7x7 matrix in (x, y, z, px, py, pz, E)
47  TMatrixD GetErrorP7(const PndEmcCluster &cluster) const;
48 
49  private:
51 
54 };
55 
56 // helper function to convert error matrix
57 // copied from BbrGeom/BbrError.cc
58 TMatrixD similarityWith(const TMatrixD& mat, const TMatrixD& m1);
59 
60 #endif
void Init(PndEmcErrorMatrixParObject *par)
TMatrixD similarityWith(const TMatrixD &mat, const TMatrixD &m1)
Container class for EMC error matrix parameter class is inherited from FairParGenericSet.
Double_t par[3]
PndEmcErrorMatrixParObject * fErrorMatrixParObject
TMatrixD GetErrorP7(const PndEmcCluster &cluster) const
void InitFromFile(Int_t geomVersion)
TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
PndEmcErrorMatrixParObject * GetParObject()
Calculate Error Matrix for the given EmcCluster with parametrization defined by the given parameter P...
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:52
TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const
PndEmcErrorMatrix & operator=(const PndEmcErrorMatrix &)