17 for gain
in range(0,3):
18 self.
_EMBC+=(3+gain*12,)
19 self.
_EMBA+=(9+gain*12,)
30 self.
_HECC+=(7+gain*12,)
31 self.
_HECA+=(13+gain*12,)
61 self.
_corr[
'EMBAPS'] = 1001
62 self.
_corr[
'EMBCPS'] = 1002
63 self.
_corr[
'EMECAPS'] = 1003
64 self.
_corr[
'EMECCPS'] = 1004
65 self.
_corr[
'EMBA'] = 1005
66 self.
_corr[
'EMBC'] = 1006
67 self.
_corr[
'EMECA'] = 1007
68 self.
_corr[
'EMECC'] = 1008
69 self.
_corr[
'HECA'] = 1009
70 self.
_corr[
'HECC'] = 1010
71 self.
_corr[
'FCALA'] = 1011
72 self.
_corr[
'FCALC'] = 1012
93 print (
"ERROR: Unkown gain",g)
97 for partition
in partitions:
100 extPart+=[
"EMECCPS",
"EMECC",
"HECC",
"FCALC"]
102 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA"]
104 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA",
105 "EMECCPS",
"EMECC",
"HECC",
"FCALC"]
107 extPart+=[
"EMBA",
"EMBAPS",
"EMBC",
"EMBCPS"]
118 chans+=[self.
_corr[p]+g*12]
120 print (
"ERROR: Unkown partition '",partition,
"'")
134 print (
"Duplicated entry",c2)
136 if c2-1 == c1
or c2-1
in self.
_empty:
140 retVal+=
":"+
str(c1)+
","+
str(c2)
146 if series: retVal+=
":"+
str(c1)
210 partCounter[p]=counterElem(len(chs),p)
215 print(
"ERROR: Unkown channel",c )
220 partCounter[p].inc(gain)
231 print(
'LArExtendedSubDetGrouping')
232 print(
'Partition: ',Partition)
233 print(
'PGen: ',PartitionTypeGeneric)
241 if ( GainList[0]==
"HIGH" ):
245 elif ( GainList[0]==
"MEDIUM" ) :
249 elif ( GainList[0]==
"LOW" ) :
258 if ( Partition==
'EB-EMBA' and ( PartitionTypeGeneric!=
'EMBPS' ) ) :
260 print(
'EMBA partition')
261 elif ( Partition==
'EB-EMBC' and ( PartitionTypeGeneric!=
'EMBPS' ) ) :
263 print(
'EMBC partition')
264 elif ( Partition==
'EB-EMB' and ( PartitionTypeGeneric!=
'EMBPS' ) ) :
265 partition =[
'EMBA',
'EMBC']
266 print(
'EMB partition')
269 if ( Partition==
'EB-EMBA' and ( PartitionTypeGeneric==
'EMBPS' ) ) :
270 partition =[
'EMBAPS']
271 print(
'EMBAPS partition')
272 elif ( Partition==
'EB-EMBC' and ( PartitionTypeGeneric==
'EMBPS' ) ) :
273 partition =[
'EMBCPS']
274 print(
'EMBCPS partition')
275 elif ( Partition==
'EB-PS' and ( PartitionTypeGeneric==
'EMBPS' ) ) :
276 partition =[
'EMBAPS',
'EMBCPS']
277 print(
'EMBAPS and EMBCPS partition')
279 if ( Partition==
'EB-EM' ) :
280 partition =[
'EMBAPS',
'EMBCPS',
'EMBA',
'EMBC',
'EMECAPS',
'EMECA',
'EMECCPS',
'EMECC']
281 print(
'EM partition')
284 if ( Partition==
'EB-EMECA' ) :
285 partition =[
'EMECAPS',
'EMECA']
286 elif ( Partition==
'EB-EMECC' ) :
287 partition =[
'EMECCPS',
'EMECC']
288 elif ( Partition==
'EB-EMEC' ) :
289 partition =[
'EMECAPS',
'EMECA',
'EMECCPS',
'EMECC']
291 elif ( PartitionType==
'HEC'):
292 partition =[
'HECA',
'HECC']
295 elif ( PartitionType==
'FCAL') :
296 partition =[
'FCALA',
'FCALC']
298 elif ( Partition==
'HECFCALC') :
299 partition =[
'HECC',
'FCALC']
301 selection = _lArExtendedSubDetGrouping.getChannelSelection(partition,gain)
302 ChannelSelection=
'<channelSelection>'+selection+
'</channelSelection>'
303 print(ChannelSelection)
304 print(
"CoolChannel Selection for ", partition,
" and ",gain,
" gain. ")
305 return ChannelSelection