Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wz to3 l nu #1

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6617c70
Changed madgraph link to download my private version for WV gridpack …
May 27, 2022
1093de8
Update gridpack_generation_EFT.sh
GiacomoBoldrini May 31, 2022
4d3cb0f
Update gridpack_generation_EFT.sh
GiacomoBoldrini May 31, 2022
2b07109
Update gridpack_generation_EFT.sh
GiacomoBoldrini Jun 1, 2022
ccb7c84
Update gridpack_helpers.sh
GiacomoBoldrini Jun 1, 2022
62bd809
Switch back to mg in order to apply patches
Jun 1, 2022
1f27ec2
Back to orig
GiacomoBoldrini Jun 1, 2022
14e1bcb
Merge
Jun 1, 2022
8cfc9aa
Subit reweight on condor
GiacomoBoldrini Jun 3, 2022
dab6dc2
Merge branch 'WV_semilep_EFT' of github.com:UniMiBAnalyses/genproduct…
GiacomoBoldrini Jun 3, 2022
d47ec74
my reweight module
GiacomoBoldrini Jun 3, 2022
f287162
Submit reweight on condor after integrate step
GiacomoBoldrini Jun 5, 2022
22365aa
Added functionality to create smarter rew cards
GiacomoBoldrini Jun 5, 2022
bd5c97b
Also added tasks to script
GiacomoBoldrini Jun 5, 2022
a435858
Also create always rew dict and then let user decide how to handle it
GiacomoBoldrini Jun 5, 2022
137575f
Modified structure
GiacomoBoldrini Jun 6, 2022
021914a
Updated with mew functionality
GiacomoBoldrini Jun 6, 2022
c0d6a9d
little differences
GiacomoBoldrini Jun 7, 2022
e6e5881
Better task management
GiacomoBoldrini Jun 7, 2022
4981096
Created a separate bash script to compile directories as we cannot so…
GiacomoBoldrini Jun 8, 2022
750732f
Update
GiacomoBoldrini Jun 9, 2022
35ce003
Flavour scheme is retrieved from proc card if bs are present in proto…
GiacomoBoldrini Jun 10, 2022
6a4e5a3
updated compress now on sh to activate cmsenv
GiacomoBoldrini Jun 10, 2022
025682e
Add check for pkl files missing under rw_me
GiacomoBoldrini Jun 11, 2022
2ad37a8
Avoid moving of pilotrun, instead copy it
GiacomoBoldrini Jun 11, 2022
f80ae2a
Remove eps files from all rwgt directories
GiacomoBoldrini Jun 13, 2022
6e2a186
Created symlink routine to avoid multiple rw_me directories. tested
GiacomoBoldrini Jun 15, 2022
478a218
Added protections to checks
GiacomoBoldrini Jun 15, 2022
4d6b941
sm cards
Jun 16, 2022
39fc7ba
fixed the decay chain
Jun 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/MadGraph5_aMCatNLO/Utilities/gridpack_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ prepare_reweight () {

# Explicitly compile all subprocesses to avoid
# compilation on the cluster
for file in $(ls -d rwgt/*/SubProcesses/P*); do
for file in $(ls -d rwgt/*/*/SubProcesses/P*); do
echo "Compiling subprocess $(basename $file)"
cd $file
for i in 2 3; do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set default_unset_couplings 99
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model SMEFTsim_U35_MwScheme_UFO-cW_cHWB_cHDD_cHbox_cHW_cHl1_cHl3_cHq1_cHq3_cqq1_cqq11_cqq31_cqq3_cll_cll1_massless
define p = g u c d s b u~ c~ d~ s~ b~
define j = p
define l+ = e+ mu+ ta+
define l- = e- mu- ta-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
generate p p > l+ vl l+ l- j j QCD=0 SMHLOOP=0
add process p p > l- vl~ l+ l- j j QCD=0 SMHLOOP=0
output WZTo3LNujj_EWK_SM -nojpeg
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat MadEvent *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a '# ' are info or comments *
# *
# mind the format: value = variable ! comment *
#*********************************************************************
#
#*******************
# Running parameters
#*******************
#
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
tag_1 = run_tag ! name of the run
#*********************************************************************
# Run to generate the grid pack *
#*********************************************************************
False = gridpack !True = setting up the grid pack
#*********************************************************************
# Number of events and rnd seed *
# Warning: Do not generate more than 1M events in a single run *
# If you want to run Pythia, avoid more than 50k events in a run. *
#*********************************************************************
1000 = nevents ! Number of unweighted events requested
0 = iseed ! rnd seed (0=assigned automatically=default))
#*********************************************************************
# Collider type and energy *
# lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
# 3=photon from electron *
#*********************************************************************
1 = lpp1 ! beam 1 type
1 = lpp2 ! beam 2 type
6500 = ebeam1 ! beam 1 total energy in GeV
6500 = ebeam2 ! beam 2 total energy in GeV
#*********************************************************************
# Beam polarization from -100 (left-handed) to 100 (right-handed) *
#*********************************************************************
0 = polbeam1 ! beam polarization for beam 1
0 = polbeam2 ! beam polarization for beam 2
#*********************************************************************
# PDF CHOICE: this automatically fixes also alpha_s and its evol. *
#*********************************************************************
lhapdf = pdlabel ! PDF set
$DEFAULT_PDF_SETS = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
$DEFAULT_PDF_MEMBERS = reweight_PDF
#*********************************************************************
## Renormalization and factorization scales *
##*********************************************************************
False = fixed_ren_scale ! if .true. use fixed ren scale
False = fixed_fac_scale ! if .true. use fixed fac scale
91.188 = scale ! fixed ren scale
91.188 = dsqrt_q2fact1 ! fixed fact scale for pdf1
91.188 = dsqrt_q2fact2 ! fixed fact scale for pdf2
-1 = dynamical_scale_choice ! Select one of the preselect dynamical choice
1.0 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Matching - Warning! ickkw > 1 is still beta
#*********************************************************************
0 = ickkw ! 0 no matching, 1 MLM, 2 CKKW matching
1 = highestmult ! for ickkw=2, highest mult group
1 = ktscheme ! for ickkw=1, 1 Durham kT, 2 Pythia pTE
1 = alpsfact ! scale factor for QCD emission vx
False = chcluster ! cluster only according to channel diag
False = pdfwgt ! for ickkw=1, perform pdf reweighting
5 = asrwgtflavor ! highest quark flavor for a_s reweight
True = clusinfo ! include clustering tag in output
3.0 = lhe_version ! Change the way clustering information pass to shower.
#*********************************************************************
#**********************************************************
#
#**********************************************************
# Automatic ptj and mjj cuts if xqcut > 0
# (turn off for VBF and single top processes)
#**********************************************************
False = auto_ptj_mjj ! Automatic setting of ptj and mjj
#**********************************************************
#
#**********************************
# BW cutoff (M+/-bwcutoff*Gamma)
#**********************************
15 = bwcutoff ! (M+/-bwcutoff*Gamma)
#**********************************************************
# Apply pt/E/eta/dr/mij cuts on decay products or not
# (note that etmiss/ptll/ptheavy/ht/sorted cuts always apply)
#**********************************************************
True = cut_decays ! Cut decay products
#*************************************************************
# Number of helicities to sum per event (0 = all helicities)
# 0 gives more stable result, but longer run time (needed for
# long decay chains e.g.).
# Use >=2 if most helicities contribute, e.g. pure QCD.
#*************************************************************
0 = nhel ! Number of helicities used per event
#*******************
# Standard Cuts
#*******************
#
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
20 = ptj ! minimum pt for the jets
20 = ptb ! minimum pt for the b
0 = pta ! minimum pt for the photons
0 = ptl ! minimum pt for the charged leptons
0 = misset ! minimum missing Et (sum of neutrino's momenta)
0 = ptheavy ! minimum pt for one heavy final state
1.0 = ptonium ! minimum pt for the quarkonium states
-1 = ptjmax ! maximum pt for the jets
-1 = ptbmax ! maximum pt for the b
-1 = ptamax ! maximum pt for the photons
-1 = ptlmax ! maximum pt for the charged leptons
-1 = missetmax ! maximum missing Et (sum of neutrino's momenta)
#*********************************************************************
# Minimum and maximum E's (in the center of mass frame) *
#*********************************************************************
0 = ej ! minimum E for the jets
0 = eb ! minimum E for the b
0 = ea ! minimum E for the photons
0 = el ! minimum E for the charged leptons
-1 = ejmax ! maximum E for the jets
-1 = ebmax ! maximum E for the b
-1 = eamax ! maximum E for the photons
-1 = elmax ! maximum E for the charged leptons
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
6.5 = etaj ! max rap for the jets
6.5 = etab ! max rap for the b
2.5 = etaa ! max rap for the photons
3.2 = etal ! max rap for the charged leptons
0.6 = etaonium ! max rap for the quarkonium states
0 = etajmin ! min rap for the jets
0 = etabmin ! min rap for the b
0 = etaamin ! min rap for the photons
0 = etalmin ! main rap for the charged leptons
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
0.4 = drjj ! min distance between jets
0.4 = drbb ! min distance between b's
0 = drll ! min distance between leptons
0 = draa ! min distance between gammas
0 = drbj ! min distance between b and jet
0 = draj ! min distance between gamma and jet
0.2 = drjl ! min distance between jet and lepton
0 = drab ! min distance between gamma and b
0 = drbl ! min distance between b and lepton
0 = dral ! min distance between gamma and lepton
-1 = drjjmax ! max distance between jets
-1 = drbbmax ! max distance between b's
-1 = drllmax ! max distance between leptons
-1 = draamax ! max distance between gammas
-1 = drbjmax ! max distance between b and jet
-1 = drajmax ! max distance between gamma and jet
-1 = drjlmax ! max distance between jet and lepton
-1 = drabmax ! max distance between gamma and b
-1 = drblmax ! max distance between b and lepton
-1 = dralmax ! maxdistance between gamma and lepton
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
# WARNING: for four lepton final state mmll cut require to have *
# different lepton masses for each flavor! *
#*********************************************************************
100 = mmjj ! min invariant mass of a jet pair
100 = mmbb ! min invariant mass of a b pair
0 = mmaa ! min invariant mass of gamma gamma pair
50 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
-1 = mmjjmax ! max invariant mass of a jet pair
-1 = mmbbmax ! max invariant mass of a b pair
-1 = mmaamax ! max invariant mass of gamma gamma pair
-1 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
#*********************************************************************
# Minimum and maximum invariant mass for all letpons *
#*********************************************************************
3 = mmnl ! min invariant mass for all letpons (l+- and vl)
-1 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
#*********************************************************************
# Minimum and maximum pt for 4-momenta sum of leptons *
#*********************************************************************
0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
-1 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
0 = xptj ! minimum pt for at least one jet
0 = xptb ! minimum pt for at least one b
0 = xpta ! minimum pt for at least one photon
0 = xptl ! minimum pt for at least one charged lepton
#*********************************************************************
# Control the pt's of the jets sorted by pt *
#*********************************************************************
0 = ptj1min ! minimum pt for the leading jet in pt
0 = ptj2min ! minimum pt for the second jet in pt
0 = ptj3min ! minimum pt for the third jet in pt
0 = ptj4min ! minimum pt for the fourth jet in pt
-1 = ptj1max ! maximum pt for the leading jet in pt
-1 = ptj2max ! maximum pt for the second jet in pt
-1 = ptj3max ! maximum pt for the third jet in pt
-1 = ptj4max ! maximum pt for the fourth jet in pt
0 = cutuse ! reject event if fails any (0) / all (1) jet pt cuts
#*********************************************************************
# Control the pt's of leptons sorted by pt *
#*********************************************************************
0 = ptl1min ! minimum pt for the leading lepton in pt
0 = ptl2min ! minimum pt for the second lepton in pt
0 = ptl3min ! minimum pt for the third lepton in pt
0 = ptl4min ! minimum pt for the fourth lepton in pt
-1 = ptl1max ! maximum pt for the leading lepton in pt
-1 = ptl2max ! maximum pt for the second lepton in pt
-1 = ptl3max ! maximum pt for the third lepton in pt
-1 = ptl4max ! maximum pt for the fourth lepton in pt
#*********************************************************************
# Control the Ht(k)=Sum of k leading jets *
#*********************************************************************
0 = htjmin ! minimum jet HT=Sum(jet pt)
-1 = htjmax ! maximum jet HT=Sum(jet pt)
0 = ihtmin !inclusive Ht for all partons (including b)
-1 = ihtmax !inclusive Ht for all partons (including b)
0 = ht2min ! minimum Ht for the two leading jets
0 = ht3min ! minimum Ht for the three leading jets
0 = ht4min ! minimum Ht for the four leading jets
-1 = ht2max ! maximum Ht for the two leading jets
-1 = ht3max ! maximum Ht for the three leading jets
-1 = ht4max ! maximum Ht for the four leading jets
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# When ptgmin=0, all the other parameters are ignored *
# When ptgmin>0, pta and draj are not going to be used *
#***********************************************************************
0.0 = ptgmin ! Min photon transverse momentum
0.4 = R0gamma ! Radius of isolation code
1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
True = isoEM ! isolate photons from EM energy (photons and leptons)
#*********************************************************************
# WBF cuts *
#*********************************************************************
0.0 = xetamin ! minimum rapidity for two jets in the WBF case
0.0 = deltaeta ! minimum rapidity for two jets in the WBF case
#*********************************************************************
# KT DURHAM CUT *
#*********************************************************************
-1 = ktdurham
0.4 = dparameter
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
5 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
# Jet measure cuts *
#*********************************************************************
0 = xqcut ! minimum kt jet measure between partons
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: If use_syst is T, matched Pythia output is *
# meaningful ONLY if plotted taking matchscale *
# reweighting into account! *
#*********************************************************************
True = use_syst ! Enable systematics studies
#
#**************************************
Loading