Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JSortEvt.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2script=${0##*/}
3
4if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
6 exit
7fi
8
9source $JPP_DIR/setenv.sh $JPP_DIR
10
11set_variable: DEBUG SORT_DEBUG 0
12set_variable: WILDCARD SORT_WILDCARD \%
13set_variable DIR $JPP_DIR/examples/JAAnet
14set_variable OUTPUT_FILE merged.\%.root
15
16if do_usage $*; then
17 usage "$script <input file>... [output file]\n" \
18 "Note: If more than one input file is given, the output file must be specified as well."
19fi
20
21case $# in
22 2) set_variable OUTPUT_FILE $2;&
23 1) set_array INPUT_FILES $1;;
24 *) set_array INPUT_FILES ${argv[1,-2]}
25 set_variable OUTPUT_FILE ${argv[-1]}
26esac
27
28make -C $DIR JSortEvt
29
30CHECK_EXIT_CODE
31
32$DIR/JSortEvt \
33 -f${^INPUT_FILES} \
34 -o ${OUTPUT_FILE} \
35 -w "${WILDCARD}" \
36 -d ${DEBUG} --!