00001 #include "FastShowerUtils/Samplers/TailAuxS0EmEcalEc1.h" 00002 #include "FastShowerUtils/PolyArgs.h" 00003 #include <cmath> 00004 namespace FastShower{ 00005 00006 double TailAuxS0EmEcalEc1::value(const PolyArgs& pa) const { 00007 00008 double energy = pa.pp()->energy(); 00009 00010 double p1 = 3.25; 00011 double p2 = -0.12; 00012 double p3 = 0.03; 00013 // 00014 return p1*std::exp(p2*energy) + p3; 00015 } 00016 // 00017 IFn* TailAuxS0EmEcalEc1::clone() const {return new TailAuxS0EmEcalEc1();} 00018 }//namespace 00019 00020