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 isNoise_ = false;
18}
19
21 std::cout << "CalorimeterHit { "
22 << "id: " << std::hex << id_ << std::dec << ", energy: " << energy_
23 << "MeV, time: " << time_ << "ns, amplitude: " << amplitude_ << "}"
24 << std::endl;
25}
26} // 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 Print() const
Print out the object.
void Clear()
Clear the data in the object.
float ypos_
Y Position of the hit.
bool isNoise_
Is this a noise hit?
float zpos_
Z Position of the hit.
float amplitude_
The amplitude value before sampling corrections.