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

TailFracSNEmEcalBar2.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/Samplers/TailFracSNEmEcalBar2.h"
00002 #include "FastShowerUtils/PolyArgs.h"
00003 #include <cmath>
00004 namespace FastShower{
00005 
00006   double TailFracSNEmEcalBar2::value(const PolyArgs& pa) const {
00007 
00008     double energy  = pa.pp()->energy();
00009 
00010     if (energy<30.0) {
00011       return  0.10;
00012     }else if (energy<70.0) {
00013       return  0.05;
00014     }else {
00015       return  0.0;
00016     }
00017 
00018   }
00019   //
00020   IFn* TailFracSNEmEcalBar2::clone() const {
00021     return new TailFracSNEmEcalBar2();
00022   }
00023 }//namespace
00024 
00025 

Generated on Tue Mar 18 11:50:07 2003 for FastShowerUtils by doxygen1.3-rc1