FairRoot/PandaRoot
PndMdtHit.cxx
Go to the documentation of this file.
1 #include "PndMdtHit.h"
2 #include "PndDetectorList.h"
3 
4 // ----- Default constructor -------------------------------------------
5 PndMdtHit::PndMdtHit() : FairHit(),
6  fDetID1(-1),
7  fStripID(-1),
8  fStripIndex(-1)
9 {
10 }
11 
12 
13 PndMdtHit::PndMdtHit(Int_t detID, TVector3& pos, TVector3& dpos, Int_t index)
14  : FairHit(detID, pos, dpos, index),
15  fDetID1(-1),
16  fStripID(-1),
17  fStripIndex(-1)
18 {
19  SetLink(FairLink("MdtPoint", index));
20 }
21 
22 PndMdtHit::PndMdtHit(Int_t detID, Int_t stripID, TVector3& pos, TVector3& dpos, Int_t bIndex, Int_t sIndex)
23  : FairHit(detID, pos, dpos, bIndex),
24  fDetID1(-1),
25  fStripID(stripID),
26  fStripIndex(sIndex)
27 {
28  SetLink(FairLink("MdtDigiBox", bIndex));
29  SetLink(FairLink("MdtDigiStrip", sIndex));
30 }
31 
32 PndMdtHit::PndMdtHit(Int_t detID, Int_t detID1, TVector3& pos, TVector3& dpos, Int_t bIndex)
33  : FairHit(detID, pos, dpos, bIndex),
34  fDetID1(detID1),
35  fStripID(-1),
36  fStripIndex(-1)
37 {
38  fStripID = GetStrip1();
39  SetLink(FairLink("MdtDigiBox", bIndex));
40  //SetLink(FairLink("MdtDigiStrip", sIndex));
41 }
42 
43 
46 {
47 }
48 
49 // ----- Public method Print -------------------------------------------
50 void PndMdtHit::Print(const Option_t* opt) const {
51  std::cout << "Mdt hit in detector: Module " << GetModule() << " Sector " << GetSector() << " Layer " << GetLayerID() << " Box " << GetBox() << " Wire " << GetWire() << " Strip " << GetStrip() << " at ("
52  << fX << ", " << fY << ", " << fZ << ") cm "
53  << ", Point " << fRefIndex << " opt = " << opt << std::endl;
54 }
55 
TVector3 pos
Short_t GetLayerID() const
Definition: PndMdtHit.h:34
Short_t fStripID
Definition: PndMdtHit.h:44
Short_t GetBox() const
Definition: PndMdtHit.h:35
Short_t GetStrip1() const
Definition: PndMdtHit.h:37
Double_t fX
Definition: PndCaloDraw.cxx:34
virtual void Print(const Option_t *opt=0) const
Definition: PndMdtHit.cxx:50
Double_t fZ
Definition: PndCaloDraw.cxx:34
Short_t GetSector() const
Definition: PndMdtHit.h:33
Short_t GetWire() const
Definition: PndMdtHit.h:36
virtual ~PndMdtHit()
Definition: PndMdtHit.cxx:45
Double_t fY
Definition: PndCaloDraw.cxx:34
Short_t GetModule() const
Definition: PndMdtHit.h:32
ClassImp(PndAnaContFact)
Short_t GetStrip() const
Definition: PndMdtHit.h:38