ATLAS Offline Software
GetCoolChannelSelection.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 from __future__ import print_function
3 
4 
5 def GetCoolChannelSelection(partition, gain, withPS):
6  if (gain<0 or gain>3):
7  print ("ERROR Gain out of range: ", gain)
8  return ""
9  if (gain==0):
10  g=0
11  elif (gain==1): #Medium
12  g=239
13  elif (gain==2):
14  g=475
15  else:
16  print("ERROR Gain out of range: ", gain)
17  return ""
18  retString=""
19  if (partition=="EMBA"):
20  retString="%i:%i"%(g+35,g+66)
21  if (withPS):
22  retString+=",%s:%s"%(g+149,g+180)
23 
24  elif (partition=="EMBC"):
25  retString="%i:%i"%(g+3,g+34)
26  if (withPS):
27  retString+=",%s:%s"%(g+117,g+148)
28 
29  elif (partition=="EMECA"):
30  retString="%i:%i,%i,%i,%i,%i"\
31  %(g+92,g+116,g+232,g+234,g+236,g+238)
32  if (withPS):
33  retString+=",%s:%s"%(g+210,g+230)
34 
35  elif (partition=="EMECA"):
36  retString="%i:%i,%i,%i,%i,%i"\
37  %(g+67,g+91,g+231,g+233,g+235,g+237)
38  if (withPS):
39  retString+=",%s:%s"%(g+181,g+209)
40 
41  return retString
python.GetCoolChannelSelection.GetCoolChannelSelection
def GetCoolChannelSelection(partition, gain, withPS)
Definition: GetCoolChannelSelection.py:5
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28