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"
        LArOFPhasePick2.doShape = False
        LArOFPhasePick2.GroupingType = GroupingType
        LArOFPhasePick2.DefaultPhase = DefaultPhase
Exemplo n.º 2
0
    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
    LArOFPhasePickermu.DefaultPhase = DefaultPhase