BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDchHitOriginal.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------------------------------
2#ifndef __BMN_DCH_HIT_ORIGINAL_H
3#define __BMN_DCH_HIT_ORIGINAL_H 1
4
5#include "FairHit.h"
6#include "TArrayI.h"
7//------------------------------------------------------------------------------------------------------------------------
8
10{
11 public:
13 BmnDchHitOriginal(Int_t detectorID,
14 TVector3 pos,
15 TVector3 dpos,
16 Int_t refIndex,
17 Int_t flag,
18 Int_t trackIndex,
19 UInt_t dchlayer);
20 BmnDchHitOriginal(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex, Int_t flag);
21 BmnDchHitOriginal(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex);
22
23 virtual ~BmnDchHitOriginal();
24
25 void Print(const Option_t* opt = 0) const;
26
27 /** Accessors **/
28 Int_t GetTrackID() const { return fTrackID; } // get track ID
29
30 Int_t GetFlag() const { return fFlag; } // get flag
31
32 Int_t GetNofDim() const { return fNofDim; } // get number of measurements per point
33
34 Int_t Overlap() const { return fIndex.GetSize() - 1; } //
35
36 Int_t GetIndex(Int_t indx = 0) const { return fIndex[indx]; } //
37
38 UInt_t GetLayer() const { return fDchLayer; } //
39
40 Int_t GetDetectorID() const { return fDetectorID; } //
41
42 Double_t GetPhi() const { return fPhi; } // get rotation angle
43
44 Double_t GetMeas(Int_t indx = 0) const { return fMeas[indx]; } // get measurement
45
46 Double_t GetError(Int_t indx = 0) const { return fError[indx]; } // get measurement error
47
48 const TArrayI* Index() const { return &fIndex; } ///< Get index array of the hit
49
50 Double_t GetDrift(void) const { return fDriftLength; };
51
53
54 Double_t GetWirePosition(void) const { return fWirePos; };
55
57
58 Double_t GetWireDelay(void) const { return fWireDelayLength; };
59
61
62 Double_t GetTShift(void) const { return fTS; };
63
64 void SetTShift(Double_t v) { fTS = v; };
65
66 /** Modifiers **/
67 // void SetTrackId(Int_t trackID) { fTrackID = trackID; }
68
69 void SetFlag(Int_t flag) { fFlag = flag; }
70
71 void SetNofDim(Int_t dim) { fNofDim = dim; } // set number of measurements per point
72
73 void SetPhi(Double_t phi) { fPhi = phi; } // set rotation angle
74
75 void SetMeas(Double_t meas, Int_t indx = 0) { fMeas[indx] = meas; } // set measurement
76
77 void SetError(Double_t err, Int_t indx = 0) { fError[indx] = err; } // set measurement
78
79 void SetIndex(Int_t indx); ///< Add index of detector hit
80
81 Bool_t IsSortable() const { return kTRUE; }
82 Int_t Compare(const TObject* hit) const; ///< sort in ascending order in abs(Z)
83
84 Bool_t IsUsed() const { return fUsing; }
85
86 void SetUsing(Bool_t use) { fUsing = use; }
87
88 protected:
89 Int_t fDetectorID; // track ID
90 UInt_t fDchLayer; // Dch layer ID (0-7)
91 Int_t fTrackID; // track ID
92 Int_t fFlag; // Flag for general purposes [TDC, event tagging...]
93 Int_t fNofDim; // number of measurements per point
94 Double32_t fPhi; // tube rotation angle
95 Double32_t fMeas[2]; // measurements (coordinates)
96 Double32_t fError[2]; // measurement errors
97 TArrayI fIndex; // array of indices of overlapped MC points
98
100
102
104};
105//------------------------------------------------------------------------------------------------------------------------
106#endif
__m128 v
Definition P4_F32vec4.h:1
bool Bool_t
int Int_t
double Double32_t
unsigned int UInt_t
double Double_t
constexpr Bool_t kTRUE
const char Option_t
#define ClassDef(name, id)
void SetError(Double_t err, Int_t indx=0)
Bool_t IsSortable() const
void SetDrift(Double_t v)
const TArrayI * Index() const
Get index array of the hit.
void SetWirePosition(Double_t v)
UInt_t GetLayer() const
Double_t GetError(Int_t indx=0) const
void SetUsing(Bool_t use)
void SetNofDim(Int_t dim)
Double32_t fWireDelayLength
Double_t GetDrift(void) const
Int_t GetNofDim() const
Int_t GetIndex(Int_t indx=0) const
Int_t GetFlag() const
Double_t GetMeas(Int_t indx=0) const
Double_t GetWirePosition(void) const
void SetPhi(Double_t phi)
Int_t GetTrackID() const
Accessors.
void SetMeas(Double_t meas, Int_t indx=0)
void SetIndex(Int_t indx)
Add index of detector hit.
Double_t GetTShift(void) const
Int_t GetDetectorID() const
void SetFlag(Int_t flag)
Modifiers.
Int_t Overlap() const
void Print(const Option_t *opt=0) const
void SetTShift(Double_t v)
Int_t Compare(const TObject *hit) const
sort in ascending order in abs(Z)
Double_t GetPhi() const
void SetWireDelay(Double_t v)
Bool_t IsUsed() const
Double_t GetWireDelay(void) const
const UInt_t dim