er  dev
ERGadastLaBrPoint.h
1 // -------------------------------------------------------------------------
2 // ----- ERGadastLaBrPoint header file -----
3 // ----- Created data Vitaliy Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 
7 
8 #ifndef ERGadastLaBrPoint_H
9 #define ERGadastLaBrPoint_H
10 
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 
15 #include "FairMCPoint.h"
16 
17 class ERGadastLaBrPoint : public FairMCPoint
18 {
19 
20  public:
21 
24 
25 
38  ERGadastLaBrPoint(Int_t eventID, Int_t trackID,
39  Int_t mot0trackID,
40  Double_t mass,
41  TVector3 posIn,
42  TVector3 posOut, TVector3 momIn, TVector3 momOut,
43  Double_t tof, Double_t length, Double_t eLoss, Int_t pdg, Int_t cell);
44 
45 
48 
49 
51  virtual ~ERGadastLaBrPoint();
52 
53 
54  ERGadastLaBrPoint& operator=(const ERGadastLaBrPoint&) { return *this; }
55 
56 
58  Int_t GetEventID() const { return fEventID; }
59  Int_t GetMot0TrackID() const { return fMot0TrackID; }
60  Double_t GetXIn() const { return fX; }
61  Double_t GetYIn() const { return fY; }
62  Double_t GetZIn() const { return fZ; }
63  Double_t GetXOut() const { return fX_out; }
64  Double_t GetYOut() const { return fY_out; }
65  Double_t GetZOut() const { return fZ_out; }
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  Double_t GetMass() const { return fMass; }
70  Int_t GetCell() const { return fCell; }
71 
72  void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
73  void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
74  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
75 
76 
78  Double_t GetX(Double_t z) const;
79  Double_t GetY(Double_t z) const;
80 
81 
83  Bool_t IsUsable() const;
84 
86  virtual void Print(const Option_t* opt = 0) const;
87 
88  protected:
89 
90  Int_t fEventID;
91  Int_t fMot0TrackID;
92  Double_t fMass;
93  Double32_t fX_out, fY_out, fZ_out;
94  Double32_t fPx_out, fPy_out, fPz_out;
95  Int_t fPDG;
96  Int_t fCell;
97 
98 
99  ClassDef(ERGadastLaBrPoint,1)
100 };
101 #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