#include <TailFracSNEmEcalEc1.h>
Inheritance diagram for FastShower::TailFracSNEmEcalEc1:
Public Methods | |
TailFracSNEmEcalEc1 () | |
virtual double | value (const PolyArgs &) const |
virtual IFn * | clone () const |
|
Definition at line 26 of file TailFracSNEmEcalEc1.h. Referenced by clone().
00026 :IFn(),DebugBase("TailFracSNEmEcalEc1"){} |
|
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 } |
|
Implements FastShower::IFn. Definition at line 28 of file TailFracSNEmEcalEc1.cxx. References TailFracSNEmEcalEc1().
00028 { 00029 return new TailFracSNEmEcalEc1(); 00030 } |