CbmRoot
CbmRichHitProducer.h
Go to the documentation of this file.
1 
10 #ifndef CBM_RICH_HIT_PRODUCER
11 #define CBM_RICH_HIT_PRODUCER
12 
13 #include "CbmRichRecGeoPar.h"
14 #include "FairTask.h"
15 
16 #include <TClonesArray.h> // for ROOTCLING
17 
18 class TVector3;
19 class CbmEvent;
20 class CbmDigiManager;
21 
30 class CbmRichHitProducer : public FairTask {
31 public:
36 
40  virtual ~CbmRichHitProducer();
41 
45  virtual void SetParContainers();
46 
50  virtual InitStatus Init();
51 
55  virtual void Exec(Option_t* option);
56 
60  virtual void Finish();
61 
65  void ProcessData(CbmEvent* event);
66 
70  void ProcessDigi(CbmEvent* event, Int_t digiIndex);
71 
72  void SetRotationNeeded(Bool_t b) { fRotationNeeded = b; }
73 
74 
75 private:
77  TClonesArray* fRichHits; // RICH hits
78  TClonesArray* fCbmEvents; // CbmEvent for time-based simulations
79 
80  Int_t fEventNum; // event number
81 
83 
84  Double_t fHitError;
85 
90  void AddHit(CbmEvent* event, TVector3& posHit, Double_t time, Int_t index);
91 
96 
101 
102  ClassDef(CbmRichHitProducer, 1)
103 };
104 
105 #endif
CbmRichHitProducer::ProcessDigi
void ProcessDigi(CbmEvent *event, Int_t digiIndex)
Definition: CbmRichHitProducer.cxx:106
CbmRichRecGeoPar.h
RICH geometry parameters for the reconstruction. This class is used for convinient storing of the bas...
CbmRichHitProducer::fEventNum
Int_t fEventNum
Definition: CbmRichHitProducer.h:80
CbmRichHitProducer::Init
virtual InitStatus Init()
Inherited from FairTask.
Definition: CbmRichHitProducer.cxx:45
CbmRichHitProducer::CbmRichHitProducer
CbmRichHitProducer(const CbmRichHitProducer &)
Copy constructor.
CbmRichHitProducer::Exec
virtual void Exec(Option_t *option)
Inherited from FairTask.
Definition: CbmRichHitProducer.cxx:68
CbmRichHitProducer::fDigiMan
CbmDigiManager * fDigiMan
Definition: CbmRichHitProducer.h:76
CbmRichHitProducer
Class for producing RICH hits directly from MCPoints.
Definition: CbmRichHitProducer.h:30
CbmRichHitProducer::CbmRichHitProducer
CbmRichHitProducer()
Default constructor.
Definition: CbmRichHitProducer.cxx:27
CbmRichHitProducer::fRichHits
TClonesArray * fRichHits
Definition: CbmRichHitProducer.h:77
CbmRichHitProducer::fRotationNeeded
Bool_t fRotationNeeded
Definition: CbmRichHitProducer.h:82
CbmRichHitProducer::fHitError
Double_t fHitError
Definition: CbmRichHitProducer.h:84
CbmRichHitProducer::fCbmEvents
TClonesArray * fCbmEvents
Definition: CbmRichHitProducer.h:78
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmRichHitProducer::~CbmRichHitProducer
virtual ~CbmRichHitProducer()
Destructor.
Definition: CbmRichHitProducer.cxx:38
CbmRichHitProducer::SetParContainers
virtual void SetParContainers()
Inherited from FairTask.
Definition: CbmRichHitProducer.cxx:43
CbmRichHitProducer::Finish
virtual void Finish()
Inherited from FairTask.
Definition: CbmRichHitProducer.cxx:139
CbmRichHitProducer::AddHit
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.
Definition: CbmRichHitProducer.cxx:123
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
CbmRichHitProducer::ProcessData
void ProcessData(CbmEvent *event)
Definition: CbmRichHitProducer.cxx:86
CbmRichHitProducer::operator=
CbmRichHitProducer & operator=(const CbmRichHitProducer &)
Assignment operator.
CbmRichHitProducer::SetRotationNeeded
void SetRotationNeeded(Bool_t b)
Definition: CbmRichHitProducer.h:72