LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
BaselinedGausFitCache (std::string const &new_name="BaselinedGausFitCache") | |
Constructor (see base class constructor). More... | |
std::string | GetName () const |
Return the name of this cache. More... | |
virtual TF1 * | Get (size_t nFunc) |
Returns a function sum of nFunc base functions. More... | |
virtual TF1 * | GetClone (size_t nGaus) |
virtual std::string | FunctionName (size_t nFunc) const |
Returns a name for the function with nFunc base functions. More... | |
Protected Member Functions | |
virtual TF1 * | CreateFunction (size_t nFunc) const |
Protected Attributes | |
std::string | name |
name of the cache More... | |
std::vector< TF1 * > | funcs |
Customized function cache for Gaussians with a baseline.
The baseline parameter is always the last one.
Definition at line 27 of file PeakFitterGaussian_tool.cc.
|
inline |
Constructor (see base class constructor).
Definition at line 31 of file PeakFitterGaussian_tool.cc.
|
inlineprotectedvirtual |
Creates and returns the function with specified number of Gaussians.
The formula is gaus(0) + gaus(3) + ... + gaus(3*(nFunc-1)) + [nFunc*3]
.
Reimplemented from hit::GausFitCache.
Definition at line 39 of file PeakFitterGaussian_tool.cc.
References hit::GausFitCache::FunctionName(), and util::to_string().
|
virtualinherited |
Returns a name for the function with nFunc base functions.
Definition at line 83 of file GausFitCache.cxx.
References hit::GausFitCache::name.
Referenced by hit::details::CompiledGausFitCacheBaseStruct::AppendFunction(), CreateFunction(), hit::GausFitCache::CreateFunction(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< NFunc, Func >::fill(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< 0U, Func >::fill(), and hit::GausFitCache::GetName().
|
virtualinherited |
Returns a function sum of nFunc base functions.
nGaus | the number of base functions in the function |
The returned function must not be deleted at any time!
This implementation returns a function sum of nFunc Gaussians. The parameters are sorted by Gaussian: first normalization (not the area, but the coefficient), first mean, first sigma, second normalization etc.
Definition at line 44 of file GausFitCache.cxx.
References hit::GausFitCache::CreateFunction(), and hit::GausFitCache::funcs.
Referenced by reco_tool::PeakFitterGaussian::findPeakParameters(), hit::GausFitCache::GetClone(), and hit::GausFitCache::GetName().
|
virtualinherited |
Returns a new function sum of nFunc base functions (caller needs to set limits and parameters)
Reimplemented in hit::details::CompiledGausFitCacheBaseStruct.
Definition at line 59 of file GausFitCache.cxx.
References hit::GausFitCache::Get().
Referenced by hit::GausFitCache::GetName().
|
inlineinherited |
Return the name of this cache.
Definition at line 54 of file GausFitCache.h.
References hit::GausFitCache::FunctionName(), hit::GausFitCache::Get(), hit::GausFitCache::GetClone(), and hit::GausFitCache::name.
|
protectedinherited |
Definition at line 80 of file GausFitCache.h.
Referenced by hit::details::CompiledGausFitCacheBaseStruct::AppendFunction(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< NFunc, Func >::fill(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< 0U, Func >::fill(), hit::GausFitCache::Get(), hit::details::CompiledGausFitCacheBaseStruct::MaxGaussians(), and hit::GausFitCache::~GausFitCache().
|
protectedinherited |
name of the cache
Gaussian sum functions; n-th element is sum of n base functions
Definition at line 77 of file GausFitCache.h.
Referenced by hit::details::CompiledGausFitCacheBaseStruct::CannotCreateFunction(), hit::GausFitCache::FunctionName(), and hit::GausFitCache::GetName().