#include <PeakMeanC0HadLateHcalEc21.h>
Inheritance diagram for FastShower::PeakMeanC0HadLateHcalEc21:
Public Methods | |
PeakMeanC0HadLateHcalEc21 () | |
virtual double | value (const PolyArgs &) const |
virtual IFn * | clone () const |
UML: IDistributionClass.unm
Definition at line 21 of file PeakMeanC0HadLateHcalEc21.h.
|
Definition at line 23 of file PeakMeanC0HadLateHcalEc21.h. Referenced by clone().
00023 :IFn(),DebugBase("PeakMeanC0HadLateHcalEc21"){} |
|
Implements FastShower::IFn. Definition at line 7 of file PeakMeanC0HadLateHcalEc21.cxx. References FastShower::ParticleParameters::delPhi(), FastShower::ParticleParameters::energy(), and FastShower::PolyArgs::pp().
00007 { 00008 00009 double energy = pa.pp()->energy(); 00010 double aDelPhi = fabs(pa.pp()->delPhi()); 00011 double p1, p2, p3; 00012 // 00013 //if (aDelPhi<0.040) { 00014 // p1 = -1.3940; 00015 // p2 = -0.0824; 00016 // p3 = 0.7384; 00017 //} else if (aDelPhi<0.045) { 00018 // p1 = -1.2421; 00019 // p2 = -0.0721; 00020 // p3 = 0.7331; 00021 //} else { 00022 // p1 = -0.5834; 00023 // p2 = -0.02866; 00024 // p3 = 0.5349; 00025 //} 00026 // 00027 //return p1*std::exp(p2*energy) + p3; 00028 // 00029 p1 = 0.0535; 00030 p2 = 0.008; 00031 p3 = 0.90; 00032 // 00033 return p3/(1.0 + std::exp((aDelPhi-p1)/p2)); 00034 } |
|
Implements FastShower::IFn. Definition at line 36 of file PeakMeanC0HadLateHcalEc21.cxx. References PeakMeanC0HadLateHcalEc21().
00036 { 00037 return new PeakMeanC0HadLateHcalEc21(); 00038 } |