25 for(
int i=0; i<3; ++i)
54 void SetCharge(
float qsum,
float amp) { fCharge=qsum; fPeakAmp=amp; }
57 void SetTime(
const float peak,
const float width)
68 for(
size_t i=0; i<3; ++i)
69 fPartVertex[i] = vtx[i];
71 fPartTrackId = trackId;
81 float Charge(
bool max=
false)
const {
return (
max ? fPeakAmp : fCharge ); }
96 inline bool operator< (
const float& rhs)
const {
return fSignalTime < rhs; }
109 {
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.
static int max(int a, int b)
Code to link reconstructed objects back to the MC truth information.
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".