Jpp  17.1.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDeltaRays.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 dE/dx due to visible delta-rays
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 TMIN_GEV 0.000915499
27 set_variable: FORMAT GRAPHICS_FORMAT gif
28 set_variable+ BATCH GRAPHICS_BATCH -B
29 
30 if do_usage $*; then
31  usage "$script [working directory]"
32 fi
33 
34 case $# in
36 esac
37 
38 
39 if (( 1 )); then
40 
41  for LEPTON in muon tau positron electron; do
42 
43  $JPP_DIR/examples/JPhysics/JDeltaRays \
44  -o $WORKDIR/delta-rays\[${LEPTON}\].root \
45  -L $LEPTON \
46  -O Q \
47  -T "$TMIN_GEV 1e10" \
48  -d $DEBUG
49 
50  done
51 fi
52 
53 if (( 1 )); then
54 
55  JPlot1D \
56  -f $WORKDIR/delta-rays\[muon\].root:h0 \
57  -f $WORKDIR/delta-rays\[tau\].root:h0 \
58  -f $WORKDIR/delta-rays\[positron\].root:h0 \
59  -f $WORKDIR/delta-rays\[electron\].root:h0 \
60  -XX \
61  -y "0 2.5" \
62  -\> "E [GeV]" \
63  -\^ "dE/dx [MeV g^{-1} cm^{2}]" \
64  -L TL -T "" \
65  -o delta-rays.$FORMAT $BATCH
66 
67 fi
68 
Q(UTCMax_s-UTCMin_s)-livetime_s
version
Definition: JEditTuneHV.sh:5
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
exit
Definition: JPizza.sh:36
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
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
set_variable LOG XX
Definition: JMuonPostfit.sh:71
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then display $WORKDIR
Definition: plot-Domino.sh:128
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
then for LEPTON in muon tau positron electron
Definition: JDeltaRays.sh:41
esac done
Definition: JAddHDE.sh:21
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62