7 source $JPP_DIR/setenv.sh $JPP_DIR
 
    9 set_variable:  DEBUG             RECONSTRUCTION_DEBUG                2
 
   10 set_variable:  WORKDIR           RECONSTRUCTION_WORKDIR              ./
 
   11 set_variable:  PDF               RECONSTRUCTION_PDF                  $JPP_DATA/J%p.dat
 
   12 set_variable:  THREADS           RECONSTRUCTION_THREADS              5
 
   13 set_variable:  T_NS              RECONSTRUCTION_T_NS                 10.0
 
   16     usage "$script <detector file> <input file>"\
 
   17           "\nExample script to test inter-string calibration."\
 
   18           "\nThe input file corresponds to an input file for the detector simulation (e.g. JSirene)."
 
   21 if (( $# != 2 )); then
 
   22     fatal "Wrong number of arguments."
 
   25 set_variable DETECTOR        $argv[1]
 
   26 set_variable INPUT_FILE      $argv[2]
 
   31 eval `JPrintDetector -a $DETECTOR -O SUMMARY`
 
   33 JConvertDetectorFormat \
 
   37 for STRING in $STRINGS[*]; do
 
   41         -s "$STRING randadd $T_NS"        \
 
   45 JConvertDetectorFormat \
 
   49 JSirene.sh                  $DETECTOR  $INPUT_FILE    sirene.root
 
   50 JTriggerEfficiency.sh       $DETECTOR  detector.datx  sirene.root  trigger_efficieny.root  $JPP_DATA/trigger_parameters_arca.txt  $JPP_DATA/PMT_parameters.txt
 
   52 JARCAMuonReconstruction.sh  detector.datx  trigger_efficieny.root  %.root  $JPP_DATA/PMT_parameters.txt
 
   69      -@ `make_equation PARAMETERS`        \
 
   72      -d $DEBUG                            >& perth_A.log
 
   74 JConvertDetectorFormat \
 
   78 rm -f jmuon.root jmuon.offline.root
 
   80 JARCAMuonReconstruction.sh  detector.datx  trigger_efficieny.root  %.root  $JPP_DATA/PMT_parameters.txt
 
   86      -@ `make_equation PARAMETERS`        \
 
   89      -d $DEBUG                            >& perth_B.log