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

SoftHadEcalNormaliser.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Normalisers/SoftHadEcalNormaliser.h"
00002 
00003 #include "FastShowerUtils/IConfigurer.h"
00004 #include "FastShowerUtils/Normalisations.h"
00005 #include "FastShowerUtils/ParticleParameters.h"
00006 #include "FastShowerUtils/IFnOfParticleParameters.h"
00007 
00008 #include <cmath>
00009 #include <pair.h>
00010 #include <iostream>
00011 namespace FastShower{
00012   //
00013   SoftHadEcalNormaliser::SoftHadEcalNormaliser(const IConfigurer* c, 
00014                                                const std::string&  s):
00015     INormaliser(), DebugBase(s){
00016     m_etaResponse = c->findFnPP("EcalEtaResponse");
00017     cout<<text()<<": finishing construction"<<endl;
00018   }
00019   //
00020   SoftHadEcalNormaliser::~SoftHadEcalNormaliser(){
00021     delete m_etaResponse;
00022   }
00023   //
00024   INormaliser* SoftHadEcalNormaliser::clone() const{
00025     return  new SoftHadEcalNormaliser(*this);
00026   }
00027   //
00028   void SoftHadEcalNormaliser::scale(Normalisations& n, 
00029                                     const ParticleParameters& pp) const {
00030     n.scalePencil(m_etaResponse->value(pp));
00031   }
00032   //
00033   void SoftHadEcalNormaliser::components(IDebug::Cpts& v) const{
00034     v.push_back(m_etaResponse);
00035   }
00036 }//namespace
00037 

Generated on Tue Mar 18 11:50:06 2003 for FastShowerUtils by doxygen1.3-rc1