Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonPath.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 test JMuonPath on Monte Carlo true muons.
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 if [ -z $JPP_DIR ]; then
15  echo "Variable JPP_DIR undefined."
16  exit
17 fi
18 
19 source $JPP_DIR/setenv.sh $JPP_DIR
20 
22 set_variable WORKDIR $JPP_DATA
23 set_variable INPUT_FILE $WORKDIR/trigger_efficiency+background.root
24 set_variable INTERMEDIATE_FILE $WORKDIR/evt-mc.root
26 set_variable DETECTOR $WORKDIR/km3net_reference.detx
27 set_variable PDF $WORKDIR/J%p.dat
28 
29 if do_usage $*; then
30  usage "$script [detector file [input file [output file [PDF file descriptor]]]]"
31 fi
32 
33 case $# in
34  4) set_variable PDF $4;&
38 esac
39 
40 if ( ! reuse_file $INTERMEDIATE_FILE ); then
41 
42  JMuonMCEvt \
43  -f $INPUT_FILE \
44  -o $INTERMEDIATE_FILE \
45  -d ${DEBUG} --!
46 
47 fi
48 
49 if ( ! reuse_file $OUTPUT_FILE ); then
50 
51  set_variable NUMBER_OF_PREFITS 1
52  set_variable TTS_NS 2.0
53  set_variable E_GEV 1e3
54 
55  $JPP_DIR/examples/JReconstruction/JMuonPath \
56  -a $DETECTOR \
57  -f $INTERMEDIATE_FILE \
58  -P $PDF \
59  -o $OUTPUT_FILE \
60  -N ${NUMBER_OF_PREFITS} \
61  -T ${TTS_NS} \
62  -E ${E_GEV} \
63  -d ${DEBUG} --!
64 
65 fi
66 
67 JMuonPostfit \
68  -f $OUTPUT_FILE \
69  -o postfit\[path\].root \
70  -A 1003
71 
72 JPlot1D \
73  -f postfit\[path\].root:hx \
74  -\> "angle [deg]" \
75  -\^ "number of events [a.u.]" \
76  -XX \
77  -L TR \
78  -o angle-path.gif
79 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable PDF $JPP_DATA J p dat set_variable HISTOGRAM if do_usage *then usage $script< detector file >< inputfile >< outputfile > fi case set_variable PDF
set_variable INPUT_FILE
exit
Definition: JPizza.sh:36
then JPizza f
Definition: JPizza.sh:46
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
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
do set_variable OUTPUT_DIRECTORY $WORKDIR T
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
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:127
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:23
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:38
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition: JMuonPostfit.sh:35
version
Definition: JCalibratePMT.sh:7
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
then usage $script[input file[working directory[option]]] nWhere option can be E
Definition: JMuonPostfit.sh:35
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:60