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

FastShower::HadEarlyEcalNormaliser Class Reference

#include <HadEarlyEcalNormaliser.h>

Inheritance diagram for FastShower::HadEarlyEcalNormaliser:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 HadEarlyEcalNormaliser (const IConfigurer *, const std::string &)
 ~HadEarlyEcalNormaliser ()
virtual INormaliserclone () const
 Implementation of the INormaliser interface.

virtual void scale (Normalisations &, const ParticleParameters &) const
virtual void components (IDebug::Cpts &) const
 vector of IDebug*


Private Attributes

SP< IFnOfParticleParametersm_coreFraction
SP< IFnOfParticleParametersm_etaResponse

Constructor & Destructor Documentation

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

Definition at line 13 of file HadEarlyEcalNormaliser.cxx.

References FastShower::IConfigurer::findFnPP(), m_coreFraction, m_etaResponse, and FastShower::DebugBase::text().

Referenced by clone().

00014                                                                      :
00015     INormaliser(), DebugBase(s){
00016     m_etaResponse = c->findFnPP("EcalEtaResponse");
00017     m_coreFraction = c->findFnPP("EcalCoreFraction");
00018     cout<<text()<<": finishing construction"<<endl;
00019   }
  //

FastShower::HadEarlyEcalNormaliser::~HadEarlyEcalNormaliser  
 

Definition at line 21 of file HadEarlyEcalNormaliser.cxx.

References m_etaResponse.

00021                                                  {
00022     delete m_etaResponse;
00023   }

Member Function Documentation

INormaliser * FastShower::HadEarlyEcalNormaliser::clone   const [virtual]
 

Implementation of the INormaliser interface.

Implements FastShower::INormaliser.

Definition at line 25 of file HadEarlyEcalNormaliser.cxx.

References HadEarlyEcalNormaliser().

00025                                                   {
00026     return  new HadEarlyEcalNormaliser(*this);
00027   }

void FastShower::HadEarlyEcalNormaliser::scale Normalisations  ,
const ParticleParameters  
const [virtual]
 

Implements FastShower::INormaliser.

Definition at line 29 of file HadEarlyEcalNormaliser.cxx.

References m_coreFraction, m_etaResponse, FastShower::Normalisations::scaleCore(), and FastShower::Normalisations::scaleHalo().

00030                                                                          {
00031     double coreFrac = m_coreFraction->value(pp);
00032     double haloFrac = 1 - coreFrac;
00033     //cout<<"*** "<<text()<<": core/haloFrac = "<<coreFrac<<" / "<<haloFrac<<endl;
00034     //cout<<"*** "<<text()<<": etaResponse = "<<m_etaResponse->value(pp)<<endl;
00035     n.scaleCore(coreFrac*m_etaResponse->value(pp));
00036     n.scaleHalo(haloFrac*m_etaResponse->value(pp));
00037   }

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

vector of IDebug*

Reimplemented from FastShower::DebugBase.

Definition at line 39 of file HadEarlyEcalNormaliser.cxx.

References m_coreFraction, and m_etaResponse.

00039                                                             {
00040     v.push_back(m_coreFraction);
00041     v.push_back(m_etaResponse);
00042   }

Member Data Documentation

SP<IFnOfParticleParameters> FastShower::HadEarlyEcalNormaliser::m_coreFraction [private]
 

Definition at line 39 of file HadEarlyEcalNormaliser.h.

Referenced by components(), HadEarlyEcalNormaliser(), and scale().

SP<IFnOfParticleParameters> FastShower::HadEarlyEcalNormaliser::m_etaResponse [private]
 

Definition at line 40 of file HadEarlyEcalNormaliser.h.

Referenced by components(), HadEarlyEcalNormaliser(), scale(), and ~HadEarlyEcalNormaliser().


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