Skip to content

Commit b456154

Browse files
committed
AOD: Thinner add newline to print and skip stat print if errored
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 071c4ca commit b456154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Framework/AODMerger/src/aodThinner.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ int main(int argc, char* argv[])
249249
// If any (%ITSClusterMap or %ITSClusterSizes) of these are not found, continuation is not possible, hence fataling
250250
if (!bTPClsFindable || !bTRDPattern || !bTOFChi2 ||
251251
(!bITSClusterMap && !bITSClusterSizes)) {
252-
printf(" *** FATAL *** Branch detection failed for trackextra.[(fITSClusterMap=%d,fITSClusterSizes=%d),fTPCNClsFindable=%d,fTRDPattern=%d,fTOFChi2=%d]", bITSClusterMap, bITSClusterSizes, bTPClsFindable, bTRDPattern, bTOFChi2);
252+
printf(" *** FATAL *** Branch detection failed in %s for trackextra.[(fITSClusterMap=%d,fITSClusterSizes=%d),fTPCNClsFindable=%d,fTRDPattern=%d,fTOFChi2=%d]\n", dfName, bITSClusterMap, bITSClusterSizes, bTPClsFindable, bTRDPattern, bTOFChi2);
253253
exitCode = 10;
254254
break;
255255
}
@@ -423,6 +423,7 @@ int main(int argc, char* argv[])
423423
if (exitCode != 0) {
424424
printf("Removing incomplete output file %s.\n", outputFile->GetName());
425425
gSystem->Unlink(outputFile->GetName());
426+
return exitCode; // skip output below
426427
}
427428

428429
clock.Stop();

0 commit comments

Comments
 (0)