diff --git a/Detectors/GlobalTrackingWorkflow/study/src/CheckResidSpec.cxx b/Detectors/GlobalTrackingWorkflow/study/src/CheckResidSpec.cxx index 6f3055aa00806..ff73be857346f 100644 --- a/Detectors/GlobalTrackingWorkflow/study/src/CheckResidSpec.cxx +++ b/Detectors/GlobalTrackingWorkflow/study/src/CheckResidSpec.cxx @@ -325,7 +325,9 @@ void CheckResidSpec::process() // output for (const auto& accum : slots) { for (const auto& tr : accum) { - (*mDBGOut) << "res" << "tr=" << tr << "\n"; + if (mDBGOut) { + (*mDBGOut) << "res" << "tr=" << tr << "\n"; + } if (mHMan) { fillHistos(tr); }