PandaRoot
PndMdtHit.h
Go to the documentation of this file.
1 #ifndef PNDMDTHIT_HH
2 #define PNDMDTHIT_HH
3 
4 #include "FairHit.h"
5 #include "TVector3.h"
6 #include "TMath.h"
7 #include "PndMdtID.h"
8 
9 class PndMdtHit : public FairHit {
10 
11  public:
12  PndMdtHit();
13 
14  PndMdtHit(Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index);
15  PndMdtHit(Int_t detID, Int_t stripID, TVector3 &pos, TVector3 &dpos, Int_t bIndex, Int_t sIndex);
16 
17  PndMdtHit(Int_t detID, Int_t detID1, TVector3 &pos, TVector3 &dpos, Int_t bIndex);
18 
19  virtual ~PndMdtHit();
20 
22  virtual void Print(const Option_t *opt = nullptr) const;
23 
27  // void Clear(); // not implemented
28 
30  Short_t GetModule() const { return PndMdtID::Module(GetDetectorID()); }
31  Short_t GetSector() const { return PndMdtID::Sector(GetDetectorID()); }
32  Short_t GetLayerID() const { return PndMdtID::Layer(GetDetectorID()); }
33  Short_t GetBox() const { return PndMdtID::Box(GetDetectorID()); }
34  Short_t GetWire() const { return PndMdtID::Wire(GetDetectorID()); }
35  Short_t GetStrip1() const { return PndMdtID::Strip(fDetID1); }
36  Short_t GetStrip() const { return fStripID; };
37  Int_t GetStripIndex() const { return fStripIndex; };
38 
39  private:
40  Int_t fDetID1;
41  Short_t fStripID;
42  Int_t fStripIndex;
43 
44  ClassDef(PndMdtHit, 3);
45 };
46 
47 #endif
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:19
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:16
virtual void Print(const Option_t *opt=nullptr) const
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:18
Short_t GetSector() const
Definition: PndMdtHit.h:31
virtual ~PndMdtHit()
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:17
static Short_t Strip(Int_t detID)
Definition: PndMdtID.h:21
Short_t GetStrip() const
Definition: PndMdtHit.h:36
Short_t GetStrip1() const
Definition: PndMdtHit.h:35
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:20
Short_t GetLayerID() const
Definition: PndMdtHit.h:32
Int_t GetStripIndex() const
Definition: PndMdtHit.h:37
Short_t GetModule() const
Definition: PndMdtHit.h:30
Short_t GetWire() const
Definition: PndMdtHit.h:34
Short_t GetBox() const
Definition: PndMdtHit.h:33