er  dev
ERNDPoint.h
1 // -------------------------------------------------------------------------
2 // ----- ERNDPoint header file -----
3 // ----- Created data developerName -----
4 // -------------------------------------------------------------------------
5 
6 
11 #ifndef ERNDPoint_H
12 #define ERNDPoint_H
13 
14 
15 #include "TObject.h"
16 #include "TVector3.h"
17 
18 #include "FairMCPoint.h"
19 
20 
21 class ERNDPoint : public FairMCPoint
22 {
23 
24  public:
25 
27  ERNDPoint();
28 
29 
42  ERNDPoint(Int_t eventID, Int_t trackID,
43  Int_t mot0trackID,
44  Int_t pdg,
45  TVector3 posIn,
46  TVector3 posOut, TVector3 momIn, TVector3 momOut,
47  Double_t tof, Double_t length, Double_t eLoss, Int_t stilbenNr, Float_t lightYield);
48 
49 
51  ERNDPoint(const ERNDPoint&);
52 
53 
55  virtual ~ERNDPoint();
56 
57 
58  ERNDPoint& operator=(const ERNDPoint&) { return *this; }
59 
60 
62  Int_t GetEventID() const { return fEventID; }
63  Int_t GetMot0TrackID() const { return fMot0TrackID; }
64  Double_t GetXIn() const { return fX; }
65  Double_t GetYIn() const { return fY; }
66  Double_t GetZIn() const { return fZ; }
67  Double_t GetXOut() const { return fX_out; }
68  Double_t GetYOut() const { return fY_out; }
69  Double_t GetZOut() const { return fZ_out; }
70  Double_t GetPxOut() const { return fPx_out; }
71  Double_t GetPyOut() const { return fPy_out; }
72  Double_t GetPzOut() const { return fPz_out; }
73  Double_t GetPDG() const { return fPdg; }
74  Double_t GetMass() const { return fMass; }
75 
76  void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
77  void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
78  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
79 
80  Int_t StilbenNr() const {return fStilbenNr;}
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 
96  Int_t fEventID;
97  Int_t fMot0TrackID;
98  Double_t fMass;
99  Double32_t fX_out, fY_out, fZ_out;
100  Double32_t fPx_out, fPy_out, fPz_out;
101  Int_t fStilbenNr;
102  Float_t fLightYield;
103  Int_t fPdg;
104 
105  ClassDef(ERNDPoint,1)
106 };
107 #endif
Double_t GetX(Double_t z) const
Definition: ERNDPoint.cxx:74
virtual void Print(const Option_t *opt=0) const
Definition: ERNDPoint.cxx:61
Int_t GetEventID() const
Definition: ERNDPoint.h:62
virtual ~ERNDPoint()
Definition: ERNDPoint.cxx:53
Bool_t IsUsable() const
Definition: ERNDPoint.cxx:97