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

TailFracS0EmEcalEc1.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Samplers/TailFracS0EmEcalEc1.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003 #include <cmath>
00004 namespace FastShower{
00005 
00006   double TailFracS0EmEcalEc1::value(const PolyArgs& pa) const {
00007     double energy  = pa.pp()->energy();
00008     double aDelEta = fabs(pa.pp()->delEta());
00009 
00010     double p1 = 0.2927*std::exp(-0.04074*energy) + 0.02186;
00011     double p2 = -6.151*std::exp(-0.03150*energy) + 1.357;
00012     //
00013     return  p1 + p2*aDelEta;
00014   }
00015   //
00016   IFn* TailFracS0EmEcalEc1::clone() const {return new TailFracS0EmEcalEc1();}
00017 }//namespace
00018 
00019 

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