LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 28 of file PeakFitterGaussian_tool.cc.
|
inline |
Constructor (see base class constructor).
Definition at line 32 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 41 of file PeakFitterGaussian_tool.cc.
References hit::GausFitCache::FunctionName(), and util::flags::to_string().
|
virtualinherited |
Returns a name for the function with nFunc base functions.
Definition at line 78 of file GausFitCache.cxx.
Referenced by hit::details::CompiledGausFitCacheBaseStruct::AppendFunction(), 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 41 of file GausFitCache.cxx.
Referenced by 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 55 of file GausFitCache.cxx.
References Get.
Referenced by hit::GausFitCache::GetName().
|
inlineinherited |
Return the name of this cache.
Definition at line 59 of file GausFitCache.h.
References hit::GausFitCache::FunctionName(), hit::GausFitCache::Get(), hit::GausFitCache::GetClone(), and hit::GausFitCache::name.
|
protectedinherited |
Definition at line 86 of file GausFitCache.h.
Referenced by hit::details::CompiledGausFitCacheBaseStruct::AppendFunction(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< NFunc, Func >::fill(), hit::details::CompiledGausFitCacheBaseStruct::InitializeFuncSumVector< 0U, Func >::fill(), and hit::details::CompiledGausFitCacheBaseStruct::MaxGaussians().
|
protectedinherited |
name of the cache
Gaussian sum functions; n-th element is sum of n base functions
Definition at line 83 of file GausFitCache.h.
Referenced by hit::GausFitCache::GetName().