Script for cross sections of multiple slha files

Asked by Steven Paasch on 2020-01-27

Hey there,

I want to calculate cross-sections for multiple slha files and print them to a .txt file.

My input file looks like this:

import model nmssm

generate e+ e- > z h01
output eeh01
y
launch eeh01
0
set ebeam1 = 125
set ebeam2 = 125
set polbeam2 = -80.0
set polbeam1 = 30.0
set nevents = 10

/home/paaschst/NMSSM-Scan/muinfscan2/spectr_1.dat
done

launch eeh01
/home/paaschst/NMSSM-Scan/muinfscan2/spectr_2.dat
done

launch eeh01 -i
print_results --path=./eeh01/cross_section.txt --format=short

Now, instead of manually adding

launch eeh01
/home/paaschst/NMSSM-Scan/muinfscan2/spectr_*.dat
done

for each slha file, I want to loop through all of them (there are a lot). Is this possible?

Cheers
Steven

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-27
Last reply:
2020-01-29

Hi,

No we do not have any internal support for that.
This being said you can easily create such input file with a couple of line of code.

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Steven Paasch for more information if necessary.

To post a message you must log in.