1 """Common enums for the generator configuration
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
9 Generator =
"EvgenGenSeq"
11 PreFilter =
"EvgenPreFilterSeq"
13 Filter =
"EvgenFilterSeq"
18 """Factory function to return the AthSequencer instance based on the enum value."""
19 from AthenaConfiguration.ComponentFactory
import CompFactory
20 AthSequencer = CompFactory.AthSequencer
21 if sequence
is EvgenSequence.Generator:
22 return AthSequencer(EvgenSequence.Generator.value, StopOverride=
True)
23 if sequence
is EvgenSequence.Fix:
24 return AthSequencer(EvgenSequence.Fix.value, StopOverride=
True)
25 if sequence
is EvgenSequence.PreFilter:
26 return AthSequencer(EvgenSequence.PreFilter.value, StopOverride=
True)
27 if sequence
is EvgenSequence.Test:
28 return AthSequencer(EvgenSequence.Test.value, StopOverride=
True)
29 if sequence
is EvgenSequence.Filter:
30 return AthSequencer(EvgenSequence.Filter.value, StopOverride=
True)
31 if sequence
is EvgenSequence.Post:
32 return AthSequencer(EvgenSequence.Post.value, StopOverride=
True)