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

FastShower::HadEcalHcalSharesEc Class Reference

#include <HadEcalHcalSharesEc.h>

Inheritance diagram for FastShower::HadEcalHcalSharesEc:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 HadEcalHcalSharesEc (const ITripleShowererSelectorConfig *, const std::string &)
 ~HadEcalHcalSharesEc ()
virtual double mean (const double) const
virtual double sigma (const double) const
virtual IFnOfParticleParameters2clone () const

Constructor & Destructor Documentation

FastShower::HadEcalHcalSharesEc::HadEcalHcalSharesEc const ITripleShowererSelectorConfig  ,
const std::string &   
 

Definition at line 12 of file HadEcalHcalSharesEc.cxx.

Referenced by clone().

00013                                                               :
00014     IFnOfParticleParameters2(),HadEcalHcalSharesBase(c,s){}
  //

FastShower::HadEcalHcalSharesEc::~HadEcalHcalSharesEc   [inline]
 

Definition at line 26 of file HadEcalHcalSharesEc.h.

00026 {}

Member Function Documentation

double FastShower::HadEcalHcalSharesEc::mean const    double const [virtual]
 

Implements FastShower::HadEcalHcalSharesBase.

Definition at line 17 of file HadEcalHcalSharesEc.cxx.

00017                                               {
00018     double a[2]={1.0, 0.820};
00019     double b[2]={-21.04, 0.420};
00020     double c[2]={-10.24, 0.048};
00021 
00022     return  (energy > 1.0)? a[0]+b[0]/std::pow((energy-c[0]),2) : 
00023                             a[1]*(1.-(1./(1.+std::exp((energy-b[1])/c[1])))) ;
00024   }

double FastShower::HadEcalHcalSharesEc::sigma const    double const [virtual]
 

Implements FastShower::HadEcalHcalSharesBase.

Definition at line 27 of file HadEcalHcalSharesEc.cxx.

00027                                                {
00028     double alpha=0.49;
00029     double beta=0.08;
00030 
00031     return  std::sqrt( std::pow(alpha,2)/energy + std::pow(beta,2) );
00032   }

IFnOfParticleParameters2 * FastShower::HadEcalHcalSharesEc::clone   const [virtual]
 

Implements FastShower::IFnOfParticleParameters2.

Definition at line 34 of file HadEcalHcalSharesEc.cxx.

References HadEcalHcalSharesEc().

00034                                                              {
00035     return new HadEcalHcalSharesEc(*this);
00036   }

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