ATLAS Offline Software
SimEnums.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.Enums import FlagEnum
3 
4 
5 class BeamPipeSimMode(FlagEnum):
6  Normal = 'Normal'
7  FastSim = 'FastSim'
8  EGammaRangeCuts = 'EGammaRangeCuts'
9  EGammaPRangeCuts = 'EGammaPRangeCuts'
10 
11 
12 class CalibrationRun(FlagEnum):
13  LAr = 'LAr'
14  Tile = 'Tile'
15  ZDC = 'ZDC'
16  LArTile = 'LAr+Tile'
17  LArTileZDC = 'LAr+Tile+ZDC'
18  DeadLAr = 'DeadLAr'
19  Off = 'Off'
20 
21 
22 class CavernBackground(FlagEnum):
23  Off = 'Off'
24  Write = 'Write'
25  Read = 'Read'
26  Signal = 'Signal'
27  WriteWorld = 'WriteWorld'
28  SignalWorld = 'SignalWorld'
29 
30 
31 class LArParameterization(FlagEnum):
32  NoFrozenShowers = 0
33  FrozenShowers = 1
34  DeadMaterialFrozenShowers = 2
35  FrozenShowersFCalOnly = 3
36  FastCaloSim = 4
37 
39  NoRadiationDamage = 0
40  RamoPotential = 1
41  TemplateCorrection = 2
42 
43 class SimulationFlavour(FlagEnum):
44  Unknown = 'Unknown'
45  FullG4MT = 'FullG4MT'
46  FullG4MT_QS = 'FullG4MT_QS'
47  PassBackG4MT = 'PassBackG4MT'
48  ATLFASTIIMT = 'ATLFASTIIMT'
49  ATLFASTIIFMT = 'ATLFASTIIFMT'
50  ATLFASTIIF_G4MS = 'ATLFASTIIF_G4MS'
51  ATLFAST3MT = 'ATLFAST3MT'
52  ATLFAST3MT_QS = 'ATLFAST3MT_QS'
53  ATLFAST3F_G4MS = 'ATLFAST3F_G4MS'
54  ATLFAST3F_ACTSMT = 'ATLFAST3F_ACTSMT'
55  AtlasG4 = 'AtlasG4' # Outside ISF
56  AtlasG4_QS = 'AtlasG4_QS' # Outside ISF
57  CosmicsG4 = 'CosmicsG4'
58 
59  def isFullSim(self):
60  return 'FullG4' in self.value or 'PassBackG4' in self.value or 'AtlasG4' in self.value or 'CosmicsG4' in self.value
61 
62  def usesFastCaloSim(self):
63  return 'ATLFAST' in self.value
64 
65  def usesFatras(self):
66  return 'ATLFASTIIF' in self.value or 'ATLFAST3F' in self.value # TODO Extend for Acts::Fatras in the future
67 
68  def isQuasiStable(self):
69  return 'QS' in self.value
70 
71  def isMT(self):
72  return 'MT' in self.value
73 
74 
75 class TruthStrategy(FlagEnum):
76  MC12 = 'MC12'
77  MC12LLP = 'MC12LLP'
78  MC12Plus = 'MC12Plus'
79  MC15 = 'MC15'
80  MC15a = 'MC15a'
81  MC15aPlus = 'MC15aPlus'
82  MC15aPlusLLP = 'MC15aPlusLLP'
83  MC16 = 'MC16'
84  MC16LLP = 'MC16LLP'
85  MC18 = 'MC18'
86  MC18LLP = 'MC18LLP'
87  PhysicsProcess = 'PhysicsProcess'
88  Global = 'Global'
89  Validation = 'Validation'
90  Cosmic = 'Cosmic'
91 
92 
93 class VertexSource(FlagEnum):
94  CondDB = 'CondDB'
95  VertexOverrideFile = 'VertexOverrideFile'
96  VertexOverrideEventFile = 'VertexOverrideEventFile'
97  LongBeamspotVertexPositioner = 'LongBeamspotVertexPositioner'
98  AsGenerated = 'AsGenerated' # I.e. no shift
python.SimEnums.TruthStrategy
Definition: SimEnums.py:75
python.SimEnums.LArParameterization
Definition: SimEnums.py:31
python.SimEnums.SimulationFlavour.isMT
def isMT(self)
Definition: SimEnums.py:71
python.SimEnums.SimulationFlavour.isQuasiStable
def isQuasiStable(self)
Definition: SimEnums.py:68
python.SimEnums.SimulationFlavour.usesFatras
def usesFatras(self)
Definition: SimEnums.py:65
python.SimEnums.VertexSource
Definition: SimEnums.py:93
python.SimEnums.SimulationFlavour
Definition: SimEnums.py:43
python.SimEnums.BeamPipeSimMode
Definition: SimEnums.py:5
python.SimEnums.CalibrationRun
Definition: SimEnums.py:12
python.SimEnums.PixelRadiationDamageSimulationType
Definition: SimEnums.py:38
python.SimEnums.SimulationFlavour.isFullSim
def isFullSim(self)
Definition: SimEnums.py:59
python.SimEnums.CavernBackground
Definition: SimEnums.py:22
python.SimEnums.SimulationFlavour.usesFastCaloSim
def usesFastCaloSim(self)
Definition: SimEnums.py:62