From 71bfb63caeb5c734df43879ad2fce05cc3a1e517 Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Tue, 9 Jul 2024 12:02:31 +0200 Subject: [PATCH] [L1/CA] decrease log level of a few printouts to debug - Switch some TOF mapping Init logs to debug in CbmL1 --- algo/ca/core/tracking/CaTrackFinder.cxx | 12 ++++++------ reco/L1/CbmCaTimeSliceReader.cxx | 2 +- reco/L1/CbmL1.cxx | 21 +++++++++++++-------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/algo/ca/core/tracking/CaTrackFinder.cxx b/algo/ca/core/tracking/CaTrackFinder.cxx index 75c902a8a0..9326f1d97b 100644 --- a/algo/ca/core/tracking/CaTrackFinder.cxx +++ b/algo/ca/core/tracking/CaTrackFinder.cxx @@ -262,7 +262,7 @@ TrackFinder::Output_t TrackFinder::FindTracks(const InputData& input, TimesliceH } //time.Stop(); //LOG(info) << "Thread boarders estimation time: " << time.GetTotalMs() << " ms"; - LOG(info) << "Fraction of hits from monster events: " << static_cast<double>(nHitsTot - nHitsCollected) / nHitsTot; + LOG(debug) << "Fraction of hits from monster events: " << static_cast<double>(nHitsTot - nHitsCollected) / nHitsTot; } @@ -487,11 +487,11 @@ void TrackFinder::FindTracksThread(const InputData& input, int iThread, fscal& w if (dataRead > 100.) { dataRead = 100.; } - LOG(info) << "CA tracker process sliding window N " << statNwindows << ": time " << windowStart / 1.e6 - << " ms + " << fWindowLength / 1.e3 << " us) with " << statNwindowHits << " hits. " - << " Processing " << dataRead << " % of the TS time and " - << 100. * statNhitsProcessed / fStatNhitsTotal << " % of TS hits." - << " Already reconstructed " << fvRecoTracks[iThread].size() << " tracks on thread #" << iThread; + LOG(debug) << "CA tracker process sliding window N " << statNwindows << ": time " << windowStart / 1.e6 + << " ms + " << fWindowLength / 1.e3 << " us) with " << statNwindowHits << " hits. " + << " Processing " << dataRead << " % of the TS time and " + << 100. * statNhitsProcessed / fStatNhitsTotal << " % of TS hits." + << " Already reconstructed " << fvRecoTracks[iThread].size() << " tracks on thread #" << iThread; } } diff --git a/reco/L1/CbmCaTimeSliceReader.cxx b/reco/L1/CbmCaTimeSliceReader.cxx index f396a1f638..8a4d7d87fd 100644 --- a/reco/L1/CbmCaTimeSliceReader.cxx +++ b/reco/L1/CbmCaTimeSliceReader.cxx @@ -508,7 +508,7 @@ void TimeSliceReader::ReadHits() fNofHits = std::accumulate(fvNofHitsUsed.cbegin(), fvNofHitsUsed.cend(), 0); - LOG(info) << "CA: N hits used/tot = " << fNofHits << "/" << nHitsTot; + LOG(debug) << "CA: N hits used/tot = " << fNofHits << "/" << nHitsTot; // Update number of hit keys in input data object if (fpIODataManager) { diff --git a/reco/L1/CbmL1.cxx b/reco/L1/CbmL1.cxx index 59e4629e60..0158fd1f3c 100644 --- a/reco/L1/CbmL1.cxx +++ b/reco/L1/CbmL1.cxx @@ -280,10 +280,15 @@ try { auto tofInterface = CbmTofTrackingInterface::Instance(); if (fUseTOF) { - LOG(info) << "TOF module map"; + LOG(debug) << "TOF module map"; + std::stringstream ssAddr; + std::stringstream ssStation; for (auto [addr, iSt] : tofInterface->GetAddressToStationMap()) { - LOG(info) << Form("%#010x %2d", addr, iSt); + ssAddr << Form("%#010x ", addr); + ssStation << Form("%10d ", iSt); } + LOG(debug) << ssAddr.str(); + LOG(debug) << ssStation.str(); } int nMvdStationsGeom = (fUseMVD) ? mvdInterface->GetNtrackingStations() : 0; @@ -639,17 +644,17 @@ void CbmL1::Reconstruct(CbmEvent* event) fpAlgo->SetMonitorData(monitorData); if (nullptr != event) { - LOG_IF(info, fVerbose > 0) << "\n======= Ca Track finder: process event " << event->GetNumber() << " ..."; + LOG_IF(debug, fVerbose > 0) << "\n======= Ca Track finder: process event " << event->GetNumber() << " ..."; } else { - LOG_IF(info, fVerbose > 0) << "\n======= Ca Track finder: process timeslice ..."; + LOG_IF(debug, fVerbose > 0) << "\n======= Ca Track finder: process timeslice ..."; } fpAlgo->FindTracks(); // IdealTrackFinder(); fTrackingTime = fpAlgo->fCaRecoTime; // TODO: remove (not used) - LOG_IF(info, fVerbose > 0) << "Ca Track Finder finished, found " << fpAlgo->fRecoTracks.size() << " tracks"; + LOG_IF(debug, fVerbose > 0) << "Ca Track Finder finished, found " << fpAlgo->fRecoTracks.size() << " tracks"; // Update monitor data after the actual tracking monitorData = fpAlgo->GetMonitorData(); @@ -680,7 +685,7 @@ void CbmL1::Reconstruct(CbmEvent* event) } //fMonitor.IncrementCounter(EMonitorKey::kRecoTrack, fvRecoTracks.size()); - LOG(info) << "CA Track Finder: " << fpAlgo->fCaRecoTime << " s/sub-ts"; + LOG(debug) << "CA Track Finder: " << fpAlgo->fCaRecoTime << " s/sub-ts"; // output performance if (fPerformance) { @@ -704,9 +709,9 @@ void CbmL1::Reconstruct(CbmEvent* event) } // TimeHist(); /// WriteSIMDKFData(); + LOG_IF(info, fVerbose > 1) << "Tracking performance... done"; } - LOG_IF(info, fVerbose > 1) << "Tracking performance... done"; - LOG_IF(info, fVerbose > 1) << "End of CA"; + LOG_IF(debug, fVerbose > 1) << "End of CA"; ++fEventNo; fMonitor.AddMonitorData(monitorData); -- GitLab