Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
SimCalorimetry
CaloSimAlgos
src
CaloCachedShapeIntegrator.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloCachedShapeIntegrator.h
"
2
3
const
int
NBINS
= 281;
// 256, plus 25 before
4
5
CaloCachedShapeIntegrator::CaloCachedShapeIntegrator
(
const
CaloVShape
*aShape)
6
: v_(
NBINS
, 0.), timeToRise_(aShape->timeToRise()) {
7
for
(
int
t
= 0;
t
< 256; ++
t
) {
8
double
amount = (*aShape)(
t
);
9
for
(
int
istep = 0; istep < 25; ++istep) {
10
int
ibin =
t
+ istep;
11
v_
[ibin] += amount;
12
}
13
}
14
}
15
16
CaloCachedShapeIntegrator::~CaloCachedShapeIntegrator
() {}
17
18
double
CaloCachedShapeIntegrator::timeToRise
()
const
{
return
timeToRise_
; }
19
20
double
CaloCachedShapeIntegrator::operator()
(
double
startTime
)
const
{
21
// round up, and account for the -25 ns offset
22
int
ibin =
static_cast<
int
>
(
startTime
+ 25.0);
23
return
(ibin < 0 || ibin >=
NBINS
) ? 0. :
v_
[ibin];
24
}
CaloCachedShapeIntegrator.h
CaloCachedShapeIntegrator::timeToRise
double timeToRise() const override
Definition:
CaloCachedShapeIntegrator.cc:18
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:651
CaloCachedShapeIntegrator::CaloCachedShapeIntegrator
CaloCachedShapeIntegrator(const CaloVShape *aShape)
Definition:
CaloCachedShapeIntegrator.cc:5
CaloVShape
Electronic response of the preamp.
Definition:
CaloVShape.h:11
CaloCachedShapeIntegrator::~CaloCachedShapeIntegrator
~CaloCachedShapeIntegrator() override
Definition:
CaloCachedShapeIntegrator.cc:16
CaloCachedShapeIntegrator::v_
std::vector< double > v_
Definition:
CaloCachedShapeIntegrator.h:22
CaloCachedShapeIntegrator::timeToRise_
double timeToRise_
Definition:
CaloCachedShapeIntegrator.h:23
CaloCachedShapeIntegrator::operator()
double operator()(double startTime) const override
Definition:
CaloCachedShapeIntegrator.cc:20
BeamSpotPI::startTime
Definition:
BeamSpotPayloadInspectorHelper.h:56
NBINS
const int NBINS
Definition:
CaloCachedShapeIntegrator.cc:3
Generated for CMSSW Reference Manual by
1.8.14