ATLAS Offline Software
Functions
python.MC21 Namespace Reference

Functions

def MC21a (flags)
 
def MC21aSingleBeamspot (flags)
 
def MC21LowMu (flags)
 
def MC21NoPileUp (flags)
 
def MC21NoPileUpLowMuRun (flags)
 
def BeamspotSplitMC21a ()
 
def MC21SimulationNoIoV (flags)
 
def MC21SimulationLowMuRun (flags)
 
def MC21SimulationSingleIoV (flags)
 
def MC21Simulation (flags)
 
def MC21SimulationMultipleIoV (flags)
 
def MC21SimulationSingleIoVCalibrationHits (flags)
 
def MC21SimulationCalibrationHits (flags)
 
def MC21SimulationMultipleIoVCalibrationHits (flags)
 

Function Documentation

◆ BeamspotSplitMC21a()

def python.MC21.BeamspotSplitMC21a ( )
MC21a beamspot splitting configuration

Definition at line 89 of file MC21.py.

89 def BeamspotSplitMC21a():
90  """MC21a beamspot splitting configuration"""
91  substeps = 4
92  event_fractions = [0.14, 0.14, 0.14, 0.58]
93 
94  return substeps, event_fractions
95 
96 

◆ MC21a()

def python.MC21.MC21a (   flags)
MC21a flags for MC to match initial Run 3 data

Definition at line 6 of file MC21.py.

6 def MC21a(flags):
7  """MC21a flags for MC to match initial Run 3 data"""
8  flags.Input.MCCampaign = Campaign.MC21a
9 
10  flags.Beam.NumberOfCollisions = 60.
11 
12  from LArConfiguration.LArConfigRun3 import LArConfigRun3PileUp
13  LArConfigRun3PileUp(flags)
14 
15  # radiation damage
16  from SimulationConfig.SimEnums import PixelRadiationDamageSimulationType
17  flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
18 
19  # pile-up
20  # These numbers are based upon a relative XS scaling of the high-pt slice
21  # of 64%, which leads to a relative high-pt / low-pt sampling of
22  # 0.001953314389 / 0.9980466856. Those numbers are then multiplied by 84.5
23  # to follow pile-up profile. Only a relevant number of significant digits
24  # are kept.
25  flags.Digitization.PU.NumberOfLowPtMinBias = 84.335
26  flags.Digitization.PU.NumberOfHighPtMinBias = 0.165
27  flags.Digitization.PU.BunchStructureConfig = 'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
28  flags.Digitization.PU.ProfileConfig = 'RunDependentSimData.PileUpProfile_run410000_MC21a_MultiBeamspot'
29 
30  if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
31  # ensure better randomisation of high-pt minbias events
32  flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
33 
34 

◆ MC21aSingleBeamspot()

def python.MC21.MC21aSingleBeamspot (   flags)
MC21a flags for MC to match initial Run 3 data (single beamspot version)

Definition at line 35 of file MC21.py.

35 def MC21aSingleBeamspot(flags):
36  """MC21a flags for MC to match initial Run 3 data (single beamspot version)"""
37  MC21a(flags)
38 
39  # override only pile-up profile
40  flags.Digitization.PU.ProfileConfig = 'RunDependentSimData.PileUpProfile_run410000_MC21a_SingleBeamspot'
41 
42 

◆ MC21LowMu()

def python.MC21.MC21LowMu (   flags)
MC21 flags for MC to match Run 3 data with low pile-up

Definition at line 43 of file MC21.py.

43 def MC21LowMu(flags):
44  """MC21 flags for MC to match Run 3 data with low pile-up"""
45  flags.Input.MCCampaign = Campaign.MC21a
46 
47  flags.Beam.NumberOfCollisions = 60.
48  flags.Input.ConditionsRunNumber = 410000
49 
50  from LArConfiguration.LArConfigRun3 import LArConfigRun3PileUp
51  LArConfigRun3PileUp(flags)
52 
53  # radiation damage
54  from SimulationConfig.SimEnums import PixelRadiationDamageSimulationType
55  flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
56 
57  # pile-up
58  # These numbers are based upon a relative XS scaling of the high-pt slice
59  # of 64%, which leads to a relative high-pt / low-pt sampling of
60  # 0.001953314389 / 0.9980466856. Those numbers are then multiplied by 0.05
61  # to simulate low pile-up. Only a relevant number of significant digits
62  # are kept.
63  flags.Digitization.PU.NumberOfLowPtMinBias = 0.0499
64  flags.Digitization.PU.NumberOfHighPtMinBias = 0.0001
65  flags.Digitization.PU.BunchStructureConfig = 'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
66 
67 

◆ MC21NoPileUp()

def python.MC21.MC21NoPileUp (   flags)
MC21a flags for MC to match initial Run 3 data

Definition at line 68 of file MC21.py.

68 def MC21NoPileUp(flags):
69  """MC21a flags for MC to match initial Run 3 data"""
70  flags.Input.MCCampaign = Campaign.MC21a
71 
72  flags.Beam.NumberOfCollisions = 0.
73  flags.Input.ConditionsRunNumber = 410000
74 
75  from LArConfiguration.LArConfigRun3 import LArConfigRun3NoPileUp
77 
78  # radiation damage
79  from SimulationConfig.SimEnums import PixelRadiationDamageSimulationType
80  flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
81 
82 

◆ MC21NoPileUpLowMuRun()

def python.MC21.MC21NoPileUpLowMuRun (   flags)
MC21a flags for MC to match 2002 Low Mu data

Definition at line 83 of file MC21.py.

83 def MC21NoPileUpLowMuRun(flags):
84  """MC21a flags for MC to match 2002 Low Mu data"""
85  MC21NoPileUp(flags)
86  flags.Input.ConditionsRunNumber = 420000
87 
88 

◆ MC21Simulation()

def python.MC21.MC21Simulation (   flags)
MC21 flags for simulation (alias)

Definition at line 135 of file MC21.py.

135 def MC21Simulation(flags):
136  """MC21 flags for simulation (alias)"""
138 
139 

◆ MC21SimulationCalibrationHits()

def python.MC21.MC21SimulationCalibrationHits (   flags)
MC21 flags for simulation with CalibrationHits (alias)

Definition at line 159 of file MC21.py.

160  """MC21 flags for simulation with CalibrationHits (alias)"""
162 
163 

◆ MC21SimulationLowMuRun()

def python.MC21.MC21SimulationLowMuRun (   flags)
MC21 flags for low mu run simulation

Definition at line 117 of file MC21.py.

117 def MC21SimulationLowMuRun(flags):
118  """MC21 flags for low mu run simulation"""
119  MC21SimulationNoIoV(flags)
120 
121  flags.Input.RunNumbers = [420000]
122  flags.Input.OverrideRunNumber = True
123  flags.Input.LumiBlockNumbers = [1] # dummy value
124 
125 

◆ MC21SimulationMultipleIoV()

def python.MC21.MC21SimulationMultipleIoV (   flags)
MC21 flags for simulation

Definition at line 140 of file MC21.py.

140 def MC21SimulationMultipleIoV(flags):
141  """MC21 flags for simulation"""
142  MC21SimulationNoIoV(flags)
143 
144  flags.Input.OverrideRunNumber = True
145 
146  from RunDependentSimComps.PileUpUtils import generateRunAndLumiProfile
148  profile= 'RunDependentSimData.PileUpProfile_run410000_MC21a_MultiBeamspot')
149 
150 

◆ MC21SimulationMultipleIoVCalibrationHits()

def python.MC21.MC21SimulationMultipleIoVCalibrationHits (   flags)
MC21 flags for simulation with CalibrationHits

Definition at line 164 of file MC21.py.

165  """MC21 flags for simulation with CalibrationHits"""
167  from SimuJobTransforms import CalHits, ParticleID
168  CalHits(flags)
169  ParticleID(flags)

◆ MC21SimulationNoIoV()

def python.MC21.MC21SimulationNoIoV (   flags)
MC21 base flags for simulation without specifying conditions IoVs

Definition at line 97 of file MC21.py.

97 def MC21SimulationNoIoV(flags):
98  """MC21 base flags for simulation without specifying conditions IoVs"""
99  flags.Input.MCCampaign = Campaign.MC21a
100 
101  from SimulationConfig.SimEnums import TruthStrategy
102  flags.Sim.PhysicsList = 'FTFP_BERT_ATL'
103  flags.Sim.TruthStrategy = TruthStrategy.MC15aPlus
104 
105  flags.Sim.TRTRangeCut = 30.0
106  flags.Sim.TightMuonStepping = True
107 
108  from SimulationConfig.G4Optimizations import enableBeamPipeKill, enableFrozenShowersFCalOnly
109  enableBeamPipeKill(flags)
110  if flags.Sim.ISF.Simulator.isFullSim():
112 
113  from SimulationConfig.G4Optimizations import enableG4Optimizations
114  enableG4Optimizations(flags)
115 
116 

◆ MC21SimulationSingleIoV()

def python.MC21.MC21SimulationSingleIoV (   flags)
MC21 flags for simulation

Definition at line 126 of file MC21.py.

126 def MC21SimulationSingleIoV(flags):
127  """MC21 flags for simulation"""
128  MC21SimulationNoIoV(flags)
129 
130  flags.Input.RunNumbers = [410000]
131  flags.Input.OverrideRunNumber = True
132  flags.Input.LumiBlockNumbers = [1] # dummy value
133 
134 

◆ MC21SimulationSingleIoVCalibrationHits()

def python.MC21.MC21SimulationSingleIoVCalibrationHits (   flags)
MC21 flags for simulation with CalibrationHits

Definition at line 151 of file MC21.py.

152  """MC21 flags for simulation with CalibrationHits"""
154  from SimuJobTransforms import CalHits, ParticleID
155  CalHits(flags)
156  ParticleID(flags)
157 
158 
python.G4Optimizations.enableBeamPipeKill
def enableBeamPipeKill(flags)
Definition: G4Optimizations.py:16
python.G4Optimizations.enableG4Optimizations
def enableG4Optimizations(flags)
Definition: G4Optimizations.py:114
python.MC21.MC21a
def MC21a(flags)
Definition: MC21.py:6
python.MC21.MC21SimulationNoIoV
def MC21SimulationNoIoV(flags)
Definition: MC21.py:97
python.MC21.MC21SimulationMultipleIoVCalibrationHits
def MC21SimulationMultipleIoVCalibrationHits(flags)
Definition: MC21.py:164
python.LArConfigRun3.LArConfigRun3NoPileUp
def LArConfigRun3NoPileUp(flags)
Definition: LArConfigRun3.py:13
python.MC21.MC21aSingleBeamspot
def MC21aSingleBeamspot(flags)
Definition: MC21.py:35
python.MC21.MC21NoPileUp
def MC21NoPileUp(flags)
Definition: MC21.py:68
python.LArConfigRun3.LArConfigRun3PileUp
def LArConfigRun3PileUp(flags)
Definition: LArConfigRun3.py:3
python.MC21.MC21SimulationMultipleIoV
def MC21SimulationMultipleIoV(flags)
Definition: MC21.py:140
python.MC21.MC21Simulation
def MC21Simulation(flags)
Definition: MC21.py:135
python.MC21.MC21LowMu
def MC21LowMu(flags)
Definition: MC21.py:43
jobOptions.ParticleID
ParticleID
Definition: jobOptions.decayer.py:85
python.MC21.MC21SimulationLowMuRun
def MC21SimulationLowMuRun(flags)
Definition: MC21.py:117
python.MC21.MC21SimulationCalibrationHits
def MC21SimulationCalibrationHits(flags)
Definition: MC21.py:159
python.MC21.MC21NoPileUpLowMuRun
def MC21NoPileUpLowMuRun(flags)
Definition: MC21.py:83
python.G4Optimizations.enableFrozenShowersFCalOnly
def enableFrozenShowersFCalOnly(flags)
Definition: G4Optimizations.py:5
python.MC21.BeamspotSplitMC21a
def BeamspotSplitMC21a()
Definition: MC21.py:89
python.MC21.MC21SimulationSingleIoVCalibrationHits
def MC21SimulationSingleIoVCalibrationHits(flags)
Definition: MC21.py:151
python.PileUpUtils.generateRunAndLumiProfile
def generateRunAndLumiProfile(flags, profile, sequentialEventNumbers=False, doNotCorrectMaxEvents=False)
Definition: PileUpUtils.py:211
python.MC21.MC21SimulationSingleIoV
def MC21SimulationSingleIoV(flags)
Definition: MC21.py:126