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

FastShower::TailFracANHadLateHcalEc1 Class Reference

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

#include <TailFracANHadLateHcalEc1.h>

Inheritance diagram for FastShower::TailFracANHadLateHcalEc1:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

Detailed Description

Interface for single value fucntions of PolyArgs.

UML: IDistributionClass.unm

Definition at line 20 of file TailFracANHadLateHcalEc1.h.


Constructor & Destructor Documentation

FastShower::TailFracANHadLateHcalEc1::TailFracANHadLateHcalEc1   [inline]
 

Definition at line 22 of file TailFracANHadLateHcalEc1.h.

Referenced by clone().

00022 :IFn(),DebugBase("TailFracANHadLateHcalEc1"){}

Member Function Documentation

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

Implements FastShower::IFn.

Definition at line 6 of file TailFracANHadLateHcalEc1.cxx.

References FastShower::CoreSamples::cellSN(), FastShower::PolyArgs::cs(), FastShower::ParticleParameters::energy(), and FastShower::PolyArgs::pp().

00006                                                                  {
00007     double energy  = pa.pp()->energy();
00008     double snFrac  = pa.cs()->cellSN();
00009     if (snFrac<0.05) {
00010       return  0.70 - 0.002*energy;
00011     }else if (snFrac<0.10) {
00012       return  0.465*std::exp(-0.041*energy) + 0.1912;
00013     }else if (snFrac<0.15) {
00014       return  0.40 - 0.004*energy;
00015     }
00016     return  0.0;
00017   }

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

Implements FastShower::IFn.

Definition at line 19 of file TailFracANHadLateHcalEc1.cxx.

References TailFracANHadLateHcalEc1().

00019                                              {
00020     return new TailFracANHadLateHcalEc1();
00021   }

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