Public Member Functions | Private Attributes | List of all members
sim::MCHit Class Reference

#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...
 

Detailed Description

Definition at line 10 of file MCHit.h.

Constructor & Destructor Documentation

sim::MCHit::MCHit ( )
inline

Default ctor.

Definition at line 15 of file MCHit.h.

16  {
17  Reset();
18  }
void Reset()
Method to reset.
Definition: MCHit.h:21

Member Function Documentation

float sim::MCHit::Charge ( bool  max = false) const
inline

Getter for "charge".

Definition at line 81 of file MCHit.h.

81 { return ( max ? fPeakAmp : fCharge ); }
float fCharge
Charge sum (ADC integral over MCWire)
Definition: MCHit.h:40
float fPeakAmp
Peak amplitude (ADC)
Definition: MCHit.h:39
static int max(int a, int b)
bool sim::MCHit::operator< ( const MCHit rhs) const
inline

For sorting with MCHit itself.

Definition at line 93 of file MCHit.h.

93 { return fSignalTime < rhs.fSignalTime; }
float fSignalTime
where peak resides in waveform ticks
Definition: MCHit.h:36
bool sim::MCHit::operator< ( const float &  rhs) const
inline

For sorting with generic time.

Definition at line 96 of file MCHit.h.

96 { return fSignalTime < rhs; }
float fSignalTime
where peak resides in waveform ticks
Definition: MCHit.h:36
float sim::MCHit::PartEnergy ( ) const
inline

Getter for particle energy.

Definition at line 87 of file MCHit.h.

87 { return fPartEnergy; }
float fPartEnergy
particle energy deposition (dE) in MeV
Definition: MCHit.h:47
int sim::MCHit::PartTrackId ( ) const
inline

Getter for track ID.

Definition at line 90 of file MCHit.h.

90 { return fPartTrackId; }
int fPartTrackId
particle G4 Track ID
Definition: MCHit.h:48
const float* sim::MCHit::PartVertex ( ) const
inline

Getter for particle vertex.

Definition at line 84 of file MCHit.h.

84 { return fPartVertex; }
float fPartVertex[3]
particle vertex (x,y,z) information
Definition: MCHit.h:46
float sim::MCHit::PeakTime ( ) const
inline

Getter for start time.

Definition at line 75 of file MCHit.h.

75 { return fSignalTime; }
float fSignalTime
where peak resides in waveform ticks
Definition: MCHit.h:36
float sim::MCHit::PeakWidth ( ) const
inline

Getter for start time.

Definition at line 78 of file MCHit.h.

78 { return fSignalWidth; }
float fSignalWidth
width (1sigma) in waveform ticks
Definition: MCHit.h:37
void sim::MCHit::Reset ( void  )
inline

Method to reset.

Definition at line 21 of file MCHit.h.

22  {
25  for(int i=0; i<3; ++i)
29  }
const int kINVALID_INT
Definition: MCLimits.h:16
float fCharge
Charge sum (ADC integral over MCWire)
Definition: MCHit.h:40
static const float kINVALID_FLOAT
Definition: TruncMean.h:31
int fPartTrackId
particle G4 Track ID
Definition: MCHit.h:48
float fPartEnergy
particle energy deposition (dE) in MeV
Definition: MCHit.h:47
float fPeakAmp
Peak amplitude (ADC)
Definition: MCHit.h:39
float fPartVertex[3]
particle vertex (x,y,z) information
Definition: MCHit.h:46
float fSignalWidth
width (1sigma) in waveform ticks
Definition: MCHit.h:37
float fSignalTime
where peak resides in waveform ticks
Definition: MCHit.h:36
const float kINVALID_FLOAT
Definition: MCLimits.h:12
void sim::MCHit::SetCharge ( float  qsum,
float  amp 
)
inline

Setter function for charge/amplitude.

Definition at line 54 of file MCHit.h.

54 { fCharge=qsum; fPeakAmp=amp; }
float fCharge
Charge sum (ADC integral over MCWire)
Definition: MCHit.h:40
float fPeakAmp
Peak amplitude (ADC)
Definition: MCHit.h:39
void sim::MCHit::SetParticleInfo ( const float  vtx[],
const float  energy,
const int  trackId 
)
inline

Setter function for partile info.

Definition at line 64 of file MCHit.h.

67  {
68  for(size_t i=0; i<3; ++i)
69  fPartVertex[i] = vtx[i];
71  fPartTrackId = trackId;
72  }
int fPartTrackId
particle G4 Track ID
Definition: MCHit.h:48
float fPartEnergy
particle energy deposition (dE) in MeV
Definition: MCHit.h:47
float fPartVertex[3]
particle vertex (x,y,z) information
Definition: MCHit.h:46
void sim::MCHit::SetTime ( const float  peak,
const float  width 
)
inline

Setter function for time.

Definition at line 57 of file MCHit.h.

58  {
59  fSignalTime = peak;
60  fSignalWidth = width;
61  }
float fSignalWidth
width (1sigma) in waveform ticks
Definition: MCHit.h:37
float fSignalTime
where peak resides in waveform ticks
Definition: MCHit.h:36

Member Data Documentation

float sim::MCHit::fCharge
private

Charge sum (ADC integral over MCWire)

Definition at line 40 of file MCHit.h.

float sim::MCHit::fPartEnergy
private

particle energy deposition (dE) in MeV

Definition at line 47 of file MCHit.h.

int sim::MCHit::fPartTrackId
private

particle G4 Track ID

Definition at line 48 of file MCHit.h.

float sim::MCHit::fPartVertex[3]
private

particle vertex (x,y,z) information

Definition at line 46 of file MCHit.h.

float sim::MCHit::fPeakAmp
private

Peak amplitude (ADC)

Definition at line 39 of file MCHit.h.

float sim::MCHit::fSignalTime
private

where peak resides in waveform ticks

Definition at line 36 of file MCHit.h.

float sim::MCHit::fSignalWidth
private

width (1sigma) in waveform ticks

Definition at line 37 of file MCHit.h.


The documentation for this class was generated from the following file: