3 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    4 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    5 from LArBadChannelTool.LArBadFebsConfig 
import LArKnownBadFebCfg, LArKnownMNBFebCfg
 
    6 from LArCabling.LArHVCablingConfig 
import LArHVCablingCfg
 
    7 from AthenaConfiguration.Enums 
import ProductionStep
 
   13    isMC=configFlags.Input.isMC
 
   18       if not configFlags.Common.isOnline:
 
   20          result.addEventAlgo(CompFactory.LArHVlineMapAlg(keyOutput=
"LArHVNcells"))
 
   23    LArNoisyROAlg,LArNoisyROTool=CompFactory.getComps(
"LArNoisyROAlg",
"LArNoisyROTool")
 
   24    if configFlags.Common.ProductionStep 
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
 
   25         kwargs.setdefault(
'EventInfoKey', f
"{configFlags.Overlay.BkgPrefix}EventInfo") 
 
   27    theLArNoisyROTool=
LArNoisyROTool(CellQualityCut=configFlags.LAr.NoisyRO.CellQuality,
 
   28                                     BadChanPerFEB=configFlags.LAr.NoisyRO.BadChanPerFEB, 
 
   29                                     BadFEBCut=configFlags.LAr.NoisyRO.BadFEBCut,
 
   30                                     MNBLooseCut=configFlags.LAr.NoisyRO.MNBLooseCut,
 
   31                                     MNBTightCut=configFlags.LAr.NoisyRO.MNBTightCut,
 
   32                                     MNBTight_PsVetoCut=configFlags.LAr.NoisyRO.MNBTight_PsVetoCut,
 
   33                                     BadHVCut=configFlags.LAr.NoisyRO.BadHVCut,
 
   34                                     BadChanFracPerHVline=configFlags.LAr.NoisyRO.BadHVlineFrac,
 
   35                                     DoHVflag=
not (isMC 
or configFlags.Common.isOnline) 
 
   38    theLArNoisyROAlg=
LArNoisyROAlg(isMC=isMC,Tool=theLArNoisyROTool, **kwargs)
 
   39    if not isMC 
and not configFlags.Common.isOnline:
 
   40       theLArNoisyROAlg.LArHVIdMapping=
"LArHVIdMap" 
   41       theLArNoisyROAlg.HVMapKey=
"LArHVNcells" 
   42    result.addEventAlgo(theLArNoisyROAlg)
 
   44    toStore=
"LArNoisyROSummary#LArNoisyROSummary" 
   45    from OutputStreamAthenaPool.OutputStreamConfig 
import addToESD, addToAOD
 
   46    result.merge(
addToESD(configFlags,toStore))
 
   47    result.merge(
addToAOD(configFlags,toStore))