9std::ostream& operator<<(std::ostream& o,
const SimTrackerHit& hit) {
10 return o <<
"SimTrackerHit { " <<
"id: " << hit.
id_ <<
", "
12 <<
"moduleID: " << hit.
module_id_ <<
", " <<
"position: ( " << hit.
x_
13 <<
", " << hit.
y_ <<
", " << hit.
z_ <<
" ), "
14 <<
"edep: " << hit.
edep_ <<
", " <<
"time: " << hit.
time_ <<
", "
15 <<
"momentum: ( " << hit.
px_ <<
", " << hit.
py_ <<
", " << hit.
pz_
Class which encapsulates information from a hit in a simulated tracking detector.
Represents a simulated tracker hit in the simulation.
float time_
The global time of the hit.
void setPosition(const float x_, const float y_, const float z_)
Set the position of the hit [mm].
float edep_
The energy deposited on the hit.
void clear()
Reset the SimTrackerHit object.
int pdg_id_
The Sim PDG ID.
virtual ~SimTrackerHit()
Class destructor.
int module_id_
The module ID.
float energy_
The total energy.
int track_id_
The Sim Track ID.
void setMomentum(const float px, const float py, const float pz)
Set the momentum of the particle at the position at which the hit took place [GeV].
int layer_id_
The layer ID.
float path_length_
The path length of the hit.