CbmRoot
Loading...
Searching...
No Matches
CbmLitAllHitsTofMerger.h
Go to the documentation of this file.
1/* Copyright (C) 2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
13#ifndef CBMLITALLHITSTOFMERGER_H_
14#define CBMLITALLHITSTOFMERGER_H_
15
16#include "base/CbmLitPtrTypes.h"
18
21
23 public:
28
33
36 virtual LitStatus DoMerge(HitPtrVector& hits, //TODO: add const here
38
40 void SetFieldPropagator(TrackPropagatorPtr propagator) { fFieldPropagator = propagator; }
41 void SetLinePropagator(TrackPropagatorPtr propagator) { fLinePropagator = propagator; }
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 /* CBMLITALLHITSTOFMERGER_H_ */
TClonesArray * tracks
LitStatus
Definition CbmLitEnums.h:29
double litfloat
Definition CbmLitFloat.h:19
Interface for hit-to-track merging algorithm.
Typedefs for algorithm interfaces.
vector< CbmLitTofTrack * > TofTrackPtrVector
Definition CbmLitTypes.h:37
static vector< vector< QAHit > > hits
boost::shared_ptr< CbmLitTrackPropagator > TrackPropagatorPtr
boost::shared_ptr< CbmLitTrackUpdate > TrackUpdatePtr
std::vector< CbmTofTrack * > TrackPtrVector
Definition CbmTofTypes.h:26
std::vector< CbmTofHit * > HitPtrVector
Definition CbmTofTypes.h:20
void SetFilter(TrackUpdatePtr filter)
void SetLinePropagator(TrackPropagatorPtr propagator)
TrackPropagatorPtr fFieldPropagator
virtual ~CbmLitAllHitsTofMerger()
Destructor.
void SetChiSqCut(litfloat chiSqCut)
virtual LitStatus DoMerge(HitPtrVector &hits, TrackPtrVector &tracks, TofTrackPtrVector &tofTracks)
Inherited from CbmLitHitToTrackMerger.
TrackPropagatorPtr fLinePropagator
void SetFieldPropagator(TrackPropagatorPtr propagator)
Interface for hit-to-track merging algorithm.
CbmLitTrackPropagator.h.
Interface for track update algorithm.