LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCHit.h"
Public Member Functions | |
MCHit () | |
Default ctor. More... | |
void | Reset () |
Method to reset. More... | |
void | SetCharge (float qsum, float amp) |
Setter function for charge/amplitude. More... | |
void | SetTime (const float peak, const float width) |
Setter function for time. More... | |
void | SetParticleInfo (const float vtx[], const float energy, const int trackId) |
Setter function for partile info. More... | |
float | PeakTime () const |
Getter for start time. More... | |
float | PeakWidth () const |
Getter for start time. More... | |
float | Charge (bool max=false) const |
Getter for "charge". More... | |
const float * | PartVertex () const |
Getter for particle vertex. More... | |
float | PartEnergy () const |
Getter for particle energy. More... | |
int | PartTrackId () const |
Getter for track ID. More... | |
bool | operator< (const MCHit &rhs) const |
For sorting with MCHit itself. More... | |
bool | operator< (const float &rhs) const |
For sorting with generic time. More... | |
Private Attributes | |
float | fSignalTime |
where peak resides in waveform ticks More... | |
float | fSignalWidth |
width (1sigma) in waveform ticks More... | |
float | fPeakAmp |
Peak amplitude (ADC) More... | |
float | fCharge |
Charge sum (ADC integral over MCWire) More... | |
float | fPartVertex [3] |
particle vertex (x,y,z) information More... | |
float | fPartEnergy |
particle energy deposition (dE) in MeV More... | |
int | fPartTrackId |
particle G4 Track ID More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Getter for particle energy.
Definition at line 82 of file MCHit.h.
References fPartEnergy.
|
inline |
|
inline |
Getter for particle vertex.
Definition at line 79 of file MCHit.h.
References fPartVertex.
|
inline |
Getter for start time.
Definition at line 70 of file MCHit.h.
References fSignalTime.
Referenced by hit::MCHitAnaExample::analyze().
|
inline |
|
inline |
Method to reset.
Definition at line 17 of file MCHit.h.
References fCharge, fPartEnergy, fPartTrackId, fPartVertex, fPeakAmp, fSignalTime, fSignalWidth, sim::kINVALID_FLOAT, kINVALID_FLOAT, and sim::kINVALID_INT.
Referenced by MCHit().
|
inline |
Setter function for charge/amplitude.
Definition at line 47 of file MCHit.h.
Referenced by hit::MCHitFinder::produce().
|
inline |
Setter function for partile info.
Definition at line 61 of file MCHit.h.
References energy.
Referenced by hit::MCHitFinder::produce().
|
inline |
Setter function for time.
Definition at line 54 of file MCHit.h.
Referenced by hit::MCHitAnaExample::analyze(), and hit::MCHitFinder::produce().
|
private |
|
private |
particle energy deposition (dE) in MeV
Definition at line 42 of file MCHit.h.
Referenced by PartEnergy(), and Reset().
|
private |
particle G4 Track ID
Definition at line 43 of file MCHit.h.
Referenced by PartTrackId(), and Reset().
|
private |
particle vertex (x,y,z) information
Definition at line 41 of file MCHit.h.
Referenced by PartVertex(), and Reset().
|
private |
|
private |
where peak resides in waveform ticks
Definition at line 31 of file MCHit.h.
Referenced by operator<(), PeakTime(), and Reset().
|
private |
width (1sigma) in waveform ticks
Definition at line 32 of file MCHit.h.
Referenced by PeakWidth(), and Reset().