LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
recob::Hit Class Reference

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
 Initial tdc tick for hit. More...
 
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
 Initial tdc tick for hit. More...
 
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
 Initial tdc tick for hit. More...
 
float PeakTimePlusRMS (float sigmas=+1.) const
 Returns a time sigmas RMS away from the peak time. More...
 
float PeakTimeMinusRMS (float sigmas=+1.) const
 Returns a time sigmas RMS away from the peak time. More...
 

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)
 

Detailed Description

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:

Definition at line 49 of file Hit.h.

Constructor & Destructor Documentation

recob::Hit::Hit ( )

Default constructor: a hit with no signal.

Definition at line 21 of file Hit.cxx.

23  , fStartTick(0)
24  , fEndTick(0)
25  , fPeakTime(0.)
26  , fSigmaPeakTime(-1.)
27  , fRMS(0.)
28  , fPeakAmplitude(0.)
29  , fSigmaPeakAmplitude(-1.)
30  , fSummedADC(0.)
31  , fIntegral(0.)
32  , fSigmaIntegral(-1.)
33  , fMultiplicity(0)
34  , fLocalIndex(-1)
35  , fGoodnessOfFit(0.)
36  , fNDF(-1)
39  , fWireID() // invalid
40  {}
float fPeakAmplitude
the estimated amplitude of the hit at its peak, in ADC units
Definition: Hit.h:62
raw::TDCtick_t fStartTick
initial tdc tick for hit
Definition: Hit.h:57
Who knows?
Definition: geo_types.h:94
float fSummedADC
the sum of calibrated ADC counts of the hit
Definition: Hit.h:64
Unknown view.
Definition: geo_types.h:83
float fSigmaPeakAmplitude
uncertainty on estimated amplitude of the hit at its peak, in ADC units
Definition: Hit.h:63
geo::View_t fView
view for the plane of the hit
Definition: Hit.h:71
geo::SigType_t fSignalType
signal type for the plane of the hit
Definition: Hit.h:72
raw::TDCtick_t fEndTick
final tdc tick for hit
Definition: Hit.h:58
float fSigmaPeakTime
uncertainty for the signal peak, in tick units
Definition: Hit.h:60
short int fMultiplicity
how many hits could this one be shared with
Definition: Hit.h:67
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:31
float fPeakTime
time of the signal peak, in tick units
Definition: Hit.h:59
raw::ChannelID_t fChannel
ID of the readout channel the hit was extracted from.
Definition: Hit.h:56
int fNDF
degrees of freedom in the determination of the hit shape
Definition: Hit.h:70
float fRMS
RMS of the hit shape, in tick units.
Definition: Hit.h:61
geo::WireID fWireID
WireID for the hit (Cryostat, TPC, Plane, Wire)
Definition: Hit.h:73
float fSigmaIntegral
the uncertainty of integral under the calibrated signal waveform of the hit, in ADC units ...
Definition: Hit.h:66
float fGoodnessOfFit
how well do we believe we know this hit?
Definition: Hit.h:69
short int fLocalIndex
index of this hit among the Multiplicity() hits in the signal window
Definition: Hit.h:68
float fIntegral
the integral under the calibrated signal waveform of the hit, in tick x ADC units ...
Definition: Hit.h:65
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.

Parameters
channelID of the readout channel the hit was extracted from
start_tickinitial tdc tick for hit
end_tickfinal tdc tick for hit
peak_timetdc for the peak charge deposition
sigma_peak_timeuncertainty for tdc of the peak
rmsRMS of the hit shape
peak_amplitudethe estimated amplitude of the hit at its peak
sigma_peak_amplitudethe uncertainty on the estimated amplitude of the hit at its peak
summedADCthe sum of calibrated ADC counts of the hit
hit_integralthe integral under the calibrated signal waveform of the hit
hit_sigma_integraluncertainty on the integral under the calibrated signal waveform of the hit
multiplicityhow many hits could this one be shared with
local_indexindex of this hit among the Multiplicity() hits in the signal window
goodness_of_fithow well do we believe we know this hit?
dofnumber of degrees of freedom in the determination of hit shape
viewview for the plane of the hit
signal_typesignal type for the plane of the hit
wireIDWireID 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 43 of file Hit.cxx.

63  : fChannel(channel)
64  , fStartTick(start_tick)
65  , fEndTick(end_tick)
66  , fPeakTime(peak_time)
67  , fSigmaPeakTime(sigma_peak_time)
68  , fRMS(rms)
69  , fPeakAmplitude(peak_amplitude)
70  , fSigmaPeakAmplitude(sigma_peak_amplitude)
71  , fSummedADC(summedADC)
72  , fIntegral(hit_integral)
73  , fSigmaIntegral(hit_sigma_integral)
74  , fMultiplicity(multiplicity)
75  , fLocalIndex(local_index)
76  , fGoodnessOfFit(goodness_of_fit)
77  , fNDF(dof)
78  , fView(view)
79  , fSignalType(signal_type)
80  , fWireID(wireID)
81  {}
float fPeakAmplitude
the estimated amplitude of the hit at its peak, in ADC units
Definition: Hit.h:62
raw::TDCtick_t fStartTick
initial tdc tick for hit
Definition: Hit.h:57
float fSummedADC
the sum of calibrated ADC counts of the hit
Definition: Hit.h:64
float fSigmaPeakAmplitude
uncertainty on estimated amplitude of the hit at its peak, in ADC units
Definition: Hit.h:63
geo::View_t fView
view for the plane of the hit
Definition: Hit.h:71
geo::SigType_t fSignalType
signal type for the plane of the hit
Definition: Hit.h:72
raw::TDCtick_t fEndTick
final tdc tick for hit
Definition: Hit.h:58
float fSigmaPeakTime
uncertainty for the signal peak, in tick units
Definition: Hit.h:60
short int fMultiplicity
how many hits could this one be shared with
Definition: Hit.h:67
float fPeakTime
time of the signal peak, in tick units
Definition: Hit.h:59
raw::ChannelID_t fChannel
ID of the readout channel the hit was extracted from.
Definition: Hit.h:56
int fNDF
degrees of freedom in the determination of the hit shape
Definition: Hit.h:70
float fRMS
RMS of the hit shape, in tick units.
Definition: Hit.h:61
geo::WireID fWireID
WireID for the hit (Cryostat, TPC, Plane, Wire)
Definition: Hit.h:73
float fSigmaIntegral
the uncertainty of integral under the calibrated signal waveform of the hit, in ADC units ...
Definition: Hit.h:66
float fGoodnessOfFit
how well do we believe we know this hit?
Definition: Hit.h:69
short int fLocalIndex
index of this hit among the Multiplicity() hits in the signal window
Definition: Hit.h:68
float fIntegral
the integral under the calibrated signal waveform of the hit, in tick x ADC units ...
Definition: Hit.h:65

Member Function Documentation

raw::ChannelID_t recob::Hit::Channel ( ) const
inline
int recob::Hit::DegreesOfFreedom ( ) const
inline

Initial tdc tick for hit.

Definition at line 230 of file Hit.h.

References fNDF.

Referenced by cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), cluster::ClusterCrawlerAlg::MergeHits(), and recob::operator<<().

230 { return fNDF; }
int fNDF
degrees of freedom in the determination of the hit shape
Definition: Hit.h:70
raw::TDCtick_t recob::Hit::EndTick ( ) const
inline

Final tdc tick for hit.

Definition at line 218 of file Hit.h.

References fEndTick.

Referenced by tss::Hit2D::EndTick(), hit::HitAnaAlg::FillHitInfo(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), cluster::ClusterCrawlerAlg::MergeHits(), and recob::operator<<().

218 { return fEndTick; }
raw::TDCtick_t fEndTick
final tdc tick for hit
Definition: Hit.h:58
float recob::Hit::GoodnessOfFit ( ) const
inline

Degrees of freedom in the determination of the hit signal shape (-1 by default)

Definition at line 229 of file Hit.h.

References fGoodnessOfFit.

Referenced by hit::GausHitFinderAna::analyze(), hit::HitAnaAlg::FillHitInfo(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), tca::LongPulseHit(), and recob::operator<<().

229 { return fGoodnessOfFit; }
float fGoodnessOfFit
how well do we believe we know this hit?
Definition: Hit.h:69
float recob::Hit::Integral ( ) const
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 225 of file Hit.h.

References fIntegral.

Referenced by cluster::ClusterCrawlerAlg::AddHit(), trkf::SpacePointAna::analyze(), hit::GausHitFinderAna::analyze(), NuShowerEff::analyze(), calo::TrackCalorimetryAlg::AnalyzeHit(), calo::LinearEnergyAlg::CalculateHitEnergy(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), calo::CalorimetryAlg::dEdx_AREA(), trkf::Track3DKalmanSPS::dQdxCalc(), microboone::CosmicRemovalAna::FillAllTagsInfo(), hit::HitAnaAlg::FillHitInfo(), microboone::CosmicRemovalAna::FillMCInfo(), lar_pandora::PFParticleHitDumper::FillReco2D(), hit::HitAnaAlg::FindAndStoreHitsInRange(), shower::EMShowerAlg::FindTrueParticle(), ClusteringValidation::ClusterAnalyser::FindTrueTrack(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), util::PxHitConverter::HitToPxHit(), lar_cluster3d::StandardHit3DBuilder::makeHitPair(), lar_cluster3d::StandardHit3DBuilder::makeHitTriplet(), cluster::ClusterCrawlerAlg::MergeHits(), recob::operator<<(), shwf::ShowerCheater::produce(), cluster::LineCluster::produce(), cluster::SimpleLineCluster::produce(), cluster::ClusterCrawler::produce(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), and reco::RecobClusterParameters::UpdateParameters().

225 { return fIntegral; }
float fIntegral
the integral under the calibrated signal waveform of the hit, in tick x ADC units ...
Definition: Hit.h:65
short int recob::Hit::LocalIndex ( ) const
inline

How well do we believe we know this hit?

Definition at line 228 of file Hit.h.

References fLocalIndex.

Referenced by cluster::ClusterCrawlerAlg::AddHit(), cluster::ClusterCrawlerAlg::ChkClusterNearbyHits(), recob::operator<<(), and cluster::ClusterCrawlerAlg::SortByMultiplet().

228 { return fLocalIndex; }
short int fLocalIndex
index of this hit among the Multiplicity() hits in the signal window
Definition: Hit.h:68
short int recob::Hit::Multiplicity ( ) const
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 227 of file Hit.h.

References fMultiplicity.

Referenced by cluster::ClusterCrawlerAlg::AddHit(), hit::GausHitFinderAna::analyze(), cluster::ClusterCrawlerAlg::ChkClusterNearbyHits(), hit::HitAnaAlg::FindAndStoreHitsInRange(), tca::LongPulseHit(), cluster::ClusterCrawlerAlg::MergeHits(), and recob::operator<<().

227 { return fMultiplicity; }
short int fMultiplicity
how many hits could this one be shared with
Definition: Hit.h:67
float recob::Hit::PeakTime ( ) const
inline

Time of the signal peak, in tick units.

Definition at line 219 of file Hit.h.

References fPeakTime.

Referenced by cluster::ClusterCrawlerAlg::AddHit(), cluster::ClusterAna::analyze(), pfpf::PFPAna::analyze(), trkf::SpacePointAna::analyze(), hit::GausHitFinderAna::analyze(), calo::LinearEnergyAlg::CalculateHitEnergy(), lar_pandora::LArPandoraOutput::CalculateT0(), cluster::ClusterCrawlerAlg::ChkClusterNearbyHits(), cluster::ClusterCrawlerAlg::ClusterLoop(), lar_cluster3d::StandardHit3DBuilder::CollectArtHits(), apa::DisambigAlg::CompareViews(), trkf::SpacePointAlg::compatible(), shower::EMShowerAlg::Construct3DPoint(), trkf::SpacePointAlg::correctedTime(), cluster::SmallClusterFinderAlg::CreateHighHitlist(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), calo::CalorimetryAlg::dEdx_AMP(), calo::CalorimetryAlg::dEdx_AREA(), cluster::fuzzyClusterAlg::DistanceBetweenHits(), trkf::BezierTrackerAlgorithm::EvaluateOccupancy(), cluster::HoughBaseAlg::FastTransform(), trkf::SpacePointAlg::fillComplexSpacePoint(), hit::HitAnaAlg::FillHitInfo(), microboone::CosmicRemovalAna::FillMCInfo(), lar_pandora::PFParticleHitDumper::FillReco2D(), trkf::SpacePointAlg::fillSpacePoint(), hit::HitAnaAlg::FindAndStoreHitsInRange(), apa::DisambigAlg::FindChanTimeEndPts(), cluster::SmallClusterFinderAlg::FindSmallClusters(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), ems::EMShower3D::GetCloseHits(), pma::ProjectionMatchingAlg::GetCloseHits(), trkf::BezierTrack::GetClosestApproach(), lar_cluster3d::PrincipalComponentsAlg::getHit2DPocaToAxis(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), calo::Calorimetry::GetPitch(), pma::Track3D::GetUnconstrainedProj3D(), shower::TCShowerAlg::goodHit(), ems::Hit2D::Hit2D(), tss::Hit2D::Hit2D(), pma::Hit3D::Hit3D(), cluster::MergeClusterAlg::HitCoordinates(), shower::EMShowerAlg::HitCoordinates(), sppt::HitTimeComparison(), util::PxHitConverter::HitToPxHit(), hit::DisambigCheater::InitHitToWids(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), shwf::ShowerReco::LongTransEnergy(), apa::DisambigAlg::MakeCloseHits(), apa::DisambigAlg::MakeDisambigHit(), trkf::Track3DKalmanHitAlg::makeSeed(), trkf::SpacePointAlg::makeSpacePoints(), cluster::ClusterCrawlerAlg::MergeHits(), lar_cluster3d::Hit2DSetCompare::operator()(), recob::operator<<(), shower::EMShowerAlg::OrderShowerHits(), tss::Hit2D::PeakTime(), PeakTimePlusRMS(), lar_pandora::LArPandoraEventDump::PrintHit(), apa::DisambigAlg::RunDisambig(), evd::HitSelector::SaveHits(), cluster::SmallClusterFinderAlg::SelectLocalHitlist(), lar_cluster3d::SetHitTimeOrder(), shower::TCShowerTemplateMaker::showerProfileTrue(), TimeDistanceAsRMS(), apa::DisambigAlg::TrivialDisambig(), and cluster::ClusterCrawlerAlg::VtxConstraint().

219 { return fPeakTime; }
float fPeakTime
time of the signal peak, in tick units
Definition: Hit.h:59
float recob::Hit::PeakTimeMinusRMS ( float  sigmas = +1.) const
inline

Returns a time sigmas RMS away from the peak time.

Parameters
sigmasthe number of RMS units to move away
Returns
the shifted time in TDC ticks

PeakTimePlusRMS() returns PeakTime() + sigmas x RMS(); PeakTimeMinusRMS() returns PeakTime() - sigmas x RMS().

Note
StartTime() of recob::Hit version <=13 was defined by GausHitFinder to be PeakTimePlusRMS(-1.), and EndTime() was PeakTimePlusRMS(+1.).

Definition at line 240 of file Hit.h.

References PeakTimePlusRMS().

Referenced by hit::GausHitFinderAna::analyze(), lar_pandora::LArPandoraHelper::BuildMCParticleHitMaps(), t0::IndirectHitParticleAssns::CreateHitParticleAssociations(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), hit::HitAnaAlg::FindAndStoreHitsInRange(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), apa::DisambigAlg::HitsOverlapInTime(), cheat::BackTracker::HitToAvgSimIDEs(), cheat::BackTracker::HitToSimIDEs_Ps(), cheat::BackTracker::HitToTrackIDEs(), hit::DisambigCheater::InitHitToWids(), apa::DisambigAlg::MakeCloseHits(), cluster::ClusterCrawlerAlg::MergeHits(), cheat::BackTracker::TrackIdsToHits_Ps(), cheat::BackTracker::TrackIdToHits_Ps(), and reco::RecobClusterParameters::UpdateParameters().

241  { return PeakTimePlusRMS(-sigmas); }
float PeakTimePlusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:237
float recob::Hit::PeakTimePlusRMS ( float  sigmas = +1.) const
inline

Returns a time sigmas RMS away from the peak time.

Parameters
sigmasthe number of RMS units to move away
Returns
the shifted time in TDC ticks

PeakTimePlusRMS() returns PeakTime() + sigmas x RMS(); PeakTimeMinusRMS() returns PeakTime() - sigmas x RMS().

Note
StartTime() of recob::Hit version <=13 was defined by GausHitFinder to be PeakTimePlusRMS(-1.), and EndTime() was PeakTimePlusRMS(+1.).

Definition at line 237 of file Hit.h.

References PeakTime(), and RMS().

Referenced by hit::GausHitFinderAna::analyze(), lar_pandora::LArPandoraHelper::BuildMCParticleHitMaps(), t0::IndirectHitParticleAssns::CreateHitParticleAssociations(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), hit::HitAnaAlg::FindAndStoreHitsInRange(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), apa::DisambigAlg::HitsOverlapInTime(), cheat::BackTracker::HitToAvgSimIDEs(), cheat::BackTracker::HitToSimIDEs_Ps(), cheat::BackTracker::HitToTrackIDEs(), hit::DisambigCheater::InitHitToWids(), apa::DisambigAlg::MakeCloseHits(), cluster::ClusterCrawlerAlg::MergeHits(), PeakTimeMinusRMS(), cheat::BackTracker::TrackIdsToHits_Ps(), cheat::BackTracker::TrackIdToHits_Ps(), and reco::RecobClusterParameters::UpdateParameters().

238  { return PeakTime() + sigmas * RMS(); }
float RMS() const
RMS of the hit shape, in tick units.
Definition: Hit.h:221
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
float recob::Hit::SigmaIntegral ( ) const
inline

Initial tdc tick for hit.

Definition at line 226 of file Hit.h.

References fSigmaIntegral.

Referenced by hit::GausHitFinderAna::analyze(), hit::HitAnaAlg::FillHitInfo(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), cluster::ClusterCrawlerAlg::MergeHits(), and recob::operator<<().

226 { return fSigmaIntegral; }
float fSigmaIntegral
the uncertainty of integral under the calibrated signal waveform of the hit, in ADC units ...
Definition: Hit.h:66
float recob::Hit::SigmaPeakAmplitude ( ) const
inline

Uncertainty on estimated amplitude of the hit at its peak, in ADC units.

Definition at line 223 of file Hit.h.

References fSigmaPeakAmplitude.

Referenced by hit::HitAnaAlg::FillHitInfo(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), cluster::ClusterCrawlerAlg::MergeHits(), and recob::operator<<().

223 { return fSigmaPeakAmplitude; }
float fSigmaPeakAmplitude
uncertainty on estimated amplitude of the hit at its peak, in ADC units
Definition: Hit.h:63
geo::SigType_t recob::Hit::SignalType ( ) const
inline

Signal type for the plane of the hit.

ID of the wire the hit is on (Cryostat, TPC, Plane, Wire)

Definition at line 232 of file Hit.h.

References fSignalType.

Referenced by trkf::Track3DKalmanSPS::dQdxCalc(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), cluster::ClusterCrawlerAlg::MergeHits(), recob::operator<<(), and shwf::ShowerCheater::produce().

232 { return fSignalType; }
geo::SigType_t fSignalType
signal type for the plane of the hit
Definition: Hit.h:72
float recob::Hit::SummedADC ( ) const
inline
float recob::Hit::TimeDistanceAsRMS ( float  time) const
inline

Returns the distance of the specified time from peak, in RMS units.

Parameters
timethe time, in TDC tick units
Returns
the distance of the specified time from peak, in RMS units

This returns (ticks - PeakTime()) / RMS(). There is no protection in case RMS is 0!

Definition at line 243 of file Hit.h.

References PeakTime(), and RMS().

244  { return (time - PeakTime()) / RMS(); }
float RMS() const
RMS of the hit shape, in tick units.
Definition: Hit.h:221
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
geo::WireID recob::Hit::WireID ( ) const
inline

Initial tdc tick for hit.

Definition at line 234 of file Hit.h.

References fWireID.

Referenced by ClusteringValidation::ClusterAnalyser::Analyse(), cluster::ClusterAna::analyze(), pfpf::PFPAna::analyze(), trkf::SpacePointAna::analyze(), hit::GausHitFinderAna::analyze(), calo::TrackCalorimetryAlg::AnalyzeHit(), cluster::ClusterCrawlerAlg::areInSameMultiplet(), lar_pandora::LArPandoraOutput::BuildClusters(), mvapid::MVAAlg::CalcSegmentdEdxDist(), lar_pandora::LArPandoraOutput::CalculateT0(), evd::HitSelector::ChangeHit(), lar_cluster3d::StandardHit3DBuilder::CollectArtHits(), compareHit(), trkf::SpacePointAlg::compatible(), shower::EMShowerAlg::Construct3DPoint(), trkf::SpacePointAlg::correctedTime(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), tss::Hit2D::Cryo(), calo::CalorimetryAlg::dEdx_AMP(), calo::CalorimetryAlg::dEdx_AREA(), trkf::Track3DKalmanSPS::dQdxCalc(), ems::EndPoint::EndPoint(), trkf::BezierTrackerAlgorithm::EvaluateOccupancy(), cluster::HoughBaseAlg::FastTransform(), trkf::KHitContainerWireLine::fill(), trkf::KHitContainerWireX::fill(), trkf::SpacePointAlg::fillComplexSpacePoint(), lar_pandora::PFParticleHitDumper::FillReco2D(), lar_pandora::PFParticleHitDumper::FillReco3D(), trkf::SpacePointAlg::fillSpacePoint(), apa::DisambigAlg::FindChanTimeEndPts(), lar_cluster3d::StandardHit3DBuilder::findGoodHitPairs(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), ems::EMShower3D::GetCloseHits(), pma::ProjectionMatchingAlg::GetCloseHits(), trkf::BezierTrack::GetClosestApproach(), lar_cluster3d::PrincipalComponentsAlg::getHit2DPocaToAxis(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), calo::Calorimetry::GetPitch(), pma::Track3D::GetUnconstrainedProj3D(), shower::TCShowerAlg::goodHit(), ems::Hit2D::Hit2D(), tss::Hit2D::Hit2D(), pma::Hit3D::Hit3D(), lar_cluster3d::SpacePointHit3DBuilder::Hit3DBuilder(), cluster::MergeClusterAlg::HitCoordinates(), shower::EMShowerAlg::HitCoordinates(), shower::EMShowerAlg::HitPosition(), util::PxHitConverter::HitToPxHit(), hit::HitFilterAlg::IsGoodHit(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), shwf::ShowerReco::LongTransEnergy(), lar_cluster3d::StandardHit3DBuilder::makeDeadChannelPair(), lar_cluster3d::StandardHit3DBuilder::makeHitPair(), lar_cluster3d::StandardHit3DBuilder::makeHitTriplet(), trkf::Track3DKalmanHitAlg::makeSeed(), trkf::SpacePointAlg::makeSpacePoints(), cluster::ClusterCrawlerAlg::MergeHits(), recob::operator<<(), shower::EMShowerAlg::OrderShowerHits(), cluster::ClusterCrawler::produce(), trkf::TrackKalmanCheater::produce(), evd::HitSelector::SaveHits(), trkf::SpacePointAlg::separation(), shower::TCShowerTemplateMaker::showerProfileTrue(), cluster::ClusterCrawlerAlg::SortByMultiplet(), SortByWire(), cluster::sortHitsByWire(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), tss::Hit2D::TPC(), reco::RecobClusterParameters::UpdateParameters(), reco::ClusterParameters::UpdateParameters(), and cluster::ClusterCrawlerAlg::VtxConstraint().

234 { return fWireID; }
geo::WireID fWireID
WireID for the hit (Cryostat, TPC, Plane, Wire)
Definition: Hit.h:73

Friends And Related Function Documentation

friend class HitCreator
friend

Definition at line 75 of file Hit.h.

bool operator< ( const Hit a,
const Hit b 
)
friend

Definition at line 114 of file Hit.cxx.

115  {
116  if (a.Channel() != b.Channel())
117  return a.Channel() < b.Channel();
118  if (a.View() != b.View())
119  return a.View() < b.View();
120  if (a.StartTick() != b.StartTick())
121  return a.StartTick() < b.StartTick();
122 
123  return false; //They are equal
124  } // operator< (Hit, Hit)
std::ostream& operator<< ( std::ostream &  o,
const Hit a 
)
friend

Member Data Documentation

raw::ChannelID_t recob::Hit::fChannel
private

ID of the readout channel the hit was extracted from.

Definition at line 56 of file Hit.h.

Referenced by Channel().

raw::TDCtick_t recob::Hit::fEndTick
private

final tdc tick for hit

Definition at line 58 of file Hit.h.

Referenced by EndTick().

float recob::Hit::fGoodnessOfFit
private

how well do we believe we know this hit?

Definition at line 69 of file Hit.h.

Referenced by GoodnessOfFit().

float recob::Hit::fIntegral
private

the integral under the calibrated signal waveform of the hit, in tick x ADC units

Definition at line 65 of file Hit.h.

Referenced by Integral().

short int recob::Hit::fLocalIndex
private

index of this hit among the Multiplicity() hits in the signal window

Definition at line 68 of file Hit.h.

Referenced by LocalIndex().

short int recob::Hit::fMultiplicity
private

how many hits could this one be shared with

Definition at line 67 of file Hit.h.

Referenced by Multiplicity().

int recob::Hit::fNDF
private

degrees of freedom in the determination of the hit shape

Definition at line 70 of file Hit.h.

Referenced by DegreesOfFreedom().

float recob::Hit::fPeakAmplitude
private

the estimated amplitude of the hit at its peak, in ADC units

Definition at line 62 of file Hit.h.

Referenced by PeakAmplitude().

float recob::Hit::fPeakTime
private

time of the signal peak, in tick units

Definition at line 59 of file Hit.h.

Referenced by PeakTime().

float recob::Hit::fRMS
private

RMS of the hit shape, in tick units.

Definition at line 61 of file Hit.h.

Referenced by RMS().

float recob::Hit::fSigmaIntegral
private

the uncertainty of integral under the calibrated signal waveform of the hit, in ADC units

Definition at line 66 of file Hit.h.

Referenced by SigmaIntegral().

float recob::Hit::fSigmaPeakAmplitude
private

uncertainty on estimated amplitude of the hit at its peak, in ADC units

Definition at line 63 of file Hit.h.

Referenced by SigmaPeakAmplitude().

float recob::Hit::fSigmaPeakTime
private

uncertainty for the signal peak, in tick units

Definition at line 60 of file Hit.h.

Referenced by SigmaPeakTime().

geo::SigType_t recob::Hit::fSignalType
private

signal type for the plane of the hit

Definition at line 72 of file Hit.h.

Referenced by SignalType().

raw::TDCtick_t recob::Hit::fStartTick
private

initial tdc tick for hit

Definition at line 57 of file Hit.h.

Referenced by StartTick().

float recob::Hit::fSummedADC
private

the sum of calibrated ADC counts of the hit

Definition at line 64 of file Hit.h.

Referenced by SummedADC().

geo::View_t recob::Hit::fView
private

view for the plane of the hit

Definition at line 71 of file Hit.h.

Referenced by View().

geo::WireID recob::Hit::fWireID
private

WireID for the hit (Cryostat, TPC, Plane, Wire)

Definition at line 73 of file Hit.h.

Referenced by WireID().


The documentation for this class was generated from the following files: