16 sys.path.append(
'/afs/cern.ch/user/a/atlcond/utils/python/')
17 from AtlCoolBKLib
import resolveAlias
18 resolver=resolveAlias()
19 tag=resolver.getCurrent().
replace(
"*",
"ST")
23 dbName=
"COOLOFL_LAR/CONDBR2"
24 fName=
"/LAR/BadChannelsOfl/MissingFEBs"
26 dbSvc = cool.DatabaseSvcFactory.databaseService()
28 db= dbSvc.openDatabase(dbName)
29 except Exception
as e:
30 print (
"Problems connecting to database:",e)
34 print (
"getMissingFEBs: Checking tag",tag,
"for run",run)
36 if not db.existsFolder(fName):
37 print (
"ERROR: Folder",fName,
"not found in ",dbName)
41 if not f.existsUserTag(tag):
44 except Exception
as e:
45 print (
"ERROR: Tag",tag,
"not defined in folder",fName)
52 cl_LArBadChannelDBTools=ROOT.LArBadChannelDBTools
53 cl_AthenaAttributeList=ROOT.AthenaAttributeList
54 ms=cl_LArBadChannelDBTools.getDefaultMsgStream()
58 ts1=cool.ValidityKey(1+(run<<32))
59 ts2=cool.ValidityKey(((run+1)<<32)-1)
60 itr=f.browseObjects(ts1,ts2,cool.ChannelSelection(0),t)
66 al=cl_AthenaAttributeList(pl.attributeList())
67 vect_BadFebEntry=cl_LArBadChannelDBTools.readBadFeb(al,ms)
70 for (id,mf)
in vect_BadFebEntry:
72 feblist.add(id.get_identifier32().get_compact())
74 retval.append((obj.since(), obj.until(),feblist))