PandaRoot
PndMdtPoint.h
Go to the documentation of this file.
1 #ifndef PNDMDTPOINT_H
2 #define PNDMDTPOINT_H
3 
4 #include "TObject.h"
5 #include "TLorentzVector.h"
6 #include "TVector3.h"
7 #include "TMath.h"
8 #include "PndMdtID.h"
9 #include "FairMCPoint.h"
10 
11 class PndMdtPoint : public FairMCPoint {
12 
13  public:
15  PndMdtPoint();
16 
30  PndMdtPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, TVector3 pos_in, TVector3 mom_in);
31 
33  // PndMdtPoint(const PndMdtPoint& point) { *this = point; };
34 
36  virtual ~PndMdtPoint();
37 
39  inline TVector3 GetPosIn() const { return fPosIn; }
40  inline TVector3 GetMomIn() const { return fMomIn; }
41  inline TVector3 GetPosOut() const { return TVector3(fX, fY, fZ); }
42  inline TVector3 GetMomOut() const { return TVector3(fPx, fPy, fPz); }
43 
44  Short_t GetModule() const { return PndMdtID::Module(GetDetectorID()); }
45  Short_t GetSector() const { return PndMdtID::Sector(GetDetectorID()); }
46  Short_t GetLayerID() const { return PndMdtID::Layer(GetDetectorID()); }
47  Short_t GetBox() const { return PndMdtID::Box(GetDetectorID()); }
48  Short_t GetWire() const { return PndMdtID::Wire(GetDetectorID()); }
49 
53  virtual void Print(const Option_t *opt) const;
54 
55  ClassDef(PndMdtPoint, 2)
56 
57  protected :
58 
59  TVector3 fPosIn;
60  TVector3 fMomIn;
61 };
62 
63 #endif /* !PNDMDTPOINT_H */
Short_t GetSector() const
Definition: PndMdtPoint.h:45
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:19
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:16
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:18
TVector3 GetPosOut() const
Definition: PndMdtPoint.h:41
virtual void Print(const Option_t *opt) const
Short_t GetModule() const
Definition: PndMdtPoint.h:44
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:17
Short_t GetLayerID() const
Definition: PndMdtPoint.h:46
Short_t GetBox() const
Definition: PndMdtPoint.h:47
TVector3 GetPosIn() const
Definition: PndMdtPoint.h:39
virtual ~PndMdtPoint()
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:20
Short_t GetWire() const
Definition: PndMdtPoint.h:48
ClassDef(PndMdtPoint, 2) protected TVector3 fMomIn
Definition: PndMdtPoint.h:55
TVector3 GetMomIn() const
Definition: PndMdtPoint.h:40
TVector3 GetMomOut() const
Definition: PndMdtPoint.h:42