9 # ------------------------------------------------------------------------------------------ 
   11 #                     Utility script to test JCalibrateToT/JFitToT. 
   13 # ------------------------------------------------------------------------------------------ 
   16 if [ -z $JPP_DIR ]; 
then 
   17     echo "Variable JPP_DIR undefined." 
   22 source $JPP_DIR/setenv.sh $JPP_DIR
 
   29     usage "$script [working directory]" 
   38 set_variable  numberOfSlices  1000
 
   48         -@ 
"detectorType   = $detectorType"    \
 
   49         -@ 
"numberOfLines  = $numberOfLines"   \
 
   50         -@ 
"numberOfFloors = $numberOfFloors"  \
 
   58     debug "Generating random background." 
   62         JRandomTimesliceWriter \
 
   74     debug "Processing data." 
   76     if ( ! reuse_file 
$WORKDIR/trigger_processor.root ); 
then 
   92     debug "Monitoring data." 
  105     debug "Fitting data." 
  106     debug "Detector: $DETECTOR" 
  126         -\> 
"time over threshold [ns]"               \
 
  129         -
o tot.${MODULE}.${
PMT}.gif
 
  139         -
f ${
WORKDIR}/fit.root:${MODULE}.1gain\$     \
 
  144         -
o tot.${MODULE}.gain.gif
 
  154         -
f ${
WORKDIR}/fit.root:${MODULE}.1gainspread \
 
  159         -
o tot.${MODULE}.gainspread.gif
 
do echo Generating $dir eval D
 
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT) 
 
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
 
static const double C
Physics constants. 
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
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
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
 
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