CbmRoot
CbmL1TrackMerger.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------
2 // ----- CbmL1TrackMerger -----
3 // ----- Created 2006-01-24 by D.Kresan -----
4 // ------------------------------------------------------------------
5 #ifndef _CBM_L1_TRACK_MERGER_
6 #define _CBM_L1_TRACK_MERGER_
7 
8 #include "CbmTrackMerger.h"
9 
10 class TClonesArray;
11 class CbmKFTrack;
12 class FairTrackParam;
13 class TH2F;
14 
15 
17 private:
18  CbmL1TrackMerger(const CbmL1TrackMerger&); // CHECKME
20 
21 private:
22  Int_t fMethod; // Merging method: 1 - based on StsTrackIndex from TRD track
23  // 2 - merging of tracks at the first
24  TClonesArray* fArrayStsTrackM; // Array of STS track matches
25  TClonesArray* fArrayTrdTrackM; // Array of TRD track matches
26  TH2F* fh_dx_true; // Control histogramm
27  TH2F* fh_dx_false; // Control histogramm
28  TH2F* fh_dy_true; // Control histogramm
29  TH2F* fh_dy_false; // Control histogramm
30  TH2F* fh_dtx_true; // Control histogramm
31  TH2F* fh_dtx_false; // Control histogramm
32  TH2F* fh_dty_true; // Control histogramm
33  TH2F* fh_dty_false; // Control histogramm
34 
35  Double_t GetChi2XY(CbmKFTrack& kfTrack, FairTrackParam* trackParam);
36  void CreateHistogramms();
37  Int_t MergeSimple(TClonesArray* stsTracks,
38  TClonesArray* trdTracks,
39  TClonesArray* glbTracks);
40  Int_t MergeImPlane(TClonesArray* stsTracks,
41  TClonesArray* trdTracks,
42  TClonesArray* glbTracks);
43 
44 public:
46  CbmL1TrackMerger(Int_t verbose);
47  virtual ~CbmL1TrackMerger();
48 
49  void Init();
50  Int_t DoMerge(TClonesArray* stsTracks,
51  TClonesArray* trdTracks,
52  TClonesArray* glbTracks);
53  void WriteHistogramms();
54 
55  inline Int_t GetVerbose() const { return fVerbose; }
56  inline Int_t GetMethod() const { return fMethod; }
57 
58  inline void SetVerbose(Int_t verbose) { fVerbose = verbose; }
59  inline void SetMethod(Int_t method) { fMethod = method; }
60 
62 };
63 
64 
65 #endif
CbmL1TrackMerger::GetChi2XY
Double_t GetChi2XY(CbmKFTrack &kfTrack, FairTrackParam *trackParam)
Definition: CbmL1TrackMerger.cxx:408
CbmL1TrackMerger::CbmL1TrackMerger
CbmL1TrackMerger()
Definition: CbmL1TrackMerger.cxx:42
CbmL1TrackMerger::fh_dy_false
TH2F * fh_dy_false
Definition: CbmL1TrackMerger.h:29
CbmL1TrackMerger::fh_dx_false
TH2F * fh_dx_false
Definition: CbmL1TrackMerger.h:27
CbmL1TrackMerger::CbmL1TrackMerger
CbmL1TrackMerger(const CbmL1TrackMerger &)
CbmL1TrackMerger::fh_dtx_true
TH2F * fh_dtx_true
Definition: CbmL1TrackMerger.h:30
CbmL1TrackMerger::SetVerbose
void SetVerbose(Int_t verbose)
Definition: CbmL1TrackMerger.h:58
CbmTrackMerger::fVerbose
Int_t fVerbose
Definition: CbmTrackMerger.h:60
CbmL1TrackMerger::GetVerbose
Int_t GetVerbose() const
Definition: CbmL1TrackMerger.h:55
CbmL1TrackMerger::MergeSimple
Int_t MergeSimple(TClonesArray *stsTracks, TClonesArray *trdTracks, TClonesArray *glbTracks)
Definition: CbmL1TrackMerger.cxx:154
CbmL1TrackMerger::operator=
CbmL1TrackMerger operator=(const CbmL1TrackMerger &)
CbmL1TrackMerger::fh_dty_true
TH2F * fh_dty_true
Definition: CbmL1TrackMerger.h:32
CbmTrackMerger.h
CbmL1TrackMerger::fArrayStsTrackM
TClonesArray * fArrayStsTrackM
Definition: CbmL1TrackMerger.h:24
CbmL1TrackMerger
Definition: CbmL1TrackMerger.h:16
CbmL1TrackMerger::WriteHistogramms
void WriteHistogramms()
Definition: CbmL1TrackMerger.cxx:443
CbmL1TrackMerger::MergeImPlane
Int_t MergeImPlane(TClonesArray *stsTracks, TClonesArray *trdTracks, TClonesArray *glbTracks)
Definition: CbmL1TrackMerger.cxx:212
CbmL1TrackMerger::ClassDef
ClassDef(CbmL1TrackMerger, 1)
CbmL1TrackMerger::GetMethod
Int_t GetMethod() const
Definition: CbmL1TrackMerger.h:56
CbmL1TrackMerger::fh_dy_true
TH2F * fh_dy_true
Definition: CbmL1TrackMerger.h:28
CbmL1TrackMerger::fh_dtx_false
TH2F * fh_dtx_false
Definition: CbmL1TrackMerger.h:31
CbmL1TrackMerger::SetMethod
void SetMethod(Int_t method)
Definition: CbmL1TrackMerger.h:59
CbmL1TrackMerger::fMethod
Int_t fMethod
Definition: CbmL1TrackMerger.h:22
CbmL1TrackMerger::fh_dx_true
TH2F * fh_dx_true
Definition: CbmL1TrackMerger.h:26
CbmKFTrack
Definition: CbmKFTrack.h:21
CbmL1TrackMerger::fh_dty_false
TH2F * fh_dty_false
Definition: CbmL1TrackMerger.h:33
CbmL1TrackMerger::fArrayTrdTrackM
TClonesArray * fArrayTrdTrackM
Definition: CbmL1TrackMerger.h:25
CbmL1TrackMerger::CreateHistogramms
void CreateHistogramms()
Definition: CbmL1TrackMerger.cxx:425
CbmL1TrackMerger::~CbmL1TrackMerger
virtual ~CbmL1TrackMerger()
Definition: CbmL1TrackMerger.cxx:104
CbmL1TrackMerger::DoMerge
Int_t DoMerge(TClonesArray *stsTracks, TClonesArray *trdTracks, TClonesArray *glbTracks)
Definition: CbmL1TrackMerger.cxx:136
CbmL1TrackMerger::Init
void Init()
Definition: CbmL1TrackMerger.cxx:111
CbmTrackMerger
Definition: CbmTrackMerger.h:25