File tree Expand file tree Collapse file tree
prodtests/full-system-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ if [ " 0$1 " == " 0" ]; then
3+ echo Specify how many timeframe files to generate!
4+ exit 1
5+ fi
6+
7+ echo Generating $1 timeframe files
8+
9+ # Defaults for 128 orbit TF, feel free to override
10+ NEvents=${NEvents:- 600}
11+ NEventsQED=${NEventsQED:- 35000}
12+ SHMSIZE=${SHMSIZE:- 128000000000}
13+ TPCTRACKERSCRATCHMEMORY=${SHMSIZE:- 25000000000}
14+
15+ if [ ` which StfBuilder 2> /dev/null | wc -l` == " 0" ]; then
16+ echo ERROR: StfBuilder is not in the path
17+ exit 1
18+ fi
19+ if [ ` which readout.exe 2> /dev/null | wc -l` == " 0" ]; then
20+ echo ERROR: readout.exe is not in the path
21+ exit 1
22+ fi
23+ if [ " 0$O2_ROOT " == " 0" ]; then
24+ echo \$ O2_ROOT missing
25+ exit 1
26+ fi
27+ if [ ! -f ITSdictionary.bin ]; then
28+ echo ERROR: ITS dictionary missing
29+ exit 1
30+ fi
31+ if [ ! -f matbud.root ]; then
32+ echo ERROR: matbud.root missing
33+ exit 1
34+ fi
35+
36+ mkdir -p raw/timeframe
37+ rm -Rf sim
38+ mkdir sim
39+ mkdir -p simqed
40+
41+ for i in ` seq $1 ` ; do
42+ cp ITSdictionary.bin sim
43+ pushd sim
44+ ln -s ../simqed qed
45+ SPLITTRDDIGI=0 DISABLE_PROCESSING=1 $O2_ROOT /prodtests/full_system_test.sh
46+ $O2_ROOT /prodtests/full-system-test/convert-raw-to-tf-file.sh
47+ popd
48+ mv sim/raw/timeframe/00000001.tf raw/timeframe/` ls raw/timeframe/* .tf | wc -l | awk ' {printf("%08d.tf", $1+1)}' `
49+ rm -Rf sim
50+ done
You can’t perform that action at this time.
0 commit comments