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