4 from PyCool 
import cool
 
   15         sys.path.append(
'/afs/cern.ch/user/a/atlcond/utils/python/')
 
   16         from AtlCoolBKLib 
import resolveAlias
 
   17         resolver=resolveAlias()
 
   18         tag=resolver.getCurrent().
replace(
"*",
"ST")
 
   22     dbName=
"COOLOFL_LAR/CONDBR2" 
   23     fName=
"/LAR/BadChannelsOfl/MissingFEBs" 
   25     dbSvc = cool.DatabaseSvcFactory.databaseService()
 
   27         db= dbSvc.openDatabase(dbName)
 
   28     except Exception 
as e:
 
   29         print (
"Problems connecting to database:",e)
 
   33     print (
"getMissingFEBs: Checking tag",tag,
"for run",run)
 
   35     if not db.existsFolder(fName):
 
   36         print (
"ERROR: Folder",fName,
"not found in ",dbName)
 
   40     if not f.existsUserTag(tag):
 
   43         except Exception 
as e:
 
   44             print (
"ERROR: Tag",tag,
"not defined in folder",fName)
 
   51     cl_LArBadChannelDBTools=ROOT.LArBadChannelDBTools
 
   52     cl_AthenaAttributeList=ROOT.AthenaAttributeList    
 
   53     ms=cl_LArBadChannelDBTools.getDefaultMsgStream()
 
   57     ts1=cool.ValidityKey(1+(run<<32))
 
   58     ts2=cool.ValidityKey(((run+1)<<32)-1)
 
   59     itr=f.browseObjects(ts1,ts2,cool.ChannelSelection(0),t)
 
   65         al=cl_AthenaAttributeList(pl.attributeList())
 
   66         vect_BadFebEntry=cl_LArBadChannelDBTools.readBadFeb(al,ms)
 
   69         for (id,mf) 
in vect_BadFebEntry:
 
   71                 feblist.add(id.get_identifier32().get_compact())
 
   73         retval.append((obj.since(), obj.until(),feblist))