28 float chi2,
int ndf,
int track_id = -1,
int pdg_id = 0,
29 int sim_hit_id = -1,
float edep = 0.f,
float noise = 0.f)
30 : layer_id_(layer_id),
59 int getLayerID()
const {
return layer_id_; }
60 int getStripID()
const {
return strip_id_; }
65 float getChi2()
const {
return chi2_; }
66 int getNDF()
const {
return ndf_; }
67 float getReducedChi2()
const {
return (ndf_ > 0) ? chi2_ / ndf_ : 0.f; }
81 void setLayerID(
int v) { layer_id_ = v; }
82 void setStripID(
int v) { strip_id_ = v; }
84 void setT0(
float v) {
t0_ = v; }
85 void setChi2(
float v) { chi2_ = v; }
86 void setNDF(
int v) { ndf_ = v; }
88 void setPdgID(
int v) {
pdg_id_ = v; }
90 void setEdep(
float v) {
edep_ = v; }
91 void setNoise(
float v) {
noise_ = v; }
93 friend std::ostream& operator<<(std::ostream& o,
const FittedSiStripHit& h) {
94 o <<
"[ FittedSiStripHit ]: layer=" << h.layer_id_
95 <<
" strip=" << h.strip_id_ <<
" amp=" << h.amplitude_ <<
" ADC"
96 <<
" t0=" << h.t0_ <<
" ns" <<
" chi2/ndf=" << h.chi2_ <<
"/" << h.ndf_
97 <<
" track_id=" << h.track_id_ <<
" pdg_id=" << h.pdg_id_
98 <<
" sim_hit_id=" << h.sim_hit_id_ <<
" edep=" << h.edep_ <<
" MeV"
99 <<
" noise=" << h.noise_ <<
" ADC";
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).
float noise_
Per-strip noise RMS [ADC counts]; 0 means unset.
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 getNoise() const
Per-strip noise RMS [ADC counts] (0 if unknown; clustering then falls back to the global StripCluster...
float amplitude_
Fitted peak amplitude [ADC counts], pedestal-subtracted.
float getT0() const
Fitted hit arrival time [ns] in the sample-window reference frame.