CbmRoot
CbmStripHit.h
Go to the documentation of this file.
1 
10 #ifndef CBMSTRIPHIT_H_
11 #define CBMSTRIPHIT_H_
12 
13 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
14 #include <RtypesCore.h> // for Double_t, Int_t
15 
16 #include <string> // for string
17 
18 #include "CbmHit.h" // for CbmHit
19 
20 class TVector3;
21 
22 class CbmStripHit : public CbmHit {
23 public:
27  CbmStripHit();
28 
43  CbmStripHit(Int_t address,
44  Double_t u,
45  Double_t phi,
46  Double_t z,
47  Double_t du,
48  Double_t dphi,
49  Double_t dz,
50  Int_t refId,
51  Double_t time = -1.,
52  Double_t timeError = -1.);
53 
63  CbmStripHit(Int_t address,
64  const TVector3& pos,
65  const TVector3& err,
66  Int_t refId,
67  Double_t time = -1.,
68  Double_t timeError = -1.);
69 
73  virtual ~CbmStripHit();
74 
78  virtual std::string ToString() const;
79 
80  /* Accessors */
81  Double_t GetU() const { return fU; }
82  Double_t GetPhi() const { return fPhi; }
83  Double_t GetDu() const { return fDu; }
84  Double_t GetDphi() const { return fDphi; }
85 
86  /* Setters */
87  void SetU(Double_t u) { fU = u; }
88  void SetPhi(Double_t phi) { fPhi = phi; }
89  void SetDu(Double_t du) { fDu = du; }
90  void SetDphi(Double_t dphi) { fDphi = dphi; }
91 
92 private:
93  Double_t fU;
94  Double_t fDu;
95  Double_t fPhi;
96  Double_t fDphi;
97 
99 };
100 
101 #endif /* CBMSTRIPHIT_H_ */
CbmStripHit::GetPhi
Double_t GetPhi() const
Definition: CbmStripHit.h:82
CbmStripHit::SetDu
void SetDu(Double_t du)
Definition: CbmStripHit.h:89
CbmStripHit::GetU
Double_t GetU() const
Definition: CbmStripHit.h:81
CbmStripHit
Definition: CbmStripHit.h:22
CbmStripHit::ToString
virtual std::string ToString() const
Inherited from CbmBaseHit.
Definition: CbmStripHit.cxx:54
CbmStripHit::GetDu
Double_t GetDu() const
Definition: CbmStripHit.h:83
CbmStripHit::CbmStripHit
CbmStripHit()
Default constructor.
Definition: CbmStripHit.cxx:16
CbmStripHit::fDu
Double_t fDu
U error [cm].
Definition: CbmStripHit.h:94
CbmHit.h
CbmStripHit::SetU
void SetU(Double_t u)
Definition: CbmStripHit.h:87
CbmStripHit::SetPhi
void SetPhi(Double_t phi)
Definition: CbmStripHit.h:88
CbmStripHit::fDphi
Double_t fDphi
strip rotation error [rad]
Definition: CbmStripHit.h:96
CbmStripHit::ClassDef
ClassDef(CbmStripHit, 1)
CbmHit
Definition: CbmHit.h:38
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmStripHit::~CbmStripHit
virtual ~CbmStripHit()
Destructor.
Definition: CbmStripHit.cxx:52
CbmStripHit::fU
Double_t fU
U coordinate in the rotated c.s [cm].
Definition: CbmStripHit.h:93
CbmStripHit::fPhi
Double_t fPhi
strip rotation angle [rad]
Definition: CbmStripHit.h:95
CbmStripHit::GetDphi
Double_t GetDphi() const
Definition: CbmStripHit.h:84
CbmStripHit::SetDphi
void SetDphi(Double_t dphi)
Definition: CbmStripHit.h:90