CbmRoot
CbmStsTrackFinder.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmStsTrackFinder header file -----
3 // ----- Created 02/02/05 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
16 #ifndef CBMSTSTRACKFINDER
17 #define CBMSTSTRACKFINDER 1
18 
19 
20 #include "TNamed.h"
21 #include "TObject.h"
22 
23 class TClonesArray;
24 class CbmStsDigiScheme;
25 class FairField;
26 class CbmEvent;
27 class CbmStsTrack;
28 
29 
30 class CbmStsTrackFinder : public TNamed {
31 
32 public:
35 
36 
38  virtual ~CbmStsTrackFinder() {};
39 
40 
44  virtual void Init() {};
45 
46 
53  virtual Int_t DoFind() = 0;
54 
55 
59  virtual void Finish() {};
60 
61 
66  virtual Int_t FindTracks(CbmEvent* event) = 0;
67 
68 
70  void SetDigiScheme(CbmStsDigiScheme* scheme) { fDigiScheme = scheme; }
71  void SetField(FairField* field) { fField = field; }
72  void SetMvdHitArray(TClonesArray* hits) { fMvdHits = hits; }
73  void SetStsHitArray(TClonesArray* hits) { fStsHits = hits; }
74  void SetTrackArray(TClonesArray* tracks) { fTracks = tracks; }
75  void SetVerbose(Int_t verbose) { fVerbose = verbose; };
76 
77 
78 protected:
79  CbmStsDigiScheme* fDigiScheme; // STS digitisation scheme
80  FairField* fField; // Magnetic field
81  TClonesArray* fMvdHits; // MvdHit array
82  TClonesArray* fStsHits; // StsHit array
83  TClonesArray* fTracks; // StsTrack array
84  TClonesArray* fStsClusters; // StsCluster array
85  Int_t fVerbose; // Verbosity level
86 
87 
93  double CalculateEloss(CbmStsTrack* cbmStsTrack);
94  void FillEloss();
95 
96 private:
97  constexpr static int MaxAdcVal() { return 31; }
98 
101  double VecMedian(std::vector<double>& vec);
102 
103 
106 
108 };
109 
110 #endif
CbmStsTrackFinder::MaxAdcVal
constexpr static int MaxAdcVal()
Definition: CbmStsTrackFinder.h:97
CbmStsTrackFinder::DoFind
virtual Int_t DoFind()=0
CbmStsTrackFinder::FillEloss
void FillEloss()
Definition: CbmStsTrackFinder.cxx:111
CbmStsTrackFinder::fStsHits
TClonesArray * fStsHits
Definition: CbmStsTrackFinder.h:82
CbmStsTrackFinder::~CbmStsTrackFinder
virtual ~CbmStsTrackFinder()
Definition: CbmStsTrackFinder.h:38
CbmStsTrackFinder::CbmStsTrackFinder
CbmStsTrackFinder(const CbmStsTrackFinder &)
CbmStsTrackFinder::SetVerbose
void SetVerbose(Int_t verbose)
Definition: CbmStsTrackFinder.h:75
CbmStsTrackFinder::Init
virtual void Init()
Definition: CbmStsTrackFinder.h:44
CbmStsTrackFinder::SetStsHitArray
void SetStsHitArray(TClonesArray *hits)
Definition: CbmStsTrackFinder.h:73
CbmStsTrackFinder::SetDigiScheme
void SetDigiScheme(CbmStsDigiScheme *scheme)
Definition: CbmStsTrackFinder.h:70
CbmStsTrackFinder::fField
FairField * fField
Definition: CbmStsTrackFinder.h:80
CbmStsTrackFinder::fDigiScheme
CbmStsDigiScheme * fDigiScheme
Definition: CbmStsTrackFinder.h:75
tracks
TClonesArray * tracks
Definition: Analyze_matching.h:17
CbmStsTrackFinder::Finish
virtual void Finish()
Definition: CbmStsTrackFinder.h:59
CbmStsTrackFinder
Definition: CbmStsTrackFinder.h:30
CbmStsTrackFinder::fMvdHits
TClonesArray * fMvdHits
Definition: CbmStsTrackFinder.h:81
CbmStsTrackFinder::fStsClusters
TClonesArray * fStsClusters
Definition: CbmStsTrackFinder.h:84
CbmStsTrackFinder::FindTracks
virtual Int_t FindTracks(CbmEvent *event)=0
CbmStsTrackFinder::CalculateEloss
double CalculateEloss(CbmStsTrack *cbmStsTrack)
Definition: CbmStsTrackFinder.cxx:42
CbmStsTrackFinder::VecMedian
double VecMedian(std::vector< double > &vec)
Definition: CbmStsTrackFinder.cxx:29
CbmStsTrackFinder::SetMvdHitArray
void SetMvdHitArray(TClonesArray *hits)
Definition: CbmStsTrackFinder.h:72
CbmStsTrackFinder::operator=
CbmStsTrackFinder & operator=(const CbmStsTrackFinder &)
CbmStsTrackFinder::fVerbose
Int_t fVerbose
Definition: CbmStsTrackFinder.h:85
CbmStsTrackFinder::fTracks
TClonesArray * fTracks
Definition: CbmStsTrackFinder.h:83
hits
static vector< vector< QAHit > > hits
Definition: CbmTofHitFinderTBQA.cxx:114
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
CbmStsTrack
Definition: CbmStsTrack.h:37
CbmStsTrackFinder::SetField
void SetField(FairField *field)
Definition: CbmStsTrackFinder.h:71
CbmStsTrackFinder::CbmStsTrackFinder
CbmStsTrackFinder()
Definition: CbmStsTrackFinder.cxx:19
CbmStsTrackFinder::SetTrackArray
void SetTrackArray(TClonesArray *tracks)
Definition: CbmStsTrackFinder.h:74
CbmStsTrackFinder::ClassDef
ClassDef(CbmStsTrackFinder, 1)