4 if [ -z $JPP_DIR ];
then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
12 usage "$script <DEETECTOR_ID> <input detector file> <output detector file> <first run> <last run> <name suffix> <output directory> <data directory>"
26 JConvertDetectorFormat -
a $DETECTOR_IN -
o $DETECTOR_OUT
28 #--- remove the base modules
30 eval `JPrintDetector -
a $DETECTOR_OUT -O SUMMARY`
35 JEditDetector -
a $DETECTOR_OUT -
o $DETECTOR_OUT -
D "$STRING 0"
39 #--- sort modules 1-18
40 JEditDetector -
a $DETECTOR_OUT -
o $DETECTOR_OUT -O 2
42 #--- remove here malfunctioning strings if present in the detector file
44 #JEditDetector -a $DETECTOR_OUT -o $DETECTOR_OUT -r 18
45 #JEditDetector -a $DETECTOR_OUT -o $DETECTOR_OUT -r 19
47 #--- loop over data files
51 for RUN_IN
in `seq $RUNFIRST $RUNSECOND`;
do
56 #---- process JMonitorL1dt
60 if [ -
f "$OUTDIR/${EXT}.root" ]
62 echo "JMonitorL1dt output added to previous results"
66 echo "No previous output from JMonitorL1dt found, new output file created"
73 #--- determine time offsets between DU pairs (for 1-8 neighboured levels)
75 $JPP_DIR/examples/JCalibrate/JOffset_extract -
a $DETECTOR_OUT -
f $OUTDIR/${EXT}.root -m 0 -
n 8 >
$OUTDIR/${EXT}.txt
77 #--- evaluate best inter-DU offsets
79 # The argument "-m 5.5" needs to be tuned to the amount of data used, for 30 hours of ARCA a value of 5.5 was found reasonable,
80 # for 6 hours of ORCA a value of 20 is suggested
84 $JPP_DIR/examples/JCalibrate/JMatrix_sol -
a $DETECTOR_OUT -
f $OUTDIR/${EXT}.txt -m 5.5 -
r 0 > $file
86 #--- adapt detector file
92 JEditDetector -
a $DETECTOR_OUT -
S "$a add $b" -
o $DETECTOR_OUT --!
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null if do_usage *then usage $script< DEETECTOR_ID >< inputdetectorfile >< outputdetectorfile >< firstrun >< lastrun >< namesuffix >< outputdirectory >< datadirectory > fi DETECTOR_ID
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
*fatal Wrong number of arguments esac check_input_file $INPUT_FILE for TIMESLICE in JDAQTimeslice JDAQTimesliceL0 JDAQTimesliceL1 JDAQTimesliceL2 JDAQTimesliceSN
clean eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable STRING
do JEditDetector a $DETECTOR_OUT o $DETECTOR_OUT D $STRING done JEditDetector a $DETECTOR_OUT o $DETECTOR_OUT O rm $OUTDIR
o $QUALITY_ROOT d $DEBUG!JPlot1D f
do JCanberra a $DETECTOR f $INPUT_FILE o $WORKDIR canberra[${EMITTER}\] root T $WORKDIR tripod txt V $WORKDIR sound_velocity txt M $WORKDIR mechanics txt H $WORKDIR hydrophone txt E $EMITTER $DISABLE d $DEBUG!done kill_child_processes_at_exit attach getModule a $DETECTOR typeset Z STRING typeset Z FLOOR for STRING in $STRINGS[*]
static const double C
Physics constants.
then rm i $OUTPUT_FILE fi let RUN
then JConvertDetectorFormat a $DETECTOR[1] o
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 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
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null