test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
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::operator()
virtual double operator()(double time) const
Definition:
ESShape.cc:7
ESShape::timeToRise
virtual double timeToRise() const
Definition:
ESShape.cc:25
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1087
ESShape::ESShape
ESShape()
ctor
Definition:
ESShape.cc:4
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
n
int n
Definition:
DTDataIntegrityTask.cc:30
ESShape.h
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.5