54 def patchChannel(idhelper, channel, patchdet, patchFT, patchChan, verbose=False ):
56 chidval = chid.get_identifier32().get_compact()
57 name = idhelper.channel_name(chid)
58 FT = idhelper.feedthrough_name(chid)
61 if 0
in patchdet
and idhelper.isEMBchannel(chid):
62 if verbose:
print(name, chidval,
"is in EMB")
64 if 1
in patchdet
and idhelper.isEMECOW(chid):
65 if verbose:
print(name, chidval,
"is in EMECOW")
67 if 2
in patchdet
and idhelper.isEMECIW(chid):
68 if verbose:
print(name, chidval,
"is in EMECIW")
70 if 3
in patchdet
and idhelper.isHECchannel(chid):
71 if verbose:
print(name, chidval,
"is in HEC")
73 if 4
in patchdet
and idhelper.isFCALchannel(chid):
74 if verbose:
print(name, chidval,
"is in FCAL")
78 if verbose:
print(name, chidval,
"is in FT", FT)
80 if len(patchChan) > 0:
81 if chidval
in patchChan:
82 if verbose:
print(name, chidval,
"is in list of channels")