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)

Public Attributes

str description = "Inelastic minimum bias, with the A2 MSTW2008LO tune and EvtGen"
list keywords = ["QCD", "minBias", "SM"]
list contact = ["spyros.argyropoulos@cern.ch"]
int nEventsPerJob = 1000
str MEgenerator = "MadGraph"
int inputFilesPerJob = 1

Detailed Description

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

Member Function Documentation

◆ setupFlags() [1/4]

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() [2/4]

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() [3/4]

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() [4/4]

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/4]

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() [2/4]

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() [3/4]

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() [4/4]

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 MadGraph_LHE_Cfg
36 return MadGraph_LHE_Cfg(
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 MadGraph_LHE_Cfg(
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 = ["spyros.argyropoulos@cern.ch"]

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

◆ description

str mc.Sample.description = "Inelastic minimum bias, with the A2 MSTW2008LO tune and EvtGen"

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

◆ inputFilesPerJob

int mc.Sample.inputFilesPerJob = 1

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

◆ keywords

list mc.Sample.keywords = ["QCD", "minBias", "SM"]

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

◆ MEgenerator

str mc.Sample.MEgenerator = "MadGraph"

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

◆ nEventsPerJob

int mc.Sample.nEventsPerJob = 1000

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


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