CbmRoot
Loading...
Searching...
No Matches
CbmStripHit.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Andrey Lebedev */
4
14#ifndef CBMSTRIPHIT_H_
15#define CBMSTRIPHIT_H_
16
17#include "CbmHit.h" // for CbmHit
18
19#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20
21#include <cstdint>
22#include <string> // for string
23
24class TVector3;
25
26class CbmStripHit : public CbmHit {
27public:
32
47 CbmStripHit(int32_t address, double u, double phi, double z, double du, double dphi, double dz, int32_t refId,
48 double time = -1., double timeError = -1.);
49
59 CbmStripHit(int32_t address, const TVector3& pos, const TVector3& err, int32_t refId, double time = -1.,
60 double timeError = -1.);
61
65 virtual ~CbmStripHit();
66
70 virtual std::string ToString() const;
71
72 /* Accessors */
73 double GetU() const { return fU; }
74 double GetPhi() const { return fPhi; }
75 double GetDu() const { return fDu; }
76 double GetDphi() const { return fDphi; }
77
78 /* Setters */
79 void SetU(double u) { fU = u; }
80 void SetPhi(double phi) { fPhi = phi; }
81 void SetDu(double du) { fDu = du; }
82 void SetDphi(double dphi) { fDphi = dphi; }
83
84private:
85 double fU;
86 double fDu;
87 double fPhi;
88 double fDphi;
89
91};
92
93#endif /* CBMSTRIPHIT_H_ */
CbmStripHit()
Default constructor.
ClassDef(CbmStripHit, 1)
double fDphi
strip rotation error [rad]
Definition CbmStripHit.h:88
double fDu
U error [cm].
Definition CbmStripHit.h:86
double GetPhi() const
Definition CbmStripHit.h:74
double GetDu() const
Definition CbmStripHit.h:75
double GetDphi() const
Definition CbmStripHit.h:76
void SetDu(double du)
Definition CbmStripHit.h:81
virtual std::string ToString() const
Inherited from CbmBaseHit.
void SetU(double u)
Definition CbmStripHit.h:79
void SetDphi(double dphi)
Definition CbmStripHit.h:82
double fU
U coordinate in the rotated c.s [cm].
Definition CbmStripHit.h:85
double fPhi
strip rotation angle [rad]
Definition CbmStripHit.h:87
void SetPhi(double phi)
Definition CbmStripHit.h:80
double GetU() const
Definition CbmStripHit.h:73
virtual ~CbmStripHit()
Destructor.