LDMX Software
TrigScintHit.cxx
1
7#include "TrigScint/Event/TrigScintHit.h"
8
9/*~~~~~~~~~~~~~~~~*/
10/* C++ StdLib */
11/*~~~~~~~~~~~~~~~~*/
12#include <iostream>
13
14ClassImp(ldmx::TrigScintHit)
15
16 namespace ldmx {
17 void TrigScintHit::Clear(Option_t * option) {
19 barID_ = -1;
20 moduleID_ = -1;
21 beamEfrac_ = 0;
22 }
23
24 void TrigScintHit::Print(Option_t * option) const {
25 std::cout << "TrigScintHit { "
26 << "id: " << std::hex << getID() << std::dec
27 << ", energy: " << getEnergy() << "MeV, time: " << getTime()
28 << "ns, amplitude: " << getAmplitude() << ", pe: " << getPE()
29 << "}" << std::endl;
30 }
31} // namespace ldmx
float getEnergy() const
Get the calorimetric energy of the hit, corrected for sampling factors [MeV].
float getTime() const
Get the time of the hit [ns].
int getID() const
Get the detector ID.
float getAmplitude() const
Get the amplitude of the hit, which is proportional to the signal in the calorimeter cell without sam...
void Clear()
Clear the data in the object.
Definition HcalHit.cxx:9
void Print() const
Print out the object.
Definition HcalHit.cxx:15
float beamEfrac_
The fraction of energy associated with beam electrons.
float getPE() const
Get the hit pe.