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
 
   31     usage "$script [working directory]" 
   40 set_variable  numberOfSlices  1000
 
   50         -@ 
"detectorType   = $detectorType"    \
 
   51         -@ 
"numberOfLines  = $numberOfLines"   \
 
   52         -@ 
"numberOfFloors = $numberOfFloors"  \
 
   60     debug "Generating random background." 
   64         JRandomTimesliceWriter \
 
   76     debug "Processing data." 
   78     if ( ! reuse_file 
$WORKDIR/trigger_processor.root ); 
then 
   94     debug "Monitoring data." 
  107     debug "Fitting data." 
  108     debug "Detector: $DETECTOR" 
  128         -\> 
"time over threshold [ns]"               \
 
  131         -
o tot.${MODULE}.${
PMT}.$FORMAT              $BATCH
 
  141         -
f ${
WORKDIR}/fit.root:${MODULE}.1gain\$     \
 
  146         -
o tot.${MODULE}.gain.$FORMAT                $BATCH
 
  156         -
f ${
WORKDIR}/fit.root:${MODULE}.1gainspread \
 
  161         -
o tot.${MODULE}.gainspread.$FORMAT          $BATCH
 
remove to overwrite exit fi JDetector D $ID detectorType
 
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT) 
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
usr share Modules init zsh export TMPDIR
 
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
 
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
 
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 echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
 
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
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
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 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
 
do echo Generating $dir eval D
 
#define DEBUG(A)
Message macros.