#include <C0HadEarlyHcalBar3.h>
Inheritance diagram for FastShower::C0HadEarlyHcalBar3:
Public Methods | |
C0HadEarlyHcalBar3 (IUpdatingGaussian *, IProcessedDist *, IInTail *) | |
C0HadEarlyHcalBar3 (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 Methods | |
double | evalTail (const PolyArgs &) const |
double | evalPeak (const PolyArgs &) const |
Private Attributes | |
SP< IUpdatingGaussian > | m_peak |
SP< IProcessedDist > | m_tail |
SP< IInTail > | m_inTail |
Static Private Attributes | |
const double | s_nSigma |
|
Definition at line 25 of file C0HadEarlyHcalBar3.cxx. Referenced by clone().
|
|
Definition at line 31 of file C0HadEarlyHcalBar3.cxx. References FastShower::IConfigurer::findIUG(), m_inTail, m_peak, m_tail, FastShower::IConfigurer::makeIInTail(), FastShower::IConfigurer::makeProcessedFlat(), and FastShower::DebugBase::text().
|
|
ISampler Interface.
Implements FastShower::ISampler. Definition at line 40 of file C0HadEarlyHcalBar3.cxx. References C0HadEarlyHcalBar3().
00040 { 00041 return new C0HadEarlyHcalBar3(*this); 00042 } |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 44 of file C0HadEarlyHcalBar3.cxx.
|
|
read back last deposit - used by monitoring code.
Implements FastShower::ISampler. Definition at line 77 of file C0HadEarlyHcalBar3.cxx. References FastShower::CoreSamples::give().
00077 { 00078 return cs.give(this); 00079 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 81 of file C0HadEarlyHcalBar3.cxx. References m_inTail, m_peak, and m_tail.
|
|
Definition at line 54 of file C0HadEarlyHcalBar3.cxx. References m_peak, m_tail, and s_nSigma.
00054 { 00055 00056 pair<double, double> peakParams = m_peak->parameters(pa); 00057 double peakMean = peakParams.first; 00058 double peakSigma = peakParams.second; 00059 00060 //calculate ther upper and/or lower limit of the tail 00061 double uLimit = peakMean - s_nSigma*peakSigma; 00062 uLimit = max(uLimit, 0.0); 00063 uLimit = min(uLimit, 1.0); 00064 // 00065 double lLimit = 0.0; 00066 00067 // Sample 00068 if (!(uLimit>0.0)) uLimit = 1.0; 00069 LinearProcessor lp((uLimit-lLimit), lLimit); 00070 return m_tail->sample(&lp); 00071 } |
|
Definition at line 73 of file C0HadEarlyHcalBar3.cxx.
|
|
Definition at line 80 of file C0HadEarlyHcalBar3.h. Referenced by C0HadEarlyHcalBar3(), components(), and evalTail(). |
|
Definition at line 81 of file C0HadEarlyHcalBar3.h. Referenced by C0HadEarlyHcalBar3(), components(), and evalTail(). |
|
Definition at line 82 of file C0HadEarlyHcalBar3.h. Referenced by C0HadEarlyHcalBar3(), and components(). |
|
Referenced by evalTail(). |