LDMX Software
|
Represents a reconstructed hit in a calorimeter cell within the detector. More...
#include <CalorimeterHit.h>
Public Member Functions | |
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 (CalorimeterHit, 2) | |
The ROOT class definition. | |
Private Attributes | |
int | id_ {0} |
The detector ID of the hit. | |
float | amplitude_ {0} |
The amplitude value before sampling corrections. | |
float | energy_ {0} |
The energy of the hit corrected by a sampling fraction. | |
float | time_ {0} |
The time of the hit. | |
float | xpos_ {-9999.} |
X Position of the hit. | |
float | ypos_ {-9999.} |
Y Position of the hit. | |
float | zpos_ {-9999.} |
Z Position of the hit. | |
bool | isNoise_ {false} |
Is this a noise hit? | |
Represents a reconstructed hit in a calorimeter cell within the detector.
Definition at line 25 of file CalorimeterHit.h.
|
inline |
void ldmx::CalorimeterHit::Clear | ( | ) |
Clear the data in the object.
Definition at line 9 of file CalorimeterHit.cxx.
References amplitude_, energy_, id_, isNoise_, time_, xpos_, ypos_, and zpos_.
Referenced by ldmx::HcalHit::Clear().
|
inline |
Get the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sampling factor corrections.
Units depend on the calorimeter.
Definition at line 65 of file CalorimeterHit.h.
References amplitude_.
Referenced by ldmx::HcalHit::Print().
|
inline |
Get the calorimetric energy of the hit, corrected for sampling factors [MeV].
Definition at line 80 of file CalorimeterHit.h.
References energy_.
Referenced by ecal::WorkingCluster::add(), trigscint::TrigScintClusterProducer::addHit(), trigscint::TestBeamClusterProducer::addHit(), ldmx::HcalHit::Print(), recon::PFEcalClusterProducer::produce(), recon::PFHcalClusterProducer::produce(), and hcal::HcalWABVetoProcessor::produce().
|
inline |
Get the detector ID.
Definition at line 51 of file CalorimeterHit.h.
References id_.
Referenced by ecal::WorkingCluster::add(), eventdisplay::DetectorGeometry::getBoundingBox(), and ldmx::HcalHit::Print().
|
inline |
Get the time of the hit [ns].
Definition at line 93 of file CalorimeterHit.h.
References time_.
Referenced by trigscint::TrigScintClusterProducer::addHit(), trigscint::TestBeamClusterProducer::addHit(), operator<(), and ldmx::HcalHit::Print().
|
inline |
Get the X position of the hit [mm].
Definition at line 105 of file CalorimeterHit.h.
References xpos_.
Referenced by eventdisplay::DetectorGeometry::getBoundingBox().
|
inline |
Get the Y position of the hit [mm].
Definition at line 117 of file CalorimeterHit.h.
References ypos_.
Referenced by eventdisplay::DetectorGeometry::getBoundingBox().
|
inline |
Get the Z position of the hit [mm].
Definition at line 129 of file CalorimeterHit.h.
References zpos_.
|
inline |
Is this hit a noise hit?
Definition at line 141 of file CalorimeterHit.h.
References isNoise_.
|
inline |
Sort by time of hit.
Definition at line 152 of file CalorimeterHit.h.
References getTime().
void ldmx::CalorimeterHit::Print | ( | ) | const |
Print out the object.
Definition at line 20 of file CalorimeterHit.cxx.
References amplitude_, energy_, id_, and time_.
|
inline |
Set the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sampling factor corrections.
Units depend on the calorimeter.
amplitude | The amplitude of the hit |
Definition at line 73 of file CalorimeterHit.h.
References amplitude_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().
|
inline |
Set the calorimetric energy of the hit, corrected for sampling factors [MeV].
energy | The energy of the hit |
Definition at line 87 of file CalorimeterHit.h.
References energy_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().
|
inline |
Set the detector ID.
@id The detector ID.
Definition at line 57 of file CalorimeterHit.h.
References id_.
Referenced by ecal::EcalRecProducer::produce(), framework::test::TestProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
inline |
Set if this hit is a noise hit.
yes | true if this hit is a noise hit |
Definition at line 147 of file CalorimeterHit.h.
References isNoise_.
Referenced by trigscint::TrigScintDigiProducer::produce().
|
inline |
Set the time of the hit [ns].
time | The time of the hit |
Definition at line 99 of file CalorimeterHit.h.
References time_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), trigscint::TestBeamHitProducer::produce(), trigscint::TrigScintDigiProducer::produce(), trigscint::TrigScintFirmwareHitProducer::produce(), and trigscint::TrigScintRecHitProducer::produce().
|
inline |
Set the X position of the hit [mm].
xpos | the x position of the hit |
Definition at line 111 of file CalorimeterHit.h.
References xpos_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
inline |
Set the Y position of the hit [mm].
ypos | the y position of the hit |
Definition at line 123 of file CalorimeterHit.h.
References ypos_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
inline |
Set the Z position of the hit [mm].
zpos | the z position of the hit |
Definition at line 135 of file CalorimeterHit.h.
References zpos_.
Referenced by ecal::EcalRecProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
private |
The amplitude value before sampling corrections.
Definition at line 161 of file CalorimeterHit.h.
Referenced by Clear(), getAmplitude(), Print(), and setAmplitude().
|
private |
The energy of the hit corrected by a sampling fraction.
Definition at line 164 of file CalorimeterHit.h.
Referenced by Clear(), getEnergy(), Print(), and setEnergy().
|
private |
|
private |
Is this a noise hit?
Definition at line 179 of file CalorimeterHit.h.
Referenced by Clear(), isNoise(), and setNoise().
|
private |
|
private |
|
private |
|
private |