コード例 #1
0
            LArPhysOFCAlg.DecoderToolV2 = theLArPhysAutoCorrDecoderTool
        else:
            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 = ""
コード例 #2
0
if (len(PoolFileList) > 0):

    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"
コード例 #3
0
if (len(PoolFileList) > 0):

    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
コード例 #4
0
if (DumpOFC):
    LArPhysOFCAlg.DumpOFCfile = "LArOFCPhys.dat"
LArPhysOFCAlg.GroupingType = GroupingType
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
コード例 #5
0
svcMgr.EventSelector.InitialTimeStamp  = 0
svcMgr.EventSelector.TimeStampInterval = 1
theApp.EvtMax = 1

include( "LArConditionsCommon/LArIdMap_comm_jobOptions.py" )
svcMgr.IOVDbSvc.GlobalTag="COMCOND-005-02"
try:
   svcMgr.IOVDbSvc.DBInstance=""
except: 
   pass

conddb.addFolder("LAR","/LAR/ElecCalibOfl/OFCBin/Dummy")
conddb.addFolder("LAR","/LAR/ElecCalibOfl/OFC/PhysWave/RTM/5samples3bins17phases<key>LArOFCIn</key>")

from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker
LArOFPhasePicker = LArOFPhasePicker("LArOFPhasePicker")
LArOFPhasePicker.KeyPhase = "LArOFCPhase"
LArOFPhasePicker.KeyOFC_new = "LArOFC"
LArOFPhasePicker.KeyOFC = "LArOFCIn"
LArOFPhasePicker.GroupingType = "ExtendedSubDetector"
LArOFPhasePicker.OutputLevel = DEBUG
LArOFPhasePicker.DefaultPhase=1
topSequence += LArOFPhasePicker
#
# Make an output
from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg
Folder = "/LAR/ElecCalibOnl/OFC"
ObjectSpec = [ "LArOFCComplete#LArOFC#"+Folder ]
TagSpec = []
OutputDB = "sqlite://X;schema=OFCnew.db;dbname=CONDBR2"
theOutputConditionsAlg=OutputConditionsAlg("OutputConditionsAlg","./ofc_picked.pool.root",