GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » segmentation violation in sim macro
Re: segmentation violation in sim macro [message #14001 is a reply to message #13991] Fri, 21 September 2012 11:29 Go to previous messageGo to previous message
Stefan Pflueger is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sep12 external package crash
Next Topic: [FIXED] libPythia6.so: cannot open shared object file:
Goto Forum:
  


Current Time: Tue Dec 03 01:19:07 CET 2024

Total time taken to generate the page: 0.00908 seconds