#include <S0HadLateHcalEc1.h>
Inheritance diagram for FastShower::S0HadLateHcalEc1:
Public Methods | |
S0HadLateHcalEc1 (IUpdatingGaussian *, IProcessedDist *, IInTail *) | |
S0HadLateHcalEc1 (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_nSigma1 |
const double | s_nSigma2 |
|
Definition at line 26 of file S0HadLateHcalEc1.cxx. Referenced by clone().
|
|
Definition at line 32 of file S0HadLateHcalEc1.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 41 of file S0HadLateHcalEc1.cxx. References S0HadLateHcalEc1().
00041 {return new S0HadLateHcalEc1(*this);} |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 43 of file S0HadLateHcalEc1.cxx.
|
|
read back last deposit - used by monitoring code.
Implements FastShower::ISampler. Definition at line 76 of file S0HadLateHcalEc1.cxx. References FastShower::CoreSamples::give().
00076 { 00077 return cs.give(this); 00078 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 80 of file S0HadLateHcalEc1.cxx. References m_inTail, m_peak, and m_tail.
|
|
Definition at line 52 of file S0HadLateHcalEc1.cxx. References m_peak, m_tail, s_nSigma1, and s_nSigma2.
00052 { 00053 00054 pair<double, double> peakParams = m_peak->parameters(pa); 00055 double peakMean = peakParams.first; 00056 double peakSigma = peakParams.second; 00057 00058 //calculate ther upper and lower limits of the tail 00059 double uLimit = peakMean - s_nSigma1*peakSigma; 00060 // 00061 double lLimit = peakMean - s_nSigma2*peakSigma; 00062 if(lLimit<0.){lLimit=0.;} 00063 // 00064 //IMPROVEME - the logic of setting limits to be made clearer 00065 if(uLimit<0.){ uLimit=peakMean;} 00066 00067 // Sample from a Traingle dist. 00068 LinearProcessor lp((uLimit-lLimit), lLimit); 00069 return m_tail->sample(&lp); 00070 } |
|
Definition at line 72 of file S0HadLateHcalEc1.cxx.
|
|
Definition at line 82 of file S0HadLateHcalEc1.h. Referenced by components(), evalTail(), and S0HadLateHcalEc1(). |
|
Definition at line 83 of file S0HadLateHcalEc1.h. Referenced by components(), evalTail(), and S0HadLateHcalEc1(). |
|
Definition at line 84 of file S0HadLateHcalEc1.h. Referenced by components(), and S0HadLateHcalEc1(). |
|
Referenced by evalTail(). |
|
Referenced by evalTail(). |