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
16namespace ldmx {
17void TrigScintHit::clear(Option_t* option) {
19 bar_id_ = -1;
20 module_id_ = -1;
21 beam_efrac_ = 0;
22}
23
24std::ostream& operator<<(std::ostream& o, const TrigScintHit& c) {
25 return o << "TrigScintHit { " << "id: " << std::hex << c.getID() << std::dec
26 << ", energy: " << c.getEnergy() << "MeV, time: " << c.getTime()
27 << "ns, amplitude: " << c.getAmplitude() << ", pe: " << c.getPE()
28 << "}";
29}
30} // 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
float beam_efrac_
The fraction of energy associated with beam electrons.
float getPE() const
Get the hit pe.