CbmRoot
Loading...
Searching...
No Matches
CbmTaskTrdHitFinder Class Reference

#include <CbmTaskTrdHitFinder.h>

Inheritance diagram for CbmTaskTrdHitFinder:
[legend]
Collaboration diagram for CbmTaskTrdHitFinder:
[legend]

Public Member Functions

 CbmTaskTrdHitFinder ()
 Default constructor.
 
 ~CbmTaskTrdHitFinder ()
 Default destructor.
 
virtual InitStatus Init ()
 
virtual void SetParContainers ()
 
virtual void Exec (Option_t *option)
 Executed task.
 
virtual void Finish ()
 

Private Member Functions

 CbmTaskTrdHitFinder (const CbmTaskTrdHitFinder &)
 
CbmTaskTrdHitFinderoperator= (const CbmTaskTrdHitFinder &)
 
template<class TModule , class TCluster >
void BuildHits (TModule *mod, std::vector< TCluster > *clusters)
 Build hits from clusters for a given module.
 
template<class TCluster >
void AddClusters (std::vector< TCluster > *clusters)
 
void AddHits (gsl::span< cbm::algo::trd::Hit > hits)
 
bool InitAlgos ()
 Create one algo object for each RPC.
 
 ClassDef (CbmTaskTrdHitFinder, 1)
 

Private Attributes

std::vector< CbmTrdCluster > * fClusters = nullptr
 
std::vector< CbmTrdHit > * fHits = nullptr
 Output array of CbmTrdHit.
 
std::unique_ptr< cbm::algo::trd::HitfindfAlgo
 Hit finding algorithm.
 
UInt_t fNrTs = 0
 Number of processed time slices.
 
UInt_t fNrEvents = 0
 Number of processed events (without CbmEvent corresponds to nr of exec calls)
 
UInt_t fNrDigis = 0
 Number of digis as input for the hit production.
 
UInt_t fNrClusters = 0
 Number of produced clusters.
 
UInt_t fNrHits = 0
 Number of produced hits.
 
Float_t fProcessTime = 0
 Total processing time [RealTime].
 

Detailed Description

CbmTaskTrdHitFinder.h

Author
Dominik Smith d.smi.nosp@m.th@g.nosp@m.si.de

Task to build TRD and TRD2D hits from yaml configuratin.

Definition at line 25 of file CbmTaskTrdHitFinder.h.

Constructor & Destructor Documentation

◆ CbmTaskTrdHitFinder() [1/2]

CbmTaskTrdHitFinder::CbmTaskTrdHitFinder ( )

Default constructor.

Definition at line 33 of file CbmTaskTrdHitFinder.cxx.

◆ ~CbmTaskTrdHitFinder()

CbmTaskTrdHitFinder::~CbmTaskTrdHitFinder ( )

Default destructor.

Definition at line 36 of file CbmTaskTrdHitFinder.cxx.

References fClusters, and fHits.

◆ CbmTaskTrdHitFinder() [2/2]

CbmTaskTrdHitFinder::CbmTaskTrdHitFinder ( const CbmTaskTrdHitFinder & )
private

Member Function Documentation

◆ AddClusters()

template<class TCluster >
void CbmTaskTrdHitFinder::AddClusters ( std::vector< TCluster > * clusters)
private

◆ AddHits()

void CbmTaskTrdHitFinder::AddHits ( gsl::span< cbm::algo::trd::Hit > hits)
private

◆ BuildHits()

template<class TModule , class TCluster >
void CbmTaskTrdHitFinder::BuildHits ( TModule * mod,
std::vector< TCluster > * clusters )
private

Build hits from clusters for a given module.

◆ ClassDef()

CbmTaskTrdHitFinder::ClassDef ( CbmTaskTrdHitFinder ,
1  )
private

◆ Exec()

void CbmTaskTrdHitFinder::Exec ( Option_t * option)
virtual

◆ Finish()

void CbmTaskTrdHitFinder::Finish ( )
virtual

Finish task

Definition at line 124 of file CbmTaskTrdHitFinder.cxx.

References fNrClusters, fNrDigis, fNrEvents, fNrHits, and fProcessTime.

◆ Init()

InitStatus CbmTaskTrdHitFinder::Init ( )
virtual

◆ InitAlgos()

bool CbmTaskTrdHitFinder::InitAlgos ( )
private

Create one algo object for each RPC.

◆ operator=()

CbmTaskTrdHitFinder & CbmTaskTrdHitFinder::operator= ( const CbmTaskTrdHitFinder & )
private

◆ SetParContainers()

void CbmTaskTrdHitFinder::SetParContainers ( )
virtual

Definition at line 49 of file CbmTaskTrdHitFinder.cxx.

Member Data Documentation

◆ fAlgo

std::unique_ptr<cbm::algo::trd::Hitfind> CbmTaskTrdHitFinder::fAlgo
private

Hit finding algorithm.

Definition at line 72 of file CbmTaskTrdHitFinder.h.

Referenced by Init().

◆ fClusters

std::vector<CbmTrdCluster>* CbmTaskTrdHitFinder::fClusters = nullptr
private

Output array of CbmTrdCluster

Definition at line 66 of file CbmTaskTrdHitFinder.h.

Referenced by Exec(), Init(), and ~CbmTaskTrdHitFinder().

◆ fHits

std::vector<CbmTrdHit>* CbmTaskTrdHitFinder::fHits = nullptr
private

Output array of CbmTrdHit.

Definition at line 69 of file CbmTaskTrdHitFinder.h.

Referenced by AddHits(), Exec(), Init(), and ~CbmTaskTrdHitFinder().

◆ fNrClusters

UInt_t CbmTaskTrdHitFinder::fNrClusters = 0
private

Number of produced clusters.

Definition at line 84 of file CbmTaskTrdHitFinder.h.

Referenced by Finish().

◆ fNrDigis

UInt_t CbmTaskTrdHitFinder::fNrDigis = 0
private

Number of digis as input for the hit production.

Definition at line 81 of file CbmTaskTrdHitFinder.h.

Referenced by Finish().

◆ fNrEvents

UInt_t CbmTaskTrdHitFinder::fNrEvents = 0
private

Number of processed events (without CbmEvent corresponds to nr of exec calls)

Definition at line 78 of file CbmTaskTrdHitFinder.h.

Referenced by Finish().

◆ fNrHits

UInt_t CbmTaskTrdHitFinder::fNrHits = 0
private

Number of produced hits.

Definition at line 87 of file CbmTaskTrdHitFinder.h.

Referenced by Finish().

◆ fNrTs

UInt_t CbmTaskTrdHitFinder::fNrTs = 0
private

Number of processed time slices.

Definition at line 75 of file CbmTaskTrdHitFinder.h.

Referenced by Exec().

◆ fProcessTime

Float_t CbmTaskTrdHitFinder::fProcessTime = 0
private

Total processing time [RealTime].

Definition at line 90 of file CbmTaskTrdHitFinder.h.

Referenced by Exec(), and Finish().


The documentation for this class was generated from the following files: