|
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. | |
| 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. | |
| double | getPosition () const |
| Get the position of the hit. | |
| bool | isOrientationX () const |
| Get if bar is oriented in X. | |
| bool | isOrientationY () const |
| Get if bar is oriented in Y. | |
| bool | isOrientationZ () const |
| Get if bar is oriented in Z. | |
| double | getTimeDiff () const |
| Get the time difference between the two ends Note: only applies for double ended readout. | |
| 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 orientation) |
| Set original position. | |
| void | setOrientation (int orientation) |
| Set if the bar is orientied in X / Y / Z meanig 0 / 1 / 2, respectively. | |
Public Member Functions inherited from ldmx::CalorimeterHit | |
| CalorimeterHit () | |
| Class constructor. | |
| virtual | ~CalorimeterHit ()=default |
| Class destructor. | |
| void | clear () |
| Clear the data in 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, 6) | |
| 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 | is_adc_ {-99} |
| isADC | |
| double | time_diff_ {-9999.} |
| double | position_ {-9999.} |
| int | orientation_ {-9999} |
| double | toa_pos_ {-9999.} |
| double | toa_neg_ {-9999.} |
| double | amplitude_pos_ {-9999.} |
| double | amplitude_neg_ {-9999.} |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const HcalHit &d) |
| Print out the object. | |
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 ldmx::TrigScintHit::clear(), and hcal::HcalVetoProcessor::configure().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set amplitude of the negative end.
| amplitude |
Definition at line 220 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set amplitude of the positive end.
| amplitude |
Definition at line 214 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 184 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 190 of file HcalHit.h.
References is_adc_.
Referenced by hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set the layer for this hit.
| layer | number |
Definition at line 172 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSimpleDigiAndRecProducer::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 160 of file HcalHit.h.
References minpe_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSimpleDigiAndRecProducer::produce(), hcal::HcalSingleEndRecProducer::produce(), and trigscint::TrigScintDigiProducer::produce().
|
inline |
Set if the bar is orientied in X / Y / Z meanig 0 / 1 / 2, respectively.
Definition at line 234 of file HcalHit.h.
Referenced by hcal::HcalRecProducer::produce(), and hcal::HcalSimpleDigiAndRecProducer::produce().
|
inline |
Set the number of photoelectrons estimated for this hit.
| pe | Number of photoelectrons, including noise which affects the estimate. |
Definition at line 153 of file HcalHit.h.
References pe_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSimpleDigiAndRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set original position.
Definition at line 225 of file HcalHit.h.
Referenced by hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set the section for this hit.
| section | number |
Definition at line 166 of file HcalHit.h.
References section_.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSimpleDigiAndRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set the strip for this hit.
| strip | number |
Definition at line 178 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalRecProducer::produce(), hcal::HcalSimpleDigiAndRecProducer::produce(), and hcal::HcalSingleEndRecProducer::produce().
|
inline |
Set time difference (uncorrected)
| time |
Definition at line 196 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set toa of the negative end.
| time |
Definition at line 208 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
inline |
Set toa of the positive end.
| time |
Definition at line 202 of file HcalHit.h.
Referenced by hcal::HcalVetoProcessor::configure(), and hcal::HcalDoubleEndRecProducer::produce().
|
friend |
Print out the object.
Definition at line 15 of file HcalHit.cxx.
|
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 242 of file HcalHit.h.
Referenced by clear(), getMinPE(), and setMinPE().
|
private |
|
private |
|
private |
|
private |
section, layer, strip and end
Definition at line 245 of file HcalHit.h.
Referenced by getSection(), and setSection().
|
private |
|
private |
|
private |