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

#include <CbmTaskTofClusterizer.h>

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

Public Member Functions

 CbmTaskTofClusterizer ()
 Constructor.
 
 CbmTaskTofClusterizer (const char *name, int32_t verbose=1, bool writeDataInOut=true)
 Constructor.
 
virtual ~CbmTaskTofClusterizer ()
 Destructor.
 
virtual InitStatus Init ()
 Inherited from FairTask.
 
virtual void SetParContainers ()
 Inherited from FairTask.
 
virtual void Exec (Option_t *option)
 Inherited from FairTask.
 
virtual void ExecEvent (Option_t *option)
 
virtual void Finish ()
 Inherited from FairTask.
 
virtual void Finish (double calMode)
 
void SetCalMode (int32_t)
 
void SetDutId (int32_t)
 
void PosYMaxScal (double)
 
void SetTotMax (double)
 
void SetTotMin (double)
 
void SetTotMean (double)
 
void SetMaxTimeDist (double)
 
void SetChannelDeadtime (double)
 
void SetCalParFileName (TString)
 
double GetTotMean ()
 
int GetNbHits ()
 
void SwapChannelSides (bool bSwap)
 
void SetFileIndex (int32_t iIndex)
 
void SetWriteDigisInOut (bool bDigis)
 
void SetWriteHitsInOut (bool bHits)
 
void SetDeadStrips (int32_t iDet, uint32_t ival)
 

Private Member Functions

 CbmTaskTofClusterizer (const CbmTaskTofClusterizer &)
 Bmon Digis.
 
CbmTaskTofClusterizeroperator= (const CbmTaskTofClusterizer &)
 Copy operator.
 
bool RegisterInputs ()
 Recover pointer on input TClonesArray: TofPoints, TofDigis...
 
bool RegisterOutputs ()
 Create and register output TClonesArray of Tof Hits.
 
bool BuildClusters ()
 Build clusters out of ToF Digis and store the resulting info in a TofHit.
 
bool InitAlgos ()
 Create one algo object for each RPC.
 
 ClassDef (CbmTaskTofClusterizer, 1)
 

Private Attributes

int32_t iNbTs = 0
 
int fiHitStart = 0
 
bool bAddBeamCounterSideDigi = true
 
std::vector< CbmTofDigi > * fBmonDigiVec = nullptr
 
std::unique_ptr< cbm::algo::tof::HitfindfAlgo
 
std::unique_ptr< cbm::algo::tof::CalibratefCalibrate
 
const CbmTsEventHeaderfTsHeader
 
std::vector< CbmTofDigifTofDigiVec {}
 
CbmDigiManagerfDigiMan
 TOF Digis.
 
TClonesArray * fEventsColl
 
bool fbWriteHitsInOut
 
bool fbWriteDigisInOut
 
std::vector< CbmTofDigi > * fTofCalDigiVec = nullptr
 
TClonesArray * fTofHitsColl
 // Calibrated TOF Digis
 
TClonesArray * fTofDigiMatchColl
 
std::vector< CbmTofDigi > * fTofCalDigiVecOut = nullptr
 
TClonesArray * fTofHitsCollOut
 // Calibrated TOF Digis
 
TClonesArray * fTofDigiMatchCollOut
 
int32_t fiNbHits
 
double fdEvent
 
double fProcessTime = 0.0
 
uint64_t fuNbDigis = 0
 
uint64_t fuNbHits = 0
 
bool fbSwapChannelSides
 
int32_t fiOutputTreeEntry
 
int32_t fiFileIndex
 

Detailed Description

Definition at line 33 of file CbmTaskTofClusterizer.h.

Constructor & Destructor Documentation

◆ CbmTaskTofClusterizer() [1/3]

CbmTaskTofClusterizer::CbmTaskTofClusterizer ( )

Constructor.

Definition at line 36 of file CbmTaskTofClusterizer.cxx.

◆ CbmTaskTofClusterizer() [2/3]

CbmTaskTofClusterizer::CbmTaskTofClusterizer ( const char * name,
int32_t verbose = 1,
bool writeDataInOut = true )

Constructor.

Definition at line 38 of file CbmTaskTofClusterizer.cxx.

◆ ~CbmTaskTofClusterizer()

CbmTaskTofClusterizer::~CbmTaskTofClusterizer ( )
virtual

Destructor.

Definition at line 57 of file CbmTaskTofClusterizer.cxx.

◆ CbmTaskTofClusterizer() [3/3]

CbmTaskTofClusterizer::CbmTaskTofClusterizer ( const CbmTaskTofClusterizer & )
private

Bmon Digis.

Copy constructor.

Member Function Documentation

◆ BuildClusters()

bool CbmTaskTofClusterizer::BuildClusters ( )
private

◆ ClassDef()

CbmTaskTofClusterizer::ClassDef ( CbmTaskTofClusterizer ,
1  )
private

◆ Exec()

◆ ExecEvent()

void CbmTaskTofClusterizer::ExecEvent ( Option_t * option)
virtual

◆ Finish() [1/2]

void CbmTaskTofClusterizer::Finish ( )
virtual

Inherited from FairTask.

PAL: add run statistics for monitoring and perf evaluation

Definition at line 217 of file CbmTaskTofClusterizer.cxx.

References fdEvent, fProcessTime, fuNbDigis, and fuNbHits.

Referenced by Finish().

◆ Finish() [2/2]

void CbmTaskTofClusterizer::Finish ( double calMode)
virtual

Definition at line 236 of file CbmTaskTofClusterizer.cxx.

References Finish(), and SetCalMode().

◆ GetNbHits()

int CbmTaskTofClusterizer::GetNbHits ( )
inline

Definition at line 84 of file CbmTaskTofClusterizer.h.

References fiNbHits.

◆ GetTotMean()

double CbmTaskTofClusterizer::GetTotMean ( )
inline

Definition at line 82 of file CbmTaskTofClusterizer.h.

◆ Init()

InitStatus CbmTaskTofClusterizer::Init ( )
virtual

Inherited from FairTask.

Definition at line 61 of file CbmTaskTofClusterizer.cxx.

References InitAlgos(), RegisterInputs(), and RegisterOutputs().

◆ InitAlgos()

bool CbmTaskTofClusterizer::InitAlgos ( )
private

Create one algo object for each RPC.

Definition at line 315 of file CbmTaskTofClusterizer.cxx.

References fAlgo, fCalibrate, and cbm::algo::yaml::ReadFromFile().

Referenced by Init().

◆ operator=()

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

Copy operator.

◆ PosYMaxScal()

void CbmTaskTofClusterizer::PosYMaxScal ( double )
inline

Definition at line 75 of file CbmTaskTofClusterizer.h.

◆ RegisterInputs()

bool CbmTaskTofClusterizer::RegisterInputs ( )
private

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

Definition at line 244 of file CbmTaskTofClusterizer.cxx.

References fDigiMan, fEventsColl, fTsHeader, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), kBmon, and kTof.

Referenced by Init().

◆ RegisterOutputs()

bool CbmTaskTofClusterizer::RegisterOutputs ( )
private

Create and register output TClonesArray of Tof Hits.

Definition at line 280 of file CbmTaskTofClusterizer.cxx.

References fbWriteDigisInOut, fbWriteHitsInOut, fEventsColl, fTofCalDigiVec, fTofCalDigiVecOut, fTofDigiMatchColl, fTofDigiMatchCollOut, fTofHitsColl, fTofHitsCollOut, and rootMgr.

Referenced by Init().

◆ SetCalMode()

void CbmTaskTofClusterizer::SetCalMode ( int32_t )
inline

Definition at line 73 of file CbmTaskTofClusterizer.h.

Referenced by Finish().

◆ SetCalParFileName()

void CbmTaskTofClusterizer::SetCalParFileName ( TString )
inline

Definition at line 81 of file CbmTaskTofClusterizer.h.

◆ SetChannelDeadtime()

void CbmTaskTofClusterizer::SetChannelDeadtime ( double )
inline

Definition at line 80 of file CbmTaskTofClusterizer.h.

◆ SetDeadStrips()

void CbmTaskTofClusterizer::SetDeadStrips ( int32_t iDet,
uint32_t ival )

◆ SetDutId()

void CbmTaskTofClusterizer::SetDutId ( int32_t )
inline

Definition at line 74 of file CbmTaskTofClusterizer.h.

◆ SetFileIndex()

void CbmTaskTofClusterizer::SetFileIndex ( int32_t iIndex)
inline

Definition at line 87 of file CbmTaskTofClusterizer.h.

References fiFileIndex.

◆ SetMaxTimeDist()

void CbmTaskTofClusterizer::SetMaxTimeDist ( double )
inline

Definition at line 79 of file CbmTaskTofClusterizer.h.

◆ SetParContainers()

virtual void CbmTaskTofClusterizer::SetParContainers ( )
inlinevirtual

Inherited from FairTask.

Definition at line 58 of file CbmTaskTofClusterizer.h.

◆ SetTotMax()

void CbmTaskTofClusterizer::SetTotMax ( double )
inline

Definition at line 76 of file CbmTaskTofClusterizer.h.

◆ SetTotMean()

void CbmTaskTofClusterizer::SetTotMean ( double )
inline

Definition at line 78 of file CbmTaskTofClusterizer.h.

◆ SetTotMin()

void CbmTaskTofClusterizer::SetTotMin ( double )
inline

Definition at line 77 of file CbmTaskTofClusterizer.h.

◆ SetWriteDigisInOut()

void CbmTaskTofClusterizer::SetWriteDigisInOut ( bool bDigis)
inline

Definition at line 88 of file CbmTaskTofClusterizer.h.

References fbWriteDigisInOut.

◆ SetWriteHitsInOut()

void CbmTaskTofClusterizer::SetWriteHitsInOut ( bool bHits)
inline

Definition at line 89 of file CbmTaskTofClusterizer.h.

References fbWriteHitsInOut.

◆ SwapChannelSides()

void CbmTaskTofClusterizer::SwapChannelSides ( bool bSwap)
inline

Definition at line 86 of file CbmTaskTofClusterizer.h.

References fbSwapChannelSides.

Member Data Documentation

◆ bAddBeamCounterSideDigi

bool CbmTaskTofClusterizer::bAddBeamCounterSideDigi = true
private

Definition at line 96 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters().

◆ fAlgo

std::unique_ptr<cbm::algo::tof::Hitfind> CbmTaskTofClusterizer::fAlgo
private

Definition at line 130 of file CbmTaskTofClusterizer.h.

Referenced by InitAlgos().

◆ fBmonDigiVec

std::vector<CbmTofDigi>* CbmTaskTofClusterizer::fBmonDigiVec = nullptr
private

Definition at line 98 of file CbmTaskTofClusterizer.h.

Referenced by Exec().

◆ fbSwapChannelSides

bool CbmTaskTofClusterizer::fbSwapChannelSides
private

Definition at line 158 of file CbmTaskTofClusterizer.h.

Referenced by SwapChannelSides().

◆ fbWriteDigisInOut

bool CbmTaskTofClusterizer::fbWriteDigisInOut
private

Definition at line 144 of file CbmTaskTofClusterizer.h.

Referenced by RegisterOutputs(), and SetWriteDigisInOut().

◆ fbWriteHitsInOut

bool CbmTaskTofClusterizer::fbWriteHitsInOut
private

Definition at line 143 of file CbmTaskTofClusterizer.h.

Referenced by RegisterOutputs(), and SetWriteHitsInOut().

◆ fCalibrate

std::unique_ptr<cbm::algo::tof::Calibrate> CbmTaskTofClusterizer::fCalibrate
private

Definition at line 133 of file CbmTaskTofClusterizer.h.

Referenced by InitAlgos().

◆ fdEvent

double CbmTaskTofClusterizer::fdEvent
private

Definition at line 153 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters(), and Finish().

◆ fDigiMan

CbmDigiManager* CbmTaskTofClusterizer::fDigiMan
private

TOF Digis.

Definition at line 139 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and RegisterInputs().

◆ fEventsColl

TClonesArray* CbmTaskTofClusterizer::fEventsColl
private

Definition at line 140 of file CbmTaskTofClusterizer.h.

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

◆ fiFileIndex

int32_t CbmTaskTofClusterizer::fiFileIndex
private

Definition at line 160 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters(), and SetFileIndex().

◆ fiHitStart

int CbmTaskTofClusterizer::fiHitStart = 0
private

Definition at line 95 of file CbmTaskTofClusterizer.h.

Referenced by Exec().

◆ fiNbHits

int32_t CbmTaskTofClusterizer::fiNbHits
private

Definition at line 151 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters(), ExecEvent(), and GetNbHits().

◆ fiOutputTreeEntry

int32_t CbmTaskTofClusterizer::fiOutputTreeEntry
private

Definition at line 159 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters(), and ExecEvent().

◆ fProcessTime

double CbmTaskTofClusterizer::fProcessTime = 0.0
private

Definition at line 154 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and Finish().

◆ fTofCalDigiVec

std::vector<CbmTofDigi>* CbmTaskTofClusterizer::fTofCalDigiVec = nullptr
private

Definition at line 145 of file CbmTaskTofClusterizer.h.

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

◆ fTofCalDigiVecOut

std::vector<CbmTofDigi>* CbmTaskTofClusterizer::fTofCalDigiVecOut = nullptr
private

Definition at line 148 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and RegisterOutputs().

◆ fTofDigiMatchColl

TClonesArray* CbmTaskTofClusterizer::fTofDigiMatchColl
private

Definition at line 147 of file CbmTaskTofClusterizer.h.

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

◆ fTofDigiMatchCollOut

TClonesArray* CbmTaskTofClusterizer::fTofDigiMatchCollOut
private

Definition at line 150 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and RegisterOutputs().

◆ fTofDigiVec

std::vector<CbmTofDigi> CbmTaskTofClusterizer::fTofDigiVec {}
private

Definition at line 138 of file CbmTaskTofClusterizer.h.

Referenced by BuildClusters(), and Exec().

◆ fTofHitsColl

TClonesArray* CbmTaskTofClusterizer::fTofHitsColl
private

// Calibrated TOF Digis

Definition at line 146 of file CbmTaskTofClusterizer.h.

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

◆ fTofHitsCollOut

TClonesArray* CbmTaskTofClusterizer::fTofHitsCollOut
private

// Calibrated TOF Digis

Definition at line 149 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and RegisterOutputs().

◆ fTsHeader

const CbmTsEventHeader* CbmTaskTofClusterizer::fTsHeader
private

Definition at line 135 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and RegisterInputs().

◆ fuNbDigis

uint64_t CbmTaskTofClusterizer::fuNbDigis = 0
private

Definition at line 155 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and Finish().

◆ fuNbHits

uint64_t CbmTaskTofClusterizer::fuNbHits = 0
private

Definition at line 156 of file CbmTaskTofClusterizer.h.

Referenced by Exec(), and Finish().

◆ iNbTs

int32_t CbmTaskTofClusterizer::iNbTs = 0
private

Definition at line 94 of file CbmTaskTofClusterizer.h.

Referenced by Exec().


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