Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JReconstruction/JEvD.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
10 
11 set_variable: DEBUG EVD_DEBUG 2
12 set_variable: EDITOR EVD_EDITOR
13 set_variable PDF $JPP_DATA/J%p.dat
14 set_variable DIR $JPP_DIR/examples/JReconstruction
15 set_variable EVENT_SELECTOR event_selector.so
16 set_variable: FORMAT GRAPHICS_FORMAT gif
17 set_variable+ BATCH GRAPHICS_BATCH -B
18 
19 if do_usage $*; then
20  usage "$script <detector file> <input file>"
21 fi
22 
23 case $# in
26  *) fatal "Wrong number of arguments."
27 esac
28 
29 make -C $DIR JEvD
30 make -f $DIR/JMakeEventSelector libs
31 
32 if [[ -n $EDITOR ]]; then
33  $EDITOR ${EVENT_SELECTOR:r}.cc &
34 fi
35 
36 PARAMETERS=(
37  TTS_ns 2
38  E_GeV 1.0e3
39  TMin_ns -50.0
40  TMax_ns +450.0
41  R_Hz 6.0e3
42  roadWidth_m 150.0
43  numberOfPrefits 0)
44 
45 eval $DIR/JEvD \
46  -f $INPUT_FILE \
47  -a $DETECTOR \
48  -P $PDF \
49  -L `pwd`/$EVENT_SELECTOR \
50  -@ `make_equation PARAMETERS` \
51  -A 4 \
52  -o %.$FORMAT \
53  -d $DEBUG $BATCH
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory >[user directory] nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
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
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
exit
Definition: JPizza.sh:36
data_type r[M+1]
Definition: JPolint.hh:779
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo
static const double C
Physics constants.
const int n
Definition: JPolint.hh:697
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JCalibrateToT a
Definition: JTuneHV.sh:116
* usage
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
set_variable INPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
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
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 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
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
script
Definition: JAcoustics.sh:2
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62