2#include "Tracking/Event/SimSiStripHit.h"
9 std::vector<short> samples,
long time,
10 int track_id,
int pdg_id,
int sim_hit_id,
17 sim_hit_id_(sim_hit_id),
30std::ostream& operator<<(std::ostream& output,
const SimSiStripHit& hit) {
31 output <<
"[ SimSiStripHit ]: layer=" << hit.
layer_id_
32 <<
" strip=" << hit.
strip_id_ <<
" Samples: { ";
33 for (
auto isample{0}; isample < (int)(hit.
samples_.size() - 1); ++isample)
34 output << hit.
samples_[isample] <<
", ";
38 <<
" edep=" << hit.
edep_ <<
" MeV" << std::endl;
Abstract base class for a silicon strip detector hit.
long time_
The hit time stamp in units of ns.
void clearBase()
Clear the fields owned by the base class.
std::vector< short > samples_
16 bit ADC samples associated with this hit.
Truth (Monte Carlo) representation of a digitized silicon strip detector hit.
float edep_
Energy deposited by the parent SimTrackerHit [MeV].
void clear() override
Clear the samples, time stamp, sensor position and truth fields.
int strip_id_
Readout strip index within the sensor.
int track_id_
Geant4 track ID of the particle that created this hit.
int layer_id_
Sensor layer identifier (from tracking geometry).
int pdg_id_
PDG particle ID of the particle that created this hit.
SimSiStripHit()=default
Default constructor.
int sim_hit_id_
Detector ID of the originating SimTrackerHit.