LDMX Software
CalorimeterHit.cxx
2
3// STL
4#include <iostream>
5
7
8namespace ldmx {
10 id_ = 0;
11 amplitude_ = 0;
12 energy_ = 0;
13 time_ = 0;
14 xpos_ = 0;
15 ypos_ = 0;
16 zpos_ = 0;
17 is_noise_ = false;
18}
19
20std::ostream& operator<<(std::ostream& o, const CalorimeterHit& c) {
21 return o << "CalorimeterHit { " << "id: " << std::hex << c.id_ << std::dec
22 << ", energy: " << c.energy_ << "MeV, time: " << c.time_
23 << "ns, amplitude: " << c.amplitude_ << "}";
24}
25} // namespace ldmx
Class that represents a reconstructed hit in a calorimeter cell within the detector.
Represents a reconstructed hit in a calorimeter cell within the detector.
float time_
The time of the hit.
float xpos_
X Position of the hit.
int id_
The detector ID of the hit.
float energy_
The energy of the hit corrected by a sampling fraction.
void clear()
Clear the data in the object.
float ypos_
Y Position of the hit.
float zpos_
Z Position of the hit.
bool is_noise_
Is this a noise hit?
float amplitude_
The amplitude value before sampling corrections.