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

FastShower::PeakMeanC0EmEcalEc1 Class Reference

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

#include <PeakMeanC0EmEcalEc1.h>

Inheritance diagram for FastShower::PeakMeanC0EmEcalEc1:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 PeakMeanC0EmEcalEc1 ()
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 PeakMeanC0EmEcalEc1.h.


Constructor & Destructor Documentation

FastShower::PeakMeanC0EmEcalEc1::PeakMeanC0EmEcalEc1   [inline]
 

Definition at line 23 of file PeakMeanC0EmEcalEc1.h.

Referenced by clone().

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

Member Function Documentation

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

Implements FastShower::IFn.

Definition at line 6 of file PeakMeanC0EmEcalEc1.cxx.

References FastShower::ParticleParameters::delPhi(), and FastShower::PolyArgs::pp().

00006                                                             {
00007 
00008     double aDelPhi = fabs(pa.pp()->delPhi());
00009 
00010     double p1 = 0.0488925;
00011     double p2 = 0.006049;
00012     double p3 = 0.974575;
00013     double p4 = 0.0325;
00014     double mean = (aDelPhi<p1) ?
00015                    p3/(1. + std::exp((aDelPhi-p1)/p2)) :
00016                    p3/(1. + std::exp((aDelPhi-p1)/p2)) + p4;
00017     return mean;
00018   }

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

Implements FastShower::IFn.

Definition at line 20 of file PeakMeanC0EmEcalEc1.cxx.

References PeakMeanC0EmEcalEc1().

00020 {return new PeakMeanC0EmEcalEc1();}

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