Exemple #1
0
MUON3Seq = CfgMgr.AthSequencer("MUON3Sequence")
DerivationFrameworkJob += MUON3Seq
MUON3Seq += CfgMgr.DerivationFramework__DerivationKernel(
    "MUON3Kernel",
    AugmentationTools=MUON3AugmentTools,
    SkimmingTools=[MUON3SkimmingTool1],
    ThinningTools=MUON3ThinningTools)
#====================================================================
# Add the containers to the output stream - slimming done here
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
if hasattr(ToolSvc, "MUON3MuonTP_Reco_mumu"):
    conf.Items['MUON3'] += [
        "xAOD::VertexContainer#%s" %
        ToolSvc.MUON3MuonTP_Reco_mumu.OutputVtxContainerName
    ]
    conf.Items['MUON3'] += [
        "xAOD::VertexAuxContainer#%sAux." %
        ToolSvc.MUON3MuonTP_Reco_mumu.OutputVtxContainerName
    ]
    conf.Items['MUON3'] += [
        "xAOD::VertexAuxContainer#%sAux.-vxTrackAtVertex" %
        ToolSvc.MUON3MuonTP_Reco_mumu.OutputVtxContainerName
    ]

conf.Items['MUON3'] += ["CaloCellContainer#DFMUONCellContainer"]
conf.Items['MUON3'] += [
    "CaloClusterCellLinkContainer#MuonClusterCollection_links"
]
conf.Config(MUON3Stream, 'MUON3')
Exemple #2
0
#                                                                 InDetTrackParticlesKey  = "InDetTrackParticles")
# ToolSvc += MUON0ThinningTool3
# MUON0_thinning_tools.append(MUON0ThinningTool3)
#====================================================================
# CREATE THE DERIVATION KERNEL ALGORITHM AND PASS THE ABOVE TOOLS
#====================================================================
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel
DerivationFrameworkJob += CfgMgr.DerivationFramework__DerivationKernel(
    "MUON0Kernel",
    # 									AugmentationTools = [],
    ThinningTools=MUON0_thinning_tools,
    SkimmingTools=MUON0_skimming_tools)
#====================================================================
# SET UP STREAM
#====================================================================
streamName = derivationFlags.WriteDAOD_MUON0Stream.StreamName
fileName = buildFileName(derivationFlags.WriteDAOD_MUON0Stream)
MUON0Stream = MSMgr.NewPoolRootStream(streamName, fileName)
# Only events that pass the filters listed below are written out.
MUON0Stream.AcceptAlgs(["MUON0Kernel"])

from AthenaServices.Configurables import ThinningSvc, createThinningSvc
augStream = MSMgr.GetStream(streamName)
evtStream = augStream.GetEventStream()
svcMgr += createThinningSvc(svcName="MUON0ThinningSvc", outStreams=[evtStream])
#====================================================================
# CONTENT LIST
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
conf.Config(MUON0Stream, 'MUON0')
Exemple #3
0
#====================================================================
# CREATE THE DERIVATION KERNEL ALGORITHM AND PASS THE ABOVE TOOLS
#====================================================================
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel
DerivationFrameworkJob += CfgMgr.DerivationFramework__DerivationKernel(
    "MUON1Kernel",
    #                                                                        AugmentationTools = [MUON1AugmentTool1],
    AugmentationTools=[
        MUON1AugmentTool1, MUON1AugmentTool2, MUON1AugmentTool3
    ],
    SkimmingTools=[MUON1SkimmingTool1],
    ThinningTools=MUON1ThinningTools)
#====================================================================
# SET UP STREAM
#====================================================================
streamName = derivationFlags.WriteDAOD_MUON1Stream.StreamName
fileName = buildFileName(derivationFlags.WriteDAOD_MUON1Stream)
MUON1Stream = MSMgr.NewPoolRootStream(streamName, fileName)
MUON1Stream.AcceptAlgs(["MUON1Kernel"])
# Special lines for thinning
# Thinning service name must match the one passed to the thinning tools
from AthenaServices.Configurables import ThinningSvc, createThinningSvc
augStream = MSMgr.GetStream(streamName)
evtStream = augStream.GetEventStream()
svcMgr += createThinningSvc(svcName="MUON1ThinningSvc", outStreams=[evtStream])
#====================================================================
# Add the containers to the output stream - slimming done here
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
conf.Config(MUON1Stream, 'MUON1')
Exemple #4
0
    StreamName=streamName,
    SelectionString=thinning_expression1,
    InDetTrackParticlesKey="InDetTrackParticles")
ToolSvc += MUON4ThinningTool1
MUON4_thinning_tools.append(MUON4ThinningTool1)
#====================================================================
# CREATE THE DERIVATION KERNEL ALGORITHM AND PASS THE ABOVE TOOLS
#====================================================================
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel
DerivationFrameworkJob += CfgMgr.DerivationFramework__DerivationKernel(
    "MUON4Kernel",
    AugmentationTools=MUON4_aug_tools,
    ThinningTools=MUON4_thinning_tools,
    SkimmingTools=MUON4_skimming_tools)
#====================================================================
# SET UP STREAM
#====================================================================
streamName = derivationFlags.WriteDAOD_MUON4Stream.StreamName
fileName = buildFileName(derivationFlags.WriteDAOD_MUON4Stream)
MUON4Stream = MSMgr.NewPoolRootStream(streamName, fileName)
MUON4Stream.AcceptAlgs(["MUON4Kernel"])

augStream = MSMgr.GetStream(streamName)
evtStream = augStream.GetEventStream()

#====================================================================
# CONTENT LIST
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
conf.Config(MUON4Stream, 'MUON4')
Exemple #5
0
    "MUON6Kernel",
    AugmentationTools=MUON6AugmentTools,
    SkimmingTools=[MUON6SkimmingTool],
    ThinningTools=MUON6ThinningTools)

#====================================================================
#       Decorate the vertices with the sum pt of their tracks
#====================================================================
alg_name = "MUONVertexDecorationAlg"
if not hasattr(DerivationFrameworkJob, alg_name):
    from DerivationFrameworkMuons.DerivationFrameworkMuonsConf import VertexDecoratorAlg
    from InDetTrackSelectionTool.InDetTrackSelectionToolConf import InDet__InDetTrackSelectionTool

    the_alg = VertexDecoratorAlg(alg_name)
    InDetTool = InDet__InDetTrackSelectionTool(
        "TrackSelectionTool_VertexDecoration")
    InDetTool.minPt = 400
    InDetTool.CutLevel = "Loose"
    ToolSvc += InDetTool
    the_alg.TrackSelectionTool = InDetTool
    DerivationFrameworkJob += the_alg

from DerivationFrameworkMuons import ConstituentPileupIso
ConstituentPileupIso.ConstituentPileupIso(MUON6Seq)

#====================================================================
# Add the containers to the output stream - slimming done here
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
conf.Config(MUON6Stream, 'MUON6')
Exemple #6
0
ToolSvc += MUON2ThinningTool2
#====================================================================
# CREATE THE DERIVATION KERNEL ALGORITHM AND PASS THE ABOVE TOOLS
#====================================================================
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel
DerivationFrameworkJob += CfgMgr.DerivationFramework__DerivationKernel(
    "MUON2Kernel",
    AugmentationTools=[
        MUON2AugmentTool1, MUON2AugmentTool2, MUON2AugmentTool3
    ],
    SkimmingTools=[MUON2SkimmingTool1],
    ThinningTools=[MUON2ThinningTool1, MUON2ThinningTool2])
#====================================================================
# SET UP STREAM
#====================================================================
streamName = derivationFlags.WriteDAOD_MUON2Stream.StreamName
fileName = buildFileName(derivationFlags.WriteDAOD_MUON2Stream)
MUON2Stream = MSMgr.NewPoolRootStream(streamName, fileName)
MUON2Stream.AcceptAlgs(["MUON2Kernel"])
# Special lines for thinning
# Thinning service name must match the one passed to the thinning tools
from AthenaServices.Configurables import ThinningSvc, createThinningSvc
augStream = MSMgr.GetStream(streamName)
evtStream = augStream.GetEventStream()
svcMgr += createThinningSvc(svcName="MUON2ThinningSvc", outStreams=[evtStream])
#====================================================================
# Add the containers to the output stream - slimming done here
#====================================================================
from DerivationFrameworkMuons.StreamConfig import MuonsDxAODStreamConfigurer as conf
conf.Config(MUON2Stream, 'MUON2')