LArPhysOFCAlg.DecoderToolV2 = theLArAutoCorrDecoderTool if ofcdef.Nsamples == 4: LArPhysOFCAlg.ReadDSPConfig = ofcdef.ReadDSPConfig LArPhysOFCAlg.DSPConfigFolder = ofcdef.DSPConfigFolder conddb.addFolder("LAR_ONL", "/LAR/Configuration/DSPConfiguration") #conddb.addFolder("","<db>sqlite://;schema=/afs/cern.ch/atlas/maxidisk/d20/Automation/AtlasProduction-20.1.0.2/run/dspconfig_std.db;dbname=CONDBR2</db>/LAR/Configuration/DSPConfiguration") #conddb.addFolder("","<db>sqlite://;schema=/afs/cern.ch/atlas/maxidisk/d20/Automation/AtlasProduction-20.1.0.2/run/dspconfig_run1.db;dbname=CONDBR2</db>/LAR/Configuration/DSPConfiguration") LArPhysOFCAlg.OutputLevel = WARNING topSequence += LArPhysOFCAlg LArOFPhasePick = LArOFPhasePicker(ofcdef.Algoname + "Picker") LArOFPhasePick.KeyPhase = "" LArOFPhasePick.KeyOFC = ofcdef.KeyOFC[0] LArOFPhasePick.KeyOFC_new = ofcdef.KeyOFC[0] + "_picked" LArOFPhasePick.KeyShape = ofcdef.KeyShape LArOFPhasePick.KeyShape_new = ofcdef.KeyShape + "_picked" #LArOFPhasePick.OutputLevel=VERBOSE LArOFPhasePick.GroupingType = GroupingType LArOFPhasePick.DefaultPhase = DefaultPhase LArOFPhasePick.TimeOffsetCorrection = TimeOffsetCorrection topSequence += LArOFPhasePick if len(ofcdef.PhysAutoCorr) == 2: #Second OFC flavor defined LArOFPhasePick2 = LArOFPhasePicker(ofcdef.Algoname + "Picker2") #LArOFPhasePick2.OutputLevel=VERBOSE LArOFPhasePick2.KeyPhase = "" LArOFPhasePick2.KeyOFC = ofcdef.KeyOFC[1] LArOFPhasePick2.KeyOFC_new = ofcdef.KeyOFC[1] + "_picked"
topSequence += LArPhysOFCAlg from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool() ToolSvc += theLArAutoCorrDecoderTool if (doOFCPicker): conddb.addFolder( "", "/LAR/ElecCalibOfl/OFCBin/Dummy<dbConnection>" + DBConnectionCOOL + "</dbConnection>" + ChannelSelection) from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker LArOFPhasePicker = LArOFPhasePicker("LArOFPhasePicker") LArOFPhasePicker.KeyPhase = "LArOFCPhase" LArOFPhasePicker.KeyOFC_new = OFCKey LArOFPhasePicker.KeyOFC = "tempOFC" LArOFPhasePicker.KeyShape_new = ShapeKey LArOFPhasePicker.KeyShape_newcorr = ShapeKeyCorr LArOFPhasePicker.KeyShape = "tempShape" LArOFPhasePicker.KeyShapeResidual = "LArResiduals" LArOFPhasePicker.doShapeCorrection = FillShapeCorr LArOFPhasePicker.GroupingType = GroupingType LArOFPhasePicker.DefaultPhase = DefaultPhase LArOFPhasePicker.TimeOffsetCorrection = TimeOffsetCorrection topSequence += LArOFPhasePicker ########################################################################### if (WriteNtuple):
from AthenaCommon.ConfigurableDb import getConfigurable svcMgr += getConfigurable("ProxyProviderSvc")() svcMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"] svcMgr += getConfigurable("CondProxyProvider")() svcMgr.CondProxyProvider.InputCollections += PoolFileList ########################################################################### # pickup one phase OFC # ########################################################################### from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker LArOFPhasePick = LArOFPhasePicker("LArOFPhasePicker") LArOFPhasePick.KeyPhase = "LArOFCPhase" LArOFPhasePick.KeyOFC_new = OFCKey LArOFPhasePick.KeyOFC = "LArOFCIn" LArOFPhasePick.KeyShape_new = ShapeKey LArOFPhasePick.KeyShape = "LArShapeIn" LArOFPhasePick.GroupingType = GroupingType LArOFPhasePick.DefaultPhase = DefaultPhase LArOFPhasePick.TimeOffsetCorrection = TimeOffsetCorrection LArOFPhasePick.isSC = SuperCells topSequence += LArOFPhasePick if NColl > 0: LArOFPhasePickermu = LArOFPhasePicker("LArOFPhasePickermu") LArOFPhasePickermu.KeyPhase = "LArOFCPhase" LArOFPhasePickermu.KeyOFC_new = OFCKey + "_mu" LArOFPhasePickermu.KeyOFC = "LArOFCInmu" LArOFPhasePickermu.doShape = False LArOFPhasePickermu.GroupingType = GroupingType
from AthenaCommon.ConfigurableDb import getConfigurable svcMgr += getConfigurable("ProxyProviderSvc")() svcMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"] svcMgr += getConfigurable("CondProxyProvider")() svcMgr.CondProxyProvider.InputCollections += PoolFileList ########################################################################### # pickup one phase OFC # ########################################################################### from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker LArOFPhasePicker = LArOFPhasePicker("LArOFPhasePicker") LArOFPhasePicker.KeyPhase = "LArOFCPhase" LArOFPhasePicker.KeyOFC_new = OFCKey LArOFPhasePicker.KeyOFC = "LArOFCIn" LArOFPhasePicker.KeyShape_new = ShapeKey LArOFPhasePicker.KeyShape = "LArShapeIn" LArOFPhasePicker.GroupingType = GroupingType LArOFPhasePicker.DefaultPhase = DefaultPhase LArOFPhasePicker.TimeOffsetCorrection = TimeOffsetCorrection topSequence += LArOFPhasePicker ########################################################################### if (WriteNtuple): from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple LArOFC2Ntuple = LArOFC2Ntuple("LArOFC2Ntuple") LArOFC2Ntuple.ContainerKey = OFCKey LArOFC2Ntuple.AddFEBTempInfo = False