BmnRoot
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
7#include "TArrayI.h"
8//------------------------------------------------------------------------------------------------------------------------
9
10class BmnDchHitOriginal : public FairHit {
11public:
12
14 BmnDchHitOriginal(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex, Int_t flag, Int_t trackIndex, UInt_t dchlayer);
15 BmnDchHitOriginal(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex, Int_t flag);
16 BmnDchHitOriginal(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex);
17
18
19 virtual ~BmnDchHitOriginal();
20
21 void Print(const Option_t* opt = 0) const;
22
24 Int_t GetTrackID() const {
25 return fTrackID;
26 } // get track ID
27
28 Int_t GetFlag() const {
29 return fFlag;
30 } // get flag
31
32 Int_t GetNofDim() const {
33 return fNofDim;
34 } // get number of measurements per point
35
36 Int_t Overlap() const {
37 return fIndex.GetSize() - 1;
38 } //
39
40 Int_t GetIndex(Int_t indx = 0) const {
41 return fIndex[indx];
42 } //
43
44 UInt_t GetLayer() const {
45 return fDchLayer;
46 } //
47
48 Int_t GetDetectorID() const {
49 return fDetectorID;
50 } //
51
52 Double_t GetPhi() const {
53 return fPhi;
54 } // get rotation angle
55
56 Double_t GetMeas(Int_t indx = 0) const {
57 return fMeas[indx];
58 } // get measurement
59
60 Double_t GetError(Int_t indx = 0) const {
61 return fError[indx];
62 } // get measurement error
63
64 const TArrayI* Index() const {
65 return &fIndex;
66 }
67
68 Double_t GetDrift(void) const {
69 return fDriftLength;
70 };
71
72 void SetDrift(Double_t v) {
74 };
75
76 Double_t GetWirePosition(void) const {
77 return fWirePos;
78 };
79
80 void SetWirePosition(Double_t v) {
81 fWirePos = v;
82 };
83
84 Double_t GetWireDelay(void) const {
85 return fWireDelayLength;
86 };
87
88 void SetWireDelay(Double_t v) {
90 };
91
92 Double_t GetTShift(void) const {
93 return fTS;
94 };
95
96 void SetTShift(Double_t v) {
97 fTS = v;
98 };
99
101 //void SetTrackId(Int_t trackID) { fTrackID = trackID; }
102
103 void SetFlag(Int_t flag) {
104 fFlag = flag;
105 }
106
107 void SetNofDim(Int_t dim) {
108 fNofDim = dim;
109 } // set number of measurements per point
110
111 void SetPhi(Double_t phi) {
112 fPhi = phi;
113 } // set rotation angle
114
115 void SetMeas(Double_t meas, Int_t indx = 0) {
116 fMeas[indx] = meas;
117 } // set measurement
118
119 void SetError(Double_t err, Int_t indx = 0) {
120 fError[indx] = err;
121 } // set measurement
122
123 void SetIndex(Int_t indx);
124
125 Bool_t IsSortable() const {
126 return kTRUE;
127 }
128 Int_t Compare(const TObject* hit) const;
129
130 Bool_t IsUsed() const {
131 return fUsing;
132 }
133
134 void SetUsing(Bool_t use) {
135 fUsing = use;
136 }
137
138
139
140protected:
141
142 Int_t fDetectorID; // track ID
143 UInt_t fDchLayer; // Dch layer ID (0-7)
144 Int_t fTrackID; // track ID
145 Int_t fFlag; // Flag for general purposes [TDC, event tagging...]
146 Int_t fNofDim; // number of measurements per point
147 Double32_t fPhi; // tube rotation angle
148 Double32_t fMeas[2]; // measurements (coordinates)
149 Double32_t fError[2]; // measurement errors
150 TArrayI fIndex; // array of indices of overlapped MC points
151
153
154 Bool_t fUsing;
155
156 ClassDef(BmnDchHitOriginal, 1)
157
158};
159//------------------------------------------------------------------------------------------------------------------------
160#endif
__m128 v
Definition P4_F32vec4.h:1
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)
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
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)
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