28 float chi2,
int ndf,
int track_id = -1,
int pdg_id = 0,
29 int sim_hit_id = -1,
float edep = 0.f)
30 : layer_id_(layer_id),
57 int getLayerID()
const {
return layer_id_; }
58 int getStripID()
const {
return strip_id_; }
63 float getChi2()
const {
return chi2_; }
64 int getNDF()
const {
return ndf_; }
65 float getReducedChi2()
const {
return (ndf_ > 0) ? chi2_ / ndf_ : 0.f; }
76 void setLayerID(
int v) { layer_id_ = v; }
77 void setStripID(
int v) { strip_id_ = v; }
79 void setT0(
float v) {
t0_ = v; }
80 void setChi2(
float v) { chi2_ = v; }
81 void setNDF(
int v) { ndf_ = v; }
83 void setPdgID(
int v) {
pdg_id_ = v; }
85 void setEdep(
float v) {
edep_ = v; }
87 friend std::ostream& operator<<(std::ostream& o,
const FittedSiStripHit& h) {
88 o <<
"[ FittedSiStripHit ]: layer=" << h.layer_id_
89 <<
" strip=" << h.strip_id_ <<
" amp=" << h.amplitude_ <<
" ADC"
90 <<
" t0=" << h.t0_ <<
" ns" <<
" chi2/ndf=" << h.chi2_ <<
"/" << h.ndf_
91 <<
" track_id=" << h.track_id_ <<
" pdg_id=" << h.pdg_id_
92 <<
" sim_hit_id=" << h.sim_hit_id_ <<
" edep=" << h.edep_ <<
" MeV";
Result of fitting a pulse shape to the ADC samples of a single readout strip.
int getPdgID() const
PDG particle ID of the particle that created this hit (0 if unknown).
int getSimHitID() const
Detector ID of the originating SimTrackerHit (-1 if unknown).
int track_id_
Geant4 track ID of the particle that created this hit.
float edep_
Energy deposited by the parent SimTrackerHit [MeV].
float t0_
Fitted hit time [ns] in sample-window frame.
int pdg_id_
PDG particle ID of the particle that created this hit.
int getTrackID() const
Geant4 track ID of the particle that created this hit (-1 if unknown).
int sim_hit_id_
Detector ID of the originating SimTrackerHit.
float getEdep() const
Energy deposited by the parent SimTrackerHit [MeV] (0 if unknown).
float getAmplitude() const
Fitted pedestal-subtracted peak amplitude [ADC counts].
float amplitude_
Fitted peak amplitude [ADC counts], pedestal-subtracted.
float getT0() const
Fitted hit arrival time [ns] in the sample-window reference frame.