Esempio n. 1
0
from Valkyrie.JobOptCfg import ValgrindSvc
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr += ValgrindSvc(OutputLevel=DEBUG, ProfiledAlgs=[], IgnoreFirstNEvents=1)
Esempio n. 2
0
write_xAOD = True
if write_xAOD:
    from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
    xaodStream = MSMgr.NewPoolStream("StreamXAOD", "xAOD.pool.root")
    xaodStream.AddItem('xAOD::MissingETContainer_v1#MET_RefFinal')
    xaodStream.AddItem('xAOD::MissingETAuxContainer_v1#MET_RefFinalAux.')
    xaodStream.AddItem('xAOD::MissingETContainer_v1#MET_RefFinalFix')
    xaodStream.AddItem('xAOD::MissingETAuxContainer_v1#MET_RefFinalFixAux.')
    xaodStream.AddItem('xAOD::MissingETContainer_v1#MET_MyRefFinalFix')
    xaodStream.AddItem('xAOD::MissingETAuxContainer_v1#MET_MyRefFinalFixAux.')
    xaodStream.AddItem('xAOD::MissingETContainer_v1#MET_RefFinalJVF')
    xaodStream.AddItem('xAOD::MissingETAuxContainer_v1#MET_RefFinalJVFAux.')
    xaodStream.Print()

    ServiceMgr.AthenaPoolCnvSvc.PoolAttributes += ["DEFAULT_SPLITLEVEL='99'"]

    # Force POOL to just simply use the StoreGate keys as branch names:
    ServiceMgr.AthenaPoolCnvSvc.SubLevelBranchName = "<key>"

from Valkyrie.JobOptCfg import ValgrindSvc
svcMgr += ValgrindSvc(OutputLevel=DEBUG,
                      ProfiledAlgs=["METUtilAlg"],
                      ProfiledIntervals=["METUtilAlg.execute"])

from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties
pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True

ServiceMgr.MessageSvc.defaultLimit = 9999999
theApp.EvtMax = -1
ServiceMgr.EventSelector.SkipEvents = 0
Esempio n. 3
0
# Get the configuration directly from METRecoFlags
# Can also provide a dict of configurations or list of RecoTools or both
metAlg = getMETAssocAlg('METAssociation')
topSequence += metAlg

from METUtilities.METMakerConfig import getMETMakerAlg
for key, conf in metFlags.METAssocConfigs().iteritems():
    if not conf.doTruth:
        makerAlg = getMETMakerAlg(conf.suffix, jetColl="AntiKt4EMTopoJets")
        topSequence += makerAlg
ToolSvc.METMaker_NewAntiKt4EMTopo.OutputLevel = 1

from Valkyrie.JobOptCfg import ValgrindSvc
svcMgr += ValgrindSvc(OutputLevel=INFO,
                      ProfiledAlgs=["METAssociation"],
                      ProfiledIntervals=["METAssociation.execute"])

from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties
pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True

write_xAOD = True
if write_xAOD:

    # The list of output containers/maps is autogenerated and stored in metFlags
    # This jO extracts them with the appropriate formatting
    from AthenaCommon.Resilience import protectedInclude
    protectedInclude(
        "METReconstruction/METReconstructionOutputAODList_jobOptions.py")

    from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
Esempio n. 4
0
    StoreGateSvc.Dump = True

if ISF_Flags.RunVP1():
    # VP1 part (better switch off PerMon when using VP1)
    from VP1Algs.VP1AlgsConf import VP1Alg
    topSequence += VP1Alg()

elif ISF_Flags.DoPerfMonStats():
    # Performance Monitoring (VP1 does not like this)
    # https://twiki.cern.ch/twiki/bin/viewauth/Atlas/PerfMonSD
    from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties
    pmon_properties.PerfMonFlags.doMonitoring = True
    pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True

if ISF_Flags.DumpMcEvent():
    # McEventCollection Dumper
    DumpMC = CfgMgr.DumpMC("DumpMC")
    DumpMC.McEventKey = "TruthEvent"
    topSequence += DumpMC

if ISF_Flags.RunValgrind():
    # code profiling with valgrind
    from Valkyrie.JobOptCfg import ValgrindSvc
    valgrindSvc = ValgrindSvc(OutputLevel=DEBUG)
    valgrindSvc.ProfiledAlgs += SimKernel
    #valgrindSvc.IgnoreFirstNEvents
    ServiceMgr += valgrindSvc

# useful for debugging:
printfunc(topSequence)
Esempio n. 5
0
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
topSequence += assocAlg
#topSequence += metAlg
#topSequence += metAlg_new
topSequence += metAlg_truth
topSequence += metAlg_truthconst
topSequence += metAlg_truthlep

# The tools are accessible via the configurations in metFlags
from AthenaCommon.AppMgr import ToolSvc

from Valkyrie.JobOptCfg import ValgrindSvc
svcMgr += ValgrindSvc(OutputLevel=DEBUG,
                      ProfiledAlgs=["METReconstruction"],
                      ProfiledIntervals=["METReconstruction.execute"])

from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties
pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True

write_xAOD = True
if write_xAOD:

    # The list of output containers/maps is autogenerated and stored in metFlags
    # This jO extracts them with the appropriate formatting
    from AthenaCommon.Resilience import protectedInclude
    protectedInclude(
        "METReconstruction/METReconstructionOutputAODList_jobOptions.py")

    from OutputStreamAthenaPool.MultipleStreamManager import MSMgr