CbmRoot
|
Class for producing RICH hits directly from MCPoints. More...
#include <CbmRichHitProducer.h>
Public Member Functions | |
CbmRichHitProducer () | |
Default constructor. More... | |
virtual | ~CbmRichHitProducer () |
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 | 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. More... | |
CbmRichHitProducer (const CbmRichHitProducer &) | |
Copy constructor. More... | |
CbmRichHitProducer & | operator= (const CbmRichHitProducer &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan |
TClonesArray * | fRichHits |
TClonesArray * | fCbmEvents |
Int_t | fEventNum |
Bool_t | fRotationNeeded |
Double_t | fHitError |
Class for producing RICH hits directly from MCPoints.
Definition at line 30 of file CbmRichHitProducer.h.
CbmRichHitProducer::CbmRichHitProducer | ( | ) |
Default constructor.
Definition at line 27 of file CbmRichHitProducer.cxx.
|
virtual |
Destructor.
Definition at line 38 of file CbmRichHitProducer.cxx.
|
private |
Copy constructor.
|
private |
Add hit to the output array (and) CbmEvent if it is not NULL.
Definition at line 123 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 68 of file CbmRichHitProducer.cxx.
References fCbmEvents, fEventNum, fRichHits, and ProcessData().
|
virtual |
Inherited from FairTask.
Definition at line 139 of file CbmRichHitProducer.cxx.
References fRichHits.
|
virtual |
Inherited from FairTask.
Definition at line 45 of file CbmRichHitProducer.cxx.
References fCbmEvents, fDigiMan, fRichHits, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kRich.
Referenced by CbmRichPMTMapping::Exec().
|
private |
Assignment operator.
void CbmRichHitProducer::ProcessData | ( | CbmEvent * | event | ) |
Processblock of data either event-by-event or CbmEvent
Definition at line 86 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 106 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 43 of file CbmRichHitProducer.cxx.
|
inline |
Definition at line 72 of file CbmRichHitProducer.h.
References fRotationNeeded.
|
private |
Definition at line 78 of file CbmRichHitProducer.h.
|
private |
Definition at line 76 of file CbmRichHitProducer.h.
Referenced by Init(), ProcessData(), and ProcessDigi().
|
private |
Definition at line 80 of file CbmRichHitProducer.h.
Referenced by Exec().
|
private |
Definition at line 84 of file CbmRichHitProducer.h.
Referenced by AddHit().
|
private |
|
private |
Definition at line 82 of file CbmRichHitProducer.h.
Referenced by ProcessDigi(), and SetRotationNeeded().