Skip to content

Commit 5122c40

Browse files
fix for extracting statistics
1 parent 36984c9 commit 5122c40

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

DATA/production/configurations/asyncReco/async_pass.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ run_AOD_merging() {
1717
return $exitcode
1818
}
1919

20+
timeStartFullProcessing=`date +%s`
21+
2022
# to skip positional arg parsing before the randomizing part.
2123
inputarg="${1}"
2224

@@ -409,7 +411,7 @@ if [[ $ALIEN_JDL_SPLITWF != "1" ]]; then
409411
exit $exitcode
410412
fi
411413
mv latest.log latest_reco_1.log
412-
./$STATSCRIPT latest_reco_1.log
414+
$STATSCRIPT latest_reco_1.log
413415
fi
414416
else
415417
# running the wf in split mode
@@ -440,7 +442,7 @@ else
440442
exit $exitcode
441443
fi
442444
mv latest.log latest_reco_1.log
443-
./$STATSCRIPT latest_reco_1.log reco_1
445+
$STATSCRIPT latest_reco_1.log reco_1
444446
fi
445447
fi
446448

@@ -469,7 +471,7 @@ else
469471
exit $exitcode
470472
fi
471473
mv latest.log latest_reco_2.log
472-
./$STATSCRIPT latest_reco_2.log reco_2
474+
$STATSCRIPT latest_reco_2.log reco_2
473475
# let's compare to previous step
474476
if [[ -f latest_reco_1.log ]]; then
475477
nCTFsFilesInspected_step1=`ls [0-9]*_[0-9]*_[0-9]*_[0-9]*_[0-9]*_reco_1.stat | sed 's/\(^[0-9]*\)_.*/\1/'`
@@ -740,8 +742,11 @@ if [[ $ALIEN_JDL_AODOFF != 1 ]]; then
740742
fi
741743
fi
742744

743-
timeUsed=$(( $timeUsed+$timeUsedCheck+$timeUsedMerge+$timeUsedCheckMergedAOD+$timeUsedAnalysisQC ))
744-
echo "Time used for processing = $timeUsed s"
745+
746+
timeEndFullProcessing=`date +%s`
747+
timeUsedFullProcessing=$(( $timeEndFullProcessing+$timeStartFullProcessing ))
748+
749+
echo "Time used for processing = $timeUsedFullProcessing s"
745750

746751
if [[ $ALIEN_JDL_QCOFF != 1 ]]; then
747752
# copying the QC json file here

0 commit comments

Comments
 (0)