Skip to content

Commit 603f34d

Browse files
committed
Changing "std::cout" to mf::LogDebug to reduce/control output
1 parent fba4eeb commit 603f34d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

sbncode/Cluster3D/SnippetHit3DBuilderSBN_tool.cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ void SnippetHit3DBuilderSBN::Hit3DBuilder(art::Event& evt, reco::HitPairList& hi
473473
m_planeToSnippetHitMap.clear();
474474
m_planeToWireToHitSetMap.clear();
475475

476-
std::cout << "SnippetHit3DBuilderSBN entered" << std::endl;
476+
mf::LogDebug("SnippetHit3D") << "SnippetHit3DBuilderSBN entered" << std::endl;
477477

478478
// Do the one time initialization of the tick offsets.
479479
if (m_PlaneToT0OffsetMap.empty())
@@ -507,7 +507,7 @@ void SnippetHit3DBuilderSBN::Hit3DBuilder(art::Event& evt, reco::HitPairList& hi
507507
// DBscan algorithm for building the 3D clusters
508508
this->CollectArtHits(evt);
509509

510-
std::cout << "SnippetHit3DBuilderSBN building space points" << std::endl;
510+
mf::LogDebug("SnippetHit3D") << "SnippetHit3DBuilderSBN building space points";
511511

512512
// If there are no hits in our view/wire data structure then do not proceed with the full analysis
513513
if (!m_planeToWireToHitSetMap.empty())
@@ -520,8 +520,6 @@ void SnippetHit3DBuilderSBN::Hit3DBuilder(art::Event& evt, reco::HitPairList& hi
520520
CreateNewRecobHitCollection(evt, hitPairList, *outputHitPtrVec, clusterHitToArtPtrMap);
521521
}
522522

523-
std::cout << "SnippetHit3DBuilderSBN making associations" << std::endl;
524-
525523
// Set up to make the associations (if desired)
526524
/// Associations with wires.
527525
std::unique_ptr<art::Assns<recob::Wire, recob::Hit>> wireAssns(new art::Assns<recob::Wire, recob::Hit>);
@@ -546,7 +544,7 @@ void SnippetHit3DBuilderSBN::Hit3DBuilder(art::Event& evt, reco::HitPairList& hi
546544
clear();
547545
}
548546

549-
std::cout << "SnippetHit3DBuilderSBN exited" << std::endl;
547+
mf::LogDebug("SnippetHit3D") << "SnippetHit3DBuilderSBN exited";
550548

551549
return;
552550
}
@@ -1463,11 +1461,11 @@ bool SnippetHit3DBuilderSBN::makeHitTriplet(reco::ClusterHit3D& hitTriplet
14631461

14641462
result = true;
14651463
}
1466-
// else std::cout << "-Rejecting triple with chiSquare: " << hitChiSquare << " and hiMinIndex: " << hiMinIndex << ", loMaxIndex: " << lowMaxIndex << std::endl;
1464+
// else mf::LogDebug("SnippetHit3D") << "-Rejecting triple with chiSquare: " << hitChiSquare << " and hiMinIndex: " << hiMinIndex << ", loMaxIndex: " << lowMaxIndex;
14671465
}
14681466
}
14691467
}
1470-
// else std::cout << "-MakeTriplet hit cut, delta: " << hitTimeTicks - pair.getAvePeakTime() << ", min scale fctr: " <<m_hitWidthSclFctr << ", pair sig: " << pair.getSigmaPeakTime() << ", hitSigma: " << hitSigma << std::endl;
1468+
// else mf::LogDebug("SnippetHit3D") << "-MakeTriplet hit cut, delta: " << hitTimeTicks - pair.getAvePeakTime() << ", min scale fctr: " <<m_hitWidthSclFctr << ", pair sig: " << pair.getSigmaPeakTime() << ", hitSigma: " << hitSigma << std::endl;
14711469

14721470
// return success/fail
14731471
return result;
@@ -1805,7 +1803,7 @@ void SnippetHit3DBuilderSBN::CollectArtHits(const art::Event& evt) const
18051803
// Can this really happen?
18061804
if (hitStartEndPair.second <= hitStartEndPair.first)
18071805
{
1808-
mf::LogInfo("SnippetHit3D") << "Yes, found a hit with end time less than start time: " << hitStartEndPair.first << "/" << hitStartEndPair.second << ", mult: " << recobHit->Multiplicity();
1806+
mf::LogDebug("SnippetHit3D") << "Yes, found a hit with end time less than start time: " << hitStartEndPair.first << "/" << hitStartEndPair.second << ", mult: " << recobHit->Multiplicity();
18091807
continue;
18101808
}
18111809

0 commit comments

Comments
 (0)