#include <S0HadLateHcalBar1.h>
Inheritance diagram for FastShower::S0HadLateHcalBar1:
Public Methods | |
S0HadLateHcalBar1 (IUpdatingGaussian *, IProcessedDist *, IInTail *) | |
S0HadLateHcalBar1 (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 S0HadLateHcalBar1.cxx. Referenced by clone().
|
|
Definition at line 32 of file S0HadLateHcalBar1.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 S0HadLateHcalBar1.cxx. References S0HadLateHcalBar1().
00041 {return new S0HadLateHcalBar1(*this);} |
|
sample and fill CoreSamples.
Implements FastShower::ISampler. Definition at line 43 of file S0HadLateHcalBar1.cxx.
|
|
read back last deposit - used by monitoring code.
Implements FastShower::ISampler. Definition at line 78 of file S0HadLateHcalBar1.cxx. References FastShower::CoreSamples::give().
00078 { 00079 return cs.give(this); 00080 } |
|
Reimplemented from FastShower::DebugBase. Definition at line 82 of file S0HadLateHcalBar1.cxx. References m_inTail, m_peak, and m_tail.
|
|
Definition at line 52 of file S0HadLateHcalBar1.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 lLimit = max(lLimit,0.0); 00063 lLimit = min(lLimit,1.0); 00064 // 00065 //IMPROVEME - the logic of setting limits to be made clearer 00066 if(uLimit<0.){ uLimit=peakMean;} 00067 uLimit = min(uLimit,1.0); 00068 00069 // Sample from a Linear dist. 00070 LinearProcessor lp((uLimit-lLimit), lLimit); 00071 return m_tail->sample(&lp); 00072 } |
|
Definition at line 74 of file S0HadLateHcalBar1.cxx.
|
|
Definition at line 77 of file S0HadLateHcalBar1.h. Referenced by components(), evalTail(), and S0HadLateHcalBar1(). |
|
Definition at line 78 of file S0HadLateHcalBar1.h. Referenced by components(), evalTail(), and S0HadLateHcalBar1(). |
|
Definition at line 79 of file S0HadLateHcalBar1.h. Referenced by components(), and S0HadLateHcalBar1(). |
|
Referenced by evalTail(). |
|
Referenced by evalTail(). |