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

Simple Cluster building and hit producing for CBM ToF using Digis as input. More...

#include <CbmTaskTofHitFinder.h>

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

Public Member Functions

 CbmTaskTofHitFinder ()
 Constructor.
 
 CbmTaskTofHitFinder (const char *name, int32_t verbose=1)
 Constructor.
 
virtual ~CbmTaskTofHitFinder ()
 Destructor.
 
virtual InitStatus Init ()
 Inherited from FairTask.
 
virtual void SetParContainers ()
 Inherited from FairTask.
 
virtual void Exec (Option_t *option)
 Inherited from FairTask.
 
virtual void Finish ()
 Inherited from FairTask.
 

Private Member Functions

 CbmTaskTofHitFinder (const CbmTaskTofHitFinder &)
 Copy constructor.
 
CbmTaskTofHitFinderoperator= (const CbmTaskTofHitFinder &)
 Copy operator.
 
bool RegisterInputs ()
 Recover pointer on input TClonesArray: TofPoints, TofDigis...
 
bool RegisterOutputs ()
 Create and register output TClonesArray of Tof Hits.
 
bool InitParameters ()
 Initialize other parameters not included in parameter classes.
 
bool InitCalibParameter ()
 Initialize other parameters not included in parameter classes.
 
bool InitAlgos ()
 Create one algo object for each RPC.
 
std::pair< int32_t, int32_t > BuildClusters (CbmEvent *event)
 Build clusters out of ToF Digis and store the resulting info in a TofHit.
 
void GetEventInfo (int32_t &inputNr, int32_t &eventNr, double &eventTime)
 Retrieve event info from run manager to properly fill the CbmLink objects.
 
 ClassDef (CbmTaskTofHitFinder, 1)
 

Private Attributes

CbmTofGeoHandlerfGeoHandler
 
CbmTofDetectorIdfTofId = nullptr
 
CbmTofDigiParfDigiPar = nullptr
 
CbmTofDigiBdfParfDigiBdfPar = nullptr
 
CbmDigiManagerfDigiMan = nullptr
 
TClonesArray * fEvents = nullptr
 
TClonesArray * fTofHitsColl = nullptr
 
TClonesArray * fTofDigiMatchColl = nullptr
 
std::map< uint32_t, std::map< uint32_t, cbm::algo::tof::HitFinder > > fAlgo = {}
 
std::vector< std::vector< std::vector< CbmTofDigi > > > fStorDigiExp
 
std::vector< std::vector< std::vector< int32_t > > > fStorDigiInd
 
std::vector< std::vector< double > > fvCPSigPropSpeed
 
std::vector< std::vector< std::vector< std::vector< double > > > > fvCPTOff
 
std::vector< std::vector< std::vector< std::vector< double > > > > fvCPTotGain
 
std::vector< std::vector< std::vector< std::vector< std::vector< double > > > > > fvCPWalk
 
TTimeStamp fStart
 
TTimeStamp fStop
 
TStopwatch fTimer
 ROOT timer.
 
int32_t fiNofTs = 0
 Number of processed timeslices.
 
int32_t fiNofEvents = 0
 Total number of events processed.
 
double fNofDigisAll = 0.
 Total number of TOF digis in input.
 
double fNofDigisUsed = 0.
 Total number of Tof Digis processed.
 
double fdNofHitsTot = 0.
 Total number of hits produced.
 
double fdTimeTot = 0.
 Total execution time.
 

Detailed Description

Simple Cluster building and hit producing for CBM ToF using Digis as input.

Author
Pierre-Alain Loizeau loize.nosp@m.au@p.nosp@m.hysi..nosp@m.uni-.nosp@m.heide.nosp@m.lber.nosp@m.g.de
Version
1.0

Definition at line 39 of file CbmTaskTofHitFinder.h.

Constructor & Destructor Documentation

◆ CbmTaskTofHitFinder() [1/3]

CbmTaskTofHitFinder::CbmTaskTofHitFinder ( )

Constructor.

Definition at line 57 of file CbmTaskTofHitFinder.cxx.

◆ CbmTaskTofHitFinder() [2/3]

CbmTaskTofHitFinder::CbmTaskTofHitFinder ( const char * name,
int32_t verbose = 1 )

Constructor.

Definition at line 59 of file CbmTaskTofHitFinder.cxx.

◆ ~CbmTaskTofHitFinder()

CbmTaskTofHitFinder::~CbmTaskTofHitFinder ( )
virtual

Destructor.

Definition at line 65 of file CbmTaskTofHitFinder.cxx.

References fGeoHandler.

◆ CbmTaskTofHitFinder() [3/3]

CbmTaskTofHitFinder::CbmTaskTofHitFinder ( const CbmTaskTofHitFinder & )
private

Copy constructor.

Member Function Documentation

◆ BuildClusters()

◆ ClassDef()

CbmTaskTofHitFinder::ClassDef ( CbmTaskTofHitFinder ,
1  )
private

◆ Exec()

void CbmTaskTofHitFinder::Exec ( Option_t * option)
virtual

◆ Finish()

void CbmTaskTofHitFinder::Finish ( )
virtual

Inherited from FairTask.

Definition at line 154 of file CbmTaskTofHitFinder.cxx.

References fdNofHitsTot, fdTimeTot, fEvents, fiNofEvents, fiNofTs, fNofDigisAll, and fNofDigisUsed.

◆ GetEventInfo()

void CbmTaskTofHitFinder::GetEventInfo ( int32_t & inputNr,
int32_t & eventNr,
double & eventTime )
private

Retrieve event info from run manager to properly fill the CbmLink objects.

Definition at line 455 of file CbmTaskTofHitFinder.cxx.

Referenced by BuildClusters().

◆ Init()

InitStatus CbmTaskTofHitFinder::Init ( )
virtual

◆ InitAlgos()

◆ InitCalibParameter()

bool CbmTaskTofHitFinder::InitCalibParameter ( )
private

◆ InitParameters()

bool CbmTaskTofHitFinder::InitParameters ( )
private

Initialize other parameters not included in parameter classes.

Definition at line 216 of file CbmTaskTofHitFinder.cxx.

References fDigiBdfPar, fDigiPar, fGeoHandler, fTofId, CbmTofGeoHandler::GetGeoVersion(), CbmTofCreateDigiPar::Init(), CbmTofGeoHandler::Init(), k14a, k21a, and CbmTofDigiBdfPar::UseExpandedDigi().

Referenced by Init().

◆ operator=()

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

Copy operator.

◆ RegisterInputs()

bool CbmTaskTofHitFinder::RegisterInputs ( )
private

Recover pointer on input TClonesArray: TofPoints, TofDigis...

Definition at line 177 of file CbmTaskTofHitFinder.cxx.

References fDigiMan, fEvents, CbmDigiManager::IsPresent(), and kTof.

Referenced by Init().

◆ RegisterOutputs()

bool CbmTaskTofHitFinder::RegisterOutputs ( )
private

Create and register output TClonesArray of Tof Hits.

Definition at line 202 of file CbmTaskTofHitFinder.cxx.

References fTofDigiMatchColl, fTofHitsColl, and rootMgr.

Referenced by Init().

◆ SetParContainers()

void CbmTaskTofHitFinder::SetParContainers ( )
virtual

Inherited from FairTask.

Definition at line 81 of file CbmTaskTofHitFinder.cxx.

References fDigiBdfPar, fDigiPar, and CbmTofDigiPar::GetNrOfModules().

Member Data Documentation

◆ fAlgo

std::map<uint32_t, std::map<uint32_t, cbm::algo::tof::HitFinder> > CbmTaskTofHitFinder::fAlgo = {}
private

Definition at line 134 of file CbmTaskTofHitFinder.h.

Referenced by BuildClusters(), and InitAlgos().

◆ fDigiBdfPar

CbmTofDigiBdfPar* CbmTaskTofHitFinder::fDigiBdfPar = nullptr
private

◆ fDigiMan

CbmDigiManager* CbmTaskTofHitFinder::fDigiMan = nullptr
private

Definition at line 126 of file CbmTaskTofHitFinder.h.

Referenced by BuildClusters(), Init(), and RegisterInputs().

◆ fDigiPar

CbmTofDigiPar* CbmTaskTofHitFinder::fDigiPar = nullptr
private

Definition at line 122 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), InitParameters(), and SetParContainers().

◆ fdNofHitsTot

double CbmTaskTofHitFinder::fdNofHitsTot = 0.
private

Total number of hits produced.

Definition at line 157 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fdTimeTot

double CbmTaskTofHitFinder::fdTimeTot = 0.
private

Total execution time.

Definition at line 158 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fEvents

TClonesArray* CbmTaskTofHitFinder::fEvents = nullptr
private

Definition at line 127 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), Finish(), and RegisterInputs().

◆ fGeoHandler

CbmTofGeoHandler* CbmTaskTofHitFinder::fGeoHandler
private

Definition at line 120 of file CbmTaskTofHitFinder.h.

Referenced by InitParameters(), and ~CbmTaskTofHitFinder().

◆ fiNofEvents

int32_t CbmTaskTofHitFinder::fiNofEvents = 0
private

Total number of events processed.

Definition at line 154 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fiNofTs

int32_t CbmTaskTofHitFinder::fiNofTs = 0
private

Number of processed timeslices.

Definition at line 153 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fNofDigisAll

double CbmTaskTofHitFinder::fNofDigisAll = 0.
private

Total number of TOF digis in input.

Definition at line 155 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fNofDigisUsed

double CbmTaskTofHitFinder::fNofDigisUsed = 0.
private

Total number of Tof Digis processed.

Definition at line 156 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and Finish().

◆ fStart

TTimeStamp CbmTaskTofHitFinder::fStart
private

Definition at line 148 of file CbmTaskTofHitFinder.h.

Referenced by Exec().

◆ fStop

TTimeStamp CbmTaskTofHitFinder::fStop
private

Definition at line 149 of file CbmTaskTofHitFinder.h.

Referenced by Exec().

◆ fStorDigiExp

std::vector<std::vector<std::vector<CbmTofDigi> > > CbmTaskTofHitFinder::fStorDigiExp
private

Definition at line 137 of file CbmTaskTofHitFinder.h.

Referenced by BuildClusters(), and InitAlgos().

◆ fStorDigiInd

std::vector<std::vector<std::vector<int32_t> > > CbmTaskTofHitFinder::fStorDigiInd
private

Definition at line 138 of file CbmTaskTofHitFinder.h.

Referenced by BuildClusters(), and InitAlgos().

◆ fTimer

TStopwatch CbmTaskTofHitFinder::fTimer
private

ROOT timer.

Definition at line 152 of file CbmTaskTofHitFinder.h.

Referenced by Exec().

◆ fTofDigiMatchColl

TClonesArray* CbmTaskTofHitFinder::fTofDigiMatchColl = nullptr
private

Definition at line 131 of file CbmTaskTofHitFinder.h.

Referenced by Exec(), and RegisterOutputs().

◆ fTofHitsColl

TClonesArray* CbmTaskTofHitFinder::fTofHitsColl = nullptr
private

Definition at line 130 of file CbmTaskTofHitFinder.h.

Referenced by BuildClusters(), Exec(), and RegisterOutputs().

◆ fTofId

CbmTofDetectorId* CbmTaskTofHitFinder::fTofId = nullptr
private

Definition at line 121 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), and InitParameters().

◆ fvCPSigPropSpeed

std::vector<std::vector<double> > CbmTaskTofHitFinder::fvCPSigPropSpeed
private

Definition at line 141 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), and InitCalibParameter().

◆ fvCPTOff

std::vector<std::vector<std::vector<std::vector<double> > > > CbmTaskTofHitFinder::fvCPTOff
private

Definition at line 142 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), and InitCalibParameter().

◆ fvCPTotGain

std::vector<std::vector<std::vector<std::vector<double> > > > CbmTaskTofHitFinder::fvCPTotGain
private

Definition at line 143 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), and InitCalibParameter().

◆ fvCPWalk

std::vector<std::vector<std::vector<std::vector<std::vector<double> > > > > CbmTaskTofHitFinder::fvCPWalk
private

Definition at line 145 of file CbmTaskTofHitFinder.h.

Referenced by InitAlgos(), and InitCalibParameter().


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