Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JToAshort.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
12 set_variable DIR $JPP_DIR/examples/JAcoustics/
14 
15 if ( do_usage $* ); then
16  usage "$script <detector> <run>"
17 fi
18 
19 case $# in
22  *) fatal "Wrong number of arguments.";;
23 esac
24 
25 JCookie.sh
26 
27 # create intemediate ROOT file for fast access
28 
29 if [[ ! -f $WORKDIR/toashort.root ]]; then
30 
31  JConvertDB \
32  -q toashort \
33  -@ "detid = `getDetector -D $DETECTOR`" \
34  -@ "minrun = $RUN" \
35  -@ "maxrun = $RUN" \
36  -o $WORKDIR/toashort.root \
37  -d $DEBUG --!
38 fi
39 
40 $DIR/JToAshort \
41  -f $WORKDIR/toashort.root \
42  -d $DEBUG --!
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
set_variable DETECTOR
Definition: JLegolas.sh:31
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
exit
Definition: JPizza.sh:36
do echo Generating $dir eval DIR
Definition: JPlotNPE1D.sh:52
then JPizza f
Definition: JPizza.sh:46
then echo
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JPath.sh:52
then rm i $OUTPUT_FILE fi let RUN
* usage
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
then display $WORKDIR
Definition: plot-Domino.sh:142
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62