CbmRoot
|
#include <CbmRichMCbmHitProducer.h>
Public Member Functions | |
CbmRichMCbmHitProducer () | |
Default constructor. More... | |
virtual | ~CbmRichMCbmHitProducer () |
Destructor. More... | |
virtual void | SetParContainers () |
Inherited from FairTask. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
void | ProcessData (CbmEvent *event) |
void | ProcessDigi (CbmEvent *event, Int_t digiIndex) |
void | SetMappingFile (const std::string &mappingFile) |
void | setToTLimits (double low, double high) |
void | setToTLimitLow (double low) |
void | setToTLimitHigh (double high) |
void | applyToTCut () |
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. More... | |
CbmRichMCbmHitProducer (const CbmRichMCbmHitProducer &) | |
Copy constructor. More... | |
CbmRichMCbmHitProducer & | operator= (const CbmRichMCbmHitProducer &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
TClonesArray * | fRichHits |
TClonesArray * | fCbmEvents = nullptr |
bool | fDoToT = false |
bool | fRestrictToAcc = false |
bool | fRestrictToFullAcc = false |
bool | fRestrictToAerogelAccDec2019 = false |
double | fToTLimitLow = 0. |
double | fToTLimitHigh = 1000. |
std::map< Int_t, CbmRichMCbmMappingData > | fRichMapping |
Int_t | fEventNum |
Int_t | fNofHits = 0 |
Double_t | fHitError |
std::string | fMappingFile |
Definition at line 24 of file CbmRichMCbmHitProducer.h.
CbmRichMCbmHitProducer::CbmRichMCbmHitProducer | ( | ) |
Default constructor.
Definition at line 21 of file CbmRichMCbmHitProducer.cxx.
|
virtual |
Destructor.
Definition at line 30 of file CbmRichMCbmHitProducer.cxx.
|
private |
Copy constructor.
|
private |
Add hit to the output array (and) CbmEvent if it is not NULL.
Definition at line 175 of file CbmRichMCbmHitProducer.cxx.
References fHitError, 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 |
|
inline |
Apply restriction to Mar2019 mRICH Acceptance (for Simulations)
Definition at line 107 of file CbmRichMCbmHitProducer.h.
References fRestrictToAcc.
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 112 of file CbmRichMCbmHitProducer.h.
References fRestrictToFullAcc.
|
virtual |
Inherited from FairTask.
Definition at line 100 of file CbmRichMCbmHitProducer.cxx.
References fCbmEvents, fEventNum, fRichHits, and ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 200 of file CbmRichMCbmHitProducer.cxx.
References fRichHits.
|
virtual |
Inherited from FairTask.
Definition at line 37 of file CbmRichMCbmHitProducer.cxx.
References fCbmEvents, fDigiMan, fRichHits, CbmDigiManager::Init(), InitMapping(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kRich.
|
private |
Definition at line 61 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 203 of file CbmRichMCbmHitProducer.cxx.
References fDoToT, fToTLimitHigh, and fToTLimitLow.
Referenced by ProcessDigi().
|
private |
Assignment operator.
void CbmRichMCbmHitProducer::ProcessData | ( | CbmEvent * | event | ) |
Processblock of data either event-by-event or CbmEvent
Definition at line 118 of file CbmRichMCbmHitProducer.cxx.
References fDigiMan, fNofHits, CbmDigiManager::GetNofDigis(), kRich, kRichDigi, and ProcessDigi().
Referenced by Exec().
void CbmRichMCbmHitProducer::ProcessDigi | ( | CbmEvent * | event, |
Int_t | digiIndex | ||
) |
Process RichDigi. CbmEvent can be NULL.
Definition at line 141 of file CbmRichMCbmHitProducer.cxx.
References AddHit(), fDigiMan, CbmRichPixelData::fPmtId, fRichMapping, CbmRichMCbmMappingData::fX, CbmRichPixelData::fX, CbmRichMCbmMappingData::fY, CbmRichPixelData::fY, CbmRichMCbmMappingData::fZ, CbmRichPixelData::fZ, CbmDigiManager::Get(), CbmRichDigi::GetAddress(), CbmRichDigiMapManager::GetInstance(), CbmRichDigiMapManager::GetPixelDataByAddress(), CbmRichDigi::GetToT(), isInToT(), RestrictToAcc(), RestrictToAerogelAccDec2019(), and RestrictToFullAcc().
Referenced by ProcessData().
|
private |
Definition at line 222 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToAcc, x, and y.
|
private |
Definition at line 215 of file CbmRichMCbmHitProducer.cxx.
Referenced by ProcessDigi().
|
private |
Definition at line 265 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToAerogelAccDec2019, x, and y.
|
private |
Definition at line 258 of file CbmRichMCbmHitProducer.cxx.
Referenced by ProcessDigi().
|
private |
Definition at line 245 of file CbmRichMCbmHitProducer.cxx.
References fRestrictToFullAcc, x, and y.
|
private |
Definition at line 238 of file CbmRichMCbmHitProducer.cxx.
Referenced by ProcessDigi().
|
inline |
Set mapping file path.
Definition at line 73 of file CbmRichMCbmHitProducer.h.
References fMappingFile.
|
virtual |
Inherited from FairTask.
Definition at line 35 of file CbmRichMCbmHitProducer.cxx.
|
inline |
Set high ToT Limit.
Definition at line 96 of file CbmRichMCbmHitProducer.h.
References fToTLimitHigh.
|
inline |
|
inline |
Set ToT Limits.
Definition at line 81 of file CbmRichMCbmHitProducer.h.
References fToTLimitHigh, and fToTLimitLow.
|
private |
Definition at line 118 of file CbmRichMCbmHitProducer.h.
|
private |
Definition at line 116 of file CbmRichMCbmHitProducer.h.
Referenced by Init(), ProcessData(), and ProcessDigi().
|
private |
Definition at line 119 of file CbmRichMCbmHitProducer.h.
Referenced by applyToTCut(), and isInToT().
|
private |
Definition at line 128 of file CbmRichMCbmHitProducer.h.
Referenced by Exec().
|
private |
Definition at line 132 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit().
|
private |
Definition at line 134 of file CbmRichMCbmHitProducer.h.
Referenced by InitMapping(), and SetMappingFile().
|
private |
Definition at line 130 of file CbmRichMCbmHitProducer.h.
Referenced by AddHit(), and ProcessData().
|
private |
Definition at line 120 of file CbmRichMCbmHitProducer.h.
Referenced by DoRestrictToAcc(), and RestrictToAcc().
|
private |
Definition at line 122 of file CbmRichMCbmHitProducer.h.
Referenced by RestrictToAerogelAccDec2019().
|
private |
Definition at line 121 of file CbmRichMCbmHitProducer.h.
Referenced by DoRestrictToFullAcc(), and RestrictToFullAcc().
|
private |
|
private |
Definition at line 126 of file CbmRichMCbmHitProducer.h.
Referenced by InitMapping(), and ProcessDigi().
|
private |
Definition at line 124 of file CbmRichMCbmHitProducer.h.
Referenced by isInToT(), setToTLimitHigh(), and setToTLimits().
|
private |
Definition at line 123 of file CbmRichMCbmHitProducer.h.
Referenced by isInToT(), setToTLimitLow(), and setToTLimits().