MadWeight with MadGraph5

Asked by Juan Pablo Gomez

Dear all, I following the steps that are indicated in the link:
https://code.launchpad.net/~maddevelopers/madgraph5/madweight

and I was able to download the code as well as generate a process, however, when I tried to run MadWeight it didn't work.
I tried the command 'output madweight MY_DIR_NAME' first, but it was not recognized, then I tried to run with './bin/madweight' but I got an error like this:
./Source/MadWeight/Python/create_run.py:4: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  import string,os,sys,re,popen2,time,stat,filecmp
no mapping card found
starting the creation of the param_card
define new mapping file
Traceback (most recent call last):
  File "./bin/madweight.py", line 164, in <module>
    create_param.Param_card(run_name=MWparam)
  File "./Source/MadWeight/Python/create_param.py", line 71, in __init__
    self.create_set_card(run_name)
  File "./Source/MadWeight/Python/create_param.py", line 334, in create_set_card
    self.charge_card('param_card.dat')
  File "./Source/MadWeight/Python/create_param.py", line 77, in charge_card
    self.info=MW_param.read_card(name)
  File "./Source/MadWeight/Python/MW_param.py", line 98, in read_card
    card=Cards.Card(name_card)
  File "./Source/MadWeight/Python/Cards.py", line 79, in __init__
    self.info=self.read(self.file)
  File "./Source/MadWeight/Python/Cards.py", line 113, in read
    card=open("./Events/"+name_card,'r') #->read banner
IOError: [Errno 2] No such file or directory: './Events/param_card.dat'

Could you please help me with this?

Thanks in advance,

JP

Question information

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

How did you generate the process?

The correct way is to do
rm -rf MY_DIR_NAME
./bin/mg5

import model MY_MODEL
generate MY_PROCESS
output madweight MY_DIR_NAME

Then you quit MG5 and go to the directory MY_DIR_NAME
and you can do ./bin/madweight.py

Cheers,

Olivier

Revision history for this message
Juan Pablo Gomez (djp) said :
#2

Perfect!!, I will do it in this way.
Thanks a lot.
Cheers,

JP