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

C0HadLateHcalEc2.cxx

Go to the documentation of this file.
00001 // ================================================
00002 // Implementation of C0HadLateHcalEc2
00003 // ================================================
00004 
00005 #include "FastShowerUtils/Samplers/C0HadLateHcalEc2.h"
00006 
00007 #include "FastShowerUtils/PolyArgs.h"
00008 #include "FastShowerUtils/IFn.h"
00009 #include "FastShowerUtils/CoreSamples.h"
00010 #include "FastShowerUtils/LinearProcessor.h"
00011 #include "FastShowerUtils/ProcessedFlat.h"
00012 #include "FastShowerUtils/ProcessedNormal.h"
00013 #include "FastShowerUtils/IConfigurer.h"
00014 #include <cmath>
00015 #include <iostream>
00016 
00017 namespace FastShower{
00018 
00019   //
00020   C0HadLateHcalEc2::C0HadLateHcalEc2(IUpdatingGaussian* g): 
00021     ISampler(), ICell0(), DebugBase("C0HadLateHcalEc2"), m_peak(g){}
00022   //
00024   C0HadLateHcalEc2::C0HadLateHcalEc2(const IConfigurer* configurer,
00025                                      const std::string& s):
00026     DebugBase(s), m_peak(0){
00027     m_peak           = configurer->findIUG( text()+"Peak" ) ;
00028     cout<<text()<<" finishing construction"<<endl;
00029   }
00031   ISampler* C0HadLateHcalEc2::clone() const {return new C0HadLateHcalEc2(*this);}
00032   //
00033   void C0HadLateHcalEc2::sample(const PolyArgs& pa,CoreSamples& cs) const{
00034     cs.fill(this,m_peak->sample(0.0, 0, 1.0, 100, pa));
00035   }
00036   double C0HadLateHcalEc2::lastValue(const CoreSamples& cs) const {
00037     return cs.give(this);
00038   }
00039   void C0HadLateHcalEc2::components(IDebug::Cpts& v) const{
00040     v.push_back(m_peak);
00041   }
00042 }//namespace
00043 
00044 
00045 
00046 

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