LDMX Software
HcalHit.h
Go to the documentation of this file.
1
7#ifndef HCAL_EVENT_HCALHIT_H_
8#define HCAL_EVENT_HCALHIT_H_
9
10// LDMX
12
13namespace ldmx {
14
24 public:
28 HcalHit() = default;
29
33 virtual ~HcalHit() = default;
34
38 void Clear();
39
43 void Print() const;
44
50 float getPE() const { return pe_; }
51
58 float getMinPE() const { return minpe_; }
59
64 int getSection() const { return section_; }
65
70 int getLayer() const { return layer_; }
71
76 int getStrip() const { return strip_; }
77
82 int getEnd() const { return end_; }
83
88 int getIsADC() const { return isADC_; }
89
94 int getToaPos() const { return toaPos_; }
95
100 int getToaNeg() const { return toaNeg_; }
101
106 int getAmplitudePos() const { return amplitudePos_; }
107
112 int getAmplitudeNeg() const { return amplitudeNeg_; }
113
119 void setPE(float pe) { pe_ = pe; }
120
126 void setMinPE(float minpe) { minpe_ = minpe; }
127
132 void setSection(int section) { section_ = section; }
133
138 void setLayer(int layer) { layer_ = layer; }
139
144 void setStrip(int strip) { strip_ = strip; }
145
150 void setEnd(int end) { end_ = end; }
151
156 void setIsADC(int isADC) { isADC_ = isADC; }
157
162 void setTimeDiff(double timeDiff) { timeDiff_ = timeDiff; }
163
168 void setToaPos(double toaPos) { toaPos_ = toaPos; }
169
174 void setToaNeg(double toaNeg) { toaNeg_ = toaNeg; }
175
180 void setAmplitudePos(double amplitudePos) { amplitudePos_ = amplitudePos; }
181
186 void setAmplitudeNeg(double amplitudeNeg) { amplitudeNeg_ = amplitudeNeg; }
187
191 void setPositionUnchanged(double position, int isX) {
192 position_ = position;
193 isX_ = isX;
194 }
195
196 double getPosition() const { return position_; }
197 int getIsX() const { return isX_; }
198 double getTimeDiff() const { return timeDiff_; }
199
200 private:
202 float pe_{0.0};
203
206 float minpe_{-99.0};
207
209 int section_{-99};
210 int layer_{-99};
211 int strip_{-99};
212 int end_{-99};
213
215 int isADC_{-99};
216
217 double timeDiff_{-9999.};
218 double position_{-9999.};
219 double isX_{-9999.};
220
221 double toaPos_{-9999.};
222 double toaNeg_{-9999.};
223 double amplitudePos_{-9999.};
224 double amplitudeNeg_{-9999.};
225
230};
231} // namespace ldmx
232
233#endif /* HCAL_EVENT_HCALHIT_H_ */
Class that represents a reconstructed hit in a calorimeter cell within the detector.
Represents a reconstructed hit in a calorimeter cell within the detector.
Stores reconstructed hit information from the HCAL.
Definition HcalHit.h:23
int getEnd() const
Get end for this hit.
Definition HcalHit.h:82
int section_
section, layer, strip and end
Definition HcalHit.h:209
int getLayer() const
Get the layer for this hit.
Definition HcalHit.h:70
void setSection(int section)
Set the section for this hit.
Definition HcalHit.h:132
HcalHit()=default
Class constructor.
void Clear()
Clear the data in the object.
Definition HcalHit.cxx:9
void setEnd(int end)
Set the end (0 neg, 1 pos side).
Definition HcalHit.h:150
float getMinPE() const
Get the minimum number of photoelectrons estimated for this hit if two sided readout.
Definition HcalHit.h:58
int getToaNeg() const
Get the toa of the negative end.
Definition HcalHit.h:100
int getStrip() const
Get the strip for this hit.
Definition HcalHit.h:76
virtual ~HcalHit()=default
Class destructor.
void setToaNeg(double toaNeg)
Set toa of the negative end.
Definition HcalHit.h:174
int isADC_
isADC
Definition HcalHit.h:215
int getIsADC() const
Get if hit was reconstructed using ADC.
Definition HcalHit.h:88
float minpe_
The minimum number of PE estimated for this hit, different from pe_ when you have two ended readout.
Definition HcalHit.h:206
void setIsADC(int isADC)
Set if the hit is reconstructed using ADC.
Definition HcalHit.h:156
void setTimeDiff(double timeDiff)
Set time difference (uncorrected)
Definition HcalHit.h:162
void setMinPE(float minpe)
Set the minimum number of photoelectrons estimated for this hit.
Definition HcalHit.h:126
ClassDef(HcalHit, 4)
The ROOT class definition.
void setToaPos(double toaPos)
Set toa of the positive end.
Definition HcalHit.h:168
void setAmplitudeNeg(double amplitudeNeg)
Set amplitude of the negative end.
Definition HcalHit.h:186
void setStrip(int strip)
Set the strip for this hit.
Definition HcalHit.h:144
void setPositionUnchanged(double position, int isX)
Set original position.
Definition HcalHit.h:191
int getToaPos() const
Get the toa of the positive end.
Definition HcalHit.h:94
float pe_
The number of PE estimated for this hit.
Definition HcalHit.h:202
int getAmplitudeNeg() const
Get the amplitude of the negative end.
Definition HcalHit.h:112
float getPE() const
Get the number of photoelectrons estimated for this hit.
Definition HcalHit.h:50
void Print() const
Print out the object.
Definition HcalHit.cxx:15
int getSection() const
Get the section for this hit.
Definition HcalHit.h:64
void setAmplitudePos(double amplitudePos)
Set amplitude of the positive end.
Definition HcalHit.h:180
void setLayer(int layer)
Set the layer for this hit.
Definition HcalHit.h:138
void setPE(float pe)
Set the number of photoelectrons estimated for this hit.
Definition HcalHit.h:119
int getAmplitudePos() const
Get the amplitude of the positive end.
Definition HcalHit.h:106