Dear MG5_aMCatNLO experts,
I am currently generating H+2j events with for different CP-states using the HC_NLO_X0_UFO-heft model.
I am hoping to be able to implement the NLO reweighing feature so that I can store event weights to reweight the events to different CP-states.
Unfortunately I was not able to get this working. When I run the generator i don't see any printed errors/warnings and in the end the lhe files contain all the events but none of the weights are stored on the output (except for the scale / PDF uncertainty weights).
I checked the debug file and see the following error messages:
reweight cmsgrid -from_cards
Traceback (most recent call last):
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/process/bin/internal/extended_cmd.py", line 1467, in onecmd
return self.onecmd_orig(line, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/process/bin/internal/extended_cmd.py", line 1421, in onecmd_orig
return func(arg, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/process/bin/internal/common_run_interface.py", line 2035, in do_reweight
reweight_cmd.import_command_file(path)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1609, in import_command_file
self.exec_cmd(line, precmd=True)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1494, in exec_cmd
stop = Cmd.onecmd_orig(current_interface, line, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1421, in onecmd_orig
return func(arg, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/various/misc.py", line 100, in f_with_no_logger
out = f(self, *args, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 485, in do_launch
self.create_standalone_directory()
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/various/misc.py", line 100, in f_with_no_logger
out = f(self, *args, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 1567, in create_standalone_directory
has_nlo = self.create_standalone_tree_directory(data, second)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/various/misc.py", line 100, in f_with_no_logger
out = f(self, *args, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 1296, in create_standalone_tree_directory
mgcmd.exec_cmd(commandline, precmd=True)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1494, in exec_cmd
stop = Cmd.onecmd_orig(current_interface, line, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1421, in onecmd_orig
return func(arg, **opt)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/master_interface.py", line 290, in do_output
self.cmd.do_output(self, line, *args, **opts)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/madgraph_interface.py", line 7570, in do_output
self.finalize(nojpeg, flaglist=flaglist)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/interface/madgraph_interface.py", line 7858, in finalize
wanted_couplings)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/iolibs/export_v4.py", line 871, in convert_model
model_builder.build(wanted_couplings)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/iolibs/export_v4.py", line 5512, in build
self.write_all()
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/iolibs/export_v4.py", line 5564, in write_all
self.copy_standard_file()
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/iolibs/export_v4.py", line 5579, in copy_standard_file
self.dir_path)
File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/madgraph/iolibs/files.py", line 143, in cp
shutil.copytree(path1, path2)
File "/cvmfs/cms.cern.ch/slc6_amd64_gcc481/external/python/2.7.6/lib/python2.7/shutil.py", line 171, in copytree
names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/models/template_files/fortran/printout.f'
Related File: /afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/models/template_files/fortran/printout.f
But I am not sure how to fix the problem from this information. Do you know what the reason for this error is, and how I can fix it?
I have uploaded full debug log file and the cards I am using on the dropbox link in [1] in case these are helpful
Any help would be greatly appreciated!
Thanks, Daniel
[1] https://www.dropbox.com/sh/gotro4hodevrg27/AACosviW9mU2E72joJpwupTha?dl=0