2#ifndef TRACKING_EVENT_RAWSISTRIPHIT_H_
3#define TRACKING_EVENT_RAWSISTRIPHIT_H_
44 RawSiStripHit(
int layer_id,
int strip_id, std::vector<short> samples,
45 long time,
int track_id = -1,
int pdg_id = 0,
46 int sim_hit_id = -1,
float edep = 0.f);
136 friend std::ostream &
operator<<(std::ostream &output,
Implementation of a raw digitized hit from a silicon strip detector.
long getTime() const
Get the time stamp of this hit.
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.
virtual ~RawSiStripHit()
Destructor.
int getSimHitID() const
Get the detector ID of the originating SimTrackerHit (-1 if unknown).
int sim_hit_id_
Detector ID of the originating SimTrackerHit.
int getLayerID() const
Get the sensor layer identifier.
std::vector< short > samples_
16 bit ADC samples associated with this hit.
int strip_id_
Readout strip index within the sensor.
std::vector< short > getSamples() const
Get the digitized (ADC) samples composing this hit.
int getTrackID() const
Get the Geant4 track ID of the particle that created this hit (-1 if unknown).
bool operator<(const RawSiStripHit &rhs) const
When the less than operator is used for comparison, return true if this hit's time is less than the h...
float edep_
Energy deposited by the parent SimTrackerHit [MeV].
ClassDef(RawSiStripHit, 3)
Class declaration needed by the ROOT dictionary.
friend std::ostream & operator<<(std::ostream &o, const RawSiStripHit &d)
Print the string representation of this object.
int pdg_id_
PDG particle ID of the particle that created this hit.
int getPdgID() const
Get the PDG particle ID of the particle that created this hit (0 if unknown).
int getStripID() const
Get the readout strip index within the sensor.
float getEdep() const
Get the energy deposited by the parent SimTrackerHit [MeV] (0 if unknown).