ATLAS Offline Software
TruthIOConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from GeneratorConfig.Sequences import EvgenSequence, EvgenSequenceFactory
6 
7 
8 def PrintMCCfg(flags, name="PrintMC", **kwargs):
9  kwargs.setdefault("McEventKey", "GEN_EVENT")
10  kwargs.setdefault("VerboseOutput", True)
11  kwargs.setdefault("PrintStyle", "Barcode")
12  kwargs.setdefault("FirstEvent", 1)
13  kwargs.setdefault("LastEvent", 1)
14 
15  acc = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Post))
16  acc.addEventAlgo(CompFactory.PrintMC(name, **kwargs))
17  return acc
python.Sequences.EvgenSequenceFactory
def EvgenSequenceFactory(sequence)
Definition: Sequences.py:17
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TruthIOConfig.PrintMCCfg
def PrintMCCfg(flags, name="PrintMC", **kwargs)
Definition: TruthIOConfig.py:8