Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
SimCalorimetry
EcalSimAlgos
src
ESShape.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/EcalSimAlgos/interface/ESShape.h
"
2
#include <cmath>
3
4
ESShape::ESShape
() {}
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
*/
ESShape::ESShape
ESShape()
ctor
Definition:
ESShape.cc:4
funct::exp
Exp< T >::type exp(const T &t)
Definition:
Exp.h:22
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
ESShape::timeToRise
double timeToRise() const override
Definition:
ESShape.cc:20
ESShape.h
ESShape::operator()
double operator()(double time) const override
Definition:
ESShape.cc:6
dqmiodumpmetadata.n
int n
Definition:
dqmiodumpmetadata.py:28
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition:
Power.h:29
Generated for CMSSW Reference Manual by
1.8.5