Issue with reweighting at NLO

Asked by Daniel

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

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Do I understand correctly that
/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir

Is the path to a FULL MG5aMC directory? I found confusing to have that within a "HjjMC" directory.

If that's the case, such version of MG5aMC is corrupted:
/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir/models/template_files/fortran/printout.f
should exists

Did you remove those files?

Cheers,

Olivier

Revision history for this message
Daniel (dwinterb) said :
#2

Hi,

Thanks for the quick response!

> Do I understand correctly that
> /afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir

> Is the path to a FULL MG5aMC directory? I found confusing to have that within a "HjjMC" directory.

No it is not the full directory. I am using setup CMS uses to produce gridpacks and I believe this only copies relevant files into this directory.

I looks like what happened during production of the gridpack is that the reweighting procedure failed due to some other reason and so it didn't copy over all those file relevant to the reweighting. (including this printout.f file + others)

I copied over all these files myself and ran again to try and find the original issue with the reweighting during gridpack generation.
This gives the following error message:

Traceback (most recent call last):
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/extended_cmd.py", line 1438, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/common_run_interface.py", line 1996, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1580, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1465, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 99, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 478, in do_launch
    self.create_standalone_directory()
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 99, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 1571, in create_standalone_directory
    misc.compile(cwd=pjoin(path_me, data['paths'][1], 'Source'))
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 354, in deco_f_retry
    return f(*args, **opt)
  File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 480, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/rwgt/rw_mevirt/Source.
The compilation fails with the following output message:
    make: *** No rule to make target 'rwgt.f', needed by 'rwgt2py.so'. Stop.

So it seems the issue is that there is no rule to make "rwgt.f".
An ideas how I can fix this?

Thanks, Daniel

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Which means that you are missing that file as well
this file is present in
Template/RWGTNLO/

But it likely mean that your next error will again be another missing file...

Cheers,

Olivier

> On 1 Mar 2019, at 14:43, Daniel <email address hidden> wrote:
>
> Question #678842 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/678842
>
> Status: Answered => Open
>
> Daniel is still having a problem:
> Hi,
>
> Thanks for the quick response!
>
>> Do I understand correctly that
>> /afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/gridpack/mgbasedir
>
>> Is the path to a FULL MG5aMC directory? I found confusing to have that
> within a "HjjMC" directory.
>
> No it is not the full directory. I am using setup CMS uses to produce
> gridpacks and I believe this only copies relevant files into this
> directory.
>
> I looks like what happened during production of the gridpack is that the
> reweighting procedure failed due to some other reason and so it didn't
> copy over all those file relevant to the reweighting. (including this
> printout.f file + others)
>
> I copied over all these files myself and ran again to try and find the original issue with the reweighting during gridpack generation.
> This gives the following error message:
>
> Traceback (most recent call last):
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/extended_cmd.py", line 1438, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/bin/internal/common_run_interface.py", line 1996, in do_reweight
> reweight_cmd.import_command_file(path)
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1580, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1465, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 99, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 478, in do_launch
> self.create_standalone_directory()
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 99, 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/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/interface/reweight_interface.py", line 1571, in create_standalone_directory
> misc.compile(cwd=pjoin(path_me, data['paths'][1], 'Source'))
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 354, in deco_f_retry
> return f(*args, **opt)
> File "/afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/mgbasedir/madgraph/various/misc.py", line 480, in compile
> raise MadGraph5Error, error_text
> MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/d/dwinterb/private/HjjMC/ggH_sm_2jet_2017/GEN2/New/newpack/CMSSW_9_3_8/src/genproductions/bin/MadGraph5_aMCatNLO/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8/GluGluToHToTauTauPlusTwoJets_M125_13TeV_amcatnloFXFX_pythia8_gridpack/work/gridpack/process/rwgt/rw_mevirt/Source.
> The compilation fails with the following output message:
> make: *** No rule to make target 'rwgt.f', needed by 'rwgt2py.so'. Stop.
>
> So it seems the issue is that there is no rule to make "rwgt.f".
> An ideas how I can fix this?
>
> Thanks, Daniel
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Daniel (dwinterb) said :
#4

Hi Oliver,

Sorry for the delayed response I was really busy with other thing over the last few days.

You are right there are many missing files that I think is due to them not being copied over because the reweighting failed during the gridpack production.

I tried running the reweighting in a full MG5aMC directory and get en error related to the compilation of the "rwgt/rw_mevirt/SubProcesses" directory. The error message is quite long so i have uploaded it to [1]
From the log file t looks like this may be related o the compilation of "allmatrix2py.so" but are other error messages about redefinitions which may be related e.g
"/tmp/dwinterb/tmpgv9MaC/src.linux-x86_64-2.7/allmatrix2pymodule.c:3151:18: error: redefinition of 'f2py_rout_allmatrix2py_ml5_2_get_me'"

Thanks, Daniel

[1] https://www.dropbox.com/s/rwpbgro8jnn6d1k/ME5_debug.out?dl=0

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Can you also put your reweight_card?
Such that I can try to run the exact same run locally.
Looks like some prefix are duplicate leading to the same function to be define twice.

Cheers,

Olivier

> On 5 Mar 2019, at 22:37, Daniel <email address hidden> wrote:
>
> Question #678842 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/678842
>
> Status: Answered => Open
>
> Daniel is still having a problem:
> Hi Oliver,
>
> Sorry for the delayed response I was really busy with other thing over
> the last few days.
>
> You are right there are many missing files that I think is due to them
> not being copied over because the reweighting failed during the gridpack
> production.
>
> I tried running the reweighting in a full MG5aMC directory and get en error related to the compilation of the "rwgt/rw_mevirt/SubProcesses" directory. The error message is quite long so i have uploaded it to [1]
>> From the log file t looks like this may be related o the compilation of "allmatrix2py.so" but are other error messages about redefinitions which may be related e.g
> "/tmp/dwinterb/tmpgv9MaC/src.linux-x86_64-2.7/allmatrix2pymodule.c:3151:18: error: redefinition of 'f2py_rout_allmatrix2py_ml5_2_get_me'"
>
> Thanks, Daniel
>
> [1] https://www.dropbox.com/s/rwpbgro8jnn6d1k/ME5_debug.out?dl=0
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Daniel (dwinterb) said :
#6

Sure, you can find the reweight card here: https://www.dropbox.com/s/lrtdrxe01j7ccim/reweight_card.dat?dl=0

Thanks, Daniel

Revision history for this message
Daniel (dwinterb) said :
#7

Hi Olivier,

Sorry to be a bother but did you get chance to look into this yet?

Thanks, Daniel

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#8

Sorry, I forget it.

This is running on my laptop now, and will see if I face that issue or not.

Sorry,

Olivier

> On 14 Mar 2019, at 22:22, Daniel <email address hidden> wrote:
>
> Question #678842 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/678842
>
> Daniel posted a new comment:
> Hi Olivier,
>
> Sorry to be a bother but did you get chance to look into this yet?
>
> Thanks, Daniel
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#9

Ok so looks like the virtual contribution for the re-weighting does not like the "@" in the NLO definition

so if you change the line:
> generate p p > x0 j j / t [QCD] @2

to
> generate p p > x0 j j / t [QCD]

It should go trough.
I will look for a patch that ignore the @X for that part of the code.

Cheers,

Olivier

> On 15 Mar 2019, at 09:27, Olivier Mattelaer <email address hidden> wrote:
>
> Sorry, I forget it.
>
> This is running on my laptop now, and will see if I face that issue or not.
>
> Sorry,
>
> Olivier
>
>> On 14 Mar 2019, at 22:22, Daniel <email address hidden> wrote:
>>
>> Question #678842 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/678842
>>
>> Daniel posted a new comment:
>> Hi Olivier,
>>
>> Sorry to be a bother but did you get chance to look into this yet?
>>
>> Thanks, Daniel
>>
>> --
>> You received this question notification because you are an answer
>> contact for MadGraph5_aMC@NLO.
>

Revision history for this message
Daniel (dwinterb) said :
#10

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Daniel (dwinterb) said :
#11

Hi Olivier,

Thanks, after removing the "@2" it seems to be working correctly.

Is the "@2" actually needed for anything though?
My understand was this was something to do with using merged samples e.g when merging 0, 1 and 2 jet samples i would do:

generate p p > x0 / t [QCD] @0
add process p p > x0 j / t [QCD] @1
add process p p > x0 j j / t [QCD] @2

- for these samples we will actually used merged 0,1 and 2 jet events but in this particular case i am generating additional H+2 jet events to help with statistics

Would this still work if i was trying to generate an inclusive sample with 0, 1, and 2 jet events as above?

Thanks, Daniel

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#12

I'm not an expert in FxFx,

But in principle, the @X is useless.
(at least in MG5aMC)

If you prefer to keep it, you can also use the patch available at this page:
https://bazaar.launchpad.net/~mg5core1/mg5amcnlo/2.6.6/revision/296

Cheers,

Olivier

> On 16 Mar 2019, at 23:42, Daniel <email address hidden> wrote:
>
> Question #678842 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/678842
>
> Daniel posted a new comment:
> Hi Olivier,
>
> Thanks, after removing the "@2" it seems to be working correctly.
>
> Is the "@2" actually needed for anything though?
> My understand was this was something to do with using merged samples e.g when merging 0, 1 and 2 jet samples i would do:
>
> generate p p > x0 / t [QCD] @0
> add process p p > x0 j / t [QCD] @1
> add process p p > x0 j j / t [QCD] @2
>
> - for these samples we will actually used merged 0,1 and 2 jet events
> but in this particular case i am generating additional H+2 jet events to
> help with statistics
>
> Would this still work if i was trying to generate an inclusive sample
> with 0, 1, and 2 jet events as above?
>
> Thanks, Daniel
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.