Error running scripts to print runs in files

Asked by Saumyen Kundu

Hi MG5 developers,
I was running a script to print Cross-sections of different runs in the files. Here's the content of the script:

________________________________
-----------------------------------------------------
import model Type1_UFO/
generate e- e+ > chi chi~ a
output Test/One
launch
shower=OFF
analysis = OFF
0
set MChi 100
set lam__2 1000
set ebeam 500
set cut_decays True
set ea 10
done
launch
shower=OFF
analysis = OFF
0
set ebeam=750
done
launch Test/One -i
print_results --path=./Test/test1.txt --format=short
done
generate e- e+ > chi chi~ a
output Test/Two
launch
shower=OFF
analysis = OFF
0
set MChi=200
set lam__2=1000
set ebeam=500
set cut_decays = True
set ea 10
done
launch
shower=OFF
analysis = OFF
0
set ebeam=750
done
launch Test/Two -i
print_results --path=./Test/test2.txt --format=short
done
generate e- e+ > chi chi~ a
output Test/Three
launch
shower=OFF
analysis = OFF
0
set MChi=200
set lam__2=2000
set ebeam=500
set cut_decays = True
set ea 10
done
launch
shower=OFF
analysis = OFF
0
set ebeam=750
done
launch Test/Three -i
print_results --path=./Test/test3.txt --format=short
________________________________
-----------------------------------------------------

Now, while I'm running it the first output directory is being created also .txt file with contents. Fine!
But for the second process the output directory is not coming up, i.e., 'Test/Two' and the run informations are going into directory 'Test/One'. And the .txt file is not coming. The error message is as in below:

________________________________________________
-------------------------------------------------------------------------------
...
...
...
INFO: Done
launch Test/Two -i
The following switches determine which programs are run:
/=================== Description ===================|================== values ===================|===== other options ======\
| 1. Choose the shower/hadronization program | shower = OFF | Pythia8 |
| 2. Choose the detector simulation program | detector = OFF | Delphes |
| 3. Choose an analysis package (plot/convert) | analysis = ExRoot | MadAnalysis5|OFF |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = OFF | ON|indirect |
\============================================================================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=Pythia8' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
found line : print_results --path=./Test/test2.txt --format=short
This answer is not valid for current question. Keep it for next question and use here default: 0
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 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.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, enter path]
found line : print_results --path=./Test/test2.txt --format=short
This answer is not valid for current question. Keep it for next question and use here default: 0
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name Test/Two
survey Test/Two -i
syntax: survey [run_name] [--run_options])
-- evaluate the different channel associate to the process
-- local options:
      --gridpack : Gridpack generation
      --points : Number of points for first iteration
      --iterations : Number of iterations
      --accuracy : Required accuracy
-- session options:
      Note that those options will be kept for the current session
      --cluster : Submit to the cluster. Current cluster: condor
      --multicore : Run in multi-core configuration
      --nb_core=X : limit the number of core to use to X.
Command "import /home/pdas/energyscanTest.m" interrupted in sub-command:
"launch Test/Two -i" with error:
InvalidCmd : Too many argument for survey command
INFO:
command not executed: done
command not executed: generate e- e+ > chi chi~ a
 ...
 ...
 ...
________________________________________________
-------------------------------------------------------------------------------

Could you give as to why is it happening? Another issue is there. As evident from the script, despite there is given a line after "analysis = OFF", i.e., "0", I'm getting the following warning. I don't why!

________________________________________________
-------------------------------------------------------------------------------
...
...

The following switches determine which programs are run:
/=================== Description ===================|================== values ===================|======= other options =======\
| 1. Choose the shower/hadronization program | shower = OFF | Pythia8 |
| 2. Choose the detector simulation program | detector = OFF | Delphes |
| 3. Choose an analysis package (plot/convert) | analysis = OFF | ExRoot|MadAnalysis5 |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = OFF | ON|indirect |
\===============================================================================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=Pythia8' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
found line : set ebeam=750
This answer is not valid for current question. Keep it for next question and use here default: EOF
The following switches determine which programs are run:
/=================== Description ===================|================== values ===================|======= other options =======\
| 1. Choose the shower/hadronization program | shower = OFF | Pythia8 |
...
...
________________________________________________
-------------------------------------------------------------------------------

It will be of great help if you can give some idea it's happening like this, what's I'm missing...

Thanks in advance...

Regards,
Saumyen

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Saumyen Kundu
Solved:
Last query:
Last reply:
Revision history for this message
Saumyen Kundu (saumyen.k) said :
#1

By the way, I am using MadGraph VERSION 2.7.0 .

Regards,

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

Hi,

The line after
launch Test/One -i
print_results --path=./Test/test1.txt --format=short

should be exit and not done.

For the second question, this is a bug. I will need to investigate it.

Cheers,

Olivier

Revision history for this message
Saumyen Kundu (saumyen.k) said :
#3

Okay. Thanks a lot Olivier for the help..

Saumyen