CbmRoot
|
Class for producing RICH hits directly from MCPoints. More...
#include <CbmRichHitProducer.h>
Public Member Functions | |
CbmRichHitProducer () | |
Default constructor. | |
virtual | ~CbmRichHitProducer () |
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. | |
Int_t | ProcessData (CbmEvent *event) |
void | ProcessDigi (CbmEvent *event, Int_t digiIndex) |
void | SetRotationNeeded (Bool_t b) |
Private Member Functions | |
void | AddHit (CbmEvent *event, TVector3 &posHit, Double_t time, Int_t index) |
Add hit to the output array (and) CbmEvent if it is not NULL. | |
CbmRichHitProducer (const CbmRichHitProducer &) | |
Copy constructor. | |
CbmRichHitProducer & | operator= (const CbmRichHitProducer &) |
Assignment operator. | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
TClonesArray * | fRichHits = nullptr |
TClonesArray * | fCbmEvents = nullptr |
Int_t | fNofTs = 0 |
Int_t | fNofEvents = 0 |
Long64_t | fNofDigisAll = 0 |
Long64_t | fNofDigisUsed = 0 |
Long64_t | fNofHitsAll = 0 |
Double_t | fTime = 0. |
Bool_t | fRotationNeeded = kTRUE |
Double_t | fHitError = 0.6 / sqrt(12) |
Class for producing RICH hits directly from MCPoints.
Definition at line 34 of file CbmRichHitProducer.h.
CbmRichHitProducer::CbmRichHitProducer | ( | ) |
Default constructor.
Definition at line 34 of file CbmRichHitProducer.cxx.
|
virtual |
Destructor.
Definition at line 36 of file CbmRichHitProducer.cxx.
|
private |
Copy constructor.
|
private |
Add hit to the output array (and) CbmEvent if it is not NULL.
Definition at line 148 of file CbmRichHitProducer.cxx.
References fHitError, fRichHits, kRichHit, CbmPixelHit::SetDx(), CbmPixelHit::SetDy(), CbmPixelHit::SetPosition(), CbmHit::SetRefId(), and CbmHit::SetTime().
Referenced by ProcessDigi().
|
virtual |
Inherited from FairTask.
Definition at line 70 of file CbmRichHitProducer.cxx.
References fCbmEvents, fDigiMan, fNofDigisAll, fNofDigisUsed, fNofEvents, fNofHitsAll, fNofTs, fRichHits, fTime, CbmDigiManager::GetNofDigis(), kRich, and ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 164 of file CbmRichHitProducer.cxx.
References fCbmEvents, fNofDigisAll, fNofDigisUsed, fNofEvents, fNofTs, fRichHits, and fTime.
|
virtual |
Inherited from FairTask.
Definition at line 44 of file CbmRichHitProducer.cxx.
References fCbmEvents, fDigiMan, fRichHits, CbmRichDigiMapManager::GetInstance(), CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kRich.
Referenced by CbmRichPMTMapping::Exec().
|
private |
Assignment operator.
Int_t CbmRichHitProducer::ProcessData | ( | CbmEvent * | event | ) |
Processblock of data either event-by-event or CbmEvent
Definition at line 112 of file CbmRichHitProducer.cxx.
References fDigiMan, CbmDigiManager::GetNofDigis(), kRich, kRichDigi, and ProcessDigi().
Referenced by Exec().
void CbmRichHitProducer::ProcessDigi | ( | CbmEvent * | event, |
Int_t | digiIndex ) |
Process RichDigi. CbmEvent can be NULL.
Definition at line 133 of file CbmRichHitProducer.cxx.
References AddHit(), fDigiMan, fRotationNeeded, CbmRichPixelData::fX, CbmRichPixelData::fY, CbmRichPixelData::fZ, CbmDigiManager::Get(), CbmRichDigi::GetAddress(), CbmRichDigiMapManager::GetInstance(), CbmRichGeoManager::GetInstance(), CbmRichDigiMapManager::GetPixelDataByAddress(), CbmRichDigi::GetTime(), and CbmRichGeoManager::RotatePoint().
Referenced by ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 42 of file CbmRichHitProducer.cxx.
|
inline |
Definition at line 76 of file CbmRichHitProducer.h.
References fRotationNeeded.
|
private |
Definition at line 82 of file CbmRichHitProducer.h.
|
private |
Definition at line 80 of file CbmRichHitProducer.h.
Referenced by Exec(), Init(), ProcessData(), and ProcessDigi().
|
private |
Definition at line 93 of file CbmRichHitProducer.h.
Referenced by AddHit().
|
private |
Definition at line 86 of file CbmRichHitProducer.h.
|
private |
Definition at line 87 of file CbmRichHitProducer.h.
|
private |
Definition at line 85 of file CbmRichHitProducer.h.
|
private |
Definition at line 88 of file CbmRichHitProducer.h.
Referenced by Exec().
|
private |
Definition at line 84 of file CbmRichHitProducer.h.
|
private |
|
private |
Definition at line 91 of file CbmRichHitProducer.h.
Referenced by ProcessDigi(), and SetRotationNeeded().
|
private |
Definition at line 89 of file CbmRichHitProducer.h.