Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::C0HadLateHcalEc1 Class Reference

#include <C0HadLateHcalEc1.h>

Inheritance diagram for FastShower::C0HadLateHcalEc1:

Inheritance graph
[legend]
Collaboration diagram for FastShower::C0HadLateHcalEc1:

Collaboration graph
[legend]
List of all members.

Public Methods

 C0HadLateHcalEc1 (IUpdatingGaussian *, IProcessedDist *, IInTail *)
 C0HadLateHcalEc1 (const IConfigurer *, const std::string &)
virtual ISamplerclone () 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< IUpdatingGaussianm_peak
SP< IProcessedDistm_tail
SP< IInTailm_inTail

Static Private Attributes

const double s_nSigma1
const double s_nSigma2

Constructor & Destructor Documentation

FastShower::C0HadLateHcalEc1::C0HadLateHcalEc1 IUpdatingGaussian  ,
IProcessedDist  ,
IInTail  
 

Definition at line 26 of file C0HadLateHcalEc1.cxx.

Referenced by clone().

00028                                                        :
00029     ISampler(), ICell0(), DebugBase("C0HadLateHcalEc1"), 
00030     m_peak(g), m_tail(t), m_inTail(inTail){}

FastShower::C0HadLateHcalEc1::C0HadLateHcalEc1 const IConfigurer  ,
const std::string &   
 

Definition at line 32 of file C0HadLateHcalEc1.cxx.

References FastShower::IConfigurer::findIUG(), m_inTail, m_peak, m_tail, FastShower::IConfigurer::makeIInTail(), FastShower::IConfigurer::makeProcessedFlat(), and FastShower::DebugBase::text().

00033                                                           :
00034     DebugBase(s), m_peak(0), m_tail(0), m_inTail(0){
00035     m_peak           = configurer->findIUG( text()+"Peak" ) ;
00036     m_tail           = configurer->makeProcessedFlat( text() );
00037     m_inTail         = configurer->makeIInTail( text() );
00038     cout<<text()<<" finishing construction"<<endl;
00039   }

Member Function Documentation

ISampler * FastShower::C0HadLateHcalEc1::clone   const [virtual]
 

ISampler Interface.

Implements FastShower::ISampler.

Definition at line 41 of file C0HadLateHcalEc1.cxx.

References C0HadLateHcalEc1().

00041 {return new C0HadLateHcalEc1(*this);}

void FastShower::C0HadLateHcalEc1::sample const PolyArgs  ,
CoreSamples  
const [virtual]
 

sample and fill CoreSamples.

Implements FastShower::ISampler.

Definition at line 44 of file C0HadLateHcalEc1.cxx.

00044                                                                        {
00045 
00046     
00047     if( m_inTail->operator()(pa) ){
00048       cs.fill(this, evalTail(pa) );
00049     }else{
00050       cs.fill(this, evalPeak(pa) );
00051     }
00052   }

double FastShower::C0HadLateHcalEc1::lastValue const CoreSamples   const [virtual]
 

read back last deposit - used by monitoring code.

Implements FastShower::ISampler.

Definition at line 78 of file C0HadLateHcalEc1.cxx.

References FastShower::CoreSamples::give().

00078                                                                 {
00079     return cs.give(this);
00080   }

void FastShower::C0HadLateHcalEc1::components IDebug::Cpts   const [virtual]
 

Reimplemented from FastShower::DebugBase.

Definition at line 82 of file C0HadLateHcalEc1.cxx.

References m_inTail, m_peak, and m_tail.

00082                                                       {
00083     v.push_back(m_peak);
00084     v.push_back(m_tail);
00085     v.push_back(m_inTail);
00086   }

double FastShower::C0HadLateHcalEc1::evalTail const PolyArgs   const [private]
 

Definition at line 54 of file C0HadLateHcalEc1.cxx.

References m_peak, m_tail, s_nSigma1, and s_nSigma2.

00054                                                             {
00055 
00056     pair<double, double>  peakParams = m_peak->parameters(pa);
00057     double peakMean  = peakParams.first;
00058     double peakSigma = peakParams.second;
00059     //calculate ther upper and lower limits of the tails
00060     //
00061     // tail
00062     double uLimit = peakMean - s_nSigma1*peakSigma;
00063     if(uLimit>1.){ uLimit=1-peakSigma;}
00064     if(uLimit<0.){ uLimit=0;}
00065     //
00066     double lLimit = peakMean - s_nSigma2*peakSigma;
00067     if(lLimit>uLimit){lLimit = uLimit-peakSigma;}
00068     if(lLimit<0.){lLimit=0.;}
00069     //
00070     LinearProcessor lp( (uLimit- lLimit), lLimit );
00071     return m_tail->sample(&lp);
00072   }

double FastShower::C0HadLateHcalEc1::evalPeak const PolyArgs   const [private]
 

Definition at line 74 of file C0HadLateHcalEc1.cxx.

00074                                                           {
00075     return m_peak->sample(0.0,s_nSigma1,1.0,s_nSigma2,pa);
00076   }

Member Data Documentation

SP<IUpdatingGaussian> FastShower::C0HadLateHcalEc1::m_peak [private]
 

Definition at line 80 of file C0HadLateHcalEc1.h.

Referenced by C0HadLateHcalEc1(), components(), and evalTail().

SP<IProcessedDist> FastShower::C0HadLateHcalEc1::m_tail [private]
 

Definition at line 81 of file C0HadLateHcalEc1.h.

Referenced by C0HadLateHcalEc1(), components(), and evalTail().

SP<IInTail> FastShower::C0HadLateHcalEc1::m_inTail [private]
 

Definition at line 82 of file C0HadLateHcalEc1.h.

Referenced by C0HadLateHcalEc1(), and components().

const double FastShower::C0HadLateHcalEc1::s_nSigma1 [static, private]
 

Referenced by evalTail().

const double FastShower::C0HadLateHcalEc1::s_nSigma2 [static, private]
 

Referenced by evalTail().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:57:20 2003 for FastShowerUtils by doxygen1.3-rc1