LDMX Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ldmx::TrigScintHit Class Reference

Public Member Functions

 TrigScintHit ()
 Class constructor.
 
 ~TrigScintHit ()
 Class destructor.
 
void Clear (Option_t *option="")
 Clear the data in the object.
 
void Print (Option_t *option="") const
 Print out the object.
 
void setBarID (const int barID)
 Set hit bar ID.
 
int getBarID () const
 Get the bar ID.
 
void setPE (const float PE)
 Set hit pe.
 
float getPE () const
 Get the hit pe.
 
void setModuleID (const int moduleID)
 Set hit module ID.
 
int getModuleID () const
 Get the module ID.
 
void setBeamEfrac (const float beamEfrac)
 Set beam energy fraction of hit.
 
float getBeamEfrac () const
 Get the beam energy fraction.
 
- Public Member Functions inherited from ldmx::HcalHit
 HcalHit ()=default
 Class constructor.
 
virtual ~HcalHit ()=default
 Class destructor.
 
void Clear ()
 Clear the data in the object.
 
void Print () const
 Print out the object.
 
float getPE () const
 Get the number of photoelectrons estimated for this hit.
 
float getMinPE () const
 Get the minimum number of photoelectrons estimated for this hit if two sided readout.
 
int getSection () const
 Get the section for this hit.
 
int getLayer () const
 Get the layer for this hit.
 
int getStrip () const
 Get the strip for this hit.
 
int getEnd () const
 Get end for this hit.
 
int getIsADC () const
 Get if hit was reconstructed using ADC.
 
int getToaPos () const
 Get the toa of the positive end.
 
int getToaNeg () const
 Get the toa of the negative end.
 
int getAmplitudePos () const
 Get the amplitude of the positive end.
 
int getAmplitudeNeg () const
 Get the amplitude of the negative end.
 
void setPE (float pe)
 Set the number of photoelectrons estimated for this hit.
 
void setMinPE (float minpe)
 Set the minimum number of photoelectrons estimated for this hit.
 
void setSection (int section)
 Set the section for this hit.
 
void setLayer (int layer)
 Set the layer for this hit.
 
void setStrip (int strip)
 Set the strip for this hit.
 
void setEnd (int end)
 Set the end (0 neg, 1 pos side).
 
void setIsADC (int isADC)
 Set if the hit is reconstructed using ADC.
 
void setTimeDiff (double timeDiff)
 Set time difference (uncorrected)
 
void setToaPos (double toaPos)
 Set toa of the positive end.
 
void setToaNeg (double toaNeg)
 Set toa of the negative end.
 
void setAmplitudePos (double amplitudePos)
 Set amplitude of the positive end.
 
void setAmplitudeNeg (double amplitudeNeg)
 Set amplitude of the negative end.
 
void setPositionUnchanged (double position, int isX)
 Set original position.
 
double getPosition () const
 
int getIsX () const
 
double getTimeDiff () const
 
- Public Member Functions inherited from ldmx::CalorimeterHit
 CalorimeterHit ()
 Class constructor.
 
virtual ~CalorimeterHit ()=default
 Class destructor.
 
void Clear ()
 Clear the data in the object.
 
void Print () const
 Print out the object.
 
int getID () const
 Get the detector ID.
 
void setID (int id)
 Set the detector ID.
 
float getAmplitude () const
 Get the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sampling factor corrections.
 
void setAmplitude (float amplitude)
 Set the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sampling factor corrections.
 
float getEnergy () const
 Get the calorimetric energy of the hit, corrected for sampling factors [MeV].
 
void setEnergy (float energy)
 Set the calorimetric energy of the hit, corrected for sampling factors [MeV].
 
float getTime () const
 Get the time of the hit [ns].
 
void setTime (float time)
 Set the time of the hit [ns].
 
float getXPos () const
 Get the X position of the hit [mm].
 
void setXPos (float xpos)
 Set the X position of the hit [mm].
 
float getYPos () const
 Get the Y position of the hit [mm].
 
void setYPos (float ypos)
 Set the Y position of the hit [mm].
 
float getZPos () const
 Get the Z position of the hit [mm].
 
void setZPos (float zpos)
 Set the Z position of the hit [mm].
 
bool isNoise () const
 Is this hit a noise hit?
 
void setNoise (bool yes)
 Set if this hit is a noise hit.
 
bool operator< (const CalorimeterHit &rhs) const
 Sort by time of hit.
 

Private Member Functions

 ClassDef (TrigScintHit, 3)
 

Private Attributes

int barID_ {-1}
 
int moduleID_ {-1}
 
float beamEfrac_ {0}
 The fraction of energy associated with beam electrons.
 
float pe_ {0}
 

Detailed Description

Definition at line 24 of file TrigScintHit.h.

Constructor & Destructor Documentation

◆ TrigScintHit()

ldmx::TrigScintHit::TrigScintHit ( )
inline

Class constructor.

Definition at line 29 of file TrigScintHit.h.

29{}

◆ ~TrigScintHit()

ldmx::TrigScintHit::~TrigScintHit ( )
inline

Class destructor.

Definition at line 34 of file TrigScintHit.h.

34{}

Member Function Documentation

◆ getBarID()

int ldmx::TrigScintHit::getBarID ( ) const
inline

Get the bar ID.

Definition at line 54 of file TrigScintHit.h.

54{ return barID_; }

Referenced by trigscint::TestBeamHitAnalyzer::analyze().

◆ getBeamEfrac()

float ldmx::TrigScintHit::getBeamEfrac ( ) const
inline

Get the beam energy fraction.

Definition at line 84 of file TrigScintHit.h.

84{ return beamEfrac_; }
float beamEfrac_
The fraction of energy associated with beam electrons.

References beamEfrac_.

Referenced by trigscint::TrigScintClusterProducer::addHit(), and trigscint::TestBeamClusterProducer::addHit().

◆ getModuleID()

int ldmx::TrigScintHit::getModuleID ( ) const
inline

Get the module ID.

Definition at line 74 of file TrigScintHit.h.

74{ return moduleID_; }

◆ getPE()

float ldmx::TrigScintHit::getPE ( ) const
inline

◆ setBarID()

void ldmx::TrigScintHit::setBarID ( const int  barID)
inline

Set hit bar ID.

Parameters
barIDThe bar ID of the hit.

Definition at line 51 of file TrigScintHit.h.

51{ barID_ = barID; };

Referenced by trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), trigscint::TrigScintFirmwareHitProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().

◆ setBeamEfrac()

void ldmx::TrigScintHit::setBeamEfrac ( const float  beamEfrac)
inline

Set beam energy fraction of hit.

Parameters
beamEfracThe beam energy fraction of the hit.

Definition at line 81 of file TrigScintHit.h.

81{ beamEfrac_ = beamEfrac; };

References beamEfrac_.

Referenced by trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().

◆ setModuleID()

void ldmx::TrigScintHit::setModuleID ( const int  moduleID)
inline

Set hit module ID.

Parameters
moduleIDThe module ID of the hit.

Definition at line 71 of file TrigScintHit.h.

71{ moduleID_ = moduleID; };

Referenced by trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), trigscint::TrigScintFirmwareHitProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().

◆ setPE()

void ldmx::TrigScintHit::setPE ( const float  PE)
inline

Set hit pe.

Parameters
PEThe photoelectron count of the hit.

Definition at line 61 of file TrigScintHit.h.

61{ pe_ = PE; };

Referenced by trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), trigscint::TrigScintFirmwareHitProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().

Member Data Documentation

◆ barID_

int ldmx::TrigScintHit::barID_ {-1}
private

Definition at line 88 of file TrigScintHit.h.

88{-1};

◆ beamEfrac_

float ldmx::TrigScintHit::beamEfrac_ {0}
private

The fraction of energy associated with beam electrons.

Definition at line 93 of file TrigScintHit.h.

93{0};

Referenced by getBeamEfrac(), and setBeamEfrac().

◆ moduleID_

int ldmx::TrigScintHit::moduleID_ {-1}
private

Definition at line 90 of file TrigScintHit.h.

90{-1};

◆ pe_

float ldmx::TrigScintHit::pe_ {0}
private

Definition at line 95 of file TrigScintHit.h.

95{0};

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