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

FastShower::PeakMeanC0HadLateHcalEc22 Class Reference

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

#include <PeakMeanC0HadLateHcalEc22.h>

Inheritance diagram for FastShower::PeakMeanC0HadLateHcalEc22:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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


Constructor & Destructor Documentation

FastShower::PeakMeanC0HadLateHcalEc22::PeakMeanC0HadLateHcalEc22   [inline]
 

Definition at line 23 of file PeakMeanC0HadLateHcalEc22.h.

Referenced by clone().

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

Member Function Documentation

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

Implements FastShower::IFn.

Definition at line 7 of file PeakMeanC0HadLateHcalEc22.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 =  0.2235;
00015     //  p2 = -0.0233;
00016     //  p3 =  0.78;
00017     //} else if (aDelPhi<0.045) {
00018     //  p1 =  0.2676;
00019     //  p2 = -0.0160;
00020     //  p3 =  0.7072;
00021     //} else {
00022     //  p1 =  0.2663;
00023     //  p2 = -0.0227;
00024     //  p3 =  0.6764;
00025     //}
00026     //
00027     //return  p1*std::exp(p2*energy) + p3;
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   }

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

Implements FastShower::IFn.

Definition at line 37 of file PeakMeanC0HadLateHcalEc22.cxx.

References PeakMeanC0HadLateHcalEc22().

00037                                               {
00038     return new PeakMeanC0HadLateHcalEc22();
00039   }

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