3 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    4 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    5 from DetDescrCnvSvc.DetDescrCnvSvcConfig 
import DetDescrCnvSvcCfg
 
    6 from IOVDbSvc.IOVDbSvcConfig 
import addFolders
 
   12    isMC=configFlags.Input.isMC
 
   13    theCaloCellPedestalCorr=CompFactory.CaloCellPedestalCorr()
 
   16       theCaloCellPedestalCorr.isMC=
False 
   17       if configFlags.Common.isOnline:
 
   18          folder  = 
'/CALO/Pedestal/CellPedestal' 
   19          result.merge(
addFolders(configFlags,folder,
'CALO_ONL',className=
"CondAttrListCollection"))
 
   22          folder= 
'/CALO/Ofl/Pedestal/CellPedestal' 
   23          result.merge(
addFolders(configFlags,folder,
'CALO_OFL',className=
"CondAttrListCollection"))
 
   25       thePedCorrCondAlg=CompFactory.CaloCellPedCorrCondAlg(PedestalShiftFolder=folder)
 
   27       theCaloCellPedestalCorr.isMC=
True 
   30    if not configFlags.Common.isOnline:
 
   31       if configFlags.Calo.Cell.doPileupOffsetBCIDCorr:
 
   32          from CaloRec.CaloBCIDAvgAlgConfig 
import CaloBCIDAvgAlgCfg
 
   34          theCaloCellPedestalCorr.CaloBCIDAverageKey=
"CaloBCIDAverage" 
   36          theCaloCellPedestalCorr.CaloBCIDAverageKey=
"" 
   38             lumiFolder = 
'/TRIGGER/LUMI/LBLESTONL' 
   39             result.merge(
addFolders(configFlags,lumiFolder,
'TRIGGER_ONL',className=
"CondAttrListCollection"))
 
   40             thePedCorrCondAlg.Luminosity = -1
 
   41             thePedCorrCondAlg.LumiFolderName = lumiFolder
 
   44       result.addCondAlgo(thePedCorrCondAlg)
 
   46    result.setPrivateTools(theCaloCellPedestalCorr)
 
   51     """Return component accumulator with configured private Calo cell neighbors average correction tool 
   54         flags  -- Athena configuration flags (ConfigFlags) 
   58     from LArGeoAlgsNV.LArGMConfig 
import LArGMCfg
 
   61     from TileGeoModel.TileGMConfig 
import TileGMCfg
 
   64     CaloCellNeighborsAverageCorr=CompFactory.CaloCellNeighborsAverageCorr
 
   67     acc.setPrivateTools( caloCellNeighborsAverageCorrection )
 
   72    CaloCellTimeCorrTool=CompFactory.CaloCellTimeCorrTool
 
   74    folder= 
"/LAR/TimeCorrectionOfl/CellTimeOffset" 
   75    result.merge(
addFolders(configFlags,[folder,], 
"LAR_OFL", className=
"AthenaAttributeList"))
 
   81    CaloCellEnergyRescaler=CompFactory.CaloCellEnergyRescaler
 
   83    folder=
"/LAR/CellCorrOfl/EnergyCorr" 
   84    result.merge(
addFolders(configFlags,[folder,], 
"LAR_OFL", className=
"AthenaAttributeList"))