7 # ------------------------------------------------------------------------------------------
9 # Utility script to compare two binary formatted detector files.
11 # ------------------------------------------------------------------------------------------
13 if [ -z $JPP_DIR ];
then
14 echo "Variable JPP_DIR undefined."
18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
23 usage "$script <detector file> <detector file>"\
24 "\nComparison of binary formatted detector files excluding UUID."
27 if (( $# != 2 ));
then
28 fatal
"Wrong number of arguments."
31 JConvertDetectorFormat -
a $1 -
o ${
TMPDIR:-/tmp}/d1.datx -q
32 JConvertDetectorFormat -
a $2 -
o ${
TMPDIR:-/tmp}/d2.datx -q
34 tail -
c+$SKIP ${
TMPDIR:-/tmp}/d1.datx > ${
TMPDIR:-/tmp}/da.datx
35 tail -
c+$SKIP ${
TMPDIR:-/tmp}/d1.datx > ${
TMPDIR:-/tmp}/db.datx
39 if (( $? == 0 ));
then
40 echo "Detectors $1 and $2 are equal."
42 fatal
"Detectors $1 and $2 differ."
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
usr share Modules init zsh export TMPDIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null