00001
00002
00003
00004
00005 #include "FastShowerUtils/Samplers/C0HadLateHcalBar2.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 C0HadLateHcalBar2::C0HadLateHcalBar2(IUpdatingGaussian* g):
00021 ISampler(), ICell0(), DebugBase("C0HadLateHcalBar2"), m_peak(g){}
00022
00024
00025 const std::string& s):
00026 DebugBase(s), m_peak(0){
00027 m_peak = c->findIUG( text()+"Peak" ) ;
00028 cout<<text()<<" finishing construction"<<endl;
00029 }
00031 ISampler* C0HadLateHcalBar2::clone() const {
00032 return new C0HadLateHcalBar2(*this);
00033 }
00034
00035 void C0HadLateHcalBar2::sample(const PolyArgs& pa,CoreSamples& cs) const{
00036 cs.fill(this,m_peak->sample(0.0, 100, 1.0, 100, pa));
00037 }
00038 double C0HadLateHcalBar2::lastValue(const CoreSamples& cs) const {
00039 return cs.give(this);
00040 }
00041 void C0HadLateHcalBar2::components(IDebug::Cpts& v) const{
00042 v.push_back(m_peak);
00043 }
00044 }
00045
00046
00047
00048