test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESShape.cc
Go to the documentation of this file.
2 #include <cmath>
3 
5 }
6 
7 double ESShape::operator () (double time_) const
8 {
9  if (time_>0.00001) {
10 
11  double wc = 0.07291;
12  double n = 1.798; // n-1 (in fact)
13  double v1 = pow(wc/n*time_, n);
14  double v2 = exp(n-wc*time_);
15  double v = v1*v2;
16 
17  return v;
18  }
19  else {
20  return 0.0;
21  }
22 }
23 
24 double
26 {
27  return 0.0 ;
28 }
29 
30 /*
31 double ESShape::derivative (double time_) const
32 {
33  if (time_>0.00001) {
34  double xf = A_*omegac_*time_;
35  return (Qcf_/norm_)*pow(xf,M_-1.)*exp(-omegac_*time_);
36  }
37  else {
38  return 0.0;
39  }
40 }
41 */
42 
virtual double operator()(double time) const
Definition: ESShape.cc:7
virtual double timeToRise() const
Definition: ESShape.cc:25
ESShape()
ctor
Definition: ESShape.cc:4
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40