defaul option for param_card and run_card

Bug #1093316 reported by alexandra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Low
Olivier Mattelaer

Bug Description

Hi

I had downloaded MadGraph5_v1_5_6 since 3 days ago
after some time trying to discover why changes on the parameter card did not changed the parameters of the generated events
I could see that on the generate_events script the option '-f' is added by default
even if in the banner the edited param_card is the one printed

-
If we remove this option directly on generate_events, to generate events we have the question

generate_events giveup33 --nb_core=1
Will run in mode parton
Do you want to edit one cards (press enter to bypass editing)?
  1 / param : param_card.dat (be carefull about parameter consistency, especially widths)
  2 / run : run_card.dat
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
 [0, done, 1, param, 2, run, enter path]

if I press enter, it still uses the default parameters (not the ones on the edited param_card)
if we answer 0, it still uses the default parameters (not the ones on the edited param_card)
if we answer the path to the edited card and then 0 it still uses the default parameters (not the ones on the edited param_card)
if we answer 1 and edit on the annoying vim it still uses the default parameters (not the ones on the edited param_card)

since I would like to run over 15*2 points and in each point I have to change 3 parameters
I would not like to change them with vim in each run
where do I can download an older version of MadGraph?

an other thing is that me5_configuration.txt is created from MadGraph all commented by default
thanks!
Alexandra

Related branches

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi Alexandra,

I've made the following test:
(run in interactive mode via ./bin/mg5)

generate p p > e+ e-
output
launch -f
# returns 949.6 ± 2.3
launch
set MZ 100
#returns 1257 ± 2.7
launch -f
# 1252 ± 2.8

So clearly the last runs didn't use the default but indeed the card define in the Cards directory.

I also test to run via the SubProcess directory:
./bin/generate_events -f
#returns 949.6 +- 2.259 pb
cp ../PROC_sm_2/Cards/param_card.dat Cards/ # the one with MZ set to 100
./bin/generate_events -f
#returns 1257 +- 2.731 pb
./bin/generate_events
-> put the path to the default param_card [./Cards/param_card_default.dat]
#returns 947.5 +- 2.254 pb
./bin/generate_events
-> put the path to ../PROC_sm_2/Cards/param_card.dat
#returns 1254 +- 2.742 pb

So clearly I didn't succeed to reproduce your problem. Could you give us more details on what to do to reproduce the problem?

>since I would like to run over 15*2 points and in each point I have to change 3 parameters

For this I would advice you to use the "set" possibility at the time of the question of the edition of the cards.

if you write a file containing the following:
launch
set MZ 80
set WZ Auto
launch
set MZ 90
set WZ Auto
launch
set MZ 100
set WZ Auto

Let assume that your file is named "mg5_command.txt"
you can run it like
./bin/madevent mg5_command.txt
and it will run the three computations.
This is probably the easiest way to run over your 30 points.

Cheers,

Olivier

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi Alexandra,

I notice that the command that I give above is not working due to a small bug.
I have fixed it for the future version 1.5.7.

In the mean time the following should work:
launch
set MZ 80
set WZ Auto
done
launch
set MZ 90
set WZ Auto
done
launch
set MZ 100
set WZ Auto
done

Cheers,

Olivier

Changed in madgraph5:
status: New → Fix Committed
assignee: nobody → Olivier Mattelaer (olivier-mattelaer)
importance: Undecided → Low
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi Alexandra,

>but, as an user suggestion
>to me, the most comfortable way of run on parameter of new model was
>like the way I was using:
>instead of launch the model on interative mode (or by an proc_card),
>generate events from the MadEvent output folder be able of just change
>text Cards,
>maybe could you also maintain also this option of use?

Sure you can still do the following:

(from process directory)
cp XXXX/param_card_X.dat ./Cards/param_card.dat
cp XXXX/run_card_X.dat ./Cards/run_card.dat
./bin/generate_events -f

Otherwise the following iterative mode should be equivalent:
(put in a file and run via ./bin/madevent FILE)
launch
XXXX/param_card_1.dat
XXXX/run_card_1.dat
done
launch
XXXX/param_card_1.dat
XXXX/run_card_2.dat
done
launch
XXXX/param_card_2.dat
XXXX/run_card_1.dat
done
and so on.

Is any of those solutions what you want?
Both solutions works on my computer, if they are not working on your computer, please indicate me which os do you have.

Cheers,

Olivier

Changed in madgraph5:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.