8#ifndef RECON_EVENT_CALORIMETERHIT_H_
9#define RECON_EVENT_CALORIMETERHIT_H_
Represents a reconstructed hit in a calorimeter cell within the detector.
float getEnergy() const
Get the calorimetric energy of the hit, corrected for sampling factors [MeV].
float getTime() const
Get the time of the hit [ns].
void setYPos(float ypos)
Set the Y position of the hit [mm].
CalorimeterHit()
Class constructor.
float time_
The time of the hit.
float xpos_
X Position of the hit.
void setID(int id)
Set the detector ID.
int id_
The detector ID of the hit.
ClassDef(CalorimeterHit, 2)
The ROOT class definition.
float energy_
The energy of the hit corrected by a sampling fraction.
float getYPos() const
Get the Y position of the hit [mm].
void Print() const
Print out the object.
void setZPos(float zpos)
Set the Z position of the hit [mm].
void setXPos(float xpos)
Set the X position of the hit [mm].
void setTime(float time)
Set the time of the hit [ns].
void setAmplitude(float amplitude)
Set the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sam...
void setEnergy(float energy)
Set the calorimetric energy of the hit, corrected for sampling factors [MeV].
void Clear()
Clear the data in the object.
float ypos_
Y Position of the hit.
int getID() const
Get the detector ID.
float getZPos() const
Get the Z position of the hit [mm].
bool isNoise_
Is this a noise hit?
virtual ~CalorimeterHit()=default
Class destructor.
float getXPos() const
Get the X position of the hit [mm].
bool operator<(const CalorimeterHit &rhs) const
Sort by time of hit.
float getAmplitude() const
Get the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sam...
bool isNoise() const
Is this hit a noise hit?
float zpos_
Z Position of the hit.
float amplitude_
The amplitude value before sampling corrections.
void setNoise(bool yes)
Set if this hit is a noise hit.