Пример #1
0
def saveJetContainers():
    global containerToRebuild

    from AthenaCommon.AppMgr import theApp
    StreamAOD = theApp.getOutputStream("StreamAOD")

    for jname in containerToRebuild:
        StreamAOD.ItemList += [
            "xAOD::JetContainer_v1#" + jname,
            "xAOD::JetAuxContainer_v1#" + jname + "Aux."
        ]
Пример #2
0
        topSequence += MuonTrackPerformanceAlg(
            "MuonTrackPerformanceAlg",
            TrackInputLocation="TrigMuonEFTBTracks",
            SegmentCombitLocation="TrigMuonEFSegments")
        topSequence.MuonTrackPerformanceAlg.DoSummary = 1
        topSequence.MuonTrackPerformanceAlg.DoTrackDebug = 5

    include("TrigMuSuperEF/TrigMuSuperEF_debug_postOptions.py")

    if makeESD:
        # Remove the following outputs defined in
        # MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRecOutputItemList_jobOptions.py.
        # To fix bug #79056: ERROR INCORRECT Object/count: Muon PRDs

        from AthenaCommon.AppMgr import theApp
        StreamESD = theApp.getOutputStream("StreamESD")

        while "Muon::CscPrepDataContainer#CSC_Clusters" in StreamESD.ItemList:
            StreamESD.ItemList.remove(
                "Muon::CscPrepDataContainer#CSC_Clusters")
        while "Muon::CscPrepDataContainer#CSC_Clusters" in StreamESD.ItemList:
            StreamESD.ItemList.remove(
                "Muon::CscPrepDataContainer#CSC_Clusters")
        while "Muon::CscPrepDataContainer#CSC_Clusters" in StreamESD.ItemList:
            StreamESD.ItemList.remove(
                "Muon::CscPrepDataContainer#CSC_Clusters")
        while "Muon::CscStripPrepDataContainer#CSC_Measurements" in StreamESD.ItemList:
            StreamESD.ItemList.remove(
                "Muon::CscStripPrepDataContainer#CSC_Measurements")
        while "Muon::RpcPrepDataContainer#RPC_Measurements" in StreamESD.ItemList:
            StreamESD.ItemList.remove(
Пример #3
0
from AthenaCommon.AppMgr import theApp
outStream = theApp.getOutputStream("StreamRDO")

from AthenaCommon.AppMgr import ToolSvc
from AthenaCommon.CfgGetter import getService, getPublicTool
if DetFlags.digitize.pixel_on():
    outStream.ItemList += ["SiHitCollection#PixelHits"]
    #disable some Pixel stuff
    from PixelGeoModel.PixelGeoModelConf import PixelDetectorTool
    pixelTool = PixelDetectorTool()
    pixelTool.Alignable = False
    from Digitization.DigitizationFlags import digitizationFlags
    pixeldigi = None
    from PyJobTransforms.trfUtils import releaseIsOlderThan
    if releaseIsOlderThan(19, 2):
        if not digitizationFlags.doXingByXingPileUp() and hasattr(
                job, 'PixelDigitization'):
            if hasattr(job.PixelDigitization, 'DigitizationTool'):
                pixeldigi = job.PixelDigitization.DigitizationTool
            else:
                pixeldigi = job.PixelDigitization
        elif hasattr(ToolSvc, 'PixelDigitizationTool'):
            pixeldigi = ToolSvc.PixelDigitizationTool
        else:
            for alg in job:
                if hasattr(alg, 'PileUpTools'):
                    pixeldigi = alg.PileUpTools["PixelDigitizationTool"]
                    break
                pass
    else:
        pixeldigi = getPublicTool("PixelDigitizationTool")
Пример #4
0
rec.doAOD.set_Value_and_Lock(True)

# Number of events
theApp.EvtMax = jobConfig['evtmax']

# Event filtering
if 'bcidList' in jobConfig:
    import InDetBeamSpotExample.FilterUtils as FilterUtils
    FilterUtils.filterSeq += FilterUtils.BCIDFilter(jobConfig['bcidList'])
if 'lbList' in jobConfig:
    import InDetBeamSpotExample.FilterUtils as FilterUtils
    FilterUtils.filterSeq += FilterUtils.LBFilter(jobConfig['lbList'])
if 'lbData' in jobConfig:
    import InDetBeamSpotExample.FilterUtils as FilterUtils
    FilterUtils.filterSeq += FilterUtils.LumiBlockFilter(jobConfig['lbData'])
if 'zRange' in jobConfig:
    import InDetBeamSpotExample.FilterUtils as FilterUtils
    FilterUtils.filterSeq += FilterUtils.ZFilter(jobConfig['zRange'])

from AthenaCommon.AppMgr import theApp
StreamAOD = theApp.getOutputStream("StreamAOD")
StreamAOD.OutputFile = jobConfig['outputfile']

# Reduce verbosity
theApp.setOutputLevel = jobConfig['outputlevel']
ServiceMgr.MessageSvc.OutputLevel = jobConfig['outputlevel']
#ServiceMgr.MessageSvc.Format      = "% F%40W%S%7W%R%T %0W%M"
eventLoopMgr = getattr(CfgMgr, theApp.EventLoop)()
eventLoopMgr.OutputLevel = jobConfig['outputlevel']
ServiceMgr += eventLoopMgr
Пример #5
0
#
# For post-include MT configuration, we need to add some explicit data
# dependencies for the AthenaMT scheduler.
#

# Setup the algorithm and output sequences
from AthenaCommon.AlgSequence import AlgSequence
topSeq = AlgSequence()
from AthenaCommon.AppMgr import theApp
StreamHITS = theApp.getOutputStream("StreamHITS")

# I'm not sure if we need this timing setting here,
# so leaving this older code commented out for now.
#topSeq.G4AtlasAlg.ExtraOutputs = [('SiHitCollection','SCT_Hits'),('RecoTimingObj','EVNTtoHITS_timings')]
topSeq.G4AtlasAlg.ExtraInputs = [('McEventCollection',
                                  'StoreGateSvc+BeamTruthEvent')]
topSeq.G4AtlasAlg.ExtraOutputs = [('SiHitCollection', 'StoreGateSvc+SCT_Hits')]
StreamHITS.ExtraInputs += topSeq.G4AtlasAlg.ExtraOutputs

# Disable alg filtering - doesn't work in multi-threading
StreamHITS.AcceptAlgs = []

# Override algorithm cloning settings
nThreads = jp.ConcurrencyFlags.NumThreads()
topSeq.BeamEffectsAlg.Cardinality = nThreads
topSeq.G4AtlasAlg.Cardinality = nThreads
Пример #6
0
## Pool persistency for evgen
from AthenaCommon.AppMgr import theApp
stream = theApp.getOutputStream("StreamEVGEN")
if stream is None:
    from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
    stream = AthenaPoolOutputStream("StreamEVGEN")
stream.OutputFile = "evgen.pool.root"
if "OUTFILE" in dir():
    stream.OutputFile = OUTFILE
stream.ItemList += ["EventInfo#*", "McEventCollection#*"]