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

FastShower::SingleShowererSelector Class Reference

#include <SingleShowererSelector.h>

Inheritance diagram for FastShower::SingleShowererSelector:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SingleShowererSelector (const ISingleShowererSelectorConfig &)
 ~SingleShowererSelector ()
virtual bool accept (ParticleParameters &, Gridlet *) const
 Implementation of the IShowererSelector interface.

virtual void components (IDebug::Cpts &) const
 overide the DebugBase components:


Private Attributes

SP< IAcceptorm_acceptor
SP< IFnOfParticleParameters2m_ehSharer
SP< IFnOfParticleParametersm_resolution
SP< IShowererm_showerer

Constructor & Destructor Documentation

FastShower::SingleShowererSelector::SingleShowererSelector const ISingleShowererSelectorConfig  
 

Definition at line 15 of file SingleShowererSelector.cxx.

References m_acceptor, m_ehSharer, m_resolution, and m_showerer.

00015                                                                                          : 
00016     IShowererSelector(), DebugBase("SingleShowererSelector"){
00017     m_acceptor = conf.acceptor();
00018     m_ehSharer = conf.ehSharer();
00019     m_resolution = conf.resolution();
00020     m_showerer = conf.showerer();
00021     cout<<"End Of SingleShowererSelectorSelector construction"<<endl;
00022   }

FastShower::SingleShowererSelector::~SingleShowererSelector   [inline]
 

Definition at line 50 of file SingleShowererSelector.h.

00050 {};

Member Function Documentation

bool FastShower::SingleShowererSelector::accept ParticleParameters  ,
Gridlet  
const [virtual]
 

Implementation of the IShowererSelector interface.

Implements FastShower::IShowererSelector.

Definition at line 24 of file SingleShowererSelector.cxx.

References m_acceptor, m_ehSharer, m_resolution, m_showerer, and FastShower::ParticleParameters::rawEnergy().

00025                                                        {
00026     if (m_acceptor->accept(pp)){
00027       std::pair<double, double> ehFracs = m_ehSharer->value(pp);
00028       double energy = pp.rawEnergy();
00029       double resolution = m_resolution->value(pp);
00030       
00031       Normalisations eNs(ehFracs.first * resolution* energy);
00032       Normalisations hNs(ehFracs.second * resolution* energy);
00033       m_showerer->shower(pp,g,eNs,hNs);
00034       return true;
00035     }
00036     return false;
00037   }

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

overide the DebugBase components:

Reimplemented from FastShower::DebugBase.

Definition at line 39 of file SingleShowererSelector.cxx.

References m_acceptor, m_ehSharer, m_resolution, and m_showerer.

00039                                                             {
00040     c.push_back(m_acceptor);
00041     c.push_back(m_ehSharer);
00042     c.push_back(m_resolution);
00043     c.push_back(m_showerer);
00044   }

Member Data Documentation

SP<IAcceptor> FastShower::SingleShowererSelector::m_acceptor [private]
 

Definition at line 59 of file SingleShowererSelector.h.

Referenced by accept(), components(), and SingleShowererSelector().

SP<IFnOfParticleParameters2> FastShower::SingleShowererSelector::m_ehSharer [private]
 

Definition at line 60 of file SingleShowererSelector.h.

Referenced by accept(), components(), and SingleShowererSelector().

SP<IFnOfParticleParameters> FastShower::SingleShowererSelector::m_resolution [private]
 

Definition at line 61 of file SingleShowererSelector.h.

Referenced by accept(), components(), and SingleShowererSelector().

SP<IShowerer> FastShower::SingleShowererSelector::m_showerer [private]
 

Definition at line 62 of file SingleShowererSelector.h.

Referenced by accept(), components(), and SingleShowererSelector().


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