CbmRoot
|
#include <CbmTaskTofClusterizer.h>
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. | |
CbmTaskTofClusterizer & | operator= (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::Hitfind > | fAlgo |
std::unique_ptr< cbm::algo::tof::Calibrate > | fCalibrate |
const CbmTsEventHeader * | fTsHeader |
std::vector< CbmTofDigi > | fTofDigiVec {} |
CbmDigiManager * | fDigiMan |
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 |
Definition at line 33 of file CbmTaskTofClusterizer.h.
CbmTaskTofClusterizer::CbmTaskTofClusterizer | ( | ) |
Constructor.
Definition at line 36 of file CbmTaskTofClusterizer.cxx.
CbmTaskTofClusterizer::CbmTaskTofClusterizer | ( | const char * | name, |
int32_t | verbose = 1, | ||
bool | writeDataInOut = true ) |
Constructor.
Definition at line 38 of file CbmTaskTofClusterizer.cxx.
|
virtual |
Destructor.
Definition at line 57 of file CbmTaskTofClusterizer.cxx.
|
private |
Bmon Digis.
Copy constructor.
|
private |
Build clusters out of ToF Digis and store the resulting info in a TofHit.
Definition at line 330 of file CbmTaskTofClusterizer.cxx.
References CbmMatch::AddLink(), bAddBeamCounterSideDigi, fdEvent, fiFileIndex, fiNbHits, fiOutputTreeEntry, fTofCalDigiVec, fTofDigiVec, fTofHitsColl, CbmTofDigi::GetAddress(), CbmTofDigi::GetChannel(), CbmTofDigi::GetRpc(), CbmTofDigi::GetSide(), CbmTofDigi::GetSm(), CbmTofDigi::GetType(), and CbmTofDigi::SetAddress().
Referenced by ExecEvent().
|
private |
|
virtual |
Inherited from FairTask.
PAL: add TS statistics for monitoring and perf evaluation
Definition at line 71 of file CbmTaskTofClusterizer.cxx.
References CbmEvent::AddData(), CbmMatch::AddLink(), ExecEvent(), fBmonDigiVec, fDigiMan, fEventsColl, fiHitStart, fProcessTime, fTofCalDigiVec, fTofCalDigiVecOut, fTofDigiMatchColl, fTofDigiMatchCollOut, fTofDigiVec, fTofHitsColl, fTofHitsCollOut, fTsHeader, fuNbDigis, fuNbHits, CbmDigiManager::Get(), CbmTofDigi::GetAddress(), CbmTofDigi::GetChannel(), CbmEvent::GetIndex(), CbmLink::GetIndex(), CbmMatch::GetLink(), CbmEvent::GetNofData(), CbmDigiManager::GetNofDigis(), CbmMatch::GetNofLinks(), CbmEvent::GetNumber(), CbmTofDigi::GetRpc(), CbmTofDigi::GetSide(), CbmTofDigi::GetSm(), CbmTsEventHeader::GetTsStartTime(), CbmTofDigi::GetType(), iNbTs, kBmon, kBmonDigi, kTof, kTofCalDigi, kTofDigi, kTofHit, CbmTofDigi::SetAddress(), and CbmLink::SetIndex().
|
virtual |
Definition at line 200 of file CbmTaskTofClusterizer.cxx.
References BuildClusters(), fiNbHits, fiOutputTreeEntry, fTofCalDigiVec, fTofDigiMatchColl, and fTofHitsColl.
Referenced by Exec().
|
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().
|
virtual |
Definition at line 236 of file CbmTaskTofClusterizer.cxx.
References Finish(), and SetCalMode().
|
inline |
Definition at line 84 of file CbmTaskTofClusterizer.h.
References fiNbHits.
|
inline |
Definition at line 82 of file CbmTaskTofClusterizer.h.
|
virtual |
Inherited from FairTask.
Definition at line 61 of file CbmTaskTofClusterizer.cxx.
References InitAlgos(), RegisterInputs(), and RegisterOutputs().
|
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().
|
private |
Copy operator.
|
inline |
Definition at line 75 of file CbmTaskTofClusterizer.h.
|
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().
|
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().
|
inline |
Definition at line 73 of file CbmTaskTofClusterizer.h.
Referenced by Finish().
|
inline |
Definition at line 81 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 80 of file CbmTaskTofClusterizer.h.
void CbmTaskTofClusterizer::SetDeadStrips | ( | int32_t | iDet, |
uint32_t | ival ) |
|
inline |
Definition at line 74 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 87 of file CbmTaskTofClusterizer.h.
References fiFileIndex.
|
inline |
Definition at line 79 of file CbmTaskTofClusterizer.h.
|
inlinevirtual |
Inherited from FairTask.
Definition at line 58 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 76 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 78 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 77 of file CbmTaskTofClusterizer.h.
|
inline |
Definition at line 88 of file CbmTaskTofClusterizer.h.
References fbWriteDigisInOut.
|
inline |
Definition at line 89 of file CbmTaskTofClusterizer.h.
References fbWriteHitsInOut.
|
inline |
Definition at line 86 of file CbmTaskTofClusterizer.h.
References fbSwapChannelSides.
|
private |
Definition at line 96 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters().
|
private |
Definition at line 130 of file CbmTaskTofClusterizer.h.
Referenced by InitAlgos().
|
private |
Definition at line 98 of file CbmTaskTofClusterizer.h.
Referenced by Exec().
|
private |
Definition at line 158 of file CbmTaskTofClusterizer.h.
Referenced by SwapChannelSides().
|
private |
Definition at line 144 of file CbmTaskTofClusterizer.h.
Referenced by RegisterOutputs(), and SetWriteDigisInOut().
|
private |
Definition at line 143 of file CbmTaskTofClusterizer.h.
Referenced by RegisterOutputs(), and SetWriteHitsInOut().
|
private |
Definition at line 133 of file CbmTaskTofClusterizer.h.
Referenced by InitAlgos().
|
private |
Definition at line 153 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), and Finish().
|
private |
TOF Digis.
Definition at line 139 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), and RegisterInputs().
|
private |
Definition at line 140 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), RegisterInputs(), and RegisterOutputs().
|
private |
Definition at line 160 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), and SetFileIndex().
|
private |
Definition at line 95 of file CbmTaskTofClusterizer.h.
Referenced by Exec().
|
private |
Definition at line 151 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), ExecEvent(), and GetNbHits().
|
private |
Definition at line 159 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), and ExecEvent().
|
private |
Definition at line 154 of file CbmTaskTofClusterizer.h.
|
private |
Definition at line 145 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), Exec(), ExecEvent(), and RegisterOutputs().
|
private |
Definition at line 148 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), and RegisterOutputs().
|
private |
Definition at line 147 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), ExecEvent(), and RegisterOutputs().
|
private |
Definition at line 150 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), and RegisterOutputs().
|
private |
Definition at line 138 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), and Exec().
|
private |
// Calibrated TOF Digis
Definition at line 146 of file CbmTaskTofClusterizer.h.
Referenced by BuildClusters(), Exec(), ExecEvent(), and RegisterOutputs().
|
private |
// Calibrated TOF Digis
Definition at line 149 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), and RegisterOutputs().
|
private |
Definition at line 135 of file CbmTaskTofClusterizer.h.
Referenced by Exec(), and RegisterInputs().
|
private |
Definition at line 155 of file CbmTaskTofClusterizer.h.
|
private |
Definition at line 156 of file CbmTaskTofClusterizer.h.
|
private |
Definition at line 94 of file CbmTaskTofClusterizer.h.
Referenced by Exec().