er  dev
ERmuSi.h
1 // -------------------------------------------------------------------------
2 // ----- ERmuSi header file -----
3 // ----- Created data by developer name -----
4 // -------------------------------------------------------------------------
5 
10 #ifndef ERmuSi_H
11 #define ERmuSi_H
12 
13 #include "FairDetector.h"
14 #include "ERmuSiPoint.h"
15 
16 #include "TLorentzVector.h"
17 
18 class TClonesArray;
19 class FairVolume;
20 class TF1;
21 
22 class ERmuSi : public FairDetector
23 {
24 
25 public:
26 
28  ERmuSi();
29 
30 
36  ERmuSi(const char* name, Bool_t active, Int_t verbose);
37 
38 
40  virtual ~ERmuSi();
41 
42 
50  virtual Bool_t ProcessHits(FairVolume* vol = 0);
51 
52 
56  virtual void BeginEvent();
57 
63  virtual void EndOfEvent();
64 
69  virtual void Register();
70 
71 
73  virtual TClonesArray* GetCollection(Int_t iColl) const;
74 
75 
80  virtual void Print(Option_t *option="") const;
81 
82 
87  virtual void Reset();
88 
89 
97  virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2,
98  Int_t offset);
99 
100 
105  virtual void ConstructGeometry();
106 
111  virtual void Initialize();
112 
120  virtual Bool_t CheckIfSensitive(std::string name);
121 
124  void SetGeomVersion(Int_t vers ) { fVersion = vers; }
125 
126 private:
127  TClonesArray* fERmuSiPoints;
128  Int_t fVersion;
129 private:
135  ERmuSiPoint* AddPoint(Int_t eventID, Int_t trackID,
136  Int_t mot0trackID,
137  Double_t mass,
138  TVector3 posIn,
139  TVector3 pos_out, TVector3 momIn,
140  TVector3 momOut, Double_t time,
141  Double_t length, Double_t eLoss,
142  Int_t station);
143 
148  void ResetParameters();
149 
150  ClassDef(ERmuSi,1);
151 };
152 
153 #endif
Definition: ERmuSi.h:22
virtual void BeginEvent()
Definition: ERmuSi.cxx:98
void ResetParameters()
Definition: ERmuSi.cxx:209
virtual void Initialize()
Definition: ERmuSi.cxx:44
virtual void ConstructGeometry()
Definition: ERmuSi.cxx:185
void SetGeomVersion(Int_t vers)
Definition: ERmuSi.h:124
Int_t fVersion
The point collection.
Definition: ERmuSi.h:128
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
Definition: ERmuSi.cxx:151
virtual void EndOfEvent()
Definition: ERmuSi.cxx:102
virtual ~ERmuSi()
Definition: ERmuSi.cxx:37
ERmuSi()
Definition: ERmuSi.cxx:14
virtual void Register()
Definition: ERmuSi.cxx:111
virtual void Reset()
Definition: ERmuSi.cxx:143
virtual void Print(Option_t *option="") const
Definition: ERmuSi.cxx:131
virtual Bool_t ProcessHits(FairVolume *vol=0)
Definition: ERmuSi.cxx:50
virtual Bool_t CheckIfSensitive(std::string name)
Definition: ERmuSi.cxx:198
virtual TClonesArray * GetCollection(Int_t iColl) const
Definition: ERmuSi.cxx:120
ERmuSiPoint * AddPoint(Int_t eventID, Int_t trackID, Int_t mot0trackID, Double_t mass, TVector3 posIn, TVector3 pos_out, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Int_t station)
geometry version
Definition: ERmuSi.cxx:168