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

PeakMeanS0HadLateHcalBar1.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Samplers/PeakMeanS0HadLateHcalBar1.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003 
00004 #include <cmath>
00005 namespace FastShower{
00006 
00007   double PeakMeanS0HadLateHcalBar1::value(const PolyArgs& pa) const {
00008 
00009     double energy  = pa.pp()->energy();
00010     double aDelEta = fabs(pa.pp()->delEta());
00011     //
00012     //double p1 = -0.125*std::exp(-0.205*energy) + 0.05;
00013     //double p2 = 0.01208*std::exp(-0.07569*energy) + 0.008739;
00014     //double p3 = 79.09*std::exp(-0.4577*energy) + 0.9634;
00015     double p1 = -0.02*std::exp(-0.275*energy) + 0.05;
00016     double p2 = 0.01;
00017     double p3 = 79.0*std::exp(-0.76*energy) + 0.96;
00018     //
00019     return p3/(1.0 + std::exp((aDelEta-p1)/p2));
00020   }
00021   //
00022   IFn* PeakMeanS0HadLateHcalBar1::clone() const {
00023     return new PeakMeanS0HadLateHcalBar1();
00024   }
00025 }//namespace
00026 
00027 

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