CbmRoot
|
Simple Cluster building and hit producing for CBM ToF using Digis as input. More...
#include <CbmTaskTofHitFinder.h>
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. | |
CbmTaskTofHitFinder & | operator= (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 | |
CbmTofGeoHandler * | fGeoHandler |
CbmTofDetectorId * | fTofId = nullptr |
CbmTofDigiPar * | fDigiPar = nullptr |
CbmTofDigiBdfPar * | fDigiBdfPar = nullptr |
CbmDigiManager * | fDigiMan = 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. | |
Simple Cluster building and hit producing for CBM ToF using Digis as input.
Definition at line 39 of file CbmTaskTofHitFinder.h.
CbmTaskTofHitFinder::CbmTaskTofHitFinder | ( | ) |
Constructor.
Definition at line 57 of file CbmTaskTofHitFinder.cxx.
CbmTaskTofHitFinder::CbmTaskTofHitFinder | ( | const char * | name, |
int32_t | verbose = 1 ) |
Constructor.
Definition at line 59 of file CbmTaskTofHitFinder.cxx.
|
virtual |
|
private |
Copy constructor.
|
private |
Build clusters out of ToF Digis and store the resulting info in a TofHit.
Definition at line 386 of file CbmTaskTofHitFinder.cxx.
References CbmMatch::AddLink(), fAlgo, fDigiBdfPar, fDigiMan, fStorDigiExp, fStorDigiInd, fTofHitsColl, CbmDigiManager::Get(), CbmTofDigi::GetAddress(), GetEventInfo(), CbmTofDigiBdfPar::GetNbRpc(), CbmTofDigiBdfPar::GetNbSm(), CbmTofDigiBdfPar::GetNbSmTypes(), CbmDigiManager::GetNofDigis(), CbmTofAddress::GetRpcId(), CbmTofAddress::GetSmId(), CbmTofAddress::GetSmType(), kTof, kTofDigi, and kTofHit.
Referenced by Exec().
|
private |
|
virtual |
Inherited from FairTask.
Definition at line 95 of file CbmTaskTofHitFinder.cxx.
References BuildClusters(), fdNofHitsTot, fdTimeTot, fEvents, fiNofEvents, fiNofTs, fNofDigisAll, fNofDigisUsed, fStart, fStop, fTimer, fTofDigiMatchColl, fTofHitsColl, CbmDigiManager::GetNofDigis(), and kTof.
|
virtual |
Inherited from FairTask.
Definition at line 154 of file CbmTaskTofHitFinder.cxx.
References fdNofHitsTot, fdTimeTot, fEvents, fiNofEvents, fiNofTs, fNofDigisAll, and fNofDigisUsed.
|
private |
Retrieve event info from run manager to properly fill the CbmLink objects.
Definition at line 455 of file CbmTaskTofHitFinder.cxx.
Referenced by BuildClusters().
|
virtual |
Inherited from FairTask.
Definition at line 70 of file CbmTaskTofHitFinder.cxx.
References fDigiMan, CbmDigiManager::Init(), InitAlgos(), InitCalibParameter(), InitParameters(), CbmDigiManager::Instance(), RegisterInputs(), and RegisterOutputs().
|
private |
Create one algo object for each RPC.
Go to Top volume of the geometry in the GeoManager to make sure our nodes are found
Definition at line 317 of file CbmTaskTofHitFinder.cxx.
References fAlgo, fDigiBdfPar, fDigiPar, fStorDigiExp, fStorDigiInd, fTofId, fvCPSigPropSpeed, fvCPTOff, fvCPTotGain, fvCPWalk, CbmTofDigiPar::GetCell(), CbmTofDigiBdfPar::GetFeeTimeRes(), CbmTofDigiBdfPar::GetGapSize(), CbmTofDigiBdfPar::GetMaxDistAlongCh(), CbmTofDigiBdfPar::GetMaxTimeDist(), CbmTofDigiBdfPar::GetNbChan(), CbmTofDigiBdfPar::GetNbGaps(), CbmTofDigiBdfPar::GetNbRpc(), CbmTofDigiBdfPar::GetNbSm(), CbmTofDigiBdfPar::GetNbSmTypes(), CbmTofCell::GetSizex(), CbmTofCell::GetSizey(), CbmTofAddress::GetUniqueAddress(), CbmTofCell::GetX(), CbmTofCell::GetY(), CbmTofCell::GetZ(), kTof, numClWalkBinX, cbm::algo::tof::Cell::pos, cbm::algo::tof::Cell::rotation, CbmTofDetectorId::SetDetectorInfo(), cbm::algo::tof::Cell::sizeX, and cbm::algo::tof::Cell::sizeY.
Referenced by Init().
|
private |
Initialize other parameters not included in parameter classes.
Definition at line 263 of file CbmTaskTofHitFinder.cxx.
References fDigiBdfPar, fvCPSigPropSpeed, fvCPTOff, fvCPTotGain, fvCPWalk, CbmTofDigiBdfPar::GetChanType(), CbmTofDigiBdfPar::GetNbChan(), CbmTofDigiBdfPar::GetNbRpc(), CbmTofDigiBdfPar::GetNbSm(), CbmTofDigiBdfPar::GetNbSmTypes(), CbmTofDigiBdfPar::GetSignalSpeed(), CbmTofDigiBdfPar::GetSigVel(), and numClWalkBinX.
Referenced by Init().
|
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().
|
private |
Copy operator.
|
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().
|
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().
|
virtual |
Inherited from FairTask.
Definition at line 81 of file CbmTaskTofHitFinder.cxx.
References fDigiBdfPar, fDigiPar, and CbmTofDigiPar::GetNrOfModules().
|
private |
Definition at line 134 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), and InitAlgos().
|
private |
Definition at line 123 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), InitAlgos(), InitCalibParameter(), InitParameters(), and SetParContainers().
|
private |
Definition at line 126 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), Init(), and RegisterInputs().
|
private |
Definition at line 122 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), InitParameters(), and SetParContainers().
|
private |
Total number of hits produced.
Definition at line 157 of file CbmTaskTofHitFinder.h.
|
private |
Total execution time.
Definition at line 158 of file CbmTaskTofHitFinder.h.
|
private |
Definition at line 127 of file CbmTaskTofHitFinder.h.
Referenced by Exec(), Finish(), and RegisterInputs().
|
private |
Definition at line 120 of file CbmTaskTofHitFinder.h.
Referenced by InitParameters(), and ~CbmTaskTofHitFinder().
|
private |
Total number of events processed.
Definition at line 154 of file CbmTaskTofHitFinder.h.
|
private |
Number of processed timeslices.
Definition at line 153 of file CbmTaskTofHitFinder.h.
|
private |
Total number of TOF digis in input.
Definition at line 155 of file CbmTaskTofHitFinder.h.
|
private |
Total number of Tof Digis processed.
Definition at line 156 of file CbmTaskTofHitFinder.h.
|
private |
Definition at line 148 of file CbmTaskTofHitFinder.h.
Referenced by Exec().
|
private |
Definition at line 149 of file CbmTaskTofHitFinder.h.
Referenced by Exec().
|
private |
Definition at line 137 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), and InitAlgos().
|
private |
Definition at line 138 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), and InitAlgos().
|
private |
|
private |
Definition at line 131 of file CbmTaskTofHitFinder.h.
Referenced by Exec(), and RegisterOutputs().
|
private |
Definition at line 130 of file CbmTaskTofHitFinder.h.
Referenced by BuildClusters(), Exec(), and RegisterOutputs().
|
private |
Definition at line 121 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), and InitParameters().
|
private |
Definition at line 141 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), and InitCalibParameter().
|
private |
Definition at line 142 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), and InitCalibParameter().
|
private |
Definition at line 143 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), and InitCalibParameter().
|
private |
Definition at line 145 of file CbmTaskTofHitFinder.h.
Referenced by InitAlgos(), and InitCalibParameter().