using gridpack in the local cluster
Hi Madgraph experts:
I'd like to generate events using gridpack on the local cluster.
Here are my detailed steps:
I use mc.MGPy8EG_
But when I want to use this gridpack to generate events on the local cluster (condor) (not on the panda grid) (is this impossible?). It always sets the me5_configurati
(
08:10:36 Py:MadGraphUtils INFO Setting run_mode to 0
08:10:36 Py:MadGraphUtils INFO Setting nb_core to 1
)
see more in log.generate
The commands I used are:
=======
export ATLAS_LOCAL_
source ${ATLAS_
asetup AthGeneration,
Gen_tf.py --ecmEnergy=13000.0 --randomSeed=12345 --jobConfig=
================end of commands=
and the log.generate is:
=======
08:10:33 Sun May 30 08:10:33 BST 2021
08:10:33 Preloading tcmalloc_minimal.so
08:10:33 Preloading /cvmfs/
08:10:33 Py:Athena INFO including file "AthenaCommon/
08:10:33 Py:Athena INFO using release [AthGeneration-
08:10:33 Py:Athena INFO including file "AthenaCommon/
08:10:33 Py:Athena INFO including file "AthenaCommon/
08:10:35 Py:Athena INFO executing ROOT6Setup
08:10:35 Py:Athena INFO including file "AthenaCommon/
08:10:35 Py:Athena INFO including file "runargs.
08:10:35 Py:Athena INFO including file "EvgenJobTransf
08:10:35 Py:Athena INFO including file "AthenaCommon/
08:10:35 Py:Athena INFO including file "PartPropSvc/
08:10:35 Py:Gen_tf INFO ecmEnergy = 13000.0
08:10:36 Using JOBOPTSEARCHPATH (as seen in skeleton) = '../900020:
08:10:36 Py:Athena INFO including file "/cvmfs/
08:10:36 OK: New jobOption file
08:10:36 OK: name format correct
08:10:36 OK: MGPy8EG_
08:10:36 OK: 2 physicsShort parts found
08:10:36 OK: Loading generator list file from cvmfs
08:10:36 OK: No generator full name is found
08:10:36 Generators used: ['MG', 'Py8', 'EG']
08:10:36 Py:Athena INFO including file "mc.MGPy8EG_
08:10:36 Py:Athena INFO including file "MadGraphContro
08:10:36 Py:MadGraphUtils INFO Modifying restrict_LO.dat to turn off cpG
08:10:36 Py:MadGraphUtils INFO Modifying restrict_NLO.dat to turn off cpG
08:10:36 Py:MadGraphUtils INFO Located input grid pack area
08:10:36 Py:MadGraphUtils INFO Copying default run_card.dat from madevent/
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options. PDFs should be set with an include file. You might be unable to follow the PDF4LHC uncertainty prescription. Let's hope you know what you doing !!!
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options and you did not specify a LHAPDF yourself -- in the future, this will cause an error !!!
08:10:36 Py:MadGraphUtils INFO Modifying run card located at run_card.tmp.dat
08:10:36 Py:MadGraphUtils INFO Setting nevents = 1100
08:10:36 Py:MadGraphUtils INFO Setting iseed = 12345
08:10:36 Py:MadGraphUtils INFO Setting ebeam1 = 6500.0
08:10:36 Py:MadGraphUtils INFO Setting ebeam2 = 6500.0
08:10:36 Py:MadGraphUtils INFO Setting scalefact = 1.0
08:10:36 Py:MadGraphUtils INFO Setting ptl = 3
08:10:36 Py:MadGraphUtils INFO Setting etal = 3.0
08:10:36 Py:MadGraphUtils INFO Setting drll = 0.04
08:10:36 Py:MadGraphUtils INFO Setting mmll = 0
08:10:36 Py:MadGraphUtils INFO Setting mmnl = 130
08:10:36 Py:MadGraphUtils INFO Setting maxjetflavor = 5
08:10:36 Py:MadGraphUtils INFO Setting use_syst = False
08:10:36 Py:MadGraphUtils INFO Setting auto_ptj_mjj = F
08:10:36 Py:MadGraphUtils INFO Setting ptj = 0
08:10:36 Py:MadGraphUtils INFO Setting ptb = 0
08:10:36 Py:MadGraphUtils INFO Setting pta = 0
08:10:36 Py:MadGraphUtils INFO Setting etaa = -1
08:10:36 Py:MadGraphUtils INFO Setting etab = -1
08:10:36 Py:MadGraphUtils INFO Setting drjl = 0
08:10:36 Py:MadGraphUtils INFO Setting etaj = -1
08:10:36 Py:MadGraphUtils INFO Setting asrwgtflavor = 5
08:10:36 Py:MadGraphUtils INFO Setting draa = 0
08:10:36 Py:MadGraphUtils INFO Setting dral = 0
08:10:36 Py:MadGraphUtils INFO Setting cut_decays = T
08:10:36 Py:MadGraphUtils INFO Setting draj = 0
08:10:36 Py:MadGraphUtils INFO Setting lhe_version = 3.0
08:10:36 Py:MadGraphUtils INFO Setting drjj = 0
08:10:36 Py:MadGraphUtils INFO Setting python_seed = 12345
08:10:36 Py:MadGraphUtils INFO Finished modification of run card.
08:10:36 Py:MadGraphUtils INFO Modifying config card located at madevent/
08:10:36 Py:MadGraphUtils INFO Setting run_mode to 1
08:10:36 Py:MadGraphUtils INFO Setting cluster_type to condor
08:10:36 Py:MadGraphUtils INFO Setting cluster_queue to tomorrow
08:10:36 Py:MadGraphUtils INFO Finished modification of config card.
08:10:36 Py:MadGraphUtils INFO 1 1000. # Lambda
08:10:36
08:10:36 Py:MadGraphUtils INFO 15 0 # cpt
08:10:36
08:10:36 Py:MadGraphUtils INFO 19 0 # ctp
08:10:36
08:10:36 Py:MadGraphUtils WARNING No proc_card: proc_card_mg5.dat found
08:10:36 Py:MadGraphUtils INFO Default run card in use
08:10:36 Py:MadGraphUtils INFO Default param card in use
08:10:36 Py:MadGraphUtils INFO No madspin card in use
08:10:36 Py:MadGraphUtils INFO No reweight card in use
08:10:36 Py:MadGraphUtils INFO Returning cluster type: condor
08:10:36
08:10:36 Py:MadGraphUtils INFO Located input grid pack area
08:10:36 Py:MadGraphUtils INFO Running event generation from gridpack (using smarter mode from generate() function)
08:10:36 Py:MadGraphUtils INFO Not using LHAPDF
08:10:36 Py:MadGraphUtils INFO Path to fastjet install dir: /cvmfs/
08:10:36 Py:MadGraphUtils INFO fastjet-config --version: 3.2.0
08:10:36 Py:MadGraphUtils INFO fastjet-config --prefix: /cvmfs/
08:10:36 Py:MadGraphUtils INFO Setting fastjet = /cvmfs/
08:10:36 Py:MadGraphPara
08:10:36 Py:MadGraphPara
08:10:36 Py:MadGraphPara
08:10:36 Py:MadGraphPara
08:10:36 Py:MadGraphPara
08:10:36 Py:MadGraphUtils INFO Copying default run_card.dat from madevent/
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options. PDFs should be set with an include file. You might be unable to follow the PDF4LHC uncertainty prescription. Let's hope you know what you doing !!!
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options and you did not specify a LHAPDF yourself -- in the future, this will cause an error !!!
08:10:36 Py:MadGraphUtils INFO Modifying run card located at run_card.tmp.dat
08:10:36 Py:MadGraphUtils INFO Setting iseed = 12345
08:10:36 Py:MadGraphUtils INFO Setting python_seed = 12345
08:10:36 Py:MadGraphUtils INFO Finished modification of run card.
08:10:36 Py:MadGraphUtils INFO Generating events from gridpack
08:10:36 Py:MadGraphUtils INFO >>>> FOUND GRIDPACK <<<< <- This will be used for generation
08:10:36 Py:MadGraphUtils INFO Generation of 1100 events will be performed using the supplied gridpack with random seed 12345
08:10:36 Py:MadGraphUtils INFO Started generating events at Sun May 30 08:10:36 2021
08:10:36 Py:MadGraphUtils INFO Setting up for serial run
08:10:36 Py:MadGraphUtils INFO Modifying config card located at madevent/
08:10:36 Py:MadGraphUtils INFO Setting automatic_
08:10:36 Py:MadGraphUtils INFO Setting run_mode to 0
08:10:36 Py:MadGraphUtils INFO Setting nb_core to 1
08:10:36 Py:MadGraphUtils INFO Finished modification of config card.
08:10:36 Py:MadGraphUtils INFO For your information, ls of /home/weiy/
08:10:36 Py:MadGraphUtils INFO ['.asetup.save', 'log', 'log.generate', 'madevent', 'mem.full.
08:10:36 Py:MadGraphUtils INFO For your information, ls of madevent:
08:10:36 Py:MadGraphUtils INFO ['Cards', 'Events', 'HTML', 'MGMEVersion.txt', 'README', 'Source', 'SubProcesses', 'TemplateVersio
08:10:36 Py:MadGraphUtils INFO Checking PDF and systematics settings
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options. PDFs should be set with an include file. You might be unable to follow the PDF4LHC uncertainty prescription. Let's hope you know what you doing !!!
08:10:36 Py:MadGraphSysUtils WARNING !!! No pdf base fragment was included in your job options and you did not specify a LHAPDF yourself -- in the future, this will cause an error !!!
08:10:36 Py:MadGraphUtils INFO Finished checking run card - All OK!
08:10:36 Py:MadGraphUtils INFO proc_card:
08:10:36 #******
08:10:36 #* MadGraph5_aMC@NLO *
08:10:36 #* *
08:10:36 #* * * *
08:10:36 #* * * * * *
08:10:36 #* * * * * 5 * * * * *
08:10:36 #* * * * * *
08:10:36 #* * * *
08:10:36 #* *
08:10:36 #* *
08:10:36 #* VERSION 2.9.3 2021-03-25 *
08:10:36 #* *
08:10:36 #* The MadGraph5_aMC@NLO Development Team - Find us at *
08:10:36 #* https:/
08:10:36 #* *
08:10:36 #******
08:10:36 #* *
08:10:36 #* Command File for MadGraph5_aMC@NLO *
08:10:36 #* *
08:10:36 #* run as ./bin/mg5_aMC filename *
08:10:36 #* *
08:10:36 #******
08:10:36 set group_subprocesses Auto
08:10:36 set ignore_
08:10:36 set max_t_for_channel 99
08:10:36 set loop_optimized_
08:10:36 set low_mem_
08:10:36 set default_
08:10:36 set zerowidth_tchannel True
08:10:36 set loop_color_flows False
08:10:36 set gauge unitary
08:10:36 set complex_mass_scheme False
08:10:36 set max_npoint_
08:10:36 import model /home/weiy/
08:10:36 gg4l_SM_
08:10:36 _local/
08:10:36 define p = g u c d s u~ c~ d~ s~
08:10:36 define j = g u c d s u~ c~ d~ s~
08:10:36 define vl = ve vm vt
08:10:36 define vl~ = ve~ vm~ vt~
08:10:36 define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
08:10:36 define j = p
08:10:36 define p = g u c d s b u~ c~ d~ s~ b~
08:10:36 define j = g u c d s b u~ c~ d~ s~ b~
08:10:36 define l+ = e+ mu+
08:10:36 define l- = e- mu-
08:10:36 generate g g > l+ l- l+ l- / g QCD=2 QED=4 NP=0 [noborn=QCD]
08:10:36 output -f -nojpeg
08:10:36 Py:MadGraphUtils INFO run_card:
08:10:36 #******
08:10:36 # MadGraph5_aMC@NLO *
08:10:36 # *
08:10:36 # run_card.dat MadEvent *
08:10:36 # *
08:10:36 # This file is used to set the parameters of the run. *
08:10:36 # *
08:10:36 # Some notation/
08:10:36 # *
08:10:36 # Lines starting with a '# ' are info or comments *
08:10:36 # *
08:10:36 # mind the format: value = variable ! comment *
08:10:36 # *
08:10:36 # To display more options, you can type the command: *
08:10:36 # update full_run_card *
08:10:36 #******
08:10:36 #
08:10:36 #******
08:10:36 # Tag name for the run (one word) *
08:10:36 #******
08:10:36 tag_1 = run_tag ! name of the run
08:10:36 #******
08:10:36 # Number of events and rnd seed *
08:10:36 # Warning: Do not generate more than 1M events in a single run *
08:10:36 #******
08:10:36 1100 = nevents ! Number of unweighted events requested
08:10:36 12345 = iseed ! rnd seed (0=assigned automatically=
08:10:36 #******
08:10:36 # Collider type and energy *
08:10:36 # lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
08:10:36 # 3=photon from electron, 4=photon from muon *
08:10:36 #******
08:10:36 1 = lpp1 ! beam 1 type
08:10:36 1 = lpp2 ! beam 2 type
08:10:36 6500.0 = ebeam1 ! beam 1 total energy in GeV
08:10:36 6500.0 = ebeam2 ! beam 2 total energy in GeV
08:10:36 # To see polarised beam options: type "update beam_pol"
08:10:36
08:10:36 #******
08:10:36 # PDF CHOICE: this automatically fixes also alpha_s and its evol. *
08:10:36 #******
08:10:36 nn23lo1 = pdlabel ! PDF set
08:10:36 230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
08:10:36 # To see heavy ion options: type "update ion_pdf"
08:10:36 #******
08:10:36 # Renormalization and factorization scales *
08:10:36 #******
08:10:36 False = fixed_ren_scale ! if .true. use fixed ren scale
08:10:36 False = fixed_fac_scale ! if .true. use fixed fac scale
08:10:36 91.188 = scale ! fixed ren scale
08:10:36 91.188 = dsqrt_q2fact1 ! fixed fact scale for pdf1
08:10:36 91.188 = dsqrt_q2fact2 ! fixed fact scale for pdf2
08:10:36 -1 = dynamical_
08:10:36 1.0 = scalefact ! scale factor for event-by-event scales
08:10:36 #******
08:10:36 # Type and output format
08:10:36 #******
08:10:36 True = gridpack !True = setting up the grid pack
08:10:36 -1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
08:10:36 average = event_norm ! average/sum. Normalization of the weight in the LHEF
08:10:36
08:10:36 #******
08:10:36 # Matching parameter (MLM only)
08:10:36 #******
08:10:36 0 = ickkw ! 0 no matching, 1 MLM
08:10:36 1.0 = alpsfact ! scale factor for QCD emission vx
08:10:36 False = chcluster ! cluster only according to channel diag
08:10:36 ! (turn off for VBF and single top processes)
08:10:36 0.0 = xqcut ! minimum kt jet measure between partons
08:10:36
08:10:36
08:10:36 #******
08:10:36 #
08:10:36 #******
08:10:36 # Phase-Space Optimization strategy (basic options)
08:10:36 #******
08:10:36 1 = nhel ! using helicities importance sampling or not.
08:10:36 ! 0: sum over helicity, 1: importance sampling
08:10:36 2 = sde_strategy ! default integration strategy (hep-ph/2021.xxxxx)
08:10:36 ! 1 is old strategy (using amp square)
08:10:36 ! 2 is new strategy (using only the denominator)
08:10:36 # To see advanced option for Phase-Space optimization: type "update psoptim"
08:10:36 #******
08:10:36 # Generation bias, check the wiki page below for more information: *
08:10:36 # 'cp3.irmp.
08:10:36 #******
08:10:36 None = bias_module ! Bias type of bias, [None, ptj_bias, -custom_folder-]
08:10:36 {} = bias_parameters ! Specifies the parameters of the module.
08:10:36 #
08:10:36 #******
08:10:36 # Parton level cuts definition *
08:10:36 #******
08:10:36 #
08:10:36 #
08:10:36 #******
08:10:36 # BW cutoff (M+/-bwcutoff*
08:10:36 #******
08:10:36 15.0 = bwcutoff ! (M+/-bwcutoff*
08:10:36 #******
08:10:36 # Standard Cuts *
08:10:36 #******
08:10:36 # Minimum and maximum pt's (for max, -1 means no cut) *
08:10:36 #******
08:10:36 3 = ptl ! minimum pt for the charged leptons
08:10:36 -1.0 = ptlmax ! maximum pt for the charged leptons
08:10:36 {} = pt_min_pdg ! pt cut for other particles (use pdg code). Applied on particle and anti-particle
08:10:36 {} = pt_max_pdg ! pt cut for other particles (syntax e.g. {6: 100, 25: 50})
08:10:36 #
08:10:36 # For display option for energy cut in the partonic center of mass frame type 'update ecut'
08:10:36 #
08:10:36 #******
08:10:36 # Maximum and minimum absolute rapidity (for max, -1 means no cut) *
08:10:36 #******
08:10:36 3.0 = etal ! max rap for the charged leptons
08:10:36 0.0 = etalmin ! main rap for the charged leptons
08:10:36 {} = eta_min_pdg ! rap cut for other particles (use pdg code). Applied on particle and anti-particle
08:10:36 {} = eta_max_pdg ! rap cut for other particles (syntax e.g. {6: 2.5, 23: 5})
08:10:36 #******
08:10:36 # Minimum and maximum DeltaR distance *
08:10:36 #******
08:10:36 0.04 = drll ! min distance between leptons
08:10:36 -1.0 = drllmax ! max distance between leptons
08:10:36 #******
08:10:36 # Minimum and maximum invariant mass for pairs *
08:10:36 # WARNING: for four lepton final state mmll cut require to have *
08:10:36 # different lepton masses for each flavor! *
08:10:36 #******
08:10:36 0 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
08:10:36 -1.0 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
08:10:36 {} = mxx_min_pdg ! min invariant mass of a pair of particles X/X~ (e.g. {6:250})
08:10:36 {'default': False} = mxx_only_
08:10:36 ! to pairs of particle/
08:10:36 #******
08:10:36 # Minimum and maximum invariant mass for all letpons *
08:10:36 #******
08:10:36 130 = mmnl ! min invariant mass for all letpons (l+- and vl)
08:10:36 -1.0 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
08:10:36 #******
08:10:36 # Minimum and maximum pt for 4-momenta sum of leptons / neutrino *
08:10:36 # for pair of lepton includes only same flavor, opposite charge
08:10:36 #******
08:10:36 0.0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
08:10:36 -1.0 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
08:10:36 #******
08:10:36 # Inclusive cuts *
08:10:36 #******
08:10:36 0.0 = xptl ! minimum pt for at least one charged lepton
08:10:36 #******
08:10:36 # Control the pt's of leptons sorted by pt *
08:10:36 #******
08:10:36 0.0 = ptl1min ! minimum pt for the leading lepton in pt
08:10:36 0.0 = ptl2min ! minimum pt for the second lepton in pt
08:10:36 0.0 = ptl3min ! minimum pt for the third lepton in pt
08:10:36 0.0 = ptl4min ! minimum pt for the fourth lepton in pt
08:10:36 -1.0 = ptl1max ! maximum pt for the leading lepton in pt
08:10:36 -1.0 = ptl2max ! maximum pt for the second lepton in pt
08:10:36 -1.0 = ptl3max ! maximum pt for the third lepton in pt
08:10:36 -1.0 = ptl4max ! maximum pt for the fourth lepton in pt
08:10:36 #******
08:10:36 # maximal pdg code for quark to be considered as a light jet *
08:10:36 # (otherwise b cuts are applied) *
08:10:36 #******
08:10:36 5 = maxjetflavor ! Maximum jet pdg code
08:10:36 #******
08:10:36 #
08:10:36 #******
08:10:36 # Store info for systematics studies *
08:10:36 # WARNING: Do not use for interference type of computation *
08:10:36 #******
08:10:36 False = use_syst ! Enable systematics studies
08:10:36 #
08:10:36 systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
08:10:36 ['--pdf=errorset', '--muf=0.5,1,2', '--weight_
08:10:36 # Syscalc is deprecated but to see the associate options type'update syscalc'
08:10:36 F = auto_ptj_mjj
08:10:36 0 = ptj
08:10:36 0 = ptb
08:10:36 0 = pta
08:10:36 -1 = etaa
08:10:36 -1 = etab
08:10:36 0 = drjl
08:10:36 -1 = etaj
08:10:36 5 = asrwgtflavor
08:10:36 0 = draa
08:10:36 0 = dral
08:10:36 T = cut_decays
08:10:36 0 = draj
08:10:36 3.0 = lhe_version
08:10:36 0 = drjj
08:10:36 12345 = python_seed
08:10:36 Py:MadGraphUtils INFO param_card:
08:10:36 #######
08:10:36 ## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL ####
08:10:36 #######
08:10:36 ## ##
08:10:36 ## Width set on Auto will be computed following the information ##
08:10:36 ## present in the decay.py files of the model. ##
08:10:36 ## See arXiv:1402.1178 for more details. ##
08:10:36 ## ##
08:10:36 #######
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR DIM6
08:10:36 #######
08:10:36 Block dim6
08:10:36 1 1000. # Lambda
08:10:36 8 1.000000e-10 # cpG
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR DIM62F
08:10:36 #######
08:10:36 Block dim62f
08:10:36 15 0 # cpt
08:10:36 19 0 # ctp
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR MASS
08:10:36 #######
08:10:36 Block mass
08:10:36 6 1.720000e+02 # MT
08:10:36 23 9.118760e+01 # MZ
08:10:36 24 7.982440e+01 # MW
08:10:36 25 1.250000e+02 # MH
08:10:36 ## Dependent parameters, given by model restrictions.
08:10:36 ## Those values should be edited following the
08:10:36 ## analytical expression. MG5 ignores those values
08:10:36 ## but they are important for interfacing the output of MG5
08:10:36 ## to external program such as Pythia.
08:10:36 1 0.000000e+00 # d : 0.0
08:10:36 2 0.000000e+00 # u : 0.0
08:10:36 3 0.000000e+00 # s : 0.0
08:10:36 4 0.000000e+00 # c : 0.0
08:10:36 5 0.000000e+00 # b : 0.0
08:10:36 11 0.000000e+00 # e- : 0.0
08:10:36 12 0.000000e+00 # ve : 0.0
08:10:36 13 0.000000e+00 # mu- : 0.0
08:10:36 14 0.000000e+00 # vm : 0.0
08:10:36 15 0.000000e+00 # ta- : 0.0
08:10:36 16 0.000000e+00 # vt : 0.0
08:10:36 21 0.000000e+00 # g : 0.0
08:10:36 22 0.000000e+00 # a : 0.0
08:10:36 9000002 9.118760e+01 # ghz : MZ
08:10:36 9000003 7.982440e+01 # ghwp : MW
08:10:36 9000004 7.982440e+01 # ghwm : MW
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR RENOR
08:10:36 #######
08:10:36 Block renor
08:10:36 1 1.750000e+02 # mueft
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR SMINPUTS
08:10:36 #######
08:10:36 Block sminputs
08:10:36 2 1.166370e-05 # Gf
08:10:36 3 1.184000e-01 # aS (Note that Parameter not used if you use a PDF set)
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR YUKAWA
08:10:36 #######
08:10:36 Block yukawa
08:10:36 6 1.720000e+02 # ymt
08:10:36
08:10:36 #######
08:10:36 ## INFORMATION FOR DECAY
08:10:36 #######
08:10:36 DECAY 6 1.508336e+00 # WT
08:10:36 DECAY 23 2.495200e+00 # WZ
08:10:36 DECAY 24 2.085000e+00 # WW
08:10:36 DECAY 25 5.753088e-03 # WH
08:10:36 ## Dependent parameters, given by model restrictions.
08:10:36 ## Those values should be edited following the
08:10:36 ## analytical expression. MG5 ignores those values
08:10:36 ## but they are important for interfacing the output of MG5
08:10:36 ## to external program such as Pythia.
08:10:36 DECAY 1 0.000000e+00 # d : 0.0
08:10:36 DECAY 2 0.000000e+00 # u : 0.0
08:10:36 DECAY 3 0.000000e+00 # s : 0.0
08:10:36 DECAY 4 0.000000e+00 # c : 0.0
08:10:36 DECAY 5 0.000000e+00 # b : 0.0
08:10:36 DECAY 11 0.000000e+00 # e- : 0.0
08:10:36 DECAY 12 0.000000e+00 # ve : 0.0
08:10:36 DECAY 13 0.000000e+00 # mu- : 0.0
08:10:36 DECAY 14 0.000000e+00 # vm : 0.0
08:10:36 DECAY 15 0.000000e+00 # ta- : 0.0
08:10:36 DECAY 16 0.000000e+00 # vt : 0.0
08:10:36 DECAY 21 0.000000e+00 # g : 0.0
08:10:36 DECAY 22 0.000000e+00 # a : 0.0
08:10:36 DECAY 9000002 2.495200e+00 # ghz : WZ
08:10:36 DECAY 9000003 2.085000e+00 # ghwp : WW
08:10:36 DECAY 9000004 2.085000e+00 # ghwm : WW
08:10:36 #======
08:10:36 # QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
08:10:36 #======
08:10:36
08:10:36 Block QNUMBERS 9000001 # gha
08:10:36 1 0 # 3 times electric charge
08:10:36 2 1 # number of spin states (2S+1)
08:10:36 3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
08:10:36 4 1 # Particle/
08:10:36 Block QNUMBERS 9000002 # ghz
08:10:36 1 0 # 3 times electric charge
08:10:36 2 1 # number of spin states (2S+1)
08:10:36 3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
08:10:36 4 1 # Particle/
08:10:36 Block QNUMBERS 9000003 # ghwp
08:10:36 1 3 # 3 times electric charge
08:10:36 2 1 # number of spin states (2S+1)
08:10:36 3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
08:10:36 4 1 # Particle/
08:10:36 Block QNUMBERS 9000004 # ghwm
08:10:36 1 -3 # 3 times electric charge
08:10:36 2 1 # number of spin states (2S+1)
08:10:36 3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
08:10:36 4 1 # Particle/
08:10:36 Block QNUMBERS 9000005 # ghg
08:10:36 1 0 # 3 times electric charge
08:10:36 2 1 # number of spin states (2S+1)
08:10:36 3 8 # colour rep (1: singlet, 3: triplet, 8: octet)
08:10:36 4 1 # Particle/
08:10:36 Py:MadGraphUtils INFO No madspin card in use
08:10:36 Py:MadGraphUtils INFO No reweight card in use
08:10:36 Py:MadGraphUtils INFO Found madevent/
08:10:36 Py:MadGraphUtils INFO Now generating 1100 events with random seed 12345 and granularity 1
08:10:38 No handlers could be found for logger "madevent.cards"
08:10:38 P0_gg_llll
================end of log.generate=
=======
doNLO=0 # for EFT only, 0: LO, 1: NLO
dogg=1 # production mode, 0: pp, 1: gg
doZZ=0 # 0: off-shell, 1: on-shell ZZ, ZZ->4l/2l2v, 2: h->ZZ, 3: gg->Z no H; -1: gg->H->4l
do2l2v=0 # 0: 4l, 1: 2l2v
QCDmode=
EFTorder=0 # 0 for SM only, 1 for EFT linear term, 2 for EFT quadratic term, 3 for all
EFTop='cpt,ctp,cpG' # EFT parameter name
EFTval='0,0,0' # value of the EFT parameter, 1 by default
fixModel=1 # turn off cpG via the restriction card
doReweight=0 # 0, no reweighting, 1: linear terms only; 2: quad terms only; 3: both linear and quad terms
# format is [ 'paramName1_
# or [ 'paramName1_
reweights=[]
from MadGraphControl
from MadGraphControl import MadGraphUtils
MadGraphUtils.
import math, os, shutil, copy
### get MC job-options filename
FIRST_DIR = (os.environ[
jofiles = [f for f in os.listdir(
#------
# General Settings
# need to provide the following in the top JO:
# EFTorder: order of the calculation, 0 for SM only, 1 for EFT linear term, 2 for EFT quadratic term, 3 for all
# EFTop: EFT parameter name
# EFTval: value of the EFT parameter, 1 by default
# dogg: loop-induced or not
# doNLO: LO or NLO model
#------
mode=1 # 0: single core; 2: multicore; 1: cluster;
cluster_type=None
cluster_queue=None
if mode==1:
cluster_
cluster_
gridpack_mode=True
## safe factor applied to nevents, to account for the filter efficiency
safefactor = 1.1
nevents = runArgs.
nevents = int(nevents)
## EFT parameters
dim6_ops_LO = {
'dim6' : ['cpG'],
'dim62f' : ['ctp','cpt']
}
dim6_ops_NLO = {
'dim6' : ['cpG'],
'dim62f' : ['ctp','cpt']
}
# the block DIM64F2L not available for NLO, some parameters not available for NLO
if doNLO:
dim6_
else:
dim6_
# check user defined EFT operator names
l_EFTop=[]
l_EFTval=[]
if EFTop:
if "," in EFTop:
for op in EFTop.split(","): l_EFTop.append(op)
else: l_EFTop.
for op in l_EFTop:
op_found = 0
for bl in dim6_ops.keys():
for aop in dim6_ops[bl]:
if aop.upper() == op.upper():
op_found = 1
break
if not op_found:
raise RuntimeError("EFT parameter %s not avaiable." % op)
if EFTval:
if "," in EFTval:
for val in EFTval.split(","): l_EFTval.
else: l_EFTval.
else:
# use default value 1
for ie, op in enumerate(l_EFTop): l_EFTval.append(1)
#------
# Process
#------
# model with restrictions: SM, LO, NLO
model_name_SM = "SMEFTatNLO-
model_name_LO = model_name_
model_name_NLO = model_name_
model_name = model_name_SM
# production mode
prod_str = "p p"
if dogg:
prod_str = "g g"
# lepton final states
decay_str = ""
if doZZ<=0:
if do2l2v:
decay_str = "l+ l- vl vl~ / l+ l- vl vl~ w+ w- g"
else:
decay_str = "l+ l- l+ l- / g"
if EFTorder==0: ## SM
if doZZ==1: ## on-shell ZZ
proc_str = "generate %s > z z QCD=2 QED=2 NP=0" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "generate p p > h > z z QCD=2 QED=2 NP=0"
elif doZZ==3: ## no Higgs
proc_str = "generate %s > z z / h QCD=2 QED=2 NP=0" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "generate %s > h > %s QCD=2 QED=4 NP=0" % (prod_str, decay_str)
else: ## off-shell ll
proc_str = "generate %s > %s QCD=2 QED=4 NP=0" % (prod_str, decay_str)
else:
if EFTorder==1: ## linear
if doZZ==1: ## on-shell ZZ
proc_str = "generate %s > z z QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "generate %s > h > z z QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==3: ## no Higgs
proc_str = "generate %s > z z / h QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "generate %s > h > %s QCD=2 QED=4 NP=2 NP^2==2" % (prod_str, decay_str)
else:
proc_str = "generate %s > %s QCD=2 QED=4 NP=2 NP^2==2" % (prod_str, decay_str)
elif EFTorder==2: ## quadratic
if doZZ==1: ## on-shell ZZ
proc_str = "generate %s > z z QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "generate %s > h > z z QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==3: ## no Higgs
proc_str = "generate %s > z z / h QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "generate %s > h > %s QCD=2 QED=4 NP=2 NP^2==4" % (prod_str, decay_str)
else:
proc_str = "generate %s > %s QCD=2 QED=4 NP=2 NP^2==4" % (prod_str, decay_str)
elif EFTorder==3: ## All
if doZZ==1: ## on-shell ZZ
proc_str = "generate %s > z z QCD=2 QED=2 NP=2" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "generate %s > h > z z QCD=2 QED=2 NP=2" % (prod_str)
elif doZZ==3: ## no Higgs
proc_str = "generate %s > z z / h QCD=2 QED=2 NP=2" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "generate %s > h > %s QCD=2 QED=4 NP=2" % (prod_str, decay_str)
else:
proc_str = "generate %s > %s QCD=2 QED=4 NP=2" % (prod_str, decay_str)
if doNLO:
model_name = model_name_NLO
else:
model_name = model_name_LO
# QCD order: None, "[QCD]", "[noborn=QCD]"
if QCDmode:
proc_str += " "+QCDmode
# use model files locally, to fix cpG
#mgmodels=
mgmodels=
model_name_LO_org = mgmodels+"/" + model_name_SM+"-LO"
model_name_NLO_org = mgmodels+"/" + model_name_
model_name_custom = mgmodels+
restricted_
model_path=
if fixModel:
## copy model files to local
model_
local_
if os.path.
shutil.
os.mkdir(
local_
shutil.
## fix cpG
tmp_cards=
for tmp_card in tmp_cards:
rst_
if os.access(
rst_card_old = local_model+
mglog.
os.
oldCard = open(rst_card_old, 'r')
newCard = open(rst_card, 'w')
for line in iter(oldCard):
if "cpG" in line: line=line.
oldCard.
newCard.
#model_
model_
restricted_
## update model names which might be used later for reweighting
model_
model_name_LO = model_path+"/" + model_name_SM+"-LO"
model_name_NLO = model_path+"/" + model_name_
model_name_LO_org = model_path+"/" + model_name_
model_
## remove cpG
if 'dim6' in dim6_ops and 'cpG' in dim6_ops['dim6']:
dim6_
restricted_
if not is_gen_
process = """
set max_npoint_
import model %s
define p = g u c d s b u~ c~ d~ s~ b~
define j = g u c d s b u~ c~ d~ s~ b~
define l+ = e+ mu+
define l- = e- mu-
%s
output -f
""" % (restricted_model, proc_str)
process_dir = new_process(
else:
process_dir = MADGRAPH_
beamEnergy=-999
if hasattr(
beamEnergy = runArgs.ecmEnergy / 2.
else:
raise RuntimeError("No center of mass energy found.")
#------
# Random Seed
#------
randomSeed = 0
if hasattr(
#------
# Number of Events
#------
skip_events=0
if hasattr(
#------
# MG5 run Card
#------
extras = {
'asrwgtflav
'lhe_
'ptj':"0",
'ptb':"0",
'pta':"0",
'ptl':"3",
'etaj':"-1",
'etab':"-1",
'etaa':"-1",
'etal':"3.0",
'drjj':"0",
'mmll':"0",
'draa':"0",
'draj':"0",
'use_
'scalefact'
'drjl':"0",
'dral':"0",
'drll':"0.04",
'maxjetflav
'cut_decays' :'T',
'auto_ptj_mjj': 'F',
'nevents' : nevents,
}
## m4l cut for 4l
if (doZZ==0 or doZZ==-1) and (not do2l2v):
extras['mmnl'] = "130"
## settings for NLO
# call MadGraphUtils.
if is_NLO_
extras = {
'lhe_
'parton_shower' :'PYTHIA8',
'ptl':"3",
'etal':"3.0",
'ptj':"0",
'etaj':"-1",
'mll':"0",
'mll_sf':"0",
'drll':"0.04",
'drll_
'jetalgo':'-1',
'jetradius' : '0.4',
'maxjetflav
'nevents' : nevents,
}
modify_
# Set up batch jobs
#if mode==2 and (not is_gen_
# modify_
if mode==1 :
modify_
else:
modify_
#------
# MG5 param Card
#------
if EFTorder>=0:
# Set SMEFT@NLO parameters
## params is a dictionary of dictionaries (each dictionary is a separate block)
params = dict()
# initial setting, disable all EFT parameters
for bl in dim6_ops.keys():
params[bl] = dict()
for op in dim6_ops[bl]:
params[
# set the EFT operator under test
for ie, op in enumerate(l_EFTop):
val = l_EFTval[ie]
for bl in dim6_ops.keys():
if op in dim6_ops[bl]:
modify_
# Build reweight_card.dat
if doReweight:
# Create reweighting card
reweight_
rwcard = open(reweight_
## parameters to reweight
# format is [ 'paramName1_
# or [ 'paramName1_
dict_para_rwt={}
for rw_name in reweights:
dict_
for param in rw_name.
param_name, value = param.split('_')
dict_
## model
curr_
# !!! NLO model has to be used for interference (either tree*loop or loop*loop)
dim6_
## linear
if doReweight==1 or doReweight==3:
if doZZ==1: ## on-shell ZZ
proc_str = "%s > z z QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "%s > h > z z QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==3: ## no Higgs
proc_str = "%s > z z / h QCD=2 QED=2 NP=2 NP^2==2" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "%s > %s QCD=2 QED=4 NP=2 NP^2==2" % (prod_str, decay_str)
else:
proc_str = "%s > %s QCD=2 QED=4 NP=2 NP^2==2" % (prod_str, decay_str)
## launch reweighting
for rw_name in dict_para_
# check if the reweighting parameter is included in the model or not
skipop=1
hasCPG=False ## special treatment for cpG (tree level)
for param in dict_para_
if param_name.upper() == "CPG": hasCPG=True
for bl in dim6_ops.keys():
if param_name in dim6_ops[bl]:
break
if skipop and (not hasCPG): continue
# change process
## cpG: tree*loop
if hasCPG:
# locally fixed model has cpG removed, need to use the original one
# only update the model if it's different than the nominal one
if curr_model_name != model_name_NLO_org:
change process %s [virt=QCD]
""" % proc_str)
## others: loop*loop
else:
# use locally fixed model with cpG removed
# only update the model if it's different than the nominal one
if curr_model_name != model_name_NLO:
change model %s
""" % model_name_NLO)
change process %s %s
""" % (proc_str, QCDmode))
# launch reweighting
rwcard.
params = dict()
# initial setting, disable all EFT parameters
for bl in dim6_ops.keys():
params[bl] = dict()
for op in dim6_ops[bl]:
params[
# set the EFT operator under test
for param in dict_para_
for bl in dim6_ops.keys():
if param_name in dim6_ops[bl] or (bl=="dim6" and param_name.upper() == "CPG"):
rwcard.
rwcard.
rwcard.
## quadratic
if doReweight==2 or doReweight==3:
dim6_
if doZZ==1: ## on-shell ZZ
proc_str = "%s > z z QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==2: ## HZZ
proc_str = "%s > h > z z QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==3: ## no Higgs
proc_str = "%s > z z / h QCD=2 QED=2 NP=2 NP^2==4" % (prod_str)
elif doZZ==-1: ## H4l
proc_str = "%s > h > %s QCD=2 QED=4 NP=2 NP^2==4" % (prod_str, decay_str)
else:
proc_str = "%s > %s QCD=2 QED=4 NP=2 NP^2==4" % (prod_str, decay_str)
## launch reweighting
for rw_name in dict_para_
# check if the reweighting parameter is included in the model or not
skipop=1
hasCPG=False ## special treatment for cpG (tree level)
hasCPGonl
for param in dict_para_
if param_name.upper() == "CPG": hasCPG=True
else: hasCPGonly=False
for bl in dim6_ops.keys():
if param_name in dim6_ops[bl]:
break
if skipop and (not hasCPG): continue
# change process
## cpG: tree*tree
if hasCPG and hasCPGonly:
# TODO: this does not work, better to run it directly, not via reweighting
continue
# LO or NLO
## NLO
if doNLO:
change mode NLO
""")
# locally fixed model has cpG removed, need to use the original one
# only update the model if it's different than the nominal one
if curr_model_name != model_name_NLO_org:
change model %s
""" % model_name_NLO_org)
# change the process accordingly for cpG*cpG at NLO
if doZZ==1: ## on-shell ZZ
elif doZZ==2: ## HZZ
elif doZZ==3: ## no Higgs
elif doZZ==-1: ## H4l
else:
change process %s
""" % tmp_proc_str)
## LO
else:
if curr_model_name != model_name_LO_org:
change model %s
""" % model_name_LO_org)
change process %s
""" % proc_str)
## cpG*cXX: tree*loop
elif hasCPG:
# NLO model has to be used here
# locally fixed model has cpG removed, need to use the original one
# only update the model if it's different than the nominal one
if curr_model_name != model_name_NLO_org:
change model %s
""" % model_name_NLO_org)
change process %s [virt=QCD]
""" % (proc_str))
## others: loop*loop
else:
# NLO model has to be used here
if curr_model_name != model_name_NLO:
change model %s
""" % model_name_NLO)
change process %s %s
""" % (proc_str, QCDmode))
# launch reweighting
rwcard.
params = dict()
# initial setting, disable all EFT parameters
for bl in dim6_ops.keys():
params[bl] = dict()
for op in dim6_ops[bl]:
params[
# set the EFT operator under test
for param in dict_para_
for bl in dim6_ops.keys():
if param_name in dim6_ops[bl] or (bl=="dim6" and param_name.upper() == "CPG"):
rwcard.
rwcard.
rwcard.
rwcard.close()
print_cards()
#------
# MG5 process (lhe) generation
#------
generate(
arrange_
# Helper for resetting process number
check_reset_
#------
# Shower
#------
include(
include(
## Z boson decay
if doZZ:
if do2l2v:
genSeq.
else:
genSeq.
===============end of mc.MGPy8EG_
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply: