CbmRoot
CbmLitAllHitsTofMerger.h
Go to the documentation of this file.
1 
9 #ifndef CBMLITALLHITSTOFMERGER_H_
10 #define CBMLITALLHITSTOFMERGER_H_
11 
12 #include "base/CbmLitPtrTypes.h"
14 
16 class CbmLitTrackUpdate;
17 
19 public:
24 
28  virtual ~CbmLitAllHitsTofMerger();
29 
32  virtual LitStatus DoMerge(HitPtrVector& hits, //TODO: add const here
34  TofTrackPtrVector& tofTracks);
35 
38  fFieldPropagator = propagator;
39  }
41  fLinePropagator = propagator;
42  }
43  void SetFilter(TrackUpdatePtr filter) { fFilter = filter; }
44  void SetPDG(Int_t pdg) { fPDG = pdg; }
45  void SetChiSqCut(litfloat chiSqCut) { fChiSqCut = chiSqCut; }
46 
47 private:
48  TrackPropagatorPtr fFieldPropagator; // Field track propagation tool
49  TrackPropagatorPtr fLinePropagator; // Line track propagation tool
50  TrackUpdatePtr fFilter; // Track update tool
51  Int_t fPDG; // PDG hypothesis
52  litfloat fChiSqCut; // Chi square cut for hit to be attached to track.
53 };
54 
55 #endif /* CBMLITALLHITSTOFMERGER_H_ */
CbmLitAllHitsTofMerger::SetFilter
void SetFilter(TrackUpdatePtr filter)
Definition: CbmLitAllHitsTofMerger.h:43
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitAllHitsTofMerger::fFieldPropagator
TrackPropagatorPtr fFieldPropagator
Definition: CbmLitAllHitsTofMerger.h:48
CbmLitAllHitsTofMerger::SetPDG
void SetPDG(Int_t pdg)
Definition: CbmLitAllHitsTofMerger.h:44
TofTrackPtrVector
vector< CbmLitTofTrack * > TofTrackPtrVector
Definition: CbmLitTypes.h:32
CbmLitAllHitsTofMerger::SetFieldPropagator
void SetFieldPropagator(TrackPropagatorPtr propagator)
Definition: CbmLitAllHitsTofMerger.h:37
CbmLitAllHitsTofMerger::fPDG
Int_t fPDG
Definition: CbmLitAllHitsTofMerger.h:51
TrackPropagatorPtr
boost::shared_ptr< CbmLitTrackPropagator > TrackPropagatorPtr
Definition: CbmTofPtrTypes.h:23
CbmLitAllHitsTofMerger::fFilter
TrackUpdatePtr fFilter
Definition: CbmLitAllHitsTofMerger.h:50
CbmLitAllHitsTofMerger::SetLinePropagator
void SetLinePropagator(TrackPropagatorPtr propagator)
Definition: CbmLitAllHitsTofMerger.h:40
CbmLitAllHitsTofMerger::fChiSqCut
litfloat fChiSqCut
Definition: CbmLitAllHitsTofMerger.h:52
TrackUpdatePtr
boost::shared_ptr< CbmLitTrackUpdate > TrackUpdatePtr
Definition: CbmTofPtrTypes.h:26
CbmLitAllHitsTofMerger::fLinePropagator
TrackPropagatorPtr fLinePropagator
Definition: CbmLitAllHitsTofMerger.h:49
CbmLitAllHitsTofMerger::DoMerge
virtual LitStatus DoMerge(HitPtrVector &hits, TrackPtrVector &tracks, TofTrackPtrVector &tofTracks)
Inherited from CbmLitHitToTrackMerger.
Definition: CbmLitAllHitsTofMerger.cxx:31
CbmLitHitToTrackMerger
Interface for hit-to-track merging algorithm.
Definition: CbmLitHitToTrackMerger.h:20
TrackPtrVector
std::vector< CbmTofTrack * > TrackPtrVector
Definition: CbmTofTypes.h:22
tracks
TClonesArray * tracks
Definition: Analyze_matching.h:17
CbmLitTrackUpdate
Interface for track update algorithm.
Definition: CbmLitTrackUpdate.h:23
CbmLitTrackPropagator
CbmLitTrackPropagator.h.
Definition: CbmLitTrackPropagator.h:27
CbmLitAllHitsTofMerger::SetChiSqCut
void SetChiSqCut(litfloat chiSqCut)
Definition: CbmLitAllHitsTofMerger.h:45
CbmLitAllHitsTofMerger
Definition: CbmLitAllHitsTofMerger.h:18
hits
static vector< vector< QAHit > > hits
Definition: CbmTofHitFinderTBQA.cxx:114
CbmLitHitToTrackMerger.h
Interface for hit-to-track merging algorithm.
CbmLitPtrTypes.h
Typedefs for algorithm interfaces.
LitStatus
LitStatus
Definition: CbmLitEnums.h:23
CbmLitAllHitsTofMerger::CbmLitAllHitsTofMerger
CbmLitAllHitsTofMerger()
Constructor.
Definition: CbmLitAllHitsTofMerger.cxx:22
CbmLitAllHitsTofMerger::~CbmLitAllHitsTofMerger
virtual ~CbmLitAllHitsTofMerger()
Destructor.
Definition: CbmLitAllHitsTofMerger.cxx:29
HitPtrVector
std::vector< CbmTofHit * > HitPtrVector
Definition: CbmTofTypes.h:14