5#ifndef CBMTASKTRDHITFINDER_H
6#define CBMTASKTRDHITFINDER_H
39 virtual InitStatus
Init();
43 virtual void Exec(Option_t* option);
55 template<
class TModule,
class TCluster>
56 void BuildHits(TModule* mod, std::vector<TCluster>* clusters);
58 template<
class TCluster>
69 std::vector<CbmTrdHit>*
fHits =
nullptr;
72 std::unique_ptr<cbm::algo::trd::Hitfind>
fAlgo;
static vector< vector< QAHit > > hits
Data Container for TRD clusters.
Class for hits in TRD detector.
UInt_t fNrClusters
Number of produced clusters.
ClassDef(CbmTaskTrdHitFinder, 1)
virtual void SetParContainers()
std::vector< CbmTrdHit > * fHits
Output array of CbmTrdHit.
~CbmTaskTrdHitFinder()
Default destructor.
std::unique_ptr< cbm::algo::trd::Hitfind > fAlgo
Hit finding algorithm.
CbmTaskTrdHitFinder(const CbmTaskTrdHitFinder &)
virtual InitStatus Init()
CbmTaskTrdHitFinder & operator=(const CbmTaskTrdHitFinder &)
bool InitAlgos()
Create one algo object for each RPC.
void BuildHits(TModule *mod, std::vector< TCluster > *clusters)
Build hits from clusters for a given module.
std::vector< CbmTrdCluster > * fClusters
void AddHits(gsl::span< cbm::algo::trd::Hit > hits)
void AddClusters(std::vector< TCluster > *clusters)
CbmTaskTrdHitFinder()
Default constructor.
Float_t fProcessTime
Total processing time [RealTime].
virtual void Exec(Option_t *option)
Executed task.
UInt_t fNrHits
Number of produced hits.
UInt_t fNrEvents
Number of processed events (without CbmEvent corresponds to nr of exec calls)
UInt_t fNrTs
Number of processed time slices.
UInt_t fNrDigis
Number of digis as input for the hit production.
A light-weight TRD hit class for online reconstruction, based on CbmTrdHit. .