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

FastShower::TailFracSNEmEcalEc1 Class Reference

#include <TailFracSNEmEcalEc1.h>

Inheritance diagram for FastShower::TailFracSNEmEcalEc1:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

Constructor & Destructor Documentation

FastShower::TailFracSNEmEcalEc1::TailFracSNEmEcalEc1   [inline]
 

Definition at line 26 of file TailFracSNEmEcalEc1.h.

Referenced by clone().

00026 :IFn(),DebugBase("TailFracSNEmEcalEc1"){}

Member Function Documentation

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

Implements FastShower::IFn.

Definition at line 7 of file TailFracSNEmEcalEc1.cxx.

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

00007                                                             {
00008 
00009     double energy  = pa.pp()->energy();
00010     double cell0   = pa.cs()->cell0();
00011     //
00012     double limit;
00013     if (energy<15.0) {limit = 0.45;}
00014     else if (energy<25.0) {limit = 0.40;}
00015     else {limit = 0.0;}
00016     //
00017     if (energy<10.0) {
00018       return (cell0<limit)? 0.60 : 0.20;
00019     }
00020     else if (energy<30.0) {
00021       return ((cell0<limit)||(energy<15.0))? 0.55 + 0.005*energy : 0.20;
00022     }
00023     else {
00024       return 0.0;
00025     }
00026   }

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

Implements FastShower::IFn.

Definition at line 28 of file TailFracSNEmEcalEc1.cxx.

References TailFracSNEmEcalEc1().

00028                                         {
00029     return new TailFracSNEmEcalEc1();
00030   }

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