8#ifndef HCAL_EVENT_HCALHIT_H_
9#define HCAL_EVENT_HCALHIT_H_
226 position_ = position;
227 orientation_ = orientation;
253 double timeDiff_{-9999.};
254 double position_{-9999.};
255 int orientation_{-9999};
257 double toaPos_{-9999.};
258 double toaNeg_{-9999.};
259 double amplitudePos_{-9999.};
260 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
double getTimeDiff() const
Get the time difference between the two ends Note: only applies for double ended readout.
bool isOrientationY() const
Get if bar is oriented in Y.
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.
bool isOrientationZ() const
Get if bar is oriented in Z.
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.
double getPosition() const
Get the position of the hit.
virtual ~HcalHit()=default
Class destructor.
void setPositionUnchanged(double position, int orientation)
Set original position.
void setToaNeg(double toaNeg)
Set toa of the negative end.
bool isOrientationX() const
Get if bar is oriented in X.
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.
void setOrientation(int orientation)
Set if the bar is orientied in X / Y / Z meanig 0 / 1 / 2, respectively.
ClassDef(HcalHit, 5)
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.
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.