Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/bg-merger
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/bos2hipo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m -XX:+UseSerialGC \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/plugins/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/cvt-compare
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/daqEventViewer
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/services/*:$CLAS12DIR/lib/utils/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/dclayereffs-ana
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Dsun.java2d.pmoffscreen=false -Xmx2048m -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/utils/*:$CLAS12DIR/lib/services/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/decoder
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/dict-generator
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/dict-maker
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/dict-merger
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/dict-validator
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/evio-viewer
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -cp "$CLAS12DIR/lib/clas/*" org.jlab.coda.eventViewer.EventTreeFrame $*
2 changes: 1 addition & 1 deletion bin/evio2hipo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/eviocure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/eviodump
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/plugins/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/hipo-add
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/plugins/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/hipo-browser
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/plugins/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/hipo-diff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/hipo-json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

java -Xms1024m \
-cp "$CLAS12DIR/lib/clas/*:$CLAS12DIR/lib/plugins/*" \
Expand Down
2 changes: 1 addition & 1 deletion bin/hipo-utils
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/postprocess
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/rebuild-scalers
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/recon-util
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/run-groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh groovy
. `dirname $0`/../libexec/env.sh groovy

echo """
****************************************
Expand Down
2 changes: 1 addition & 1 deletion bin/run-groovysh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh groovy
. `dirname $0`/../libexec/env.sh groovy

echo """
***************************************
Expand Down
2 changes: 1 addition & 1 deletion bin/run-jshell
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh jshell
. `dirname $0`/../libexec/env.sh jshell

echo """
*********************************
Expand Down
2 changes: 1 addition & 1 deletion bin/trigger-filter
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
2 changes: 1 addition & 1 deletion bin/trigger-splitter
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. `dirname $0`/env.sh
. `dirname $0`/../libexec/env.sh

export MALLOC_ARENA_MAX=1

Expand Down
5 changes: 3 additions & 2 deletions build-coatjava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ download () {
}


# download the default field maps, as defined in bin/env.sh:
# download the default field maps, as defined in libexec/env.sh:
# (and duplicated in etc/services/reconstruction.yaml):
source `dirname $0`/bin/env.sh
source `dirname $0`/libexec/env.sh
if [ $downloadMaps == "yes" ]; then
echo 'Retrieving field maps ...'
webDir=https://clasweb.jlab.org/clas12offline/magfield
Expand All @@ -87,6 +87,7 @@ rm -rf coatjava
mkdir -p coatjava
cp -r bin coatjava/
cp -r etc coatjava/
cp -r libexec coatjava/

# create schema directories for partial reconstruction outputs
which python3 >& /dev/null && python=python3 || python=python
Expand Down
2 changes: 1 addition & 1 deletion install-clara
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ then
coatjava=./coatjava
fi
mkdir -p clara-cre/plugins/clas12/config
cp -Lr $coatjava/etc $coatjava/bin $coatjava/lib clara-cre/plugins/clas12
cp -Lr $coatjava/etc $coatjava/bin $coatjava/lib* clara-cre/plugins/clas12

# GRAPES:
echo -e "\nRetrieving GRAPES version $grapes ..."
Expand Down
File renamed without changes.
43 changes: 7 additions & 36 deletions validation/advanced-tests/run-advanced-tests.sh
Original file line number Diff line number Diff line change
@@ -1,51 +1,22 @@
#!/bin/sh -f

# this test needs rewritten, with more useful data (not KPP),
# meanwhile not worth maintaining ...
#exit 0

# coatjava must already be built at ../../coatjava/
OS=$(uname)

# set up environment
CLARA_HOME=$PWD/clara_installation/ ; export CLARA_HOME
COAT=$CLARA_HOME/plugins/clas12/
classPath="$COAT/lib/services/*:$COAT/lib/clas/*:$COAT/lib/utils/*:../lib/*:src/"

# tar the local coatjava build so it can be installed with clara
cd ../..
tar -zcvf coatjava-local.tar.gz coatjava
mv coatjava-local.tar.gz validation/advanced-tests/
cd -

# install clara

case $OS in
'Linux')
wget --no-check-certificate https://claraweb.jlab.org/clara/_downloads/install-claracre-clas.sh
;;
'Darwin')
echo "Getting Clara..."
curl -OL "https://claraweb.jlab.org/clara/_downloads/install-claracre-clas.sh" -o install-claracre-clas.sh
;;
*) ;;
esac


chmod +x install-claracre-clas.sh
echo Y | ./install-claracre-clas.sh -f 5.0.2 -j 11 -l local
../../install-clara -c ../../coatjava $CLARA_HOME
if [ $? != 0 ] ; then echo "clara installation error" ; exit 1 ; fi
rm install-claracre-clas.sh

# download test files

case $OS in
'Linux')
wget --no-check-certificate http://clasweb.jlab.org/clas12offline/distribution/coatjava/validation_files/twoTrackEvents_809_raw.evio.tar.gz
;;
'Darwin')
curl -OL "http://clasweb.jlab.org/clas12offline/distribution/coatjava/validation_files/twoTrackEvents_809_raw.evio.tar.gz" -o twoTrackEvents_809_raw.evio.tar.gz
;;
*) ;;
esac


wget --no-check-certificate http://clasweb.jlab.org/clas12offline/distribution/coatjava/validation_files/twoTrackEvents_809_raw.evio.tar.gz

if [ $? != 0 ] ; then echo "wget validation files failure" ; exit 1 ; fi
tar -zxvf twoTrackEvents_809_raw.evio.tar.gz
Expand All @@ -64,7 +35,7 @@ echo "set session s_cook" >> cook.clara
echo "set description d_cook" >> cook.clara
ls twoTrackEvents_809.hipo > files.list
echo "set fileList $PWD/files.list" >> cook.clara
echo "set servicesFile $CLARA_HOME/plugins/clas12/config/kpp.yaml" >> cook.clara
echo "set servicesFile $COAT/etc/services/kpp.yaml" >> cook.clara
echo "run local" >> cook.clara
echo "exit" >> cook.clara
$CLARA_HOME/bin/clara-shell cook.clara
Expand Down
8 changes: 2 additions & 6 deletions validation/advanced-tests/run-eb-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ esac
if [ $useClara -eq 0 ]
then
COAT=../../coatjava
source $COAT/bin/env.sh
source $COAT/libexec/env.sh
else
CLARA_HOME=$PWD/clara_installation/
COAT=$CLARA_HOME/plugins/clas12/
Expand Down Expand Up @@ -117,11 +117,7 @@ then
# install clara
if ! [ -d clara_installation ]
then
wget --no-check-certificate https://claraweb.jlab.org/clara/_downloads/install-claracre-clas.sh
chmod +x install-claracre-clas.sh
./install-claracre-clas.sh -l local
if [ $? != 0 ] ; then echo "clara installation error" ; exit 1 ; fi
rm install-claracre-clas.sh
../../install-clara clara_installation
fi
fi

Expand Down