ATLAS Offline Software
Sequences.py
Go to the documentation of this file.
1 """Common enums for the generator configuration
2 
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 """
5 from enum import Enum
6 
7 
8 class EvgenSequence(Enum):
9  Generator = "EvgenGenSeq"
10  Fix = "EvgenFixSeq"
11  PreFilter = "EvgenPreFilterSeq"
12  Test = "EvgenTestSeq"
13  Filter = "EvgenFilterSeq"
14  Post = "EvgenPostSeq"
15 
16 
17 def EvgenSequenceFactory(sequence):
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)
python.Sequences.EvgenSequenceFactory
def EvgenSequenceFactory(sequence)
Definition: Sequences.py:17
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
python.Sequences.EvgenSequence
Definition: Sequences.py:8