er  dev
ERBeamDetMWPCPoint.h
1 // -------------------------------------------------------------------------
2 // ----- ERBeamDetMWPCPoint header file -----
3 // ----- Created data developerName -----
4 // -------------------------------------------------------------------------
5 
6 
11 #ifndef ERBeamDetMWPCPoint_H
12 #define ERBeamDetMWPCPoint_H
13 
14 
15 #include "TObject.h"
16 #include "TVector3.h"
17 
18 #include "FairMCPoint.h"
19 
20 class ERBeamDetMWPCPoint : public FairMCPoint
21 {
22 
23  public:
24 
27 
28 
42  ERBeamDetMWPCPoint(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,
49  Int_t mwpcNb, Int_t planeNb, Int_t wireNb);
50 
51 
54 
55 
57  virtual ~ERBeamDetMWPCPoint();
58 
59 
60  ERBeamDetMWPCPoint& operator=(const ERBeamDetMWPCPoint&) { return *this; }
61 
62 
64  Int_t GetEventID() const { return fEventID; }
65  Int_t GetMot0TrackID() const { return fMot0TrackID; }
66  Double_t GetXIn() const { return fX; }
67  Double_t GetYIn() const { return fY; }
68  Double_t GetZIn() const { return fZ; }
69  Double_t GetXOut() const { return fX_out; }
70  Double_t GetYOut() const { return fY_out; }
71  Double_t GetZOut() const { return fZ_out; }
72  Double_t GetPxOut() const { return fPx_out; }
73  Double_t GetPyOut() const { return fPy_out; }
74  Double_t GetPzOut() const { return fPz_out; }
75  Int_t GetPID() const { return fPid; }
76  Int_t GetMWPCNb() const { return fMWPCNb;}
77  Int_t GetPlaneNb() const { return fPlaneNb;}
78  Int_t GetWireNb() const { return fWireNb;}
79 
80  void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
81  void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
82  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
83 
84  Float_t LightYield() const {return fLightYield;}
85 
87  Double_t GetX(Double_t z) const;
88  Double_t GetY(Double_t z) const;
89 
90 
92  Bool_t IsUsable() const;
93 
95  virtual void Print(const Option_t* opt = 0) const;
96 
97  protected:
98  Int_t fEventID;
99  Int_t fMot0TrackID;
100  Int_t fPid;
101  Double32_t fX_out, fY_out, fZ_out;
102  Double32_t fPx_out, fPy_out, fPz_out;
103  Double_t fLightYield;
104  Int_t fMWPCNb;
105  Int_t fPlaneNb;
106  Int_t fWireNb;
107 
108  ClassDef(ERBeamDetMWPCPoint,1)
109 };
110 #endif
Bool_t IsUsable() const
Double_t GetX(Double_t z) const
Int_t GetEventID() const
virtual void Print(const Option_t *opt=0) const