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

FastShower::SNHadEarlyHcalBar1 Class Reference

#include <SNHadEarlyHcalBar1.h>

Inheritance diagram for FastShower::SNHadEarlyHcalBar1:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SNHadEarlyHcalBar1 (IUpdatingGaussian *)
 SNHadEarlyHcalBar1 (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

Constructor & Destructor Documentation

FastShower::SNHadEarlyHcalBar1::SNHadEarlyHcalBar1 IUpdatingGaussian  
 

Definition at line 21 of file SNHadEarlyHcalBar1.cxx.

Referenced by clone().

00021                                                             : 
00022     ISampler(), ICellSN(), DebugBase("SNHadEarlyHcalBar1"), m_peak(g){}

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

Definition at line 24 of file SNHadEarlyHcalBar1.cxx.

References FastShower::IConfigurer::findIUG(), m_peak, and FastShower::DebugBase::text().

00025                                                             :
00026     DebugBase(s), m_peak(0){
00027     m_peak = configurer->findIUG( text()+"Peak" ) ;
00028     cout<<text()<<" finishing construction"<<endl;
00029   }
  //

Member Function Documentation

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

ISampler interface.

Implements FastShower::ISampler.

Definition at line 31 of file SNHadEarlyHcalBar1.cxx.

References SNHadEarlyHcalBar1().

00031                                             {
00032     return new SNHadEarlyHcalBar1(*this);
00033   }

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

sample and fill CoreSamples.

Implements FastShower::ISampler.

Definition at line 35 of file SNHadEarlyHcalBar1.cxx.

References FastShower::CoreSamples::fill(), and m_peak.

00036                                                         {
00037 
00038     pair<double, double>  peakParams = m_peak->parameters(pa);
00039     double peakMean  = peakParams.first;
00040 
00041     if (peakMean<=0.0) {
00042       // in this case the gaussian has mean/sigma 0/0 (all is deposited in C0!) 
00043       cs.fill(this,0.0);
00044     } else {
00045       // need  fabs(mean - fabs(m_gaussDist())*sigma)  as processor
00046       cs.fill(this,m_peak->sample(0.0, 100, peakMean, 0, pa));
00047     }
00048   }

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

read back last deposit - used by monitoring code.

Implements FastShower::ISampler.

Definition at line 50 of file SNHadEarlyHcalBar1.cxx.

References FastShower::CoreSamples::give().

00050                                                                   {
00051     return cs.give(this);
00052   }

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

Reimplemented from FastShower::DebugBase.

Definition at line 54 of file SNHadEarlyHcalBar1.cxx.

References m_peak.

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

Member Data Documentation

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

Definition at line 71 of file SNHadEarlyHcalBar1.h.

Referenced by components(), sample(), and SNHadEarlyHcalBar1().


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