CMS 3D CMS Logo

ESShape.cc
Go to the documentation of this file.
2 #include <cmath>
3 
5 
6 double ESShape::operator()(double time_) const {
7  if (time_ > 0.00001) {
8  double wc = 0.07291;
9  double n = 1.798; // n-1 (in fact)
10  double v1 = pow(wc / n * time_, n);
11  double v2 = exp(n - wc * time_);
12  double v = v1 * v2;
13 
14  return v;
15  } else {
16  return 0.0;
17  }
18 }
19 
20 double ESShape::timeToRise() const { return 0.0; }
21 
22 /*
23 double ESShape::derivative (double time_) const
24 {
25  if (time_>0.00001) {
26  double xf = A_*omegac_*time_;
27  return (Qcf_/norm_)*pow(xf,M_-1.)*exp(-omegac_*time_);
28  }
29  else {
30  return 0.0;
31  }
32 }
33 */
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
ESShape::operator()
double operator()(double time) const override
Definition: ESShape.cc:6
ESShape.h
findQualityFiles.v
v
Definition: findQualityFiles.py:179
ESShape::ESShape
ESShape()
ctor
Definition: ESShape.cc:4
ESShape::timeToRise
double timeToRise() const override
Definition: ESShape.cc:20
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6