7 # ------------------------------------------------------------------------------------------
9 # Example script to run JTriggerEfficiency in run-by-run mode.
11 # ------------------------------------------------------------------------------------------
13 if [ -z $JPP_DIR ];
then
14 echo "Variable JPP_DIR undefined."
18 source $JPP_DIR/setenv.sh $JPP_DIR
33 set_variable+
OPTION TRIGGEREFFICIENCY_TRIGGERED_EVENTS_ONLY -O
36 usage "$script <detector file> <detector file> (input file)+ <output file> <DAQ file> [PMT parameters file]"\
37 "\nAuxiliary script to trigger Monte Carlo events."\
38 "\nNote that if more than one input file is specified, all other arguments must be provided."
48 4) fatal
"Wrong number of arguments.";;
49 3) fatal
"Wrong number of arguments.";;
50 2) fatal
"Wrong number of arguments.";;
51 1) fatal
"Wrong number of arguments.";;
52 0) fatal
"Wrong number of arguments.";;
64 check_input_file $DETECTORA $DETECTORB
$INPUT_FILE $DAQ_FILE $PMT_FILE
65 check_output_file $OUTPUT_FILE
67 if [[ -
n $TURBOT ]];
then
71 if (( $? != 0 ));
then
72 fatal
"Invalid detector file $TURBOT"
104 -B
"$BACKGROUND_HZ" \
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison fi case set_variable RANGE $argv[3]
then usage $script< detector >< run >< outputfile > fi case set_variable OPTION
&set_variable NUMBER_OF_TIMESLICES
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
then timer_start(JRandomTimesliceWriter-a ${DETECTOR}-o ${PIPE}-n ${NUMBER_OF_SLICES}-P ${PMT_FILE}-d ${DEBUG}-S ${SEED}-B"$BACKGROUND_HZ"-N"$RECYCLING"--!&&for((i=0;$i!=10;++i));do;echo 'EOF' > $PIPE;usleep 100000;done &&rm-f $PIPE)&JTimesliceReprocessor-a $
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
esac print_variable DETECTOR TRIGGER OUTPUT_FILE BACKGROUND_HZ PMT_FILE check_input_file $DETECTOR $TRIGGER $PMT_FILE check_output_file $OUTPUT_FILE RUNBYRUN
const JK40Rates & getK40Rates()
Get K40 rates.
then JFileTuna f $INPUT_FILE
&set_variable DETECTOR_FILE set_variable DAQ_FILE
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
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
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
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A