2D representation of charge deposited in the TDC/wire plane More...
#include <Hit.h>
Public Member Functions | |
Hit () | |
Default constructor: a hit with no signal. More... | |
Hit (raw::ChannelID_t channel, raw::TDCtick_t start_tick, raw::TDCtick_t end_tick, float peak_time, float sigma_peak_time, float rms, float peak_amplitude, float sigma_peak_amplitude, float summedADC, float hit_integral, float hit_sigma_integral, short int multiplicity, short int local_index, float goodness_of_fit, int dof, geo::View_t view, geo::SigType_t signal_type, geo::WireID wireID) | |
Constructor: directly sets all the fields. More... | |
float | TimeDistanceAsRMS (float time) const |
Returns the distance of the specified time from peak, in RMS units. More... | |
Accessors | |
raw::TDCtick_t | StartTick () const |
Initial tdc tick for hit. More... | |
raw::TDCtick_t | EndTick () const |
Final tdc tick for hit. More... | |
float | PeakTime () const |
Time of the signal peak, in tick units. More... | |
float | SigmaPeakTime () const |
Uncertainty for the signal peak, in tick units. More... | |
float | RMS () const |
RMS of the hit shape, in tick units. More... | |
float | PeakAmplitude () const |
The estimated amplitude of the hit at its peak, in ADC units. More... | |
float | SigmaPeakAmplitude () const |
Uncertainty on estimated amplitude of the hit at its peak, in ADC units. More... | |
float | SummedADC () const |
The sum of calibrated ADC counts of the hit (0. by default) More... | |
float | Integral () const |
Integral under the calibrated signal waveform of the hit, in tick x ADC units. More... | |
float | SigmaIntegral () const |
short int | Multiplicity () const |
How many hits could this one be shared with. More... | |
short int | LocalIndex () const |
How well do we believe we know this hit? More... | |
float | GoodnessOfFit () const |
Degrees of freedom in the determination of the hit signal shape (-1 by default) More... | |
int | DegreesOfFreedom () const |
raw::ChannelID_t | Channel () const |
ID of the readout channel the hit was extracted from. More... | |
geo::View_t | View () const |
View for the plane of the hit. More... | |
geo::SigType_t | SignalType () const |
Signal type for the plane of the hit. More... | |
geo::WireID | WireID () const |
float | PeakTimePlusRMS (float sigmas=+1.) const |
Returns a time sigmas RMS away from the peak time. More... | |
float | PeakTimeMinusRMS (float sigmas=+1.) const |
Private Attributes | |
raw::ChannelID_t | fChannel |
ID of the readout channel the hit was extracted from. More... | |
raw::TDCtick_t | fStartTick |
initial tdc tick for hit More... | |
raw::TDCtick_t | fEndTick |
final tdc tick for hit More... | |
float | fPeakTime |
time of the signal peak, in tick units More... | |
float | fSigmaPeakTime |
uncertainty for the signal peak, in tick units More... | |
float | fRMS |
RMS of the hit shape, in tick units. More... | |
float | fPeakAmplitude |
the estimated amplitude of the hit at its peak, in ADC units More... | |
float | fSigmaPeakAmplitude |
uncertainty on estimated amplitude of the hit at its peak, in ADC units More... | |
float | fSummedADC |
the sum of calibrated ADC counts of the hit More... | |
float | fIntegral |
the integral under the calibrated signal waveform of the hit, in tick x ADC units More... | |
float | fSigmaIntegral |
the uncertainty of integral under the calibrated signal waveform of the hit, in ADC units More... | |
short int | fMultiplicity |
how many hits could this one be shared with More... | |
short int | fLocalIndex |
index of this hit among the Multiplicity() hits in the signal window More... | |
float | fGoodnessOfFit |
how well do we believe we know this hit? More... | |
int | fNDF |
degrees of freedom in the determination of the hit shape More... | |
geo::View_t | fView |
view for the plane of the hit More... | |
geo::SigType_t | fSignalType |
signal type for the plane of the hit More... | |
geo::WireID | fWireID |
WireID for the hit (Cryostat, TPC, Plane, Wire) More... | |
Friends | |
class | HitCreator |
std::ostream & | operator<< (std::ostream &o, const Hit &a) |
bool | operator< (const Hit &a, const Hit &b) |
2D representation of charge deposited in the TDC/wire plane
Hits are assumed to be made from deconvoluted, unipolar, calibrated signals. They identify a charge deposit in a specific location and time; the location is absolute and unique in the detector, while the time is relative to the start of sampling (tick time).
The version 14 of recob::Hit introduces the following changes:
recob::Hit::Hit | ( | ) |
Default constructor: a hit with no signal.
Definition at line 19 of file Hit.cxx.
recob::Hit::Hit | ( | raw::ChannelID_t | channel, |
raw::TDCtick_t | start_tick, | ||
raw::TDCtick_t | end_tick, | ||
float | peak_time, | ||
float | sigma_peak_time, | ||
float | rms, | ||
float | peak_amplitude, | ||
float | sigma_peak_amplitude, | ||
float | summedADC, | ||
float | hit_integral, | ||
float | hit_sigma_integral, | ||
short int | multiplicity, | ||
short int | local_index, | ||
float | goodness_of_fit, | ||
int | dof, | ||
geo::View_t | view, | ||
geo::SigType_t | signal_type, | ||
geo::WireID | wireID | ||
) |
Constructor: directly sets all the fields.
channel | ID of the readout channel the hit was extracted from |
start_tick | initial tdc tick for hit |
end_tick | final tdc tick for hit |
peak_time | tdc for the peak charge deposition |
sigma_peak_time | uncertainty for tdc of the peak |
rms | RMS of the hit shape |
peak_amplitude | the estimated amplitude of the hit at its peak |
sigma_peak_amplitude | the uncertainty on the estimated amplitude of the hit at its peak |
summedADC | the sum of calibrated ADC counts of the hit |
hit_integral | the integral under the calibrated signal waveform of the hit |
hit_sigma_integral | uncertainty on the integral under the calibrated signal waveform of the hit |
multiplicity | how many hits could this one be shared with |
local_index | index of this hit among the Multiplicity() hits in the signal window |
goodness_of_fit | how well do we believe we know this hit? |
dof | number of degrees of freedom in the determination of hit shape |
view | view for the plane of the hit |
signal_type | signal type for the plane of the hit |
wireID | WireID for the hit (Cryostat TPC Plane Wire) |
The tick parameters are real numbers, since they can in principle come from some processing.
Definition at line 41 of file Hit.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Uncertainty of integral under the calibrated signal waveform of the hit, in ADC units
Definition at line 224 of file Hit.h.
|
inline |
|
inline |
How many hits could this one be shared with.
Index of this hit among the Multiplicity() hits in the signal window (-1 by default)
Definition at line 226 of file Hit.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns a time sigmas RMS away from the peak time.
sigmas | the number of RMS units to move away |
PeakTimePlusRMS() returns PeakTime() + sigmas x RMS(); PeakTimeMinusRMS() returns PeakTime() - sigmas x RMS().
Definition at line 236 of file Hit.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the distance of the specified time from peak, in RMS units.
time | the time, in TDC tick units |
This returns (ticks - PeakTime()) / RMS(). There is no protection in case RMS is 0!
Definition at line 242 of file Hit.h.
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
index of this hit among the Multiplicity() hits in the signal window
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |