21 for (
int i = 0; i < 3; ++i)
54 void SetTime(
const float peak,
const float width)
63 for (
size_t i = 0; i < 3; ++i)
64 fPartVertex[i] = vtx[i];
66 fPartTrackId = trackId;
76 float Charge(
bool max =
false)
const {
return (max ? fPeakAmp : fCharge); }
91 inline bool operator<(
const float& rhs)
const {
return fSignalTime < rhs; }
static constexpr float kINVALID_FLOAT
const float * PartVertex() const
Getter for particle vertex.
float PeakTime() const
Getter for start time.
bool operator<(const float &rhs) const
For sorting with generic time.
void SetCharge(float qsum, float amp)
Setter function for charge/amplitude.
void SetParticleInfo(const float vtx[], const float energy, const int trackId)
Setter function for partile info.
float PartEnergy() const
Getter for particle energy.
void Reset()
Method to reset.
void SetTime(const float peak, const float width)
Setter function for time.
bool operator()(const sim::MCHit *lhs, const sim::MCHit *rhs)
float fCharge
Charge sum (ADC integral over MCWire)
int fPartTrackId
particle G4 Track ID
float fPartEnergy
particle energy deposition (dE) in MeV
float PeakWidth() const
Getter for start time.
float fPeakAmp
Peak amplitude (ADC)
bool operator<(const MCHit &rhs) const
For sorting with MCHit itself.
int PartTrackId() const
Getter for track ID.
float fPartVertex[3]
particle vertex (x,y,z) information
float fSignalWidth
width (1sigma) in waveform ticks
float fSignalTime
where peak resides in waveform ticks
const float kINVALID_FLOAT
float Charge(bool max=false) const
Getter for "charge".