LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
PeakFitterGaussian (const fhicl::ParameterSet &pset) | |
void | findPeakParameters (const std::vector< float > &, const ICandidateHitFinder::HitCandidateVec &, PeakParamsVec &, double &, int &) const override |
Private Types | |
using | PeakParamsVec = std::vector< PeakFitParams_t > |
Private Member Functions | |
void | SetFitParameters (TF1 &Gaus, const ICandidateHitFinder::HitCandidateVec &hitCandidateVec, const unsigned int nGaus, const float baseline, const float startTime, const float roiSize) const |
void | GetFitParameters (const TF1 &Gaus, PeakParamsVec &peakParamsVec, const unsigned int nGaus, const float startTime, double &chi2PerNDF, int &NDF) const |
ICandidateHitFinder::HitCandidate | FindRefitCand (const TF1 &fittedGaus, const std::vector< float > &waveform, const int startTime, const int roiSize, const ICandidateHitFinder::HitCandidateVec &hitCandidateVec, const PeakParamsVec &fittedPeakVec) const |
std::pair< ICandidateHitFinder::HitCandidate, PeakFitParams_t > | FindShiftedGaussian (const ICandidateHitFinder::HitCandidateVec &hitCandidateVec, const PeakParamsVec &fittedPeakVec) const |
Private Attributes | |
const double | fMinWidth |
minimum initial width for gaussian fit More... | |
const double | fMaxWidthMult |
multiplier for max width for gaussian fit More... | |
const double | fPeakRange |
set range limits for peak center More... | |
const double | fAmpRange |
set range limit for peak amplitude More... | |
const bool | fFloatBaseline |
Allow baseline to "float" away from zero. More... | |
const bool | fOutputHistograms |
If true will generate summary style histograms. More... | |
const bool | fRefit |
If true will attempt to refit with an extra Gaussian. More... | |
const double | fRefitThreshold |
Reduced Chi2 threshold above which to refit. More... | |
const double | fRefitImprovement |
Factor by which the refit must improve the chi2. More... | |
TH1F * | fNumCandHitsHist |
TH1F * | fROISizeHist |
TH1F * | fCandPeakPositionHist |
TH1F * | fCandPeakWidHist |
TH1F * | fCandPeakAmpitudeHist |
TH1F * | fCandBaselineHist |
TH1F * | fFitPeakPositionHist |
TH1F * | fFitPeakWidHist |
TH1F * | fFitPeakAmpitudeHist |
TH1F * | fFitBaselineHist |
BaselinedGausFitCache | fFitCache |
Preallocated ROOT functions for the fits. More... | |
TH1F | fHistogram |
const geo::GeometryCore * | fGeometry = lar::providerFrom<geo::Geometry>() |
Definition at line 56 of file PeakFitterGaussian_tool.cc.
|
inherited |
Definition at line 34 of file IPeakFitter.h.
|
explicit |
Definition at line 124 of file PeakFitterGaussian_tool.cc.
References dir, fCandBaselineHist, fCandPeakAmpitudeHist, fCandPeakPositionHist, fCandPeakWidHist, fFitBaselineHist, fFitPeakAmpitudeHist, fFitPeakPositionHist, fFitPeakWidHist, fHistogram, fNumCandHitsHist, fOutputHistograms, and fROISizeHist.
|
overridevirtual |
Implements reco_tool::IPeakFitter.
Definition at line 166 of file PeakFitterGaussian_tool.cc.
References f, fCandBaselineHist, fFitBaselineHist, fFitCache, fFloatBaseline, fHistogram, FindRefitCand(), fNumCandHitsHist, fOutputHistograms, fRefit, fRefitImprovement, fRefitThreshold, fROISizeHist, hit::GausFitCache::Get(), GetFitParameters(), reco_tool::ICandidateHitFinder::HitCandidate::hitHeight, SetFitParameters(), and util::to_string().
|
private |
Definition at line 347 of file PeakFitterGaussian_tool.cc.
References util::abs(), f, and FindShiftedGaussian().
Referenced by findPeakParameters().
|
private |
Definition at line 454 of file PeakFitterGaussian_tool.cc.
References util::abs(), and DEFINE_ART_CLASS_TOOL.
Referenced by FindRefitCand().
|
private |
Definition at line 314 of file PeakFitterGaussian_tool.cc.
References fFitPeakAmpitudeHist, fFitPeakPositionHist, fFitPeakWidHist, fOutputHistograms, reco_tool::IPeakFitter::PeakFitParams_t::peakAmplitude, reco_tool::IPeakFitter::PeakFitParams_t::peakAmplitudeError, reco_tool::IPeakFitter::PeakFitParams_t::peakCenter, reco_tool::IPeakFitter::PeakFitParams_t::peakCenterError, reco_tool::IPeakFitter::PeakFitParams_t::peakSigma, and reco_tool::IPeakFitter::PeakFitParams_t::peakSigmaError.
Referenced by findPeakParameters().
|
private |
Definition at line 273 of file PeakFitterGaussian_tool.cc.
References fAmpRange, fCandPeakAmpitudeHist, fCandPeakPositionHist, fCandPeakWidHist, fFloatBaseline, fMaxWidthMult, fMinWidth, fOutputHistograms, and fPeakRange.
Referenced by findPeakParameters().
|
private |
set range limit for peak amplitude
Definition at line 71 of file PeakFitterGaussian_tool.cc.
Referenced by SetFitParameters().
|
private |
Definition at line 83 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and PeakFitterGaussian().
|
private |
Definition at line 82 of file PeakFitterGaussian_tool.cc.
Referenced by PeakFitterGaussian(), and SetFitParameters().
|
private |
Definition at line 80 of file PeakFitterGaussian_tool.cc.
Referenced by PeakFitterGaussian(), and SetFitParameters().
|
private |
Definition at line 81 of file PeakFitterGaussian_tool.cc.
Referenced by PeakFitterGaussian(), and SetFitParameters().
|
private |
Definition at line 87 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and PeakFitterGaussian().
|
mutableprivate |
Preallocated ROOT functions for the fits.
Definition at line 89 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters().
|
private |
Definition at line 86 of file PeakFitterGaussian_tool.cc.
Referenced by GetFitParameters(), and PeakFitterGaussian().
|
private |
Definition at line 84 of file PeakFitterGaussian_tool.cc.
Referenced by GetFitParameters(), and PeakFitterGaussian().
|
private |
Definition at line 85 of file PeakFitterGaussian_tool.cc.
Referenced by GetFitParameters(), and PeakFitterGaussian().
|
private |
Allow baseline to "float" away from zero.
Definition at line 72 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and SetFitParameters().
|
private |
Definition at line 93 of file PeakFitterGaussian_tool.cc.
|
mutableprivate |
Definition at line 91 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and PeakFitterGaussian().
|
private |
multiplier for max width for gaussian fit
Definition at line 69 of file PeakFitterGaussian_tool.cc.
Referenced by SetFitParameters().
|
private |
minimum initial width for gaussian fit
Definition at line 68 of file PeakFitterGaussian_tool.cc.
Referenced by SetFitParameters().
|
private |
Definition at line 78 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and PeakFitterGaussian().
|
private |
If true will generate summary style histograms.
Definition at line 73 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), GetFitParameters(), PeakFitterGaussian(), and SetFitParameters().
|
private |
set range limits for peak center
Definition at line 70 of file PeakFitterGaussian_tool.cc.
Referenced by SetFitParameters().
|
private |
If true will attempt to refit with an extra Gaussian.
Definition at line 74 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters().
|
private |
Factor by which the refit must improve the chi2.
Definition at line 76 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters().
|
private |
Reduced Chi2 threshold above which to refit.
Definition at line 75 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters().
|
private |
Definition at line 79 of file PeakFitterGaussian_tool.cc.
Referenced by findPeakParameters(), and PeakFitterGaussian().