CbmRoot
|
#include <CbmPsdMCbmHitProducer.h>
Public Member Functions | |
CbmPsdMCbmHitProducer () | |
Default constructor. More... | |
virtual | ~CbmPsdMCbmHitProducer () |
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 | setEnRange (double low, double high) |
void | applyEnCut () |
Private Member Functions | |
void | InitMapping () |
bool | isInEnRange (const double energy) |
void | AddHit (CbmEvent *event, Double_t time, Double_t energy, UInt_t moduleId, UInt_t sectionId, Int_t index) |
Add hit to the output array (and) CbmEvent if it is not NULL. More... | |
CbmPsdMCbmHitProducer (const CbmPsdMCbmHitProducer &) | |
Copy constructor. More... | |
CbmPsdMCbmHitProducer & | operator= (const CbmPsdMCbmHitProducer &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
TClonesArray * | fPsdHits |
TClonesArray * | fCbmEvents = nullptr |
bool | fDoEnCut = false |
double | fEnLimitLow = 0. |
double | fEnLimitHigh = 100000. |
Int_t | fEventNum |
Double_t | fHitError |
TString | fMappingFile |
Definition at line 14 of file CbmPsdMCbmHitProducer.h.
CbmPsdMCbmHitProducer::CbmPsdMCbmHitProducer | ( | ) |
Default constructor.
Definition at line 16 of file CbmPsdMCbmHitProducer.cxx.
|
virtual |
Destructor.
Definition at line 23 of file CbmPsdMCbmHitProducer.cxx.
|
private |
Copy constructor.
|
private |
Add hit to the output array (and) CbmEvent if it is not NULL.
Definition at line 146 of file CbmPsdMCbmHitProducer.cxx.
References fPsdHits, kPsdHit, CbmPsdMCbmHit::SetEdep(), CbmPsdMCbmHit::SetModuleID(), CbmPsdMCbmHit::SetSectionID(), and CbmPsdMCbmHit::SetTime().
Referenced by ProcessDigi().
|
inline |
|
virtual |
Inherited from FairTask.
Definition at line 94 of file CbmPsdMCbmHitProducer.cxx.
References fCbmEvents, fEventNum, fPsdHits, and ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 165 of file CbmPsdMCbmHitProducer.cxx.
References fPsdHits.
|
virtual |
Inherited from FairTask.
Definition at line 30 of file CbmPsdMCbmHitProducer.cxx.
References fCbmEvents, fDigiMan, fPsdHits, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kPsd.
|
private |
|
private |
Definition at line 168 of file CbmPsdMCbmHitProducer.cxx.
References fDoEnCut, fEnLimitHigh, and fEnLimitLow.
Referenced by ProcessDigi().
|
private |
Assignment operator.
void CbmPsdMCbmHitProducer::ProcessData | ( | CbmEvent * | event | ) |
Processblock of data either event-by-event or CbmEvent
Definition at line 112 of file CbmPsdMCbmHitProducer.cxx.
References fDigiMan, CbmDigiManager::GetNofDigis(), kPsd, kPsdDigi, and ProcessDigi().
Referenced by Exec().
void CbmPsdMCbmHitProducer::ProcessDigi | ( | CbmEvent * | event, |
Int_t | digiIndex | ||
) |
Process RichDigi. CbmEvent can be NULL.
Definition at line 132 of file CbmPsdMCbmHitProducer.cxx.
References AddHit(), fDigiMan, CbmDigiManager::Get(), CbmPsdDigi::GetAddress(), CbmPsdDigi::GetEdep(), CbmPsdDigi::GetModuleID(), CbmPsdDigi::GetSectionID(), CbmPsdDigi::GetTime(), and isInEnRange().
Referenced by ProcessData().
|
inline |
Set mapping file path. Set Energy Limits.
Definition at line 69 of file CbmPsdMCbmHitProducer.h.
References fEnLimitHigh, and fEnLimitLow.
|
virtual |
Inherited from FairTask.
Definition at line 28 of file CbmPsdMCbmHitProducer.cxx.
|
private |
Definition at line 82 of file CbmPsdMCbmHitProducer.h.
|
private |
Definition at line 80 of file CbmPsdMCbmHitProducer.h.
Referenced by Init(), ProcessData(), and ProcessDigi().
|
private |
Definition at line 83 of file CbmPsdMCbmHitProducer.h.
Referenced by applyEnCut(), and isInEnRange().
|
private |
Definition at line 85 of file CbmPsdMCbmHitProducer.h.
Referenced by isInEnRange(), and setEnRange().
|
private |
Definition at line 84 of file CbmPsdMCbmHitProducer.h.
Referenced by isInEnRange(), and setEnRange().
|
private |
Definition at line 89 of file CbmPsdMCbmHitProducer.h.
Referenced by Exec().
|
private |
Definition at line 91 of file CbmPsdMCbmHitProducer.h.
|
private |
Definition at line 93 of file CbmPsdMCbmHitProducer.h.
|
private |