Skip to content

Commit 34bd367

Browse files
committed
Check for streamer presence before writing the output
1 parent d87cff5 commit 34bd367

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Detectors/GlobalTrackingWorkflow/study/src/CheckResidSpec.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ void CheckResidSpec::process()
325325
// output
326326
for (const auto& accum : slots) {
327327
for (const auto& tr : accum) {
328-
(*mDBGOut) << "res" << "tr=" << tr << "\n";
328+
if (mDBGOut) {
329+
(*mDBGOut) << "res" << "tr=" << tr << "\n";
330+
}
329331
if (mHMan) {
330332
fillHistos(tr);
331333
}

0 commit comments

Comments
 (0)