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

PeakMeanS0EmEcalBar1.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Samplers/PeakMeanS0EmEcalBar1.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003 
00004 #include <cmath>
00005 namespace FastShower{
00006 
00007   double PeakMeanS0EmEcalBar1::value(const PolyArgs& pa) const {
00008 
00009     double energy  = pa.pp()->energy();
00010     double aDelEta = fabs(pa.pp()->delEta());
00011     //
00012     double p1 = 0.052645;
00013     double p2 = 0.00293125;
00014     double p3 = 0.98035;
00015     double p4 = 280.3*std::exp(-0.1511*energy) + 875.7;
00016     //
00017     return p3/(1.+ std::exp((aDelEta-p1)/p2)) - p4*std::pow(aDelEta,3);
00018   }
00019   //
00020   IFn* PeakMeanS0EmEcalBar1::clone() const {
00021     return new PeakMeanS0EmEcalBar1();
00022   }
00023 }//namespace
00024 
00025 

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