Main Page
Namespaces
Classes
Package Documentation
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
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
25
ESShape::timeToRise
()
const
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
ESShape::timeToRise
double timeToRise() const override
Definition:
ESShape.cc:25
ESShape::ESShape
ESShape()
ctor
Definition:
ESShape.cc:4
ESShape::operator()
double operator()(double time) const override
Definition:
ESShape.cc:7
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
ESShape.h
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition:
Power.h:40
Generated for CMSSW Reference Manual by
1.8.11