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

EmEcalNormaliser.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Normalisers/EmEcalNormaliser.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   EmEcalNormaliser::EmEcalNormaliser(const IConfigurer* configurer, 
00014                                      const std::string&  s):
00015     INormaliser(), DebugBase(s){
00016     //    m_etaResponse = configurer->findFnPP(text()+"Eta Response");
00017     m_etaResponse = configurer->findFnPP("EtaResponse");
00018     cout<<text()<<": finishing construction"<<endl;
00019   }
00020   //
00021   EmEcalNormaliser::~EmEcalNormaliser(){
00022     delete m_etaResponse;
00023   }
00024   //
00025   INormaliser* EmEcalNormaliser::clone() const{
00026     return  new EmEcalNormaliser(*this);
00027   }
00028   //
00029   void
00030   EmEcalNormaliser::scale(Normalisations& n, const ParticleParameters& pp) const {
00031     n.scaleCore(m_etaResponse->value(pp));
00032   }
00033   //
00034   void EmEcalNormaliser::components(IDebug::Cpts& v) const{
00035     v.push_back(m_etaResponse);
00036   }
00037 }//namespace

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