Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JBuild.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to determine L1 time offsets.
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 
21 source $JPP_DIR/setenv.sh $JPP_DIR
22 
23 
26 set_variable INPUT_FILE $JPP_DATA/trigger_efficiency+background.root
28 set_variable DETECTOR $JPP_DATA/km3net_reference.detx
29 set_variable HISTOGRAM 1
30 set_variable: FORMAT GRAPHICS_FORMAT gif
31 set_variable+ BATCH GRAPHICS_BATCH -B
32 
33 if do_usage $*; then
34  usage "$script [detector file [input file [output file]]]"
35 fi
36 
37 case $# in
41 esac
42 
43 
44 if (( 1 )); then
45 
46  print_variable DETECTOR INPUT_FILE OUTPUT_FILE
47  check_input_file $DETECTOR $INPUT_FILE
48 
49  $JPP_DIR/examples/JTrigger/JBuild \
50  -a $DETECTOR \
51  -f $INPUT_FILE \
52  -o $OUTPUT_FILE \
53  -@ L2Min=3 \
54  -@ ctMin=0.0 \
55  -d $DEBUG
56 
57 fi
58 
59 
60 if (( 1 )); then
61 
62  JPlot1D \
63  -f ${OUTPUT_FILE}:L0 \
64  -f ${OUTPUT_FILE}:L1 \
65  -f ${OUTPUT_FILE}:L2 \
66  -\> "number of hits" \
67  -\^ "number of events [a.u.]" \
68  -y "0.5 1e3" -Y -T "" \
69  -L TR \
70  -o build.$FORMAT $BATCH
71 
72 fi
then print_variable DETECTOR INPUT_FILE OUTPUT_FILE check_input_file $DETECTOR $INPUT_FILE $JPP_DIR examples JTrigger JBuild a $DETECTOR f $INPUT_FILE o $OUTPUT_FILE L2Min
Definition: JBuild.sh:53
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
exit
Definition: JPizza.sh:36
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
then echo
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
set_variable INPUT_FILE
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then JCalibrateToT a
Definition: JTuneHV.sh:116
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then display $WORKDIR
Definition: plot-Domino.sh:128
set_variable DETECTOR
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:42
version
Definition: JCalibratePMT.sh:7