2#ifndef TRACKING_EVENT_SIMSISTRIPHIT_H_
3#define TRACKING_EVENT_SIMSISTRIPHIT_H_
14#include "Tracking/Event/SiStripHit.h"
46 SimSiStripHit(
int layer_id,
int strip_id, std::vector<short> samples,
47 long time,
int track_id = -1,
int pdg_id = 0,
48 int sim_hit_id = -1,
float edep = 0.f);
62 void clear()
override;
108 friend std::ostream&
operator<<(std::ostream& output,
Abstract base class for a silicon strip detector hit.
Truth (Monte Carlo) representation of a digitized silicon strip detector hit.
virtual ~SimSiStripHit()=default
Destructor.
int getTrackID() const
Get the Geant4 track ID of the particle that created this hit (-1 if unknown).
void setSimHitID(int v)
Set the detector ID of the originating SimTrackerHit.
void setEdep(float v)
Set the energy deposited by the parent SimTrackerHit [MeV].
int getSimHitID() const
Get the detector ID of the originating SimTrackerHit (-1 if unknown).
float getEdep() const
Get the energy deposited by the parent SimTrackerHit [MeV] (0 if unknown).
void setPdgID(int v)
Set the PDG particle ID of the particle that created this 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.
void setLayerID(int v)
Set the sensor layer identifier.
friend std::ostream & operator<<(std::ostream &output, const SimSiStripHit &hit)
Overload the stream insertion operator to output a string representation of this SimSiStripHit.
int layer_id_
Sensor layer identifier (from tracking geometry).
void setStripID(int v)
Set the readout strip index within the sensor.
ClassDefOverride(SimSiStripHit, 1)
Class declaration needed by the ROOT dictionary.
int getPdgID() const
Get the PDG particle ID of the particle that created this hit (0 if unknown).
int pdg_id_
PDG particle ID of the particle that created this hit.
void setTrackID(int v)
Set the Geant4 track ID of the particle that created this hit.
int getLayerID() const
Get the sensor layer identifier.
int getStripID() const
Get the readout strip index within the sensor.
SimSiStripHit()=default
Default constructor.
int sim_hit_id_
Detector ID of the originating SimTrackerHit.