ATLAS Offline Software
Loading...
Searching...
No Matches
mc.Sample Class Reference
Inheritance diagram for mc.Sample:
Collaboration diagram for mc.Sample:

Public Member Functions

 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)
 setupFlags (self, flags)
 setupProcess (self, flags)

Public Attributes

str description = "Sherpa 3.0 example JO, Z+0,1-jet production."
list keywords = ["2lepton"]
list contact = ["atlas-generators-sherpa@cern.ch", "spyros.argyropoulos@cern.ch"]
int nEventsPerJob = 10000
str MEgenerator = "MadGraph"
int inputFilesPerJob = 1

Detailed Description

Definition at line 5 of file mc.Sh30_Zj_valid.py.

Member Function Documentation

◆ setupFlags() [1/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.Sh30_Zj_valid.py.

7 def setupFlags(self, flags):
8 self.description = "Sherpa 3.0 example JO, Z+0,1-jet production."
9 self.keywords = ["2lepton"]
10 self.contact = ["atlas-generators-sherpa@cern.ch", "spyros.argyropoulos@cern.ch"]
11 self.nEventsPerJob = 10000
12

◆ setupFlags() [2/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.MGPy8EG_ttbar_p83_art.py.

7 def setupFlags(self, flags):
8 self.description = "MadGraph LO ttbar OTF with Pythia8 showering"
9 self.keywords = ["ttbar", "jets"]
10 self.contact = ["spyros.argyropoulos@cern.ch"]
11 self.nEventsPerJob = 10000
12

◆ setupFlags() [3/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.H7_Dijet.py.

7 def setupFlags(self, flags):
8 self.description = "Herwig7 dijet sample with MMHT2014 PDF and corresponding tune"
9 self.keywords = ["SM", "QCD", "dijet"]
10 self.contact = ["spyros.argyropoulos@cern.ch"]
11 self.nEventsPerJob = 10000
12

◆ setupFlags() [4/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py.

7 def setupFlags(self, flags):
8 self.description = "Inelastic minimum bias, with the A2 MSTW2008LO tune and EvtGen"
9 self.keywords = ["QCD", "minBias", "SM"]
10 self.contact = ["spyros.argyropoulos@cern.ch"]
11 self.nEventsPerJob = 1000
12

◆ setupFlags() [5/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.MGPy8EG_Toponium_Singlet_2L.py.

7 def setupFlags(self, flags):
8 self.description = "Toponium production with 2L, singlet part, showering only, m_t = 173 GeV"
9 self.keywords = ["SM", "top"]
10 self.contact = ["spyros.argyropoulos@cern.ch"]
11 self.nEventsPerJob = 1000
12 # This uses LHE produced by MG
13 self.MEgenerator = "MadGraph"
14 self.inputFilesPerJob = 1
15
16

◆ setupFlags() [6/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 9 of file mc.PG_single_nu_valid.py.

9 def setupFlags(self, flags):
10 self.description = "Single neutrinos with fixed eta and E: purely for pile-up/lumi testing"
11 self.keywords = ["singleParticle", "neutrino"]
12 self.contact = ["dhirsch@mail.cern.ch"]
13 self.nEventsPerJob = 100
14

◆ setupFlags() [7/7]

mc.Sample.setupFlags ( self,
flags )

Definition at line 8 of file mc.MG_ttbar_LHE_valid.py.

8 def setupFlags(self, flags):
9 self.description = "MadGraph LO ttbar"
10 self.keywords = ["ttbar"]
11 self.contact = ["spyros.argyropoulos@cern.ch"]
12 self.nEventsPerJob = 10000
13

◆ setupProcess() [1/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 13 of file mc.Sh30_Zj_valid.py.

13 def setupProcess(self, flags):
14 from Sherpa_i.SherpaConfig import (
15 Sherpa3_PDF4LHC21_Cfg
16 )
17
18 # Define Sherpa Process and selectors
19 run_card = """
20 PROCESSES:
21 - 93 93 -> 11 -11 93{0}:
22 Order: {QCD: 0, EW: 2}
23 CKKW: 20
24
25 SELECTORS:
26 - [Mass, 11, -11, 40, E_CMS]
27 """
28
29
30 # Set up Sherpa configuration: Sherpa 3 with PDF4LHC21 NNLO PDF tune,
31 # no OpenLoops, and default Sherpa settings for hadronization, MPI, etc
32 sampleConfig = Sherpa3_PDF4LHC21_Cfg(
33 flags,
34 RunCard=run_card
35 )
36
37 # Non-default settings can be passed as kwargs, e.g.
38 #sampleConfig = Sherpa3_PDF4LHC21_Cfg(
39 # flags,
40 # RunCard=run_card,
41 # NCores=16,
42 # CleanupGeneratedFiles=False
43 #)
44
45 return sampleConfig

◆ setupProcess() [2/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 13 of file mc.MGPy8EG_ttbar_p83_art.py.

13 def setupProcess(self, flags):
14 # MadGraph process to generate
15 process_def = """
16 import model sm
17 define p = g u c d s u~ c~ d~ s~
18 define j = g u c d s u~ c~ d~ s~
19 generate p p > t t~
20 output -f
21 """
22
23 # Custom settings to pass to MadGraphControl.
24 # These are native MadGraph settings, not MadGraphControl settings.
25 settings = {
26 'lhe_version':'3.0',
27 'cut_decays':'F',
28 'pdlabel':"'nn23lo1'",
29 'use_syst':"False"
30 }
31
32 # Run MG to prepare the LHE file for showering
33 from MadGraphControl.MadGraphConfig import MadGraphCfg
34 sampleConfig = MadGraphCfg(
35 flags,
36 process_definition=process_def,
37 settings=settings,
38 prepare_lhe_for_shower=True
39 )
40
41 # Merge Pythia8 specifying the shower configuration
42 # with the A14 tune and NNPDF23LO PDF set,
43 # adding EvtGen for hadron decays on top.
44 from Pythia8_i.Pythia8Config import (
45 Pythia8_MadGraph_Cfg,
46 Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg
47 )
48
49 # Pythia8_MadGraph_Cfg tells the CA to run Pythia8 reading LHE
50 # generated by MadGraph.
51 # ShowerCfg specifies which configuration
52 # (tune,PDF) to use in the shower and whether EvtGen should be
53 # added on top.
54 sampleConfig.merge(Pythia8_MadGraph_Cfg(
55 flags,
56 ShowerCfg=Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg
57 ))
58
59 return sampleConfig

◆ setupProcess() [3/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 13 of file mc.H7_Dijet.py.

13 def setupProcess(self, flags):
14 from Herwig7_i.Herwig7CAConfig import Herwig7BuiltinMECfg
15 commands = """
16 ## ------------------
17 ## Hard process setup
18 ## ------------------
19 insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
20 set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
21 set /Herwig/Cuts/JetKtCut:MinKT 15*GeV
22 set /Herwig/Cuts/LeptonKtCut:MinKT 0.0*GeV
23 """
24
25 return Herwig7BuiltinMECfg(
26 flags,
27 run_name="HerwigBuiltinME",
28 commands=commands,
29 me_pdf_order="NLO",
30 me_pdf_name="MMHT2014nlo68cl",
31 shower_pdf_order="NLO",
32 shower_pdf_name="MMHT2014nlo68cl"
33 )

◆ setupProcess() [4/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 13 of file mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py.

13 def setupProcess(self, flags):
14 # Pythia8 process
15 p8_process = ["SoftQCD:inelastic = on"]
16
17 # Pythia with EvtGen
18 from Pythia8_i.Pythia8Config import Pythia8_A2_MSTW2008LO_EvtGen_Common_Cfg
19 sampleConfig = Pythia8_A2_MSTW2008LO_EvtGen_Common_Cfg(flags, Commands=p8_process)
20
21 return sampleConfig

◆ setupProcess() [5/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 17 of file mc.MGPy8EG_Toponium_Singlet_2L.py.

17 def setupProcess(self, flags):
18 from Pythia8_i.Pythia8Config import (
19 Pythia8_MadGraph_Cfg,
20 Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg,
21 )
22
23 # Set up MadGraph + Pythia8
24 sampleConfig = Pythia8_MadGraph_Cfg(
25 flags,
26 # Specify tune and EvtGen
27 ShowerCfg=Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg,
28 )
29
30 return sampleConfig

◆ setupProcess() [6/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 15 of file mc.PG_single_nu_valid.py.

15 def setupProcess(self, flags):
16 # TODO: update once we have a proper PG fragment
17 sampleConfig = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Generator))
18
19 from ParticleGun.ParticleGunConfig import ParticleGun_SteeredSingleParticleCfg
20 pg = ParticleGun_SteeredSingleParticleCfg(
21 flags,
22 pid=12,
23 samplerType="EEtaMPhi",
24 energy=50000,
25 eta=0,
26 )
27
28 sampleConfig.merge(pg)
29
30 return sampleConfig

◆ setupProcess() [7/7]

mc.Sample.setupProcess ( self,
flags )

Definition at line 14 of file mc.MG_ttbar_LHE_valid.py.

14 def setupProcess(self, flags):
15 # MadGraph process to generate
16 process_def = """
17 import model sm
18 define p = g u c d s u~ c~ d~ s~
19 define j = g u c d s u~ c~ d~ s~
20 generate p p > t t~
21 output -f
22 """
23
24 # Custom settings to pass to MadGraphControl.
25 # These are native MadGraph settings, not MadGraphControl settings.
26 settings = {
27 "cut_decays": "F",
28 }
29
30 # Use 4F NNPDF set
31 from MadGraphControl.MadGraphPDFSettings import MadGraphPDFSets
32 pdf_set = MadGraphPDFSets.NNPDF30NLOnf4
33
34 # This sample is LHE-only by construction: no showering stage.
35 from MadGraphControl.MadGraphConfig import MadGraphCfg
36 return MadGraphCfg(
37 flags,
38 process_definition=process_def,
39 settings=settings,
40 pdf_setting=pdf_set
41 )
42
43 # Non-default settings can be passed via the kwargs, for example:
44 # return MadGraphCfg(
45 # flags,
46 # process_definition=process_def,
47 # settings=settings,
48 # lhe_version=2,
49 # saveProcDir=True,
50 # safety=1.2, # increase the safety factor for number of events to be generated
51 # )

Member Data Documentation

◆ contact

list mc.Sample.contact = ["atlas-generators-sherpa@cern.ch", "spyros.argyropoulos@cern.ch"]

Definition at line 10 of file mc.Sh30_Zj_valid.py.

◆ description

str mc.Sample.description = "Sherpa 3.0 example JO, Z+0,1-jet production."

Definition at line 8 of file mc.Sh30_Zj_valid.py.

◆ inputFilesPerJob

int mc.Sample.inputFilesPerJob = 1

Definition at line 14 of file mc.MGPy8EG_Toponium_Singlet_2L.py.

◆ keywords

list mc.Sample.keywords = ["2lepton"]

Definition at line 9 of file mc.Sh30_Zj_valid.py.

◆ MEgenerator

str mc.Sample.MEgenerator = "MadGraph"

Definition at line 13 of file mc.MGPy8EG_Toponium_Singlet_2L.py.

◆ nEventsPerJob

int mc.Sample.nEventsPerJob = 10000

Definition at line 11 of file mc.Sh30_Zj_valid.py.


The documentation for this class was generated from the following files: