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