#include <UpdatingGaussianBase.h>
Inheritance diagram for FastShower::UpdatingGaussianBase:
Public Methods | |
UpdatingGaussianBase (const std::string &samplerName, const IConfigurer &) | |
virtual | ~UpdatingGaussianBase () |
virtual double | sample (double phyiscalLow, double nSigmaLow, double physicalUp, double nSigmaUp, const PolyArgs &) const |
sample a processed normal dist. | |
virtual std::pair< double, double > | parameters (const PolyArgs &) const |
Tail distributions (eg) need to get peak mean, sigma (eg) to establish their own range. | |
virtual void | components (std::vector< const IDebug * > &) const |
virtual IDistProcessor * | makeIDistProcessor (const PolyArgs &) const=0 |
virtual std::pair< double, double > | getLims (double phyiscalLow, double nSigmaLow, double physicalUp, double nSigmaUp, const PolyArgs &) const=0 |
virtual IUpdatingGaussian * | clone () const=0 |
Private Attributes | |
SP< IFn > | m_mean |
Two functions to supply the DistProcessors with parameters. | |
SP< IFn > | m_sigma |
SP< IProcessedDist > | m_normal |
|
Definition at line 5 of file UpdatingGaussianBase.cxx. References FastShower::IConfigurer::findFn(), m_mean, m_normal, m_sigma, and FastShower::IConfigurer::makeProcessedNormal().
|
|
Definition at line 52 of file UpdatingGaussianBase.h.
00052 {}; |
|
sample a processed normal dist. The procesed norm will be truncated at -nSigmaLow +nSigmaUp, unless physical limits are exceeded. Implements FastShower::IUpdatingGaussian. Definition at line 11 of file UpdatingGaussianBase.cxx. References getLims(), m_normal, makeIDistProcessor(), and sample(). Referenced by sample().
00016 { 00017 std::pair<double, double> limits = 00018 this->getLims(physicalLow, nSigmaLow, physicalUp, nSigmaUp, pa); 00019 00020 IDistProcessor* dp = makeIDistProcessor(pa); 00021 00022 double sample = m_normal->sample(limits.first, limits.second, dp); 00023 delete dp; 00024 return sample; 00025 } |
|
Tail distributions (eg) need to get peak mean, sigma (eg) to establish their own range.
Implements FastShower::IUpdatingGaussian. Definition at line 28 of file UpdatingGaussianBase.cxx. References m_mean, and m_sigma.
|
|
Definition at line 34 of file UpdatingGaussianBase.cxx. References m_mean, m_normal, and m_sigma.
|
|
Implemented in FastShower::UpdatingGaussian01P, FastShower::UpdatingGaussian02P, and FastShower::UpdatingGaussian0LP. Referenced by sample(). |
|
Implemented in FastShower::UpdatingGaussian01P, FastShower::UpdatingGaussian02P, and FastShower::UpdatingGaussian0LP. Referenced by sample(). |
|
Implements FastShower::IUpdatingGaussian. Implemented in FastShower::UpdatingGaussian01P, FastShower::UpdatingGaussian02P, and FastShower::UpdatingGaussian0LP. |
|
Two functions to supply the DistProcessors with parameters.
Definition at line 78 of file UpdatingGaussianBase.h. Referenced by components(), parameters(), and UpdatingGaussianBase(). |
|
Definition at line 79 of file UpdatingGaussianBase.h. Referenced by components(), parameters(), and UpdatingGaussianBase(). |
|
Definition at line 80 of file UpdatingGaussianBase.h. Referenced by components(), sample(), and UpdatingGaussianBase(). |