er  dev
ERTarget.h
1 #ifndef ERTarget_H
2 #define ERTarget_H
3 
4 #include "ERDetector.h"
5 
6 #include "TClonesArray.h"
7 #include <TString.h>
8 
9 
10 class ERTarget : public ERDetector {
11  static Double_t fThickness;
12  Int_t fVersion;
13  TClonesArray* fTargetPoints;
14 public:
16  ERTarget();
17 
18 
24  ERTarget(const char* name, Bool_t active, Int_t verbose);
25 
26 
28  virtual ~ERTarget();
29 
30 
38  virtual Bool_t ProcessHits(FairVolume* vol = 0);
39 
40 
44  virtual void BeginEvent();
45 
51  virtual void EndOfEvent();
52 
57  virtual void Register();
58 
59 
61  virtual TClonesArray* GetCollection(Int_t iColl) const;
62 
63 
68  virtual void Print(Option_t *option="") const;
69 
70 
75  virtual void Reset();
76 
77 
85  virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2,
86  Int_t offset);
87 
88 
93  virtual void ConstructGeometry();
94 
99  virtual void Initialize();
100 
108  virtual Bool_t CheckIfSensitive(std::string name);
109 
112  void SetGeomVersion(Int_t vers ) { fVersion = vers; }
113 
114  static Double_t Thickness(){return fThickness;}
115 
116  ClassDef(ERTarget,1);
117 };
118 
119 #endif //ERTarget_H
virtual void Initialize()
Definition: ERTarget.cxx:106
virtual void EndOfEvent()
Definition: ERTarget.cxx:67
virtual void Print(Option_t *option="") const
Definition: ERTarget.cxx:82
virtual TClonesArray * GetCollection(Int_t iColl) const
Definition: ERTarget.cxx:75
void SetGeomVersion(Int_t vers)
Definition: ERTarget.h:112
ERTarget()
The point collection //fix.
Definition: ERTarget.cxx:26
virtual void BeginEvent()
Definition: ERTarget.cxx:63
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
Definition: ERTarget.cxx:90
virtual void Register()
Definition: ERTarget.cxx:71
virtual ~ERTarget()
Definition: ERTarget.cxx:36
virtual void ConstructGeometry()
Definition: ERTarget.cxx:94
virtual Bool_t CheckIfSensitive(std::string name)
Definition: ERTarget.cxx:111
virtual Bool_t ProcessHits(FairVolume *vol=0)
Definition: ERTarget.cxx:41
virtual void Reset()
Definition: ERTarget.cxx:86
The base class for detector simulation in er sim.
Definition: ERDetector.h:32