Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JPrintHeaderFromFilelist.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Auxiliary script to print Monte Carlo header.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 if [ -z $JPP_DIR ]; then
14  echo "Variable JPP_DIR undefined."
15  exit
16 fi
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19 
21 
22 if ( do_usage $* ); then
23  usage "$script <input file>"
24 fi
25 
26 case $# in
28 esac
29 
30 if [[ -z "`${INPUT_FILE}`" ]]; then
31 
32  echo "Running test"
33 
35 
36  for (( i = 0; i < 1000; ++i )); do
37  echo "$JPP_DATA/genhen.km3net_wpd_V2_0.evt.gz" >> $INPUT_FILE
38  done
39 
40  wc -l ${INPUT_FILE}
41 
42  JPrintHeader \
43  -f "`cat ${INPUT_FILE}`"
44 
45  rm -f ${INPUT_FILE}
46 
47  exit
48 
49 fi
50 
51 JPrintHeader \
52  -f "`cat ${INPUT_FILE}`"
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
set_variable INPUT_FILE
exit
Definition: JPizza.sh:36
then JPizza f
Definition: JPizza.sh:46
then echo
* usage
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
then display $WORKDIR
Definition: plot-Domino.sh:127
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:38
script
Definition: JAcoustics.sh:2
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
esac done
Definition: JAddHDE.sh:21