MadWeight with several parameters changing

Asked by Sébastien Wertz

Hello,

I'd like to run MadWeight using different values of two parameters. To do so, I did in the MadWeight_card.dat :

Block MW_parameter
    mode 2 # type of input
     11 fourfermion
     12 1
     13 1.00e+00
     13 0.00e+00

     21 fourfermion
     22 2
     23 0.00e+00
     23 1.00e+00

IE, I'd like weights with parameters (nr.1, nr.2) = (1,0), and weights with parameters = (0,1).

But when I then run MadWeight (./bin/madweight.py -146 since I had run in that directory before) , only one weight/event appears in the output file... And only one param_card_1.dat is created (I though one card would be created for each parameter set)

Have I done something wrong?

Cheers,
Sébastien

Question information

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

Hi,

Here is the patch (will be part of 2.2.3):

=== modified file 'Template/MadWeight/Python/MW_param_default.inc'
--- old/Template/MadWeight/Python/MW_param_default.inc 2014-01-26 14:08:26 +0000
+++ new/Template/MadWeight/Python/MW_param_default.inc 2014-11-17 14:40:14 +0000
@@ -14,8 +14,8 @@
 mw_run use_sobol logical F # don t use sobol generator by default
 mw_run inputfile string './Events/input.lhco' # path to the inputfile

-mw_parameter mode logical 1
-mw_parameter 1 logical mw_parameter@@mode # choose the mode for the generation of the param_card.dat
+mw_parameter mode integer 1
+mw_parameter 1 integer mw_parameter@@mode # choose the mode for the generation of the param_card.dat
 mw_parameter 2 logical 0 # put on 1 to add new param_card.dat (for step 1) creates the corresponding new events dir if step 5 already performs

 mw_perm permutation logical T # make the permutation between identical particles/jets

=== modified file 'UpdateNotes.txt'
--- old/UpdateNotes.txt 2014-11-11 08:46:21 +0000
+++ new/UpdateNotes.txt 2014-11-17 14:42:19 +0000
@@ -1,6 +1,7 @@
 Update notes for MadGraph5_aMC@NLO (in reverse time order)

 2.2.3(XX/XX/XX) RF: If a NAN is found, the code now skips that PS point and continues.
+ OM: Fix a bug in MadWeight (correlated param_card was not creating the correct input file)

 2.2.2(06/11/14) OM: Correct a bug in the integration grid (introduces in 2.1.2). This was biasing the cross-section of
                     processes like a a > mu+ mu- in the Effective Photon Approximation by three order of magnitude.

Cheers,

Olivier

On Nov 17, 2014, at 1:07 PM, Sébastien Wertz <email address hidden> wrote:

> New question #257757 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/257757
>
> Hello,
>
> I'd like to run MadWeight using different values of two parameters. To do so, I did in the MadWeight_card.dat :
>
> Block MW_parameter
> mode 2 # type of input
> 11 fourfermion
> 12 1
> 13 1.00e+00
> 13 0.00e+00
>
> 21 fourfermion
> 22 2
> 23 0.00e+00
> 23 1.00e+00
>
> IE, I'd like weights with parameters (nr.1, nr.2) = (1,0), and weights with parameters = (0,1).
>
> But when I then run MadWeight (./bin/madweight.py -146 since I had run in that directory before) , only one weight/event appears in the output file... And only one param_card_1.dat is created (I though one card would be created for each parameter set)
>
> Have I done something wrong?
>
> Cheers,
> Sébastien
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sébastien Wertz (sebastien-wertz) said :
#2

Thanks, that fixed it!