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)