can't load reweight module

Asked by Juan Carlos Vasquez Carmona

Dear MadGraph team,

I can't use the reweight module. When I call it it the mg5 prompt returns:

"Error detected in "generate_events run_01"
write debug file /home/juancarlos/Documents/MG5_aMC_v2_3_2_2/test/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
MadGraph5Error : Can't load Reweight module.
             The variable mg5_path might not be correctly configured."

Any help in this issue will be appreciated.
Thank you in advance,
Bests
Juan Vasquez.

Question information

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

It means that your directory do not have the correct path to the madgraph distribution.
it founds that path in Cards/me5_configuration.txt (the last line in principle)

Cheers,

Olivier

> On Dec 3, 2015, at 17:03, Juan Carlos Vasquez Carmona <email address hidden> wrote:
>
> New question #276620 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/276620
>
> Dear MadGraph team,
>
> I can't use the reweight module. When I call it it the mg5 prompt returns:
>
> "Error detected in "generate_events run_01"
> write debug file /home/juancarlos/Documents/MG5_aMC_v2_3_2_2/test/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> MadGraph5Error : Can't load Reweight module.
> The variable mg5_path might not be correctly configured."
>
> Any help in this issue will be appreciated.
> Thank you in advance,
> Bests
> Juan Vasquez.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Juan Carlos Vasquez Carmona (juancarlos8866) said :
#2

Thank you for your answer. I have checked in Cards/me5_configuration.txt and the path to madgraph is where the main madgraph directory is located. What is the correct path that should be there?

Thanks,
Juan.

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

Dear Juan,

Yes that should be ok.

The reason is then that the code fails to load the module, not because it is not in the path but because you have an syntax error in that module.

To check what the problem is, the only solution is to raise the real error:
can you replace the following line in bin/internal/common_run_interface.py
            raise self.ConfigurationError, '''Can\'t load Reweight module.
            The variable mg5_path might not be correctly configured.'''
by
            raise
(you need to do it twice in the code.

and then copy/paste the content of the debug file.

Thanks,

Olivier

Revision history for this message
Juan Carlos Vasquez Carmona (juancarlos8866) said :
#4

Dear Oliver,

I replaced the code as you suggested and it seems that is working just fine now.

Thank you for your help

Juan.

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

Hi,

That’s surprising.
Do you have the reweighing working?
or that part is just skipped?

Cheers,

Olivier

> On Dec 17, 2015, at 02:51, Juan Carlos Vasquez Carmona <email address hidden> wrote:
>
> Question #276620 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/276620
>
> Status: Answered => Solved
>
> Juan Carlos Vasquez Carmona confirmed that the question is solved:
> Dear Oliver,
>
> I replaced the code as you suggested and it seems that is working just
> fine now.
>
> Thank you for your help
>
> Juan.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Juan Carlos Vasquez Carmona (juancarlos8866) said :
#6

Hi Oliver,

Yes the reweighting module is working, I checked that it works by changing the value of the Z boson mass for two different values and in the end it gives two different values for the cross sections as expected.

bests,

Juan.

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

Ok Excellent.

Cheers,

Olivier