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