2 from AthenaConfiguration.Enums
import ProductionStep
3 from Campaigns.Utils
import Campaign
7 """MC23a flags for MC to match 2022 Run 3 data"""
8 flags.Input.MCCampaign = Campaign.MC23a
10 flags.Beam.NumberOfCollisions = 60.
12 from LArConfiguration.LArConfigRun3
import LArConfigRun3PileUp
16 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
17 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
25 flags.Digitization.PU.NumberOfLowPtMinBias = 67.369
26 flags.Digitization.PU.NumberOfHighPtMinBias = 0.131
27 flags.Digitization.PU.BunchStructureConfig =
'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
28 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run410000_MC23a_MultiBeamspot'
30 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
32 flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
35 """MC23c flags for MC to match 2023 Run 3 data (initial pile-up profile estimate)"""
36 flags.Input.MCCampaign = Campaign.MC23c
38 flags.Beam.NumberOfCollisions = 60.
40 from LArConfiguration.LArConfigRun3
import LArConfigRun3PileUp
44 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
45 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
53 flags.Digitization.PU.NumberOfLowPtMinBias = 90.323
54 flags.Digitization.PU.NumberOfHighPtMinBias = 0.177
55 flags.Digitization.PU.BunchStructureConfig =
'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
56 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run450000_MC23c_MultiBeamspot'
58 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
60 flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
64 """MC23d flags for MC to match 2023 Run 3 data (uses a pile-up profile based on the actual profile from 2023 data)"""
65 flags.Input.MCCampaign = Campaign.MC23d
67 flags.Beam.NumberOfCollisions = 60.
69 from LArConfiguration.LArConfigRun3
import LArConfigRun3PileUp
73 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
74 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
82 flags.Digitization.PU.NumberOfLowPtMinBias = 95.313
83 flags.Digitization.PU.NumberOfHighPtMinBias = 0.187
84 flags.Digitization.PU.BunchStructureConfig =
'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
85 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run450000_MC23d_MultiBeamspot'
87 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
89 flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
93 """MC23 flags for the 2023 Heavy Ions run (without pile-up)"""
94 flags.Input.MCCampaign = Campaign.MC23a
96 flags.Beam.BunchSpacing = 50
97 flags.Beam.NumberOfCollisions = 0.
98 flags.Input.ConditionsRunNumber = 460000
100 from LArConfiguration.LArConfigRun3
import LArConfigRun3NoPileUp
104 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
105 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
107 from HIRecConfig.HIModeFlags
import HImode
109 flags.Reco.EnableZDC =
False
112 flags.Trigger.AODEDMSet =
'AODFULL'
113 flags.Trigger.triggerMenuSetup =
'Dev_HI_run3_v1_TriggerValidation_prescale'
114 flags.Trigger.L1.doAlfaCtpin =
True
118 """MC23 flags for the 2023 Heavy Ions run"""
119 flags.Input.MCCampaign = Campaign.MC23a
121 flags.Beam.NumberOfCollisions = 0.
122 flags.Input.ConditionsRunNumber = 460000
124 from LArConfiguration.LArConfigRun3
import LArConfigRun3NoPileUp
128 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
129 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
132 flags.Digitization.PileUp =
True
133 flags.Digitization.DoXingByXingPileUp =
True
134 flags.Digitization.PU.BunchStructureConfig =
"RunDependentSimData.BunchStructureHeavyIon2022"
135 flags.Digitization.PU.InitialBunchCrossing = 0
136 flags.Digitization.PU.FinalBunchCrossing = 0
137 flags.Digitization.PU.NumberOfCavern = 1
139 from HIRecConfig.HIModeFlags
import HImode
141 flags.Reco.EnableZDC =
False
144 flags.Trigger.AODEDMSet =
'AODFULL'
145 flags.Trigger.triggerMenuSetup =
'Dev_HI_run3_v1_TriggerValidation_prescale'
146 flags.Trigger.L1.doAlfaCtpin =
True
150 """MC23e flags for MC to match 2024 Run 3 data (initial pile-up estimate based on broadened 2023 data )"""
151 flags.Input.MCCampaign = Campaign.MC23e
153 flags.Beam.NumberOfCollisions = 60.
155 from LArConfiguration.LArConfigRun3
import LArConfigRun3PileUp
159 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
160 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
168 flags.Digitization.PU.NumberOfLowPtMinBias = 98.308
169 flags.Digitization.PU.NumberOfHighPtMinBias = 0.192
171 flags.Digitization.PU.BunchStructureConfig =
'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
172 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run470000_MC23e_MultiBeamspot'
174 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
176 flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
180 """MC23a flags for MC to match 2022 Run 3 data (single beamspot version)"""
184 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run410000_MC23a_SingleBeamspot'
188 """MC23c flags for MC to match 2023 Run 3 data (initial pile-up profile estimate, single beamspot version)"""
192 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run450000_MC23c_SingleBeamspot'
196 """MC23d flags for MC to match 2023 Run 3 data (uses a pile-up profile based on the actual profile from 2023 data, single beamspot version)"""
200 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run450000_MC23d_SingleBeamspot'
203 """MC23e flags for MC to match 2024 Run 3 data (initial pile-up profile estimate, single beamspot version)"""
207 flags.Digitization.PU.ProfileConfig =
'RunDependentSimData.PileUpProfile_run470000_MC23e_SingleBeamspot'
210 """MC23 flags for MC to match Run 3 data with low pile-up"""
211 flags.Input.MCCampaign = Campaign.MC23a
213 flags.Beam.NumberOfCollisions = 60.
214 flags.Input.ConditionsRunNumber = 410000
216 from LArConfiguration.LArConfigRun3
import LArConfigRun3PileUp
220 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
221 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
229 flags.Digitization.PU.NumberOfLowPtMinBias = 0.0499
230 flags.Digitization.PU.NumberOfHighPtMinBias = 0.0001
231 flags.Digitization.PU.BunchStructureConfig =
'RunDependentSimData.BunchStructure_Fill7314_BCMSPattern_Flat'
235 """MC23 flags for MC without pile-up"""
236 flags.Input.MCCampaign = Campaign.MC23a
238 flags.Beam.NumberOfCollisions = 0.
239 flags.Input.ConditionsRunNumber = 410000
241 from LArConfiguration.LArConfigRun3
import LArConfigRun3NoPileUp
245 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
246 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
250 """MC23a flags for MC without pile-up"""
255 """MC23d flags for MC without pile-up"""
256 flags.Input.MCCampaign = Campaign.MC23d
258 flags.Beam.NumberOfCollisions = 0.
259 flags.Input.ConditionsRunNumber = 450000
261 from LArConfiguration.LArConfigRun3
import LArConfigRun3NoPileUp
265 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
266 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
270 """MC23e flags for MC without pile-up"""
271 flags.Input.MCCampaign = Campaign.MC23e
273 flags.Beam.NumberOfCollisions = 0.
274 flags.Input.ConditionsRunNumber = 470000
276 from LArConfiguration.LArConfigRun3
import LArConfigRun3NoPileUp
280 from SimulationConfig.SimEnums
import PixelRadiationDamageSimulationType
281 flags.Digitization.PixelPlanarRadiationDamageSimulationType = PixelRadiationDamageSimulationType.RamoPotential
285 """MC23a flags for MC to match 2002 Low Mu data"""
287 flags.Input.ConditionsRunNumber = 420000
291 """MC23d flags for MC to match special run 460348"""
294 flags.Input.MCCampaign = Campaign.MC23d
295 flags.Input.ConditionsRunNumber = 465000
298 flags.BField.configuredSolenoidFieldScale = 0.4
302 """MC23a beamspot splitting configuration"""
304 event_fractions = [0.14, 0.14, 0.14, 0.58]
306 return substeps, event_fractions
310 """MC23c beamspot splitting configuration"""
312 event_fractions = [0.22, 0.22, 0.22, 0.34]
314 return substeps, event_fractions
318 """MC23d beamspot splitting configuration, matches MC23c, but only the
319 first two substep are considered levelling rather than the first
322 event_fractions = [0.22, 0.22, 0.22, 0.34]
324 return substeps, event_fractions
328 """MC23e beamspot splitting configuration."""
330 event_fractions = [0.22, 0.22, 0.22, 0.34]
332 return substeps, event_fractions
336 """MC23 base flags for simulation without specifying conditions IoVs"""
337 flags.Input.MCCampaign = Campaign.MC23a
339 from SimulationConfig.SimEnums
import TruthStrategy
340 flags.Sim.PhysicsList =
'FTFP_BERT_ATL'
341 flags.Sim.TruthStrategy = TruthStrategy.MC15aPlus
343 flags.Sim.TRTRangeCut = 30.0
344 flags.Sim.TightMuonStepping =
True
346 from SimulationConfig.G4Optimizations
import enableBeamPipeKill, enableFrozenShowersFCalOnly
348 if flags.Sim.ISF.Simulator.isFullSim():
351 from SimulationConfig.G4Optimizations
import enableG4Optimizations
354 flags.Sim.FastCalo.ParamsInputFilename =
'FastCaloSim/MC23/TFCSparam_dev_Hybrid_Ha_v5_all_baryons_0_500.root'
358 """MC23 flags for low mu run simulation"""
361 flags.Input.RunNumbers = [420000]
362 flags.Input.OverrideRunNumber =
True
363 flags.Input.LumiBlockNumbers = [1]
367 """MC23 flags for simulation simulation of the 2023 Heavy Ion run"""
370 flags.Input.RunNumber = [460000]
371 flags.Input.OverrideRunNumber =
True
372 flags.Input.LumiBlockNumbers = [1]
376 """MC23 flags for simulation of special run 460348"""
378 flags.Input.MCCampaign = Campaign.MC23d
380 flags.Input.RunNumber = [465000]
381 flags.Input.OverrideRunNumber =
True
382 flags.Input.LumiBlockNumber = [1]
385 flags.BField.configuredSolenoidFieldScale = 0.4
389 """MC23 flags for simulation"""
391 flags.Input.MCCampaign = Campaign.MC23a
393 flags.Input.RunNumbers = [410000]
394 flags.Input.OverrideRunNumber =
True
395 flags.Input.LumiBlockNumbers = [1]
399 """MC23 flags for simulation"""
401 flags.Input.MCCampaign = Campaign.MC23a
403 flags.Input.OverrideRunNumber =
True
405 from RunDependentSimComps.PileUpUtils
import generateRunAndLumiProfile
407 profile=
'RunDependentSimData.PileUpProfile_run410000_MC23a_MultiBeamspot')
411 """MC23 flags for simulation"""
413 flags.Input.MCCampaign = Campaign.MC23c
415 flags.Input.OverrideRunNumber =
True
417 from RunDependentSimComps.PileUpUtils
import generateRunAndLumiProfile
419 profile=
'RunDependentSimData.PileUpProfile_run450000_MC23c_MultiBeamspot')
423 """MC23 flags for simulation"""
425 flags.Input.MCCampaign = Campaign.MC23e
427 flags.Input.OverrideRunNumber =
True
429 from RunDependentSimComps.PileUpUtils
import generateRunAndLumiProfile
431 profile=
'RunDependentSimData.PileUpProfile_run470000_MC23e_MultiBeamspot')
435 """MC23 flags for simulation with CalibrationHits"""
437 from SimuJobTransforms
import CalHits, ParticleID
443 """MC23 flags for simulation with CalibrationHits"""
445 from SimuJobTransforms
import CalHits, ParticleID
451 """MC23 flags for simulation with CalibrationHits"""
453 from SimuJobTransforms
import CalHits, ParticleID
459 """MC23e flags for simulation with CalibrationHits"""
461 from SimuJobTransforms
import CalHits, ParticleID