CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/SimCalorimetry/EcalSimAlgos/src/ESShape.cc

Go to the documentation of this file.
00001 #include "SimCalorimetry/EcalSimAlgos/interface/ESShape.h"
00002 #include <cmath>
00003 
00004 ESShape::ESShape() {
00005 }
00006 
00007 double ESShape::operator () (double time_) const
00008 {   
00009   if (time_>0.00001) {
00010 
00011     double wc = 0.07291;
00012     double n  = 1.798; // n-1 (in fact)
00013     double v1 = pow(wc/n*time_, n);
00014     double v2 = exp(n-wc*time_);
00015     double v  = v1*v2;
00016 
00017     return v;
00018   } 
00019   else {
00020     return 0.0;
00021   }
00022 }
00023 
00024 double
00025 ESShape::timeToRise() const
00026 {
00027    return 0.0 ;
00028 }
00029 
00030 /*
00031 double ESShape::derivative (double time_) const
00032 {
00033   if (time_>0.00001) {
00034     double xf = A_*omegac_*time_;
00035     return (Qcf_/norm_)*pow(xf,M_-1.)*exp(-omegac_*time_);
00036   } 
00037   else {
00038     return 0.0;
00039   }
00040 }
00041 */
00042