9 # ------------------------------------------------------------------------------------------ 
   11 #                         Utility script to test JCalibrateK40/JFitK40. 
   13 # ------------------------------------------------------------------------------------------ 
   15 if [ -z $JPP_DIR ]; 
then 
   16     echo "Variable JPP_DIR undefined." 
   20 source $JPP_DIR/setenv.sh $JPP_DIR
 
   25 if ( do_usage $* ); 
then 
   26     usage "$script [working directory]" 
   36 set_variable  numberOfSlices  6000
 
   47         -@ 
"detectorType   = $detectorType"    \
 
   48         -@ 
"numberOfLines  = $numberOfLines"   \
 
   49         -@ 
"numberOfFloors = $numberOfFloors"  \
 
   57     debug "Generating random background." 
   61         JRandomTimesliceWriter \
 
   66             -
P "pmt= 101  0 QE=$QE"            \
 
   67             -
P "pmt= 101  1 QE=$QE"            \
 
   68             -
P "pmt= 101  2 QE=$QE"            \
 
   69             -
P "pmt= 101  1 QE=$QE"            \
 
   70             -
P "pmt= 101  3 QE=$QE"            \
 
   71             -
P "pmt= 101  4 QE=$QE"            \
 
   72             -
P "pmt= 101  5 QE=$QE"            \
 
   73             -
P "pmt= 101  6 QE=$QE"            \
 
   74             -
P "pmt= 101  7 QE=$QE"            \
 
   75             -
P "pmt= 101  8 QE=$QE"            \
 
   76             -
P "pmt= 101  9 QE=$QE"            \
 
   77             -
P "pmt= 101 10 QE=$QE"            \
 
   78             -
P "pmt= 101 11 QE=$QE"            \
 
   79             -
P "pmt= 101 12 QE=$QE"            \
 
   80             -
P "pmt= 101 11 QE=$QE"            \
 
   81             -
P "pmt= 101 13 QE=$QE"            \
 
   82             -
P "pmt= 101 14 QE=$QE"            \
 
   83             -
P "pmt= 101 15 QE=$QE"            \
 
   84             -
P "pmt= 101 16 QE=$QE"            \
 
   85             -
P "pmt= 101 17 QE=$QE"            \
 
   86             -
P "pmt= 101 18 QE=$QE"            \
 
   87             -
P "pmt= 101 19 QE=$QE"            \
 
   88             -
P "pmt= 101 20 QE=$QE"            \
 
   89             -
P "pmt= 101 21 QE=$QE"            \
 
   90             -
P "pmt= 101 22 QE=$QE"            \
 
   91             -
P "pmt= 101 21 QE=$QE"            \
 
   92             -
P "pmt= 101 23 QE=$QE"            \
 
   93             -
P "pmt= 101 24 QE=$QE"            \
 
   94             -
P "pmt= 101 25 QE=$QE"            \
 
   95             -
P "pmt= 101 26 QE=$QE"            \
 
   96             -
P "pmt= 101 27 QE=$QE"            \
 
   97             -
P "pmt= 101 28 QE=$QE"            \
 
   98             -
P "pmt= 101 29 QE=$QE"            \
 
   99             -
P "pmt= 101 30 QE=$QE"            \
 
  107     debug "Processing data." 
  109     if ( ! reuse_file 
$WORKDIR/trigger_processor.root ); 
then 
  116             -
@"TMaxLocal_ns=50"                \
 
  125     debug "Monitoring data." 
  134     debug "Merging data." 
  141     debug "Fitting data." 
  142     debug "Detector: $DETECTOR" 
  155     debug "Plotting results" 
  169     debug "Plotting standard deviations" 
  177         -
T "standard deviation"          \
 
  184     debug "Plotting results for t0" 
  192         -
T "time calibration"            \
 
  199     debug "Plotting results for sigma" 
  207         -
T "time resolution"             \
 
  215     debug "Plotting results for QE" 
do echo Generating $dir eval D
 
void set_variable(const std::string &name, const std::string &value)
Set environment variable. 
 
JFitK40_t< TF2 > JFitK40
Type definition for backward compatibility. 
 
static const double C
Physics constants. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
do set_variable SIGMA_NS set_variable OUTLIERS set_variable OUTPUT_FILE matrix[${ALPHA_DEG}\deg\] root $JPP JMatrixNZ a $DETECTOR f $INPUT_FILE o $OUTPUT_FILE S
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
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
 
alias put_queue eval echo n
 
do set_variable DETECTOR_TXT $WORKDIR 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
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable WORKDIR set_variable PIPE $WORKDIR pipe dat set_variable OUTPUT_FILE $WORKDIR timeslice root set_variable DETECTOR $JPP_DATA km3net_reference detx set_variable TRIGGER $JPP_DATA trigger_parameters_arca txt set_variable PMT_FILE $JPP_DATA PMT_parameters txt set_variable BACKGROUND_HZ
 
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
 
#define DEBUG(A)
Message macros.