Jpp  19.0.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> [(calibration file)+]"
21 fi
22 
23 if (( $# < 2 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
29 set_array CALIBRATION $argv[3,-1]
30 
31 make -C $DIR JEvD
32 make -f $DIR/JMakeEventSelector libs
33 
34 if [[ -n $EDITOR ]]; then
35  $EDITOR ${EVENT_SELECTOR:r}.cc &
36 fi
37 
38 PARAMETERS=(
39  TTS_ns 2
40  E_GeV 1.0e3
41  TMin_ns -50.0
42  TMax_ns +450.0
43  R_Hz 6.0e3
44  roadWidth_m 150.0
45  numberOfPrefits 0)
46 
47 eval $DIR/JEvD \
48  -f $INPUT_FILE \
49  -a $DETECTOR \
50  -+${^CALIBRATION} \
51  -P $PDF \
52  -L `pwd`/$EVENT_SELECTOR \
53  -@ `make_equation PARAMETERS` \
54  -A 4 \
55  -o %.$FORMAT \
56  -d $DEBUG $BATCH
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
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
exit
Definition: JPizza.sh:36
data_type r[M+1]
Definition: JPolint.hh:868
then
Definition: datalogs.sh:34
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 > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
static const double C
Physics constants.
const int n
Definition: JPolint.hh:786
then JCalibrateToT a
Definition: JTuneHV.sh:107
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
* 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: JMuonStart.sh:47
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition: JDrawPDF.sh:45
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 JHobbit a $DETECTOR f
set_variable DETECTOR
then echo
Definition: JQAQC.sh:92
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62