Skip to content

Commit 28cd0b9

Browse files
chiarazampollishahor02
authored andcommitted
Fix in script
1 parent a561b4c commit 28cd0b9

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Detectors/Calibration/testMacros/runEPNsimulation.sh

100644100755
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
#!/bin/bash
22

3-
4-
if [ $# -lt 2 ]; then
5-
# if there is no workflow passed, we pass a "default" one
6-
cmd="o2-calibration-data-generator-workflow --lanes 7 --gen-slot $iEPN --gen-norm 3 --mean-latency 100000 --max-timeframes 500 -b | o2-dpl-output-proxy --channel-config "name=downstream,method=connect,address=tcp://localhost:30453,type=push,transport=zeromq" --dataspec downstream:TOF/CALIBDATA -b ; exec bash"
7-
else
8-
cmd=$2
9-
fi
10-
113
iEPN=0
124
xpos_start=100
135
while [[ $iEPN -lt $1 ]]
146
do
157
echo $iEPN
168
xpos=$((xpos_start+1000*$iEPN))
17-
xterm -hold -geometry 150x41+$xpos+300 -e bash -c "${cmd}" &
9+
xterm -hold -geometry 150x41+$xpos+300 -e bash -c "echo $iEPN; o2-calibration-data-generator-workflow --lanes 7 --gen-slot $iEPN --gen-norm 3 --mean-latency 100000 --max-timeframes 500 -b | o2-dpl-output-proxy --channel-config "name=downstream,method=connect,address=tcp://localhost:30453,type=push,transport=zeromq" --dataspec downstream:TOF/CALIBDATA -b ; exec bash" &
1810
((iEPN = iEPN +1 ))
1911
done
12+

0 commit comments

Comments
 (0)