LDMX Software
|
Stores reconstructed hit information from the HCAL. More...
#include <HcalHit.h>
Public Member Functions | |
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 (HcalHit, 4) | |
The ROOT class definition. | |
Private Attributes | |
float | pe_ {0.0} |
The number of PE estimated for this hit. | |
float | minpe_ {-99.0} |
The minimum number of PE estimated for this hit, different from pe_ when you have two ended readout. | |
int | section_ {-99} |
section, layer, strip and end | |
int | layer_ {-99} |
int | strip_ {-99} |
int | end_ {-99} |
int | isADC_ {-99} |
isADC | |
double | timeDiff_ {-9999.} |
double | position_ {-9999.} |
double | isX_ {-9999.} |
double | toaPos_ {-9999.} |
double | toaNeg_ {-9999.} |
double | amplitudePos_ {-9999.} |
double | amplitudeNeg_ {-9999.} |
Stores reconstructed hit information from the HCAL.
void ldmx::HcalHit::Clear | ( | ) |
Clear the data in the object.
Definition at line 9 of file HcalHit.cxx.
References ldmx::CalorimeterHit::Clear(), minpe_, and pe_.
Referenced by hcal::HcalVetoProcessor::configure().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the number of photoelectrons estimated for this hit.
Definition at line 50 of file HcalHit.h.
References pe_.
Referenced by Print(), hcal::HcalVetoProcessor::produce(), and hcal::HcalWABVetoProcessor::produce().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void ldmx::HcalHit::Print | ( | ) | const |
Print out the object.
Definition at line 15 of file HcalHit.cxx.
References ldmx::CalorimeterHit::getAmplitude(), ldmx::CalorimeterHit::getEnergy(), ldmx::CalorimeterHit::getID(), getPE(), and ldmx::CalorimeterHit::getTime().
Referenced by ldmx::HcalVetoResult::Print().
|
inline |
Set amplitude of the negative end.
amplitude |
Definition at line 186 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set amplitude of the positive end.
amplitude |
Definition at line 180 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set the end (0 neg, 1 pos side).
end |
Definition at line 150 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set if the hit is reconstructed using ADC.
isADC | int |
Definition at line 156 of file HcalHit.h.
References isADC_.
Referenced by hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set the layer for this hit.
layer | number |
Definition at line 138 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set the minimum number of photoelectrons estimated for this hit.
pe | Minimum number of photoelectrons, including noise which affects the estimate. |
Definition at line 126 of file HcalHit.h.
References minpe_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
inline |
Set the number of photoelectrons estimated for this hit.
pe | Number of photoelectrons, including noise which affects the estimate. |
Definition at line 119 of file HcalHit.h.
References pe_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set original position.
Definition at line 191 of file HcalHit.h.
Referenced by hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set the section for this hit.
section | number |
Definition at line 132 of file HcalHit.h.
References section_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set the strip for this hit.
strip | number |
Definition at line 144 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set time difference (uncorrected)
time |
Definition at line 162 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set toa of the negative end.
time |
Definition at line 174 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set toa of the positive end.
time |
Definition at line 168 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
private |
|
private |
|
private |
|
private |
The minimum number of PE estimated for this hit, different from pe_ when you have two ended readout.
Definition at line 206 of file HcalHit.h.
Referenced by Clear(), getMinPE(), and setMinPE().
|
private |
|
private |
|
private |
section, layer, strip and end
Definition at line 209 of file HcalHit.h.
Referenced by getSection(), and setSection().
|
private |
|
private |
|
private |