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
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
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
OnlineDB
EcalCondDB
src
EcalCommon.cc
Go to the documentation of this file.
1
#include <cmath>
2
#include <stdexcept>
3
4
#include "
OnlineDB/EcalCondDB/interface/EcalCommon.h
"
5
6
using namespace
std
;
7
8
int
EcalCommon::crystalToTriggerTower
(
int
xtal) noexcept(
false
) {
9
if
(xtal < 1 || xtal > 1700) {
10
throw
(std::runtime_error(
"ERROR: crystalToTriggerTower: crystal number out of bounds"
));
11
}
12
13
int
i
= (
int
)floor((xtal - 1) / 20.0);
14
int
j
= (xtal - 1) - 20 *
i
;
15
int
tti = (
int
)floor(
i
/ 5.0);
16
int
ttj = (
int
)floor(
j
/ 5.0);
17
int
tt
= ttj + 4 * tti + 1;
18
19
return
tt
;
20
}
mps_fire.i
i
Definition:
mps_fire.py:428
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:144
EcalCommon.h
createfilelist.int
int
Definition:
createfilelist.py:10
std
Definition:
JetResolutionObject.h:76
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
EcalCommon::crystalToTriggerTower
static int crystalToTriggerTower(int xtal) noexcept(false)
Definition:
EcalCommon.cc:8
Generated for CMSSW Reference Manual by
1.8.16