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

PeakMeanC0HadEarlyHcalEc1.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Samplers/PeakMeanC0HadEarlyHcalEc1.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003 
00004 #include <cmath>
00005 namespace FastShower{
00006 
00007   double PeakMeanC0HadEarlyHcalEc1::value(const PolyArgs& pa) const {
00008 
00009     double energy  = pa.pp()->energy();
00010     double aDelPhi = fabs(pa.pp()->delPhi());
00011     //
00012     //    double p1 = 1.985 - 0.0202*energy;
00013     //    double p2 = -28.70 + 0.3927*energy;
00014     //    double p3 = 0.9538 + 0.0002339*energy;
00015     //    //
00016     //    return  p3/(1. + std::exp((aDelPhi-p1)/p2));
00017     
00018     //double p1 = 0.958274*std::exp(-0.12147*energy) + 0.915595;
00019     //double p2 = -5.01769 - 0.0387615*energy;
00020     //
00021     //return p1 + p2*aDelPhi;
00022 
00023     //
00024     double p1 = 1.0583 + 79.09*std::exp(-0.46*energy) - 0.004167*energy;
00025     double p2 = -0.125*exp(-0.205*energy) + 0.05;
00026     double p3 = 0.012*exp(-0.076*energy) + 0.0087;
00027     //
00028     return p1/(1.0 + std::exp((aDelPhi-p2)/p3));
00029   }
00030   //
00031   IFn* PeakMeanC0HadEarlyHcalEc1::clone() const {
00032     return new PeakMeanC0HadEarlyHcalEc1();
00033   }
00034 }//namespace
00035 
00036 

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