ATLAS Offline Software
Loading...
Searching...
No Matches
mc.Sample Class Reference

Inherits EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, EvgenConfig, and EvgenConfig.

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)
 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.Sh_30_Zj_valid.py.

Member Function Documentation

◆ setupFlags() [1/11]

mc.Sample.setupFlags ( self,
flags )

Definition at line 7 of file mc.Sh_30_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/11]

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

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

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

mc.Sample.setupFlags ( self,
flags )

Definition at line 38 of file mc.Sh_E2E_Lepton_xTau_notQCDTruthJetFilters.py.

38 def setupFlags(self, flags):
39 self.description = "Sherpa Z/gamma* -> tau tau + 0,1,2j@NLO + 3,4,5j@LO with di-leptonic tau decays and b-jet filter taking input from existing unfiltered input file."
40 self.keywords = ["SM", "Z", "2tau", "2lepton", "jets", "NLO"]
41 self.contact = ["tadej@cern.ch"]
42 self.nEventsPerJob = 10000
43

◆ setupFlags() [6/11]

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

mc.Sample.setupFlags ( self,
flags )

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

7 def setupFlags(self, flags):
8 self.description = "Starlight+Pythia8 gamma + gamma UPC collisions at 5360 GeV to continuum -> mumu, 1.5 < m < 4 GeV, 0.75 < pT(mu) < 2. GeV, |eta(mu)| < 2.6"
9 self.keywords = ["2photon","2lepton"]
10 self.contact = ["pawel.rybczynski@cern.ch"]
11 self.nEventsPerJob = 10000
12

◆ setupFlags() [8/11]

mc.Sample.setupFlags ( self,
flags )

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

7 def setupFlags(self, flags):
8 self.description = "Starlight+EvtGen coherent gamma + A UPC collisions at 5360 GeV to Psi(2S) -> all decays, breakup mode 5, pT(trk)>0.9GeV, |eta(trk)|<2.6"
9 self.keywords = ["2photon","2lepton"]
10 self.contact = ["pawel.rybczynski@cern.ch"]
11 self.nEventsPerJob = 10000
12

◆ setupFlags() [9/11]

mc.Sample.setupFlags ( self,
flags )

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

8 def setupFlags(self, flags):
9 self.description = "POWHEG ttbar production for validation purposes"
10 self.keywords = ["SM", "top", "ttbar"]
11 self.contact = ["bwynnyck@cern.ch"]
12 self.nEventsPerJob = 10000
13

◆ setupFlags() [10/11]

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

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

mc.Sample.setupProcess ( self,
flags )

Definition at line 13 of file mc.Sh_30_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/11]

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 run_settings = {
26 'lhe_version':'3.0',
27 'cut_decays':'F',
28 'pdlabel':'lhapdf',
29 'lhaid':'247000',
30 'use_syst':'False'
31 }
32
33 # Run MG to prepare the LHE file for showering
34 from MadGraphControl.MadGraphConfig import MadGraphCfg
35 sampleConfig = MadGraphCfg(
36 flags,
37 process_definition=process_def,
38 run_card_settings=run_settings,
39 prepare_lhe_for_shower=True
40 )
41
42 # Merge Pythia8 specifying the shower configuration
43 # with the A14 tune and NNPDF23LO PDF set,
44 # adding EvtGen for hadron decays on top.
45 from Pythia8_i.Pythia8Config import (
46 Pythia8_MadGraph_Cfg,
47 Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg
48 )
49
50 # Pythia8_MadGraph_Cfg tells the CA to run Pythia8 reading LHE
51 # generated by MadGraph.
52 # ShowerCfg specifies which configuration
53 # (tune,PDF) to use in the shower and whether EvtGen should be
54 # added on top.
55 sampleConfig.merge(Pythia8_MadGraph_Cfg(
56 flags,
57 ShowerCfg=Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg
58 ))
59
60 return sampleConfig

◆ setupProcess() [3/11]

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

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

mc.Sample.setupProcess ( self,
flags )

Definition at line 44 of file mc.Sh_E2E_Lepton_xTau_notQCDTruthJetFilters.py.

44 def setupProcess(self, flags):
45 # we run no generators here so it's fine only to configure the filter sequence
46 acc = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Filter))
47 acc.addSequence(parAND("InvertQCD", invert=True))
48
49 # by default filters are joined with AND
50 # add lepton filter
51 acc.merge(xAODLeptonFilterCfg(flags))
52 # add QCD jet filter
53 acc.merge(QCDTruthJetFilterCfg(flags), sequenceName="InvertQCD")
54 # add tau filter
55 acc.merge(xAODTauFilterCfg(flags))
56
57 # TODO:
58 # postSeq.CountHepMC.CorrectRunNumber = True
59
60 return acc

◆ setupProcess() [6/11]

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

mc.Sample.setupProcess ( self,
flags )

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

13 def setupProcess(self, flags):
14
15 slightIn = [
16 "maxW 4", #Max value of w
17 "minW 1.5", #Min value of w
18 "nmbWBins 400", #Bins n w
19 "maxRapidity 3.", #max y
20 "nmbRapidityBins 300", #Bins n y
21 "accCutPt 1", #Cut in pT? 0 = (no, 1 = yes)
22 "minPt 0.75", #Minimum pT in GeV
23 "maxPt 2.", #Maximum pT in GeV
24 "accCutEta 1", #Cut in pseudorapidity? (0 = no, 1 = yes)
25 "minEta -2.6", #Minimum pseudorapidity
26 "maxEta 2.6", #Maximum pseudorapidity
27 "productionMode 1", #(1=2-phot,2=vmeson(narrow),3=vmeson(wide))
28 "prodParticleId 13", #Channel of interest
29 "beamBreakupMode 5", #Controls the nuclear breakup
30 ]
31
32 from Starlight_i.StarlightConfig import Starlight_Pythia8_Common_Cfg
33 sampleConfig = Starlight_Pythia8_Common_Cfg(
34 flags,
35 Initialize=slightIn,
36 Commands=['TauDecays:mode = 0']
37 )
38
39 return sampleConfig

◆ setupProcess() [8/11]

mc.Sample.setupProcess ( self,
flags )

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

13 def setupProcess(self, flags):
14
15 slightIn = [
16 "nmbWBins 200", #Bins n w
17 "maxRapidity 3.", #max y
18 "nmbRapidityBins 200", #Bins n y
19 "productionMode 2", #(1=2-phot,2=vmeson(narrow),3=vmeson(wide))
20 "prodParticleId 444011", #Channel of interest
21 "beamBreakupMode 5", #Controls the nuclear breakup
22 ]
23
24 # Set up Starlight with vector meson decays from EvtGen
25 from Starlight_i.StarlightConfig import Starlight_EvtGen_Common_Cfg
26 sampleConfig = Starlight_EvtGen_Common_Cfg(flags, Initialize=slightIn)
27
28 # Add filter
29 from GeneratorFilters.GeneratorFiltersConfig import xAODChargedTracksFilterCommonCfg
30 sampleConfig.merge(xAODChargedTracksFilterCommonCfg(
31 flags,
32 NTracks=1,
33 Ptcut=900.,
34 Etacut=2.6,
35 ))
36
37 return sampleConfig
38

◆ setupProcess() [9/11]

mc.Sample.setupProcess ( self,
flags )

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

14 def setupProcess(self, flags):
15 from PowhegControl.PowhegConfig import PowhegCfg
16 from Pythia8_i.Pythia8Config import (
17 Pythia8_Powheg_Main31_Cfg,
18 Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg,
19 Pythia8EvtGenBaseCfg,
20 )
21
22 # ATLAS defaults for the Powheg tt process
23 ca, lhe_file = PowhegCfg(
24 flags,
25 process="tt",
26 settings={
27 "decay_mode": "t t~ > all",
28 "hdamp": 258.75, # 1.5 * mtop
29 "mu_F": [1.0, 2.0, 0.5, 1.0, 1.0, 0.5, 2.0, 0.5, 2.0], # factorisation scales, paired with the renormalisation scales below
30 "mu_R": [1.0, 1.0, 1.0, 2.0, 0.5, 0.5, 2.0, 2.0, 0.5], # List of renormalisation scales
31 "PDF": [260000, 25200, 13165, 90900, 265000, 266000, 303400], # NNPDF30_nlo_as_0118, MMHT2014nlo68clas118, CT14nlo_as_0118, PDF4LHC15_nlo_30, NNPDF30_nlo_as_0117, NNPDF30_nlo_as_0119
32 },
33 )
34
35 # Pythia8 showering: A14 tune with Main31 POWHEG matching
36 powheg_matching_commands = [
37 "Powheg:pTHard = 0",
38 "Powheg:pTdef = 2",
39 "Powheg:vetoCount = 3",
40 "Powheg:pTemt = 0",
41 "Powheg:emitted = 0",
42 "Powheg:MPIveto = 0",
43 ]
44 ca.merge(Pythia8_Powheg_Main31_Cfg(
45 flags,
46 ShowerCfg=Pythia8_A14_NNPDF23LO_EvtGen_Common_Cfg,
47 LHEFile=lhe_file,
48 NFinal=2,
49 Commands=powheg_matching_commands,
50 ))
51
52 # EvtGen afterburner (legacy uses the ..._EvtGen_Common fragment)
53 ca.merge(Pythia8EvtGenBaseCfg(flags))
54 return ca

◆ setupProcess() [10/11]

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

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 run_card_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 contact = ["atlas-generators-sherpa@cern.ch", "spyros.argyropoulos@cern.ch"]

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

◆ description

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

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

◆ inputFilesPerJob

int mc.Sample.inputFilesPerJob = 1

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

◆ keywords

list keywords = ["2lepton"]

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

◆ MEgenerator

str mc.Sample.MEgenerator = "MadGraph"

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

◆ nEventsPerJob

int nEventsPerJob = 10000

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


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