29 for(
int i=0; i<3; ++i)
58 void SetCharge(
float qsum,
float amp) { fCharge=qsum; fPeakAmp=amp; }
61 void SetTime(
const float peak,
const float width)
72 for(
size_t i=0; i<3; ++i)
73 fPartVertex[i] = vtx[i];
75 fPartTrackId = trackId;
85 float Charge(
bool max=
false)
const {
return (
max ? fPeakAmp : fCharge ); }
100 inline bool operator< (
const float& rhs)
const {
return fSignalTime < rhs; }
113 {
return (*lhs) < (*rhs); }
const float * PartVertex() const
Getter for particle vertex.
float PeakTime() const
Getter for start 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)
static const float kINVALID_FLOAT
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
Class def header for exception classes for MC data products.
float fSignalTime
where peak resides in waveform ticks
const float kINVALID_FLOAT
float Charge(bool max=false) const
Getter for "charge".