7#ifndef HCAL_EVENT_HCALHIT_H_
8#define HCAL_EVENT_HCALHIT_H_
192 position_ = position;
196 double getPosition()
const {
return position_; }
197 int getIsX()
const {
return isX_; }
198 double getTimeDiff()
const {
return timeDiff_; }
217 double timeDiff_{-9999.};
218 double position_{-9999.};
221 double toaPos_{-9999.};
222 double toaNeg_{-9999.};
223 double amplitudePos_{-9999.};
224 double amplitudeNeg_{-9999.};
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.
int getEnd() const
Get end for this hit.
int section_
section, layer, strip and end
int getLayer() const
Get the layer for this hit.
void setSection(int section)
Set the section for this hit.
HcalHit()=default
Class constructor.
void Clear()
Clear the data in the object.
void setEnd(int end)
Set the end (0 neg, 1 pos side).
float getMinPE() const
Get the minimum number of photoelectrons estimated for this hit if two sided readout.
int getToaNeg() const
Get the toa of the negative end.
int getStrip() const
Get the strip for this hit.
virtual ~HcalHit()=default
Class destructor.
void setToaNeg(double toaNeg)
Set toa of the negative end.
int getIsADC() const
Get if hit was reconstructed using ADC.
float minpe_
The minimum number of PE estimated for this hit, different from pe_ when you have two ended readout.
void setIsADC(int isADC)
Set if the hit is reconstructed using ADC.
void setTimeDiff(double timeDiff)
Set time difference (uncorrected)
void setMinPE(float minpe)
Set the minimum number of photoelectrons estimated for this hit.
ClassDef(HcalHit, 4)
The ROOT class definition.
void setToaPos(double toaPos)
Set toa of the positive end.
void setAmplitudeNeg(double amplitudeNeg)
Set amplitude of the negative end.
void setStrip(int strip)
Set the strip for this hit.
void setPositionUnchanged(double position, int isX)
Set original position.
int getToaPos() const
Get the toa of the positive end.
float pe_
The number of PE estimated for this hit.
int getAmplitudeNeg() const
Get the amplitude of the negative end.
float getPE() const
Get the number of photoelectrons estimated for this hit.
void Print() const
Print out the object.
int getSection() const
Get the section for this hit.
void setAmplitudePos(double amplitudePos)
Set amplitude of the positive end.
void setLayer(int layer)
Set the layer for this hit.
void setPE(float pe)
Set the number of photoelectrons estimated for this hit.
int getAmplitudePos() const
Get the amplitude of the positive end.