Jpp 21.0.1
the software that should make you happy
Loading...
Searching...
No Matches
JSelectEvt.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 2
12set_variable DIR $JPP_DIR/examples/JReconstruction
13set_variable EVENT_SELECTOR event_selector.so
14
15if do_usage $*; then
16 usage "$script (input file)+ <output file>"
17fi
18
19if (( $# < 2 )); then
20 fatal "Wrong number of arguments."
21fi
22
23set_array INPUT_FILES $argv[1,-2]
24set_variable OUTPUT_FILE $argv[-1]
25
26make -C $DIR JSelectEvt
27make -f $DIR/JMakeEventSelector ${EVENT_SELECTOR:r}.cc
28
29echo -n "edit ${EVENT_SELECTOR:r}.cc before use."
30read -n 1
31
32make -f $DIR/JMakeEventSelector libs
33
34$DIR/JSelectEvt \
35 -f${^INPUT_FILES} \
36 -o $OUTPUT_FILE \
37 -L `pwd`/$EVENT_SELECTOR \
38 -d $DEBUG