00001 #ifndef FASTSHOWER_C0HADEARLYHCALEC1_H 00002 #define FASTSHOWER_C0HADEARLYHCALEC1_H 00003 00004 #ifndef FASTSHOWER_ISAMPLER_H 00005 #include "FastShowerUtils/ISampler.h" 00006 #endif 00007 00008 #ifndef FASTSHOWER_DEBUGBASE_H 00009 #include "FastShowerUtils/DebugBase.h" 00010 #endif 00011 00012 #ifndef FASTSHOWER_ICELL0_H 00013 #include "FastShowerUtils/ICell0.h" 00014 #endif 00015 00016 #ifndef FASTSHOWER_SP_H 00017 #include "FastShowerUtils/SP.h" 00018 #endif 00019 00020 #ifndef STD_VECTOR_H 00021 #define STD_VECTOR_H 00022 #include <vector> 00023 #endif 00024 00025 #ifndef STD_STRING_H 00026 #define STD_STRING_H 00027 #include <string> 00028 #endif 00029 00030 namespace FastShower{ 00049 class IInTail; 00050 class CoreSamples; 00051 class IProcessedDist; 00052 class IConfigurer; 00053 class PolyArgs; 00054 00055 class C0HadEarlyHcalEc1: 00056 virtual public ISampler, 00057 public ICell0, private DebugBase{ 00058 public: 00059 // 00060 C0HadEarlyHcalEc1(IProcessedDist*, IProcessedDist*, IInTail*); 00061 00062 C0HadEarlyHcalEc1(const IConfigurer*, const std::string&); 00063 00065 virtual ISampler* clone() const; 00066 00067 virtual void sample(const PolyArgs&, CoreSamples&) const; 00068 virtual double lastValue(const CoreSamples&) const; 00069 virtual void components(IDebug::Cpts& ) const; 00070 00071 private: 00072 // 00073 double evalTail(const PolyArgs&) const; 00074 double evalPeak(const PolyArgs&) const; 00075 // 00076 SP<IProcessedDist> m_peak; 00077 SP<IProcessedDist> m_tail; 00078 SP<IInTail> m_inTail; 00079 }; 00080 }//namespace 00081 #endif