er  dev
ERBeamDetTargetPoint.h
1 // -------------------------------------------------------------------------
2 // ----- ERBeamDetTargetPoint header file -----
3 // ----- Created data developerName -----
4 // -------------------------------------------------------------------------
5 
6 
11 #ifndef ERBeamDetTargetPoint_H
12 #define ERBeamDetTargetPoint_H
13 
14 
15 #include "TObject.h"
16 #include "TVector3.h"
17 
18 #include "FairMCPoint.h"
19 
20 class ERBeamDetTargetPoint : public FairMCPoint
21 {
22 
23  public:
24 
27 
41  ERBeamDetTargetPoint(Int_t eventID,
42  Int_t trackID,
43  Int_t mot0trackID,
44  Int_t pid,
45  TVector3 posIn,
46  TVector3 posOut, TVector3 momIn, TVector3 momOut,
47  Double_t tof, Double_t length, Double_t eLoss, Double_t lightYield);
48 
50  virtual ~ERBeamDetTargetPoint();
51 
52  ERBeamDetTargetPoint& operator=(const ERBeamDetTargetPoint&) { return *this; }
53 
55  Int_t GetEventID() const { return fEventID; }
56  Int_t GetMot0TrackID() const { return fMot0TrackID; }
57  Double_t GetXIn() const { return fX; }
58  Double_t GetYIn() const { return fY; }
59  Double_t GetZIn() const { return fZ; }
60  Double_t GetXOut() const { return fX_out; }
61  Double_t GetYOut() const { return fY_out; }
62  Double_t GetZOut() const { return fZ_out; }
63  Double_t GetPxIn() const { return fPx_in; }
64  Double_t GetPyIn() const { return fPy_in; }
65  Double_t GetPzIn() const { return fPz_in; }
66  Double_t GetPxOut() const { return fPx_out; }
67  Double_t GetPyOut() const { return fPy_out; }
68  Double_t GetPzOut() const { return fPz_out; }
69  Int_t GetPID() const { return fPid; }
70 
71  void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
72  void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
73  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
74 
75  Float_t LightYield() const {return fLightYield;}
76 
78  Double_t GetX(Double_t z) const;
79  Double_t GetY(Double_t z) const;
80 
82  Bool_t IsUsable() const;
83 
85  virtual void Print(const Option_t* opt = 0) const;
86 
87  protected:
88  Int_t fEventID;
89  Int_t fMot0TrackID;
90  Int_t fPid;
91  Double32_t fX_out, fY_out, fZ_out;
92  Double32_t fX_in, fY_in, fZ_in;
93  Double32_t fPx_out, fPy_out, fPz_out;
94  Double32_t fPx_in, fPy_in, fPz_in;
95  Double_t fLightYield;
96 
97  ClassDef(ERBeamDetTargetPoint,1)
98 };
99 
100 #endif
Double_t GetX(Double_t z) const
virtual void Print(const Option_t *opt=0) const