CbmRoot
CbmKFTrErrMCPoints.h
Go to the documentation of this file.
1 /*
2  *====================================================================
3  *
4  * CBM KF Track Quality
5  *
6  * Authors: M.Zyzak
7  *
8  * e-mail :
9  *
10  *====================================================================
11  *
12  * KF Fit performance
13  *
14  *====================================================================
15  */
16 
17 #ifndef _CbmKFTrErrMCPoints_h_
18 #define _CbmKFTrErrMCPoints_h_
19 
20 #include <CbmMvdHit.h>
21 #include <CbmMvdPoint.h>
22 #include <CbmStsHit.h>
23 #include <CbmStsPoint.h>
24 #include <CbmTofPoint.h>
25 #include <FairMCPoint.h>
26 
27 #include "TClonesArray.h"
28 #include <vector>
29 
30 class CbmMCTrack;
31 
32 class CbmKFTrErrMCPoints : public TObject {
33 
34 public:
37 
38  CbmMvdPoint* GetMvdPoint(Int_t i) { return MvdArray[i]; }
39  CbmStsPoint* GetStsPoint(Int_t i) { return StsArray[i]; }
40  CbmTofPoint* GetTofPoint(Int_t i) { return TofArray[i]; }
41 
42  CbmMvdHit* GetMvdHit(Int_t i) { return MvdHitsArray[i]; }
43  CbmStsHit* GetStsHit(Int_t i) { return StsHitsArray[i]; }
44 
45  void SetMvdPoint(CbmMvdPoint* mp) { MvdArray.push_back(mp); }
46  void SetStsPoint(CbmStsPoint* sp) { StsArray.push_back(sp); }
47  void SetTofPoint(CbmTofPoint* tp) { TofArray.push_back(tp); }
48 
49  int GetNMvdPoints() const { return MvdArray.size(); }
50  int GetNStsPoints() const { return StsArray.size(); }
51  int GetNTofPoints() const { return TofArray.size(); }
52  int GetNMvdHits() const { return MvdHitsArray.size(); }
53  int GetNStsHits() const { return StsHitsArray.size(); }
54  int GetNConsMCStations();
55  int GetNConsHitStations();
56  int GetNHitStations();
58  Bool_t IsReconstructable(CbmMCTrack* mcTr,
59  int MinNStations,
60  int PerformanceMode,
61  float MinRecoMom);
62 
63  double GetMvdPointX(int i) { return MvdArray[i]->FairMCPoint::GetX(); }
64  double GetMvdPointY(int i) { return MvdArray[i]->FairMCPoint::GetY(); }
65  double GetMvdPointZ(int i) { return MvdArray[i]->GetZ(); }
66  double GetMvdPointPx(int i) { return MvdArray[i]->GetPx(); }
67  double GetMvdPointPy(int i) { return MvdArray[i]->GetPy(); }
68  double GetMvdPointPz(int i) { return MvdArray[i]->GetPz(); }
69 
70  double GetStsPointX(int i) { return StsArray[i]->FairMCPoint::GetX(); }
71  double GetStsPointY(int i) { return StsArray[i]->FairMCPoint::GetY(); }
72  double GetStsPointZ(int i) { return StsArray[i]->GetZ(); }
73  double GetStsPointPx(int i) { return StsArray[i]->GetPx(); }
74  double GetStsPointPy(int i) { return StsArray[i]->GetPy(); }
75  double GetStsPointPz(int i) { return StsArray[i]->GetPz(); }
76 
77  std::vector<CbmStsPoint*> StsArray;
78  std::vector<CbmMvdPoint*> MvdArray;
79  std::vector<CbmTofPoint*> TofArray;
80 
81  std::vector<CbmStsHit*> StsHitsArray;
82  std::vector<CbmMvdHit*> MvdHitsArray;
83 
85 };
86 
87 #endif // _CbmKFTrErrMCPoints_h_
CbmKFTrErrMCPoints::SetTofPoint
void SetTofPoint(CbmTofPoint *tp)
Definition: CbmKFTrErrMCPoints.h:47
CbmKFTrErrMCPoints::GetMvdPoint
CbmMvdPoint * GetMvdPoint(Int_t i)
Definition: CbmKFTrErrMCPoints.h:38
CbmKFTrErrMCPoints::SetMvdPoint
void SetMvdPoint(CbmMvdPoint *mp)
Definition: CbmKFTrErrMCPoints.h:45
CbmKFTrErrMCPoints::GetNStsHits
int GetNStsHits() const
Definition: CbmKFTrErrMCPoints.h:53
CbmKFTrErrMCPoints::GetNMvdPoints
int GetNMvdPoints() const
Definition: CbmKFTrErrMCPoints.h:49
CbmKFTrErrMCPoints::GetMvdPointX
double GetMvdPointX(int i)
Definition: CbmKFTrErrMCPoints.h:63
CbmKFTrErrMCPoints::GetStsPointPx
double GetStsPointPx(int i)
Definition: CbmKFTrErrMCPoints.h:73
CbmKFTrErrMCPoints::ClassDef
ClassDef(CbmKFTrErrMCPoints, 1)
CbmKFTrErrMCPoints::GetMvdPointY
double GetMvdPointY(int i)
Definition: CbmKFTrErrMCPoints.h:64
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
CbmKFTrErrMCPoints::GetStsPointZ
double GetStsPointZ(int i)
Definition: CbmKFTrErrMCPoints.h:72
CbmKFTrErrMCPoints::GetNMvdHits
int GetNMvdHits() const
Definition: CbmKFTrErrMCPoints.h:52
CbmKFTrErrMCPoints::GetNHitStations
int GetNHitStations()
Definition: CbmKFTrErrMCPoints.cxx:102
CbmKFTrErrMCPoints::GetNConsMCStations
int GetNConsMCStations()
Definition: CbmKFTrErrMCPoints.cxx:30
CbmStsPoint
Definition: CbmStsPoint.h:27
CbmKFTrErrMCPoints::GetMvdPointPz
double GetMvdPointPz(int i)
Definition: CbmKFTrErrMCPoints.h:68
CbmKFTrErrMCPoints::TofArray
std::vector< CbmTofPoint * > TofArray
Definition: CbmKFTrErrMCPoints.h:79
CbmMvdHit
Definition: CbmMvdHit.h:29
CbmKFTrErrMCPoints::GetMvdPointPy
double GetMvdPointPy(int i)
Definition: CbmKFTrErrMCPoints.h:67
CbmKFTrErrMCPoints::MvdArray
std::vector< CbmMvdPoint * > MvdArray
Definition: CbmKFTrErrMCPoints.h:78
CbmStsHit
data class for a reconstructed 3-d hit in the STS
Definition: CbmStsHit.h:31
CbmKFTrErrMCPoints::GetMvdHit
CbmMvdHit * GetMvdHit(Int_t i)
Definition: CbmKFTrErrMCPoints.h:42
CbmMvdPoint.h
CbmMvdPoint
Definition: CbmMvdPoint.h:28
CbmKFTrErrMCPoints::MvdHitsArray
std::vector< CbmMvdHit * > MvdHitsArray
Definition: CbmKFTrErrMCPoints.h:82
CbmKFTrErrMCPoints::IsReconstructable
Bool_t IsReconstructable(CbmMCTrack *mcTr, int MinNStations, int PerformanceMode, float MinRecoMom)
Definition: CbmKFTrErrMCPoints.cxx:168
CbmKFTrErrMCPoints::GetStsPoint
CbmStsPoint * GetStsPoint(Int_t i)
Definition: CbmKFTrErrMCPoints.h:39
CbmL1Constants::MinRecoMom
const double MinRecoMom
Performance constants.
Definition: CbmL1Constants.h:6
CbmKFTrErrMCPoints
Definition: CbmKFTrErrMCPoints.h:32
CbmKFTrErrMCPoints::CbmKFTrErrMCPoints
CbmKFTrErrMCPoints()
CbmKFTrErrMCPoints::GetNStsPoints
int GetNStsPoints() const
Definition: CbmKFTrErrMCPoints.h:50
CbmKFTrErrMCPoints::GetStsPointPz
double GetStsPointPz(int i)
Definition: CbmKFTrErrMCPoints.h:75
CbmKFTrErrMCPoints::GetMvdPointZ
double GetMvdPointZ(int i)
Definition: CbmKFTrErrMCPoints.h:65
CbmKFTrErrMCPoints::SetStsPoint
void SetStsPoint(CbmStsPoint *sp)
Definition: CbmKFTrErrMCPoints.h:46
CbmKFTrErrMCPoints::GetNMaxMCPointsOnStation
int GetNMaxMCPointsOnStation()
Definition: CbmKFTrErrMCPoints.cxx:129
CbmKFTrErrMCPoints::~CbmKFTrErrMCPoints
~CbmKFTrErrMCPoints()
Definition: CbmKFTrErrMCPoints.h:36
CbmKFTrErrMCPoints::GetMvdPointPx
double GetMvdPointPx(int i)
Definition: CbmKFTrErrMCPoints.h:66
CbmKFTrErrMCPoints::GetStsHit
CbmStsHit * GetStsHit(Int_t i)
Definition: CbmKFTrErrMCPoints.h:43
CbmKFTrErrMCPoints::GetNConsHitStations
int GetNConsHitStations()
Definition: CbmKFTrErrMCPoints.cxx:69
CbmStsPoint.h
CbmMCTrack
Definition: CbmMCTrack.h:34
CbmMvdHit.h
CbmTofPoint.h
CbmKFTrErrMCPoints::GetStsPointY
double GetStsPointY(int i)
Definition: CbmKFTrErrMCPoints.h:71
CbmKFTrErrMCPoints::GetNTofPoints
int GetNTofPoints() const
Definition: CbmKFTrErrMCPoints.h:51
CbmKFTrErrMCPoints::GetTofPoint
CbmTofPoint * GetTofPoint(Int_t i)
Definition: CbmKFTrErrMCPoints.h:40
CbmKFTrErrMCPoints::StsArray
std::vector< CbmStsPoint * > StsArray
Definition: CbmKFTrErrMCPoints.h:77
CbmTofPoint
Geometric intersection of a MC track with a TOFb detector.
Definition: CbmTofPoint.h:40
CbmKFTrErrMCPoints::GetStsPointPy
double GetStsPointPy(int i)
Definition: CbmKFTrErrMCPoints.h:74
CbmKFTrErrMCPoints::StsHitsArray
std::vector< CbmStsHit * > StsHitsArray
Definition: CbmKFTrErrMCPoints.h:81
CbmKFTrErrMCPoints::GetStsPointX
double GetStsPointX(int i)
Definition: CbmKFTrErrMCPoints.h:70
CbmL1Constants::MinNStations
const double MinNStations
Definition: CbmL1Constants.h:11
CbmStsHit.h
Data class for a reconstructed hit in the STS.