Exemplo n.º 1
0
    "Electrons", "Photons", "Muons", "TauJets", "MET_Reference_AntiKt4EMTopo",
    "AntiKt4EMTopoJets", "BTagging_AntiKt4EMTopo", "InDetTrackParticles",
    "PrimaryVertices"
]
# muons, tau, MET, b-tagging could be switched off if not needed and use too much space

# Add egamma trigger objects
EGAM2SlimmingHelper.IncludeEGammaTriggerContent = True

# Extra variables
EGAM2SlimmingHelper.ExtraVariables = ExtraContentAll
EGAM2SlimmingHelper.AllVariables = ExtraContainersElectrons
EGAM2SlimmingHelper.AllVariables += ExtraContainersTrigger
if globalflags.DataSource() != 'geant4':
    EGAM2SlimmingHelper.AllVariables += ExtraContainersTriggerDataOnly

if globalflags.DataSource() == 'geant4':
    EGAM2SlimmingHelper.ExtraVariables += ExtraContentAllTruth
    EGAM2SlimmingHelper.AllVariables += ExtraContainersTruth

for tool in EGAM2_ClusterEnergyPerLayerDecorators:
    EGAM2SlimmingHelper.ExtraVariables.extend(
        getClusterEnergyPerLayerDecorations(tool))

# This line must come after we have finished configuring EGAM2SlimmingHelper
EGAM2SlimmingHelper.AppendContentToStream(EGAM2Stream)

# Add MET_RefFinalFix
# JRC: COMMENTED TEMPORARILY
#addMETOutputs(EGAM2Stream)
Exemplo n.º 2
0
                                        "PrimaryVertices"
                                        ]

# Add egamma trigger objects
EGAM8SlimmingHelper.IncludeEGammaTriggerContent = True

# Extra variables
EGAM8SlimmingHelper.ExtraVariables = ExtraContentAll
EGAM8SlimmingHelper.AllVariables = ExtraContainersElectrons
EGAM8SlimmingHelper.AllVariables += ExtraContainersTrigger
if globalflags.DataSource()!='geant4':
    EGAM8SlimmingHelper.AllVariables += ExtraContainersTriggerDataOnly

if globalflags.DataSource()=='geant4':
    EGAM8SlimmingHelper.ExtraVariables += ExtraContentAllTruth
    EGAM8SlimmingHelper.AllVariables += ExtraContainersTruth

for tool in EGAM8_ClusterEnergyPerLayerDecorators:
    EGAM8SlimmingHelper.ExtraVariables.extend( getClusterEnergyPerLayerDecorations( tool ) )

# This line must come after we have finished configuring EGAM8SlimmingHelper
EGAM8SlimmingHelper.AppendContentToStream(EGAM8Stream)

# Add MET_RefFinalFix
# JRC: COMMENTED TEMPORARILY
#addMETOutputs(EGAM8Stream)

# Add Derived Egamma CellContainer
from DerivationFrameworkEGamma.EGammaCellCommon import CellCommonThinning
CellCommonThinning(EGAM8Stream)