#include <SNHadEarlyEcalEc1.h>
Inheritance diagram for FastShower::SNHadEarlyEcalEc1:
Public Methods | |
SNHadEarlyEcalEc1 (IUpdatingGaussian *) | |
SNHadEarlyEcalEc1 (const IConfigurer *, const std::string &) | |
virtual ISampler * | clone () const |
ISampler interface. | |
virtual void | sample (const PolyArgs &, CoreSamples &) const |
sample and fill CoreSamples. | |
virtual double | lastValue (const CoreSamples &cs) const |
read back last deposit - used by monitoring code. | |
virtual void | components (IDebug::Cpts &) const |
Private Attributes | |
SP< IUpdatingGaussian > | m_peak |
|
Definition at line 21 of file SNHadEarlyEcalEc1.cxx. Referenced by clone().
|
|
Definition at line 25 of file SNHadEarlyEcalEc1.cxx.
|
|
ISampler interface.
Implements FastShower::ISampler. Definition at line 32 of file SNHadEarlyEcalEc1.cxx. References SNHadEarlyEcalEc1().
00032 { 00033 return new SNHadEarlyEcalEc1(*this); 00034 } |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 36 of file SNHadEarlyEcalEc1.cxx. References FastShower::CoreSamples::fill(), and m_peak.
00037 { 00038 pair<double, double> peakParams = m_peak->parameters(pa); 00039 double peakMean = peakParams.first; 00040 00041 if (peakMean<=0.0) { 00042 // in this case the gaussian has mean/sigma 0/0 (all is deposited in C0!) 00043 cs.fill(this,0.0); 00044 } else { 00045 // need fabs(mean - fabs(m_gaussDist())*sigma) as processor 00046 cs.fill(this,m_peak->sample(0.0, 100, peakMean, 0, pa)); 00047 } 00048 } |
|
read back last deposit - used by monitoring code.
Implements FastShower::ISampler. Definition at line 50 of file SNHadEarlyEcalEc1.cxx. References FastShower::CoreSamples::give().
00050 { 00051 return cs.give(this); 00052 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 54 of file SNHadEarlyEcalEc1.cxx. References m_peak.
00054 { 00055 v.push_back(m_peak); 00056 } |
|
Definition at line 71 of file SNHadEarlyEcalEc1.h. Referenced by components(), and sample(). |