ATLAS Offline Software
Loading...
Searching...
No Matches
TruthIOConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from GeneratorConfig.Sequences import EvgenSequence, EvgenSequenceFactory
6
7
8def 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
PrintMCCfg(flags, name="PrintMC", **kwargs)