Skip to content
Snippets Groups Projects
Commit f5fde3b2 authored by Frank Winklmeier's avatar Frank Winklmeier Committed by Ahmed Tarek
Browse files

LArBadChannelTool: delete unused legacy config modules

LArBadChannelTool: delete unused legacy config modules

Delete unused `LArBadChannelAccess` and `LArBadFebAccess`.
parent cc6d1a23
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from __future__ import print_function
def LArBadChannelAccess(algname="LArBadChannelCondAlg",dbString=None, isSC=False):
from AthenaCommon.AlgSequence import AthSequencer
condSeq = AthSequencer("AthCondSeq")
if hasattr(condSeq,algname):
print ("Access to bad Cell info already set up")
return
from LArCabling.LArCablingAccess import LArOnOffIdMapping
LArOnOffIdMapping()
from IOVDbSvc.CondDB import conddb
if dbString is not None:
foldername=conddb.extractFolder(dbString)
conddb.addFolder("",dbString,className="CondAttrListCollection")
else:
if conddb.isOnline:
foldername="/LAR/BadChannels/BadChannels"
if not conddb.folderRequested(foldername):
conddb.addFolder("LAR",foldername,className="CondAttrListCollection")
else:
foldername="/LAR/BadChannelsOfl/BadChannels"
if not conddb.folderRequested(foldername):
conddb.addFolder("LAR_OFL",foldername,className="CondAttrListCollection")
pass
pass
from LArBadChannelTool.LArBadChannelToolConf import LArBadChannelCondAlg
theLArBadChannelCondAlg=LArBadChannelCondAlg(algname)
theLArBadChannelCondAlg.ReadKey=foldername
theLArBadChannelCondAlg.isSC=isSC
if isSC:
theLArBadChannelCondAlg.WriteKey="LArBadChannelSC"
theLArBadChannelCondAlg.CablingKey="LArOnOffIdMapSC"
condSeq+=theLArBadChannelCondAlg
return
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from __future__ import print_function
def LArBadFebAccess(algname="LArBadFebCondAlg", dbString=None):
from AthenaCommon.AlgSequence import AthSequencer
condSeq = AthSequencer("AthCondSeq")
if hasattr(condSeq,algname):
print ("Access to bad Feb info already set up")
return
from IOVDbSvc.CondDB import conddb
if dbString is not None:
foldername=conddb.extractFolder(dbString)
conddb.addFolder("",dbString,className='AthenaAttributeList')
#else:
# if conddb.isOnline or conddb.isMC:
# foldername="/LAR/BadChannels/MissingFEBs"
# conddb.addFolder("LAR",foldername,className='AthenaAttributeList')
# else:
# foldername="/LAR/BadChannelsOfl/MissingFEBs"
# conddb.addFolder("LAR_OFL",foldername,className='AthenaAttributeList')
# pass
# pass
from LArBadChannelTool.LArBadChannelToolConf import LArBadFebCondAlg
theLArBadFebCondAlg=LArBadFebCondAlg(algname)
theLArBadFebCondAlg.ReadKey=foldername
condSeq+=theLArBadFebCondAlg
return
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment