LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RFFHitFitter.h"
Public Member Functions | |
RFFHitFitter (float, unsigned int, float, float step=0.1, float max=5.0) | |
RFFHitFitter (float step=0.1, float max=5.0) | |
void | SetFitterParams (float, unsigned int, float) |
void | RunFitter (const std::vector< float > &signal) |
const std::vector< float > & | MeanVector () |
const std::vector< float > & | SigmaVector () |
const std::vector< float > & | MeanErrorVector () |
const std::vector< float > & | SigmaErrorVector () |
const std::vector< float > & | AmplitudeVector () |
const std::vector< float > & | AmplitudeErrorVector () |
unsigned int | NHits () |
void | ClearResults () |
void | PrintResults () |
Private Types | |
typedef std::pair< float, float > | MeanSigmaPair |
Private Member Functions | |
void | CalculateAllMeansAndSigmas (const std::vector< float > &signal) |
void | CalculateMergedMeansAndSigmas (std::size_t signal_size) |
void | CalculateAmplitudes (const std::vector< float > &signal) |
void | CreateMergeVector () |
bool | HitsBelowThreshold () |
Private Attributes | |
float | fMeanMatchThreshold |
unsigned int | fMinMergeMultiplicity |
float | fFinalAmpThreshold |
util::GaussianEliminationAlg | fGEAlg |
std::vector< float > | fMeanVector |
std::vector< float > | fSigmaVector |
std::vector< float > | fMeanErrorVector |
std::vector< float > | fSigmaErrorVector |
std::vector< float > | fAmpVector |
std::vector< float > | fAmpErrorVector |
std::multiset< MeanSigmaPair, SignalSetComp > | fSignalSet |
std::vector< std::vector< std::multiset< MeanSigmaPair >::iterator > > | fMergeVector |
Definition at line 31 of file RFFHitFitter.h.
|
private |
Definition at line 33 of file RFFHitFitter.h.
hit::RFFHitFitter::RFFHitFitter | ( | float | max_mean, |
unsigned int | min_multi, | ||
float | threshold, | ||
float | step = 0.1 , |
||
float | max = 5.0 |
||
) |
Definition at line 25 of file RFFHitFitter.cxx.
References SetFitterParams().
hit::RFFHitFitter::RFFHitFitter | ( | float | step = 0.1 , |
float | max = 5.0 |
||
) |
Title: RFFHitFitter Class Author: Wes Ketchum (wketc) hum@ lanl. gov
Description: Class that does the base RFF algorithm. RFF works by simplifiying a Gaussian fit by dividing a pulse by its derivative. for a Gaussian, the result is a line, with the slope and intercept related to the sigma and mean of the Gaussian.
Input: Signal (vector of floats) Output: Guassian means and sigmas
Definition at line 21 of file RFFHitFitter.cxx.
|
inline |
|
inline |
|
private |
Definition at line 58 of file RFFHitFitter.cxx.
References fSignalSet, and pmtana::mean().
Referenced by RunFitter().
|
private |
Definition at line 146 of file RFFHitFitter.cxx.
References bin, fAmpErrorVector, fAmpVector, fFinalAmpThreshold, fGEAlg, fMeanErrorVector, fMeanVector, fSigmaErrorVector, fSigmaVector, HitsBelowThreshold(), and util::GaussianEliminationAlg::SolveEquations().
Referenced by RunFitter().
|
private |
Definition at line 98 of file RFFHitFitter.cxx.
References fMeanErrorVector, fMeanVector, fMergeVector, fMinMergeMultiplicity, fSigmaErrorVector, and fSigmaVector.
Referenced by RunFitter().
void hit::RFFHitFitter::ClearResults | ( | ) |
Definition at line 194 of file RFFHitFitter.cxx.
References fAmpErrorVector, fAmpVector, fMeanErrorVector, fMeanVector, fMergeVector, fSigmaErrorVector, fSigmaVector, and fSignalSet.
Referenced by RunFitter(), and SetFitterParams().
|
private |
Definition at line 83 of file RFFHitFitter.cxx.
References fMeanMatchThreshold, fMergeVector, fSignalSet, and lar::dump::vector().
Referenced by RunFitter().
|
private |
Definition at line 187 of file RFFHitFitter.cxx.
References fAmpVector, and fFinalAmpThreshold.
Referenced by CalculateAmplitudes().
|
inline |
Definition at line 45 of file RFFHitFitter.h.
Referenced by hit::RFFHitFinderAlg::EmplaceHit().
|
inline |
|
inline |
Definition at line 49 of file RFFHitFitter.h.
Referenced by hit::RFFHitFinderAlg::EmplaceHit(), and PrintResults().
void hit::RFFHitFitter::PrintResults | ( | ) |
Definition at line 206 of file RFFHitFitter.cxx.
References fAmpErrorVector, fAmpVector, fMeanErrorVector, fMeanVector, fSigmaErrorVector, fSigmaVector, fSignalSet, and NHits().
void hit::RFFHitFitter::RunFitter | ( | const std::vector< float > & | signal | ) |
Definition at line 49 of file RFFHitFitter.cxx.
References CalculateAllMeansAndSigmas(), CalculateAmplitudes(), CalculateMergedMeansAndSigmas(), ClearResults(), and CreateMergeVector().
Referenced by hit::RFFHitFinderAlg::Run().
void hit::RFFHitFitter::SetFitterParams | ( | float | max_mean, |
unsigned int | min_multi, | ||
float | threshold | ||
) |
Definition at line 35 of file RFFHitFitter.cxx.
References ClearResults(), fFinalAmpThreshold, fMeanMatchThreshold, and fMinMergeMultiplicity.
Referenced by RFFHitFitter(), and hit::RFFHitFinderAlg::SetFitterParams().
|
inline |
Definition at line 46 of file RFFHitFitter.h.
Referenced by hit::RFFHitFinderAlg::EmplaceHit().
|
inline |
|
private |
Definition at line 70 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), ClearResults(), and PrintResults().
|
private |
Definition at line 69 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), ClearResults(), HitsBelowThreshold(), and PrintResults().
|
private |
Definition at line 58 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), HitsBelowThreshold(), and SetFitterParams().
|
private |
Definition at line 63 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes().
|
private |
Definition at line 67 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), CalculateMergedMeansAndSigmas(), ClearResults(), and PrintResults().
|
private |
Definition at line 56 of file RFFHitFitter.h.
Referenced by CreateMergeVector(), and SetFitterParams().
|
private |
Definition at line 65 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), CalculateMergedMeansAndSigmas(), ClearResults(), and PrintResults().
|
private |
Definition at line 74 of file RFFHitFitter.h.
Referenced by CalculateMergedMeansAndSigmas(), ClearResults(), and CreateMergeVector().
|
private |
Definition at line 57 of file RFFHitFitter.h.
Referenced by CalculateMergedMeansAndSigmas(), and SetFitterParams().
|
private |
Definition at line 68 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), CalculateMergedMeansAndSigmas(), ClearResults(), and PrintResults().
|
private |
Definition at line 66 of file RFFHitFitter.h.
Referenced by CalculateAmplitudes(), CalculateMergedMeansAndSigmas(), ClearResults(), and PrintResults().
|
private |
Definition at line 72 of file RFFHitFitter.h.
Referenced by CalculateAllMeansAndSigmas(), ClearResults(), CreateMergeVector(), and PrintResults().