2#include "Tracking/Event/RawSiStripHit.h"
7 std::vector<short> samples,
long time,
8 int track_id,
int pdg_id,
int sim_hit_id,
10 : layer_id_(layer_id),
16 sim_hit_id_(sim_hit_id),
30std::ostream &operator<<(std::ostream &output,
const RawSiStripHit &hit) {
31 output <<
"[ RawSiStripHit ]: 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;
Implementation of a raw digitized hit from a silicon strip detector.
long time_
The hit time stamp in units of ns.
int layer_id_
Sensor layer identifier (from tracking geometry).
int track_id_
Geant4 track ID of the particle that created this hit.
RawSiStripHit()=default
Default constructor.
void clear()
Clear the vector of samples and set the timestamp to 0.
int sim_hit_id_
Detector ID of the originating SimTrackerHit.
std::vector< short > samples_
16 bit ADC samples associated with this hit.
int strip_id_
Readout strip index within the sensor.
float edep_
Energy deposited by the parent SimTrackerHit [MeV].
int pdg_id_
PDG particle ID of the particle that created this hit.