|
CbmRoot
|
#include <CbmRichMCbmHitProducer.h>
Public Member Functions | |
| CbmRichMCbmHitProducer () | |
| Default constructor. | |
| virtual | ~CbmRichMCbmHitProducer () |
| Destructor. | |
| virtual void | SetParContainers () |
| Inherited from FairTask. | |
| virtual InitStatus | Init () |
| Inherited from FairTask. | |
| virtual void | Exec (Option_t *option) |
| Inherited from FairTask. | |
| virtual void | Finish () |
| Inherited from FairTask. | |
| void | ProcessData (CbmEvent *event) |
| void | ProcessDigi (CbmEvent *event, Int_t digiIndex) |
| void | SetMappingFile (const std::string &mappingFile) |
| void | SetIcdFilenameBase (const std::string &icdFileBase) |
| void | setToTLimits (double low, double high) |
| void | setToTLimitLow (double low) |
| void | setToTLimitHigh (double high) |
| void | applyToTCut () |
| void | applyICDCorrection (bool val=true) |
| void | DoRestrictToAcc (bool val=true) |
| void | DoRestrictToFullAcc (bool val=true) |
Private Member Functions | |
| void | InitMapping () |
| bool | isInToT (const double ToT) |
| bool | RestrictToAcc (TVector3 &pos) |
| bool | RestrictToAcc (Double_t x, Double_t y) |
| bool | RestrictToFullAcc (TVector3 &pos) |
| bool | RestrictToFullAcc (Double_t x, Double_t y) |
| bool | RestrictToAerogelAccDec2019 (TVector3 &pos) |
| bool | RestrictToAerogelAccDec2019 (Double_t x, Double_t y) |
| void | AddHit (CbmEvent *event, TVector3 &posHit, const CbmRichDigi *digi, Int_t index, Int_t PmtId) |
| Add hit to the output array (and) CbmEvent if it is not NULL. | |
| void | read_ICD (std::array< Double_t, 2304 > &offsets, unsigned int iteration) |
| CbmRichMCbmHitProducer (const CbmRichMCbmHitProducer &) | |
| Copy constructor. | |
| CbmRichMCbmHitProducer & | operator= (const CbmRichMCbmHitProducer &) |
| Assignment operator. | |
Private Attributes | |
| CbmDigiManager * | fDigiMan = nullptr |
| TClonesArray * | fRichHits |
| TClonesArray * | fCbmEvents = nullptr |
| bool | fDoToT = false |
| bool | fDoICD = false |
| bool | fRestrictToAcc = false |
| bool | fRestrictToFullAcc = false |
| bool | fRestrictToAerogelAccDec2019 = false |
| double | fToTLimitLow = 0. |
| double | fToTLimitHigh = 1000. |
| std::map< Int_t, CbmRichMCbmMappingData > | fRichMapping |
| double | fTotalTime = 0. |
| double | fHitProducerTime = 0. |
| Int_t | fNofTs |
| Int_t | fNofDigis = 0 |
| Int_t | fNofHits = 0 |
| Int_t | fNofEvents = 0 |
| Int_t | fTotalNofDigis = 0 |
| Int_t | fTotalNofHits = 0 |
| Double_t | fHitError |
| std::string | fMappingFile |
| std::string | fIcdFilenameBase = "" |
| std::array< Double_t, 2304 > | fICD_offset_read |
Definition at line 27 of file CbmRichMCbmHitProducer.h.
| CbmRichMCbmHitProducer::CbmRichMCbmHitProducer | ( | ) |
Default constructor.
Definition at line 36 of file CbmRichMCbmHitProducer.cxx.
References fHitError, fICD_offset_read, fMappingFile, fNofTs, fRichHits, and sqrt().
Referenced by CbmRichMCbmHitProducer(), and operator=().
|
virtual |
Destructor.
Definition at line 48 of file CbmRichMCbmHitProducer.cxx.
|
private |
Copy constructor.
References CbmRichMCbmHitProducer().
|
private |
Add hit to the output array (and) CbmEvent if it is not NULL.
Definition at line 240 of file CbmRichMCbmHitProducer.cxx.
References fDoICD, fHitError, fICD_offset_read, fNofHits, fRichHits, CbmRichDigi::GetAddress(), CbmRichDigi::GetTime(), CbmRichDigi::GetToT(), kRichHit, CbmHit::SetAddress(), CbmPixelHit::SetDx(), CbmPixelHit::SetDy(), CbmRichHit::SetPmtId(), CbmPixelHit::SetPosition(), CbmHit::SetRefId(), CbmHit::SetTime(), and CbmRichHit::SetToT().
Referenced by ProcessDigi().
|
inline |
Apply correction of the inter channel delay (ICD)
Definition at line 116 of file CbmRichMCbmHitProducer.h.
References fDoICD.
|
inline |
|
inline |
Apply restriction to Mar2019 mRICH Acceptance (for Simulations)
Definition at line 122 of file CbmRichMCbmHitProducer.h.
References fRestrictToAcc.
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 127 of file CbmRichMCbmHitProducer.h.
References fRestrictToFullAcc.
|
virtual |
Inherited from FairTask.
Definition at line 131 of file CbmRichMCbmHitProducer.cxx.
References fCbmEvents, fNofDigis, fNofEvents, fNofTs, fRichHits, fTotalNofDigis, fTotalNofHits, fTotalTime, and ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 274 of file CbmRichMCbmHitProducer.cxx.
References fCbmEvents, fHitProducerTime, fNofEvents, fNofTs, fRichHits, fTotalNofDigis, fTotalNofHits, and fTotalTime.
|
virtual |
Inherited from FairTask.
Definition at line 56 of file CbmRichMCbmHitProducer.cxx.
References fCbmEvents, fDigiMan, fDoICD, fICD_offset_read, fRichHits, InitMapping(), CbmDigiManager::Instance(), kRich, and read_ICD().
|
private |
Definition at line 93 of file CbmRichMCbmHitProducer.cxx.
References CbmRichMCbmMappingData::fChannel, fMappingFile, fRichMapping, CbmRichMCbmMappingData::fTrbId, CbmRichMCbmMappingData::fX, CbmRichMCbmMappingData::fY, and CbmRichMCbmMappingData::fZ.
Referenced by Init().
|
private |
Definition at line 313 of file CbmRichMCbmHitProducer.cxx.
References fDoToT, fToTLimitHigh, and fToTLimitLow.
Referenced by ProcessDigi().
|
private |
Assignment operator.
References CbmRichMCbmHitProducer().
| void CbmRichMCbmHitProducer::ProcessData | ( | CbmEvent * | event | ) |
Processblock of data either event-by-event or CbmEvent
Definition at line 162 of file CbmRichMCbmHitProducer.cxx.
References fDigiMan, fHitProducerTime, fNofHits, fRichHits, kRich, kRichDigi, and ProcessDigi().
Referenced by Exec().
Process RichDigi. CbmEvent can be NULL.
Definition at line 200 of file CbmRichMCbmHitProducer.cxx.
References AddHit(), fDigiMan, fNofDigis, CbmRichPixelData::fPmtId, fRichMapping, CbmRichMCbmMappingData::fX, CbmRichPixelData::fX, CbmRichMCbmMappingData::fY, CbmRichPixelData::fY, CbmRichMCbmMappingData::fZ, CbmRichPixelData::fZ, CbmRichDigi::GetAddress(), CbmRichGeoHandler::GetInstance(), CbmRichGeoHandler::GetPixelDataByAddress(), CbmRichDigi::GetToT(), isInToT(), RestrictToAcc(), RestrictToAerogelAccDec2019(), and RestrictToFullAcc().
Referenced by ProcessData().
|
private |
function for loading of a created inter channel delay correction file.
Definition at line 396 of file CbmRichMCbmHitProducer.cxx.
References fIcdFilenameBase.
Referenced by Init().
|
private |
Definition at line 335 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToAcc, x, and y.
|
private |
Definition at line 327 of file CbmRichMCbmHitProducer.cxx.
References pos, RestrictToAcc(), x, and y.
Referenced by ProcessDigi(), and RestrictToAcc().
|
private |
Definition at line 385 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToAerogelAccDec2019, x, and y.
|
private |
Definition at line 377 of file CbmRichMCbmHitProducer.cxx.
References pos, RestrictToAerogelAccDec2019(), x, and y.
Referenced by ProcessDigi(), and RestrictToAerogelAccDec2019().
|
private |
Definition at line 363 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToFullAcc, x, and y.
|
private |
Definition at line 355 of file CbmRichMCbmHitProducer.cxx.
References pos, RestrictToFullAcc(), x, and y.
Referenced by ProcessDigi(), and RestrictToFullAcc().
|
inline |
Set ICD base-file path.
Definition at line 82 of file CbmRichMCbmHitProducer.h.
References fIcdFilenameBase.
|
inline |
Set mapping file path.
Definition at line 76 of file CbmRichMCbmHitProducer.h.
References fMappingFile.
|
virtual |
Inherited from FairTask.
Definition at line 54 of file CbmRichMCbmHitProducer.cxx.
|
inline |
Set high ToT Limit.
Definition at line 104 of file CbmRichMCbmHitProducer.h.
References fToTLimitHigh.
|
inline |
|
inline |
Set ToT Limits.
Definition at line 88 of file CbmRichMCbmHitProducer.h.
References fToTLimitHigh, and fToTLimitLow.
|
private |
Definition at line 144 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 142 of file CbmRichMCbmHitProducer.h.
Referenced by Init(), ProcessData(), and ProcessDigi().
|
private |
Definition at line 146 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), applyICDCorrection(), and Init().
|
private |
Definition at line 145 of file CbmRichMCbmHitProducer.h.
Referenced by applyToTCut(), and isInToT().
|
private |
Definition at line 167 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), and CbmRichMCbmHitProducer().
|
private |
Definition at line 156 of file CbmRichMCbmHitProducer.h.
Referenced by Finish(), and ProcessData().
|
private |
Definition at line 172 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), CbmRichMCbmHitProducer(), and Init().
|
private |
Definition at line 171 of file CbmRichMCbmHitProducer.h.
Referenced by read_ICD(), and SetIcdFilenameBase().
|
private |
Definition at line 169 of file CbmRichMCbmHitProducer.h.
Referenced by CbmRichMCbmHitProducer(), InitMapping(), and SetMappingFile().
|
private |
Definition at line 160 of file CbmRichMCbmHitProducer.h.
Referenced by Exec(), and ProcessDigi().
|
private |
Definition at line 163 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 161 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), and ProcessData().
|
private |
Definition at line 158 of file CbmRichMCbmHitProducer.h.
Referenced by CbmRichMCbmHitProducer(), Exec(), and Finish().
|
private |
Definition at line 147 of file CbmRichMCbmHitProducer.h.
Referenced by DoRestrictToAcc(), and RestrictToAcc().
|
private |
Definition at line 149 of file CbmRichMCbmHitProducer.h.
Referenced by RestrictToAerogelAccDec2019().
|
private |
Definition at line 148 of file CbmRichMCbmHitProducer.h.
Referenced by DoRestrictToFullAcc(), and RestrictToFullAcc().
|
private |
Definition at line 143 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), CbmRichMCbmHitProducer(), Exec(), Finish(), Init(), and ProcessData().
|
private |
Definition at line 153 of file CbmRichMCbmHitProducer.h.
Referenced by InitMapping(), and ProcessDigi().
|
private |
Definition at line 164 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 165 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 155 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 151 of file CbmRichMCbmHitProducer.h.
Referenced by isInToT(), setToTLimitHigh(), and setToTLimits().
|
private |
Definition at line 150 of file CbmRichMCbmHitProducer.h.
Referenced by isInToT(), setToTLimitLow(), and setToTLimits().