#include <SNEmEcalEc3.h>
Inheritance diagram for FastShower::SNEmEcalEc3:
Public Methods | |
SNEmEcalEc3 (IUpdatingGaussian *) | |
SNEmEcalEc3 (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 &) const |
read back last deposit - used by monitoring code. | |
virtual void | components (IDebug::Cpts &) const |
Private Attributes | |
SP< IUpdatingGaussian > | m_peak |
Static Private Attributes | |
const double | s_nSigma |
|
Definition at line 26 of file SNEmEcalEc3.cxx. Referenced by clone().
|
|
Definition at line 29 of file SNEmEcalEc3.cxx. References FastShower::IConfigurer::findIUG(), m_peak, and FastShower::DebugBase::text().
|
|
ISampler interface.
Implements FastShower::ISampler. Definition at line 36 of file SNEmEcalEc3.cxx. References SNEmEcalEc3().
00036 {return new SNEmEcalEc3(*this);} |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 38 of file SNEmEcalEc3.cxx. References FastShower::CoreSamples::fill(), m_peak, and s_nSigma.
00038 { 00039 00040 pair<double, double> peakParams = m_peak->parameters(pa); 00041 double peakMean = peakParams.first; 00042 // 00043 if (peakMean<=0.0) { 00044 // in this case the gaussian has mean/sigma 0/0 (all is deposited in C0!) 00045 cs.fill(this,0.0); 00046 } else { 00047 cs.fill(this,m_peak->sample(0.0,s_nSigma,peakMean,s_nSigma,pa)); 00048 } 00049 } |
|
read back last deposit - used by monitoring code.
Implements FastShower::ISampler. Definition at line 50 of file SNEmEcalEc3.cxx. References FastShower::CoreSamples::give().
00050 { 00051 return cs.give(this); 00052 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 53 of file SNEmEcalEc3.cxx. References m_peak.
00053 { 00054 v.push_back(m_peak); 00055 } |
|
Definition at line 67 of file SNEmEcalEc3.h. Referenced by components(), sample(), and SNEmEcalEc3(). |
|
Referenced by sample(). |