ATLAS Offline Software
MC20.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.Enums import ProductionStep
3 from Campaigns.Utils import Campaign
4 
5 
6 def MC20a(flags):
7  """MC20a flags for MC to match 2015 and 2016 data"""
8  flags.Input.MCCampaign = Campaign.MC20a
9 
10  flags.Beam.NumberOfCollisions = 20.
11  flags.Digitization.InputBeamSigmaZ = 42
12 
13  flags.Digitization.UseUpdatedTGCConditions = True
14 
15  from LArConfiguration.LArConfigRun2 import LArConfigRun2PileUp
16  LArConfigRun2PileUp(flags)
17  flags.Digitization.HighGainEMECIW = True
18 
19 
25  flags.Digitization.PU.NumberOfLowPtMinBias = 56.390
26  flags.Digitization.PU.NumberOfHighPtMinBias = 0.110
27  flags.Digitization.PU.BunchStructureConfig = 'RunDependentSimData.BunchStructure_2015'
28  flags.Digitization.PU.ProfileConfig = 'RunDependentSimData.PileUpProfile_run284500_MC20a'
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 
35 def MC20d(flags):
36  """MC20d flags for MC to match 2017 data"""
37  flags.Input.MCCampaign = Campaign.MC20d
38 
39  flags.Beam.NumberOfCollisions = 20.
40  flags.Digitization.InputBeamSigmaZ = 42
41 
42  flags.Digitization.UseUpdatedTGCConditions = True
43 
44  from LArConfiguration.LArConfigRun2 import LArConfigRun2PileUp
45  LArConfigRun2PileUp(flags)
46 
47 
53  flags.Digitization.PU.NumberOfLowPtMinBias = 90.323
54  flags.Digitization.PU.NumberOfHighPtMinBias = 0.177
55  flags.Digitization.PU.BunchStructureConfig = 'RunDependentSimData.BunchStructure_2017'
56  flags.Digitization.PU.ProfileConfig = 'RunDependentSimData.PileUpProfile_run300000_MC20d'
57 
58  if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
59  # ensure better randomisation of high-pt minbias events
60  flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
61 
62 
63 def MC20e(flags):
64  """MC20e flags for MC to match 2018 data"""
65  flags.Input.MCCampaign = Campaign.MC20e
66 
67  flags.Beam.NumberOfCollisions = 20.
68  flags.Digitization.InputBeamSigmaZ = 42
69 
70  flags.Digitization.UseUpdatedTGCConditions = True
71 
72  from LArConfiguration.LArConfigRun2 import LArConfigRun2PileUp
73  LArConfigRun2PileUp(flags)
74 
75 
81  flags.Digitization.PU.NumberOfLowPtMinBias = 90.323
82  flags.Digitization.PU.NumberOfHighPtMinBias = 0.177
83  flags.Digitization.PU.BunchStructureConfig = 'RunDependentSimData.BunchStructure_2017'
84  flags.Digitization.PU.ProfileConfig = 'RunDependentSimData.PileUpProfile_run310000_MC20e'
85 
86  if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
87  # ensure better randomisation of high-pt minbias events
88  flags.Digitization.PU.HighPtMinBiasInputColOffset = -1
89 
90 
91 def MC20NoPileUp(flags):
92  """MC20e flags for MC without pile-up"""
93  flags.Input.MCCampaign = Campaign.MC20a
94 
95  flags.Beam.NumberOfCollisions = 0
96  flags.Digitization.InputBeamSigmaZ = 42
97 
98  flags.Digitization.UseUpdatedTGCConditions = True
99 
100  from LArConfiguration.LArConfigRun2 import LArConfigRun2NoPileUp
101  LArConfigRun2NoPileUp(flags)
python.MC20.MC20d
def MC20d(flags)
Definition: MC20.py:35
python.LArConfigRun2.LArConfigRun2PileUp
def LArConfigRun2PileUp(flags)
Definition: LArConfigRun2.py:3
python.LArConfigRun2.LArConfigRun2NoPileUp
def LArConfigRun2NoPileUp(flags)
Definition: LArConfigRun2.py:13
python.MC20.MC20a
def MC20a(flags)
Definition: MC20.py:6
python.MC20.MC20e
def MC20e(flags)
Definition: MC20.py:63
python.MC20.MC20NoPileUp
def MC20NoPileUp(flags)
Definition: MC20.py:91