FairRoot/PandaRoot
PndMdtPoint.h
Go to the documentation of this file.
1 #ifndef PNDMDTPOINT_H
2 #define PNDMDTPOINT_H
3 
4 
5 #include "TObject.h"
6 #include "TLorentzVector.h"
7 #include "TVector3.h"
8 #include "TMath.h"
9 #include "PndMdtID.h"
10 #include "FairMCPoint.h"
11 
12 class PndMdtPoint : public FairMCPoint
13 {
14 
15  public:
16 
18  PndMdtPoint();
19 
20 
34  PndMdtPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
35  Double_t tof, Double_t length, Double_t eLoss,
36  TVector3 pos_in, TVector3 mom_in);
37 
39  // PndMdtPoint(const PndMdtPoint& point) { *this = point; };
40 
41 
43  virtual ~PndMdtPoint();
44 
45 
47  inline TVector3 GetPosIn() const { return fPosIn; }
48  inline TVector3 GetMomIn() const { return fMomIn; }
49  inline TVector3 GetPosOut() const { return TVector3(fX, fY, fZ); }
50  inline TVector3 GetMomOut() const { return TVector3(fPx, fPy, fPz); }
51 
52 
53  Short_t GetModule() const { return PndMdtID::Module(GetDetectorID());}
54  Short_t GetSector() const { return PndMdtID::Sector(GetDetectorID());}
55  Short_t GetLayerID() const { return PndMdtID::Layer(GetDetectorID());}
56  Short_t GetBox() const { return PndMdtID::Box(GetDetectorID());}
57  Short_t GetWire() const { return PndMdtID::Wire(GetDetectorID());}
58 
62  virtual void Print(const Option_t* opt) const;
63 
64  ClassDef(PndMdtPoint,2)
65 
66 protected:
67 
68  TVector3 fPosIn;
69  TVector3 fMomIn;
70 
71 };
72 
73 
74 #endif /* !PNDMDTPOINT_H */
TVector3 pos
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:23
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:20
Short_t GetBox() const
Definition: PndMdtPoint.h:56
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:22
TVector3 GetPosOut() const
Definition: PndMdtPoint.h:49
Double_t fX
Definition: PndCaloDraw.cxx:34
virtual ~PndMdtPoint()
Definition: PndMdtPoint.cxx:30
#define protected
Double_t mom
Definition: plot_dirc.C:14
ClassDef(PndMdtPoint, 2) protected TVector3 fMomIn
Definition: PndMdtPoint.h:64
Double_t fZ
Definition: PndCaloDraw.cxx:34
virtual void Print(const Option_t *opt) const
Definition: PndMdtPoint.cxx:34
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:21
Short_t GetSector() const
Definition: PndMdtPoint.h:54
Double_t
TVector3 GetPosIn() const
Definition: PndMdtPoint.h:47
Double_t fY
Definition: PndCaloDraw.cxx:34
Short_t GetWire() const
Definition: PndMdtPoint.h:57
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:24
Short_t GetLayerID() const
Definition: PndMdtPoint.h:55
TVector3 GetMomIn() const
Definition: PndMdtPoint.h:48
TVector3 GetMomOut() const
Definition: PndMdtPoint.h:50
Short_t GetModule() const
Definition: PndMdtPoint.h:53