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

FastShower::SNEmEcalBar3 Class Reference

#include <SNEmEcalBar3.h>

Inheritance diagram for FastShower::SNEmEcalBar3:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SNEmEcalBar3 (IUpdatingGaussian *)
 SNEmEcalBar3 (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 &cs) const
 read back last deposit - used by monitoring code.

virtual void components (IDebug::Cpts &) const

Private Attributes

SP< IUpdatingGaussianm_peak

Static Private Attributes

const double s_nSigma

Constructor & Destructor Documentation

FastShower::SNEmEcalBar3::SNEmEcalBar3 IUpdatingGaussian  
 

Definition at line 24 of file SNEmEcalBar3.cxx.

Referenced by clone().

00024                                                 : 
00025     ISampler(), ICellSN(), DebugBase("SNEmEcalBar3"), m_peak(g){}

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

Definition at line 28 of file SNEmEcalBar3.cxx.

00030                               :
00031     DebugBase("SN3"), m_peak(0){
00032     m_peak           = configurer->findIUG( text()+"Peak" ) ;
00033     cout<<text()<<" finishing construction"<<endl;
00034   }

Member Function Documentation

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

ISampler interface.

Implements FastShower::ISampler.

Definition at line 36 of file SNEmEcalBar3.cxx.

References SNEmEcalBar3().

00036 {return new SNEmEcalBar3(*this);}

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

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   }

double FastShower::SNEmEcalBar3::lastValue const CoreSamples   cs const [virtual]
 

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   }

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

Reimplemented from FastShower::DebugBase.

Definition at line 53 of file SNEmEcalBar3.cxx.

References m_peak.

00053                                                   {
00054     v.push_back(m_peak);
00055   }

Member Data Documentation

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

Definition at line 71 of file SNEmEcalBar3.h.

Referenced by components(), and sample().

const double FastShower::SNEmEcalBar3::s_nSigma [static, private]
 

Referenced by sample().


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