ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCalibUtils
python
GetCoolChannelSelection.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
4
def
GetCoolChannelSelection(partition, gain, withPS):
5
if
(gain<0
or
gain>3):
6
print
(
"ERROR Gain out of range: "
, gain)
7
return
""
8
if
(gain==0):
9
g=0
10
elif
(gain==1):
#Medium
11
g=239
12
elif
(gain==2):
13
g=475
14
else
:
15
print
(
"ERROR Gain out of range: "
, gain)
16
return
""
17
retString=
""
18
if
(partition==
"EMBA"
):
19
retString=
"%i:%i"
%(g+35,g+66)
20
if
(withPS):
21
retString+=
",%s:%s"
%(g+149,g+180)
22
23
elif
(partition==
"EMBC"
):
24
retString=
"%i:%i"
%(g+3,g+34)
25
if
(withPS):
26
retString+=
",%s:%s"
%(g+117,g+148)
27
28
elif
(partition==
"EMECA"
):
29
retString=
"%i:%i,%i,%i,%i,%i"
\
30
%(g+92,g+116,g+232,g+234,g+236,g+238)
31
if
(withPS):
32
retString+=
",%s:%s"
%(g+210,g+230)
33
34
elif
(partition==
"EMECA"
):
35
retString=
"%i:%i,%i,%i,%i,%i"
\
36
%(g+67,g+91,g+231,g+233,g+235,g+237)
37
if
(withPS):
38
retString+=
",%s:%s"
%(g+181,g+209)
39
40
return
retString
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0