CbmRoot
CbmTofTrackFinderNN.h
Go to the documentation of this file.
1 
6 #ifndef CBMTOFTRACKFINDERNN_H
7 #define CBMTOFTRACKFINDERNN_H
8 
9 #include "CbmTofHit.h"
10 #include "CbmTofTrackFinder.h"
11 #include "CbmTofTrackFitter.h"
12 #include "CbmTofTracklet.h"
13 #include "LKFMinuit.h"
14 
15 #include <map>
16 #include <vector>
17 
18 class TClonesArray;
19 
21 public:
26 
30  virtual ~CbmTofTrackFinderNN();
31 
35  void Init();
36 
37  Int_t DoFind(TClonesArray* fTofHits, TClonesArray* fTofTracks);
38 
39  void TrklSeed(Int_t iHit);
40  Int_t HitUsed(Int_t iHit);
41 
42  /*
43  void RemoveMultipleAssignedHits(
44  TClonesArray* fTofHits,
45  Int_t iDet
46  );
47 */
48 
49  void UpdateTrackList(Int_t iTrk);
50  void UpdateTrackList(CbmTofTracklet* pTrk);
51 
52  inline void SetFitter(CbmTofTrackFitter* Fitter) { fFitter = Fitter; }
53  inline void SetMaxTofTimeDifference(Double_t val) {
55  }
56  inline void SetTxLIM(Double_t val) { fTxLIM = val; }
57  inline void SetTyLIM(Double_t val) { fTyLIM = val; }
58  inline void SetTxMean(Double_t val) { fTxMean = val; }
59  inline void SetTyMean(Double_t val) { fTyMean = val; }
60  inline void SetSIGLIM(Double_t val) { fSIGLIM = val; }
61  inline void SetChiMaxAccept(Double_t val) { fChiMaxAccept = val; }
62  inline void SetPosYMaxScal(Double_t val) { fPosYMaxScal = val; }
63 
64  inline Double_t GetTxLIM() { return fTxLIM; }
65  inline Double_t GetTyLIM() { return fTyLIM; }
66  inline Double_t GetTxMean() { return fTxMean; }
67  inline Double_t GetTyMean() { return fTyMean; }
68  inline Double_t GetSIGLIM() { return fSIGLIM; }
69  inline Double_t GetChiMaxAccept() { return fChiMaxAccept; }
70 
71  static void Line3Dfit(CbmTofTracklet* pTrk);
72  Bool_t Active(CbmTofTracklet* pTrk);
73 
74  void PrintStatus(char* cComm);
75 
76  //Copy constructor
78  //assignment operator
80 
81 private:
82  TClonesArray* fHits;
83  TClonesArray* fOutTracks;
84  Int_t fiNtrks; // Number of Tracks
85  CbmTofTrackFitter* fFitter; // Pointer to TrackFitter concrete class
86  CbmTofFindTracks* fFindTracks; // Pointer to Task
89  Double_t fTxLIM;
90  Double_t fTyLIM;
91  Double_t fTxMean;
92  Double_t fTyMean;
93  Double_t fSIGLIM;
94  Double_t fChiMaxAccept;
95  Double_t fPosYMaxScal;
97 
98  //intermediate storage variables
99  std::vector<CbmTofTracklet*> fTracks; // Tracklets to which hit is assigned
100  //std::vector<std::map <CbmTofTracklet *, Int_t> > fvTrkMap; // Tracklets to which hit is assigned
101  std::vector<std::vector<CbmTofTracklet*>>
102  fvTrkVec; // Tracklets to which hit is assigned
103 
105 };
106 
107 #endif
CbmTofTrackFinder
Definition: CbmTofTrackFinder.h:27
CbmTofTrackFinderNN::fMaxTofTimeDifference
Double_t fMaxTofTimeDifference
Definition: CbmTofTrackFinderNN.h:88
CbmTofTrackFitter
Definition: CbmTofTrackFitter.h:28
CbmTofTrackFinderNN::UpdateTrackList
void UpdateTrackList(Int_t iTrk)
Definition: CbmTofTrackFinderNN.cxx:936
CbmTofTrackFinderNN::Active
Bool_t Active(CbmTofTracklet *pTrk)
Definition: CbmTofTrackFinderNN.cxx:1180
CbmTofTrackFinderNN::SetFitter
void SetFitter(CbmTofTrackFitter *Fitter)
Definition: CbmTofTrackFinderNN.h:52
CbmTofTrackFinderNN::fFitter
CbmTofTrackFitter * fFitter
Definition: CbmTofTrackFinderNN.h:85
CbmTofTrackFinder.h
CbmTofTrackFinderNN::SetPosYMaxScal
void SetPosYMaxScal(Double_t val)
Definition: CbmTofTrackFinderNN.h:62
LKFMinuit.h
CbmTofTrackFinderNN::~CbmTofTrackFinderNN
virtual ~CbmTofTrackFinderNN()
Destructor.
Definition: CbmTofTrackFinderNN.cxx:69
CbmTofTrackFinderNN::fTracks
std::vector< CbmTofTracklet * > fTracks
Definition: CbmTofTrackFinderNN.h:99
CbmTofTracklet
Provides information on attaching a TofHit to a TofTrack.
Definition: CbmTofTracklet.h:25
CbmTofTrackFinderNN::fHits
TClonesArray * fHits
Definition: CbmTofTrackFinderNN.h:82
CbmTofTrackFinderNN::SetTyLIM
void SetTyLIM(Double_t val)
Definition: CbmTofTrackFinderNN.h:57
CbmTofTrackFinderNN::fFindTracks
CbmTofFindTracks * fFindTracks
Definition: CbmTofTrackFinderNN.h:86
CbmTofTrackFinderNN::GetSIGLIM
Double_t GetSIGLIM()
Definition: CbmTofTrackFinderNN.h:68
LKFMinuit
Definition: LKFMinuit.h:19
CbmTofTrackFinderNN::SetSIGLIM
void SetSIGLIM(Double_t val)
Definition: CbmTofTrackFinderNN.h:60
CbmTofTracklet.h
CbmTofTrackFinderNN::fTxLIM
Double_t fTxLIM
Definition: CbmTofTrackFinderNN.h:89
fTofTracks
TClonesArray * fTofTracks
Definition: CbmHadronAnalysis.cxx:51
CbmTofTrackFinderNN::Init
void Init()
Inherited from CbmTofTrackFinder.
Definition: CbmTofTrackFinderNN.cxx:104
CbmTofTrackFinderNN::fOutTracks
TClonesArray * fOutTracks
Definition: CbmTofTrackFinderNN.h:83
CbmTofTrackFinderNN
Definition: CbmTofTrackFinderNN.h:20
CbmTofTrackFinderNN::fiNtrks
Int_t fiNtrks
Definition: CbmTofTrackFinderNN.h:84
CbmTofTrackFinderNN::HitUsed
Int_t HitUsed(Int_t iHit)
Definition: CbmTofTrackFinderNN.cxx:916
CbmTofTrackFinderNN::TrklSeed
void TrklSeed(Int_t iHit)
Definition: CbmTofTrackFinderNN.cxx:808
CbmTofTrackFinderNN::SetTxLIM
void SetTxLIM(Double_t val)
Definition: CbmTofTrackFinderNN.h:56
CbmTofTrackFinderNN::operator=
CbmTofTrackFinderNN & operator=(const CbmTofTrackFinderNN &fSource)
Definition: CbmTofTrackFinderNN.cxx:97
CbmTofTrackFinderNN::GetTyMean
Double_t GetTyMean()
Definition: CbmTofTrackFinderNN.h:67
CbmTofTrackFinderNN::fPosYMaxScal
Double_t fPosYMaxScal
Definition: CbmTofTrackFinderNN.h:95
CbmTofFindTracks
Definition: CbmTofFindTracks.h:43
CbmTofTrackFinderNN::fTyLIM
Double_t fTyLIM
Definition: CbmTofTrackFinderNN.h:90
CbmTofTrackFinderNN::CbmTofTrackFinderNN
CbmTofTrackFinderNN()
Constructor.
Definition: CbmTofTrackFinderNN.cxx:51
CbmTofTrackFinderNN::fvTrkVec
std::vector< std::vector< CbmTofTracklet * > > fvTrkVec
Definition: CbmTofTrackFinderNN.h:102
CbmTofTrackFinderNN::fMinuit
static LKFMinuit fMinuit
Definition: CbmTofTrackFinderNN.h:96
CbmTofTrackFinderNN::DoFind
Int_t DoFind(TClonesArray *fTofHits, TClonesArray *fTofTracks)
Definition: CbmTofTrackFinderNN.cxx:129
CbmTofTrackFinderNN::Line3Dfit
static void Line3Dfit(CbmTofTracklet *pTrk)
Definition: CbmTofTrackFinderNN.cxx:1189
CbmTofTrackFinderNN::PrintStatus
void PrintStatus(char *cComm)
Definition: CbmTofTrackFinderNN.cxx:1137
CbmTofTrackFinderNN::fChiMaxAccept
Double_t fChiMaxAccept
Definition: CbmTofTrackFinderNN.h:94
CbmTofTrackFinderNN::fTyMean
Double_t fTyMean
Definition: CbmTofTrackFinderNN.h:92
CbmTofTrackFinderNN::fTxMean
Double_t fTxMean
Definition: CbmTofTrackFinderNN.h:91
CbmTofTrackFinderNN::fDigiPar
CbmTofDigiPar * fDigiPar
Definition: CbmTofTrackFinderNN.h:87
CbmTofTrackFinderNN::GetTxMean
Double_t GetTxMean()
Definition: CbmTofTrackFinderNN.h:66
CbmTofDigiPar
Definition: CbmTofDigiPar.h:18
CbmTofTrackFinderNN::SetTyMean
void SetTyMean(Double_t val)
Definition: CbmTofTrackFinderNN.h:59
CbmTofTrackFinderNN::GetChiMaxAccept
Double_t GetChiMaxAccept()
Definition: CbmTofTrackFinderNN.h:69
CbmTofTrackFinderNN::ClassDef
ClassDef(CbmTofTrackFinderNN, 1)
CbmTofTrackFinderNN::GetTxLIM
Double_t GetTxLIM()
Definition: CbmTofTrackFinderNN.h:64
CbmTofTrackFinderNN::GetTyLIM
Double_t GetTyLIM()
Definition: CbmTofTrackFinderNN.h:65
CbmTofTrackFinderNN::SetMaxTofTimeDifference
void SetMaxTofTimeDifference(Double_t val)
Definition: CbmTofTrackFinderNN.h:53
CbmTofTrackFinderNN::SetTxMean
void SetTxMean(Double_t val)
Definition: CbmTofTrackFinderNN.h:58
CbmTofTrackFinderNN::SetChiMaxAccept
void SetChiMaxAccept(Double_t val)
Definition: CbmTofTrackFinderNN.h:61
CbmTofTrackFitter.h
CbmTofTrackFinderNN::fSIGLIM
Double_t fSIGLIM
Definition: CbmTofTrackFinderNN.h:93