3 from enum
import Enum, auto
8 if not isinstance(other, self.__class__):
9 raise TypeError(f
"Invalid comparison of {self.__class__} with {type(other)}")
12 __hash__ = Enum.__hash__
17 AthAnalysis =
'AthAnalysis'
18 AthDerivation =
'AthDerivation'
19 AthGeneration =
'AthGeneration'
20 AthSimulation =
'AthSimulation'
21 AnalysisBase =
'AnalysisBase'
26 if "AthSimulation_DIR" in os.environ:
28 if "AthGeneration_DIR" in os.environ:
30 if "AthAnalysis_DIR" in os.environ:
32 if "AthDerivation_DIR" in os.environ:
34 if "AnalysisBase_DIR" in os.environ:
47 Generation =
'Generation'
48 Simulation =
'Simulation'
49 PileUpPresampling =
'PileUpPresampling'
51 MinbiasPreprocessing =
'MinbiasPreprocessing'
52 FastChain =
'FastChain'
53 Digitization =
'Digitization'
54 PileUpPretracking =
'PileUpPretracking'
55 Reconstruction =
'Reconstruction'
56 Derivation =
'Derivation'
61 for item
in lhcperiod.__members__.values():
62 if not re.match(
"^RUN[0-9]$", item.value):
63 raise ValueError(
"Value not in a format RUN+single digit %s", item.value)
70 if not isinstance(other, self.__class__):
71 raise TypeError(f
"Invalid comparison of {self.__class__} with {type(other)}")
73 return self.value < other.value
75 if not isinstance(other, self.__class__):
76 raise TypeError(f
"Invalid comparison of {self.__class__} with {type(other)}")
78 return self.value <= other.value
87 Collisions =
'collisions'
88 SingleBeam =
'singlebeam'
101 FileMetaData = auto()
102 EventStreamInfo = auto()
104 CutFlowMetaData = auto()
105 ByteStreamMetaData = auto()
106 LumiBlockMetaData = auto()
107 TriggerMenuMetaData = auto()
108 TruthMetaData = auto()