Skip to content

Commit 2c32f01

Browse files
committed
switch eb tests to gemc 5.0
1 parent 5c5cae9 commit 2c32f01

File tree

5 files changed

+35
-42
lines changed

5 files changed

+35
-42
lines changed

validation/advanced-tests/run-eb-tests.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
webDir=http://clasweb.jlab.org/clas12offline/distribution/coatjava/validation_files/eb
4-
webVersion=4.4.0-fid-r11
4+
webVersion=5.0-fid-r11
55
webDir=$webDir/$webVersion
66

77
# coatjava must already be built at ../../coatjava/
@@ -124,31 +124,28 @@ then
124124
fi
125125

126126
# download test files, if necessary:
127-
rm -f ${webFileStub}.evio
128-
wget -N --no-check-certificate $webDir/${webFileStub}.evio.gz
127+
wget -N --no-check-certificate $webDir/${webFileStub}.hipo
129128
if [ $? != 0 ] ; then echo "wget validation files failure" ; exit 1 ; fi
130-
gunzip -f ${webFileStub}.evio.gz
131129

132-
rm -f ${webFileStub}.hipo
133-
rm -f out_${webFileStub}.hipo
134-
135-
# convert to hipo:
136-
$COAT/bin/evio2hipo -s $gemcSolenoidDefault -o ${webFileStub}.hipo ${webFileStub}.evio
130+
# update the schema dictionary:
131+
rm -f up_${webFileStub}.hipo
132+
../../coatjava/bin/hipo-utils -update -d ../../coatjava/etc/bankdefs/hipo4/ -o up_${webFileStub}.hipo ${webFileStub}.hipo
137133

138134
# run reconstruction:
135+
rm -f out_${webFileStub}.hipo
139136
if [ $useClara -eq 0 ]
140137
then
141138
GEOMDBVAR=$geoDbVariation
142139
export GEOMDBVAR
143-
../../coatjava/bin/recon-util -i ${webFileStub}.hipo -o out_${webFileStub}.hipo -c 2
140+
../../coatjava/bin/recon-util -i up_${webFileStub}.hipo -o out_${webFileStub}.hipo -c 2
144141
else
145142
echo "set inputDir $PWD/" > cook.clara
146143
echo "set outputDir $PWD/" >> cook.clara
147144
echo "set threads 7" >> cook.clara
148145
echo "set javaMemory 2" >> cook.clara
149146
echo "set session s_cook" >> cook.clara
150147
echo "set description d_cook" >> cook.clara
151-
ls ${webFileStub}.hipo > files.list
148+
ls up_${webFileStub}.hipo > files.list
152149
echo "set fileList $PWD/files.list" >> cook.clara
153150
echo "run local" >> cook.clara
154151
echo "exit" >> cook.clara
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.txt
22
*.gz
3+
*.hipo

validation/advanced-tests/src/eb/scripts/gemc-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3-
gemc=${DIR}/gemc.csh
3+
gemc=${DIR}/gemc.sh
44
list=${DIR}/list.txt
55

66
for xx in `awk '{print$1}' $list`

validation/advanced-tests/src/eb/scripts/gemc.csh

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
if ! [ -e "$1.txt" ]
4+
then
5+
echo Missing input file: $1.txt
6+
exit
7+
fi
8+
if [ -e "$1.evio" ] || [ -e "$1.hipo" ]
9+
then
10+
echo Output file already exists: ${1}.evio/hipo
11+
exit
12+
fi
13+
14+
run=11
15+
nEvents=100
16+
gcard=$GEMC/../config/clas12-default.gcard
17+
18+
gemc \
19+
$gcard \
20+
-INPUT_GEN_FILE="LUND, $1.txt" \
21+
-OUTPUT="hipo, $1.hipo" \
22+
-RUNNO=$run \
23+
-USE_GUI=0 \
24+
-N=$nEvents
25+

0 commit comments

Comments
 (0)