Main Page
Namespaces
Classes
Package Documentation
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)
9
noexcept
(
false
)
10
{
11
if
(xtal < 1 || xtal > 1700) {
12
throw
(std::runtime_error(
"ERROR: crystalToTriggerTower: crystal number out of bounds"
));
13
}
14
15
int
i
= (
int
) floor((xtal-1)/20.0);
16
int
j = (xtal-1) - 20*i;
17
int
tti = (
int
) floor(i/5.0);
18
int
ttj = (
int
) floor(j/5.0);
19
int
tt
= ttj + 4*tti + 1;
20
21
return
tt
;
22
}
23
mps_fire.i
i
Definition:
mps_fire.py:338
std
Definition:
JetResolutionObject.h:80
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:144
createfilelist.int
int
Definition:
createfilelist.py:10
noexcept
#define noexcept
Definition:
GCC11Compatibility.h:36
EcalCommon::crystalToTriggerTower
static int crystalToTriggerTower(int xtal) noexcept(false)
Definition:
EcalCommon.cc:8
EcalCommon.h
Generated for CMSSW Reference Manual by
1.8.11