#include <SNEmEcalBar3.h>
Inheritance diagram for FastShower::SNEmEcalBar3:
Public Methods | |
SNEmEcalBar3 (IUpdatingGaussian *) | |
SNEmEcalBar3 (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 |
Static Private Attributes | |
const double | s_nSigma |
|
Definition at line 24 of file SNEmEcalBar3.cxx. Referenced by clone().
|
|
Definition at line 28 of file SNEmEcalBar3.cxx.
|
|
ISampler interface.
Implements FastShower::ISampler. Definition at line 36 of file SNEmEcalBar3.cxx. References SNEmEcalBar3().
00036 {return new SNEmEcalBar3(*this);} |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 38 of file SNEmEcalBar3.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 SNEmEcalBar3.cxx. References FastShower::CoreSamples::give().
00050 { 00051 return cs.give(this); 00052 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 53 of file SNEmEcalBar3.cxx. References m_peak.
00053 { 00054 v.push_back(m_peak); 00055 } |
|
Definition at line 71 of file SNEmEcalBar3.h. Referenced by components(), and sample(). |
|
Referenced by sample(). |