BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmStripHit.h
Go to the documentation of this file.
1/**
2 * \file CbmStripHit.h
3 * \author Andrey Lebedev <andrey.lebedev@gsi.de>
4 * \date 2009
5 *
6 * Base class for strip-like hits used for tracking in CBM.
7 * Derives from CbmBaseHit.
8 * Additional members are u coordinate, phi angle and du, dphi measurement errors.
9 **/
10#ifndef CBMSTRIPHIT_H_
11#define CBMSTRIPHIT_H_
12
13#include "CbmBaseHit.h"
14
15class TVector3;
16
17class CbmStripHit : public CbmBaseHit
18{
19 public:
20 /**
21 * \brief Default constructor.
22 */
24
25 /**
26 * \brief Standard constructor.
27 * \param address detector unique identifier
28 * \param u coordinate in the rotated c.s. [cm]
29 * \param phi strip rotation angle [rad]
30 * \param z Z position of the hit [cm]
31 * \param du U measurement error [cm]
32 * \param dphi PHI measurement error [rad]
33 * \param dz Z measurement error [cm]
34 * \param refId some reference ID
35 **/
36 CbmStripHit(Int_t address,
37 Double_t u,
38 Double_t phi,
39 Double_t z,
40 Double_t du,
41 Double_t dphi,
42 Double_t dz,
43 Int_t refId);
44
45 /**
46 * \brief Standard constructor.
47 * \param address Detector unique identifier.
48 * \param pos Position of the hit as TVector3 (u, phi, z) [cm].
49 * \param err Position errors of the hit as TVector3 (du, dphi, dz) [cm].
50 * \param refId Some reference ID.
51 **/
52 CbmStripHit(Int_t address, const TVector3& pos, const TVector3& err, Int_t refId);
53
54 /**
55 * \brief Destructor.
56 */
57 virtual ~CbmStripHit();
58
59 /**
60 * \brief Inherited from CbmBaseHit.
61 **/
62 virtual string ToString() const;
63
64 /* Accessors */
65 Double_t GetU() const { return fU; }
66 Double_t GetPhi() const { return fPhi; }
67 Double_t GetDu() const { return fDu; }
68 Double_t GetDphi() const { return fDphi; }
69
70 /* Setters */
71 void SetU(Double_t u) { fU = u; }
72 void SetPhi(Double_t phi) { fPhi = phi; }
73 void SetDu(Double_t du) { fDu = du; }
74 void SetDphi(Double_t dphi) { fDphi = dphi; }
75
76 private:
77 Double_t fU; ///< U coordinate in the rotated c.s [cm]
78 Double_t fDu; ///< U error [cm]
79 Double_t fPhi; ///< strip rotation angle [rad]
80 Double_t fDphi; ///< strip rotation error [rad]
81
83};
84
85#endif /* CBMSTRIPHIT_H_ */
int Int_t
double Double_t
#define ClassDef(name, id)
CbmBaseHit()
Default constructor.
CbmStripHit()
Default constructor.
Double_t fPhi
strip rotation angle [rad]
Definition CbmStripHit.h:79
void SetU(Double_t u)
Definition CbmStripHit.h:71
void SetDu(Double_t du)
Definition CbmStripHit.h:73
Double_t fU
U coordinate in the rotated c.s [cm].
Definition CbmStripHit.h:77
Double_t GetDphi() const
Definition CbmStripHit.h:68
Double_t GetPhi() const
Definition CbmStripHit.h:66
void SetPhi(Double_t phi)
Definition CbmStripHit.h:72
Double_t fDphi
strip rotation error [rad]
Definition CbmStripHit.h:80
virtual string ToString() const
Inherited from CbmBaseHit.
Double_t GetU() const
Definition CbmStripHit.h:65
void SetDphi(Double_t dphi)
Definition CbmStripHit.h:74
Double_t fDu
U error [cm].
Definition CbmStripHit.h:78
Double_t GetDu() const
Definition CbmStripHit.h:67
virtual ~CbmStripHit()
Destructor.