PandaRoot
PndSTETrackBase.h
Go to the documentation of this file.
1 
11 #ifndef PndSTETrackBase_H_
12 #define PndSTETrackBase_H_
13 
14 #include "PndTrack.h"
15 #include "PndTrackCand.h"
16 #include "PndRiemannTrack.h"
17 #include "FairLink.h"
18 #include "FairMultiLinkedData.h"
19 #include <vector>
20 
21 #include "PndSTESettings.h"
22 
24 
25  public:
28 
30  virtual ~PndSTETrackBase(){
31 
32  };
33 
35  PndTrack GetTrack(int i) { return fTracks[i]; };
36 
39 
42 
44  int NumTrackCands() { return fTrackCands.size(); };
45 
47  int NumRiemannTracks() { return fRiemannTracks.size(); };
48 
49  protected:
50 
51  std::map<PndSdsHit *, int> fMapMvdHitBranchId;
52 
53  std::vector<PndTrackCand> fTrackCands; // Container for the track cands with additional hits included.
54  std::vector<PndTrack> fTracks; // Container for the tracks with additional hits included
55  std::vector<PndRiemannTrack> fRiemannTracks; // Container for the Riemann tracks with additional hits included
56 
59  double fxc;
60 
61  double fLineSlope = 0; // The line slope for hemisphere exclusion
62 
63  std::vector<double> fChi2OneHit; // Vector of chi2 values for individual hits calculated from their distance to a track
64  double fSumChi2 = 0; // Sum of all individual chi2 from the hits
65  double fReducedChi2 = 0; // Reduced chi2 for one track calculated from its hits
66  std::map<double, PndSdsHit *> fMapChi2OneHitMvdHit; // Map between Mvd hit and its chi2
67 
68  std::vector<double> fChi2OneHitSZ; // Vector of chi2 values in SZ space for individual hits calculated from their distance to a track
69  double fSumChi2SZ = 0; // Sum of all individual chi2 from the hits in SZ space
70  double fReducedChi2SZ = 0; // Reduced chi2 for one track calculated from its hits in SZ space
71  std::map<double, PndSdsHit *> fMapChi2OneHitMvdHitSZ; // Map between Mvd hit and its chi2 in SZ space
72 
74 };
75 
76 #endif /* PndSTETrackBase_H_ */
std::vector< PndTrackCand > fTrackCands
int NumRiemannTracks()
Function to get the number of Riemann tracks after the refit.
std::vector< double > fChi2OneHitSZ
PndTrackCand GetTrackCand(int i)
Function to get a track candidate after the refit.
std::map< double, PndSdsHit * > fMapChi2OneHitMvdHit
unsigned int i
Definition: P4_F32vec4.h:21
std::vector< PndRiemannTrack > fRiemannTracks
std::map< double, PndSdsHit * > fMapChi2OneHitMvdHitSZ
PndTrack GetTrack(int i)
Function to get a track after the refit.
int NumTrackCands()
Function to get the number of track candidates after the refit.
PndRiemannTrack GetRiemannTrack(int i)
Function to get a Riemann track after the refit.
ClassDef(PndSTETrackBase, 1)
double fxc
x-coordinate of the center of gravity of the hits in one track, used for computing hemispheres The x-...
std::vector< PndTrack > fTracks
std::map< PndSdsHit *, int > fMapMvdHitBranchId
std::vector< double > fChi2OneHit
virtual ~PndSTETrackBase()