LDMX Software
EcalHit.cxx
1#include "Ecal/Event/EcalHit.h"
2
3// STL
4#include <iostream>
5
6ClassImp(ldmx::EcalHit)
7
8 namespace ldmx {
10
11 void EcalHit::Print() const {
12 std::cout << "EcalHit { "
13 << "id: " << std::hex << getID() << std::dec
14 << ", energy: " << getEnergy() << "MeV, time: " << getTime()
15 << "ns, amplitude: " << getAmplitude() << "}" << std::endl;
16 }
17} // 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].
void Clear()
Clear the data in the object.
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...
Stores reconstructed hit information from the ECAL.
Definition EcalHit.h:19
void Clear()
Clear the data in the object.
void Print() const
Print a text representation of this object.