From 00b16967703fb51dfa9101735f53b0e35c8b6267 Mon Sep 17 00:00:00 2001
From: FASER Reco <faserrec@lxplus747.cern.ch>
Date: Thu, 22 Sep 2022 00:10:13 +0200
Subject: [PATCH] Reduce routine printouts

---
 .../Reconstruction/scripts/faser_reco.py          | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/Control/CalypsoExample/Reconstruction/scripts/faser_reco.py b/Control/CalypsoExample/Reconstruction/scripts/faser_reco.py
index 8df24459..4e233bf4 100755
--- a/Control/CalypsoExample/Reconstruction/scripts/faser_reco.py
+++ b/Control/CalypsoExample/Reconstruction/scripts/faser_reco.py
@@ -194,7 +194,6 @@ from TrackerSpacePointFormation.TrackerSpacePointFormationConfig import TrackerS
 acc.merge(TrackerSpacePointFinderCfg(ConfigFlags))
 
 # Try Dave's new fitter
-print("Configuring TrackerSegmentFit (new)")
 from TrackerSegmentFit.TrackerSegmentFitConfig import SegmentFitAlgCfg
 acc.merge(SegmentFitAlgCfg(ConfigFlags,
                            SharedHitFraction=0.61, 
@@ -239,7 +238,14 @@ if args.isMC:
     # Add MC information here
     itemList.extend( ["McEventCollection#*", "TrackerSimDataCollection#*"] )
 
-acc.merge(OutputStreamCfg(ConfigFlags, "xAOD", itemList))
+# Output stream 
+acc.merge(OutputStreamCfg(ConfigFlags, "xAOD", itemList, disableEventTag=True))
+
+# Try to turn off annoying INFO message, as we don't use this
+# disableEventTag=True doesn't seem to work...
+tagBuilder = CompFactory.EventInfoTagBuilder()
+tagBuilder.PropagateInput=False
+acc.addEventAlgo(tagBuilder)
 
 # Waveform reconstruction output
 from WaveRecAlgs.WaveRecAlgsConfig import WaveformReconstructionOutputCfg    
@@ -268,6 +274,11 @@ if args.verbose:
 else:
     acc.foreach_component("*").OutputLevel = INFO
 
+    # Reduce event loop printout
+    eventLoop = CompFactory.AthenaEventLoopMgr()
+    eventLoop.EventPrintoutInterval = 100
+    acc.addService(eventLoop)
+
 acc.foreach_component("*ClassID*").OutputLevel = INFO
 
 acc.getService("MessageSvc").Format = "% F%40W%S%7W%R%T %0W%M"
-- 
GitLab