CbmRoot
Loading...
Searching...
No Matches
CbmLitNearestHitTofMerger.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
12#ifndef CBMLITNEARESTHITTOFMERGER_H_
13#define CBMLITNEARESTHITTOFMERGER_H_
14
15#include "base/CbmLitPtrTypes.h"
17
20
22 public:
27
32
35 virtual LitStatus DoMerge(HitPtrVector& hits, //TODO: add const here
37
39 void SetFieldPropagator(TrackPropagatorPtr propagator) { fFieldPropagator = propagator; }
40 void SetLinePropagator(TrackPropagatorPtr propagator) { fLinePropagator = propagator; }
41 void SetFilter(TrackUpdatePtr filter) { fFilter = filter; }
42 void SetPDG(Int_t pdg) { fPDG = pdg; }
43 void SetChiSqCut(litfloat chiSqCut) { fChiSqCut = chiSqCut; }
44
45 private:
46 TrackPropagatorPtr fFieldPropagator; // Field track propagation tool
47 TrackPropagatorPtr fLinePropagator; // Line track propagation tool
48 TrackUpdatePtr fFilter; // Track update tool
49 Int_t fPDG; // PDG hypothesis
50 litfloat fChiSqCut; // Chi square cut for hit to be attached to track.
51};
52
53#endif /* CBMLITNEARESTHITTOTRACKMERGER_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
Interface for hit-to-track merging algorithm.
void SetLinePropagator(TrackPropagatorPtr propagator)
void SetFieldPropagator(TrackPropagatorPtr propagator)
virtual LitStatus DoMerge(HitPtrVector &hits, TrackPtrVector &tracks, TofTrackPtrVector &tofTracks)
Inherited from CbmLitHitToTrackMerger.
virtual ~CbmLitNearestHitTofMerger()
Destructor.
void SetChiSqCut(litfloat chiSqCut)
void SetFilter(TrackUpdatePtr filter)
CbmLitTrackPropagator.h.
Interface for track update algorithm.