00001 #include "FastShowerUtils/Samplers/PeakMeanC0HadLateHcalEc22.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003
00004 #include <cmath>
00005 namespace FastShower{
00006
00007 double PeakMeanC0HadLateHcalEc22::value(const PolyArgs& pa) const {
00008
00009 double energy = pa.pp()->energy();
00010 double aDelPhi = fabs(pa.pp()->delPhi());
00011 double p1, p2, p3;
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 p1 = 0.0325;
00030 p2 = 0.002;
00031 p3 = 0.90;
00032 double p4 = 0.05*std::sqrt(energy);
00033
00034 return p4+(p3-p4)/(1+std::exp((aDelPhi-p1)/p2));
00035 }
00036
00037 IFn* PeakMeanC0HadLateHcalEc22::clone() const {
00038 return new PeakMeanC0HadLateHcalEc22();
00039 }
00040 }
00041
00042