forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startSim.sh
executable file
·26 lines (17 loc) · 1.09 KB
/
startSim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# starts a simulation device setup
# just for testing purposes --> use o2sim_parallel for production
NSIMWORKERS=$1
killall -9 xterm
killall -9 o2-sim-primary-server-device-runner
killall -9 o2-sim-device-runner
killall -9 o2-sim-hit-merger-runner
topologyfile=${O2_ROOT}/share/config/o2simtopology.json
# we have one primary distributor
xterm -geometry 80x25+0+0 -e "o2-sim-primary-server-device-runner --control static --id primary-server --mq-config ${topologyfile} -n 20 -m PIPE TOF TRD TPC PHS EMC FIT MCH -g pythia8pp -e TGeant3 | tee serverlog;bash" &
for i in `seq 1 ${NSIMWORKERS}`; do
xterm -geometry 80x25+500+0 -e "o2-sim-device-runner --control static --id worker${i} --config-key worker --mq-config ${topologyfile} --severity info | tee simlog${i};bash" &
done
# the its digitizer
#xterm -geometry 80x25+1000+0 -hold -e "O2ITSDigitizerDeviceRunner --control static --id itsdigitizer --mq-config ${topologyfile} &
# one hit merger -> the time measures the walltime of the complete session
time o2-sim-hit-merger-runner --id hitmerger --control static --mq-config ${topologyfile} | tee mergelog