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

FastShower::PeakMeanC0HadEarlyHcalEc1 Class Reference

Interface for single value fucntions of PolyArgs. More...

#include <PeakMeanC0HadEarlyHcalEc1.h>

Inheritance diagram for FastShower::PeakMeanC0HadEarlyHcalEc1:

Inheritance graph
[legend]
Collaboration diagram for FastShower::PeakMeanC0HadEarlyHcalEc1:

Collaboration graph
[legend]
List of all members.

Public Methods

 PeakMeanC0HadEarlyHcalEc1 ()
virtual double value (const PolyArgs &) const
virtual IFnclone () const

Detailed Description

Interface for single value fucntions of PolyArgs.

UML: IDistributionClass.unm

Definition at line 21 of file PeakMeanC0HadEarlyHcalEc1.h.


Constructor & Destructor Documentation

FastShower::PeakMeanC0HadEarlyHcalEc1::PeakMeanC0HadEarlyHcalEc1   [inline]
 

Definition at line 23 of file PeakMeanC0HadEarlyHcalEc1.h.

Referenced by clone().

00023 :IFn(),DebugBase("PeakMeanC0HadEarlyHcalEc1"){}

Member Function Documentation

double FastShower::PeakMeanC0HadEarlyHcalEc1::value const PolyArgs   const [virtual]
 

Implements FastShower::IFn.

Definition at line 7 of file PeakMeanC0HadEarlyHcalEc1.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     //
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   }

IFn * FastShower::PeakMeanC0HadEarlyHcalEc1::clone   const [virtual]
 

Implements FastShower::IFn.

Definition at line 31 of file PeakMeanC0HadEarlyHcalEc1.cxx.

References PeakMeanC0HadEarlyHcalEc1().

00031                                               {
00032     return new PeakMeanC0HadEarlyHcalEc1();
00033   }

The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:57:28 2003 for FastShowerUtils by doxygen1.3-rc1