Re: segmentation violation in sim macro [message #14001 is a reply to message #13991] |
Fri, 21 September 2012 11:29 |
Stefan Pflueger
Messages: 99 Registered: February 2012
|
continuous participant |
From: *kph.uni-mainz.de
|
|
Hi,
I'm not totally sure that I understood your question completely, but here goes my answer:
I haven't tested your macro myself but in case this runs fine now, all you need to do is call the macro with different seed numbers to obtain "independent" samples. So by running
root -l -b -q run_sim_sttcombi_dpm.C\(10000, 1.5, 1, 123456.\)
you would obtain data with 10000 events which are generated with DPM with 1.5 GeV beam momentum in mode 1 (elastic & inelastic) with a seed of 123456. Change these numbers to your needs.
To automate this, you can use for example the $RANDOM variable in bash (in case this macro is not running very long)
for i in `seq 1 5`; do root -l -q run_sim_sttcombi_dpm.C\(10000, 1.5, 1, $RANDOM\); done
Otherwise you need to write something to submit it to some cluster etc.
Best regards,
Stefan
[Updated on: Fri, 21 September 2012 11:31] Report message to a moderator
|
|
|