Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace some couts with logger #3912

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions Examples/Algorithms/TrackFinding/src/MuonHoughSeeder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ ActsExamples::ProcessCode ActsExamples::MuonHoughSeeder::execute(

// create the function parametrising the drift radius uncertainty
auto houghWidth_fromDC = [](double, const DriftCircle& DC) {
return std::min(DC.rDriftError() * 3.,
1.0); // scale reported errors up to at least 1mm or 3
// times the reported error as drift circle calib not
// fully reliable at this stage
// scale reported errors up to at least 1mm or 3 times the reported error as
// drift circle calib not fully reliable at this stage
return std::min(DC.rDriftError() * 3., 1.0);
};

// store the true parameters
Expand All @@ -100,23 +99,22 @@ ActsExamples::ProcessCode ActsExamples::MuonHoughSeeder::execute(
// instantiate the hough plane
Acts::HoughTransformUtils::HoughPlane<Acts::GeometryIdentifier::Value>
houghPlane(planeCfg);
// also insantiate the peak finder
// also instantiate the peak finder
Acts::HoughTransformUtils::PeakFinders::IslandsAroundMax<
Acts::GeometryIdentifier::Value>
peakFinder(peakFinderCfg);

// loop pver true hirs
// loop over true hits
for (auto& SH : gotSH) {
// read the identifier
MuonMdtIdentifierFields detailedInfo =
ActsExamples::splitId(SH.geometryId().value());
// store the true parameters
truePatterns.emplace_back(SH.direction().y() / SH.direction().z(),
SH.fourPosition().y());
// std::cout<<"station name=" <<
// static_cast<int>(SH.stationName)<<std::endl;
std::cout << "direction = " << SH.direction().y() << std::endl;
std::cout << "fourposition y = " << SH.fourPosition().y() << std::endl;
// ACTS_VERBOSE("station name=" << static_cast<int>(SH.stationName));
ACTS_VERBOSE("direction = " << SH.direction().y());
ACTS_VERBOSE("fourposition y = " << SH.fourPosition().y());
std::cin.ignore();
// reset the hough plane
houghPlane.reset();
Expand Down
4 changes: 2 additions & 2 deletions Examples/Io/EDM4hep/src/EDM4hepReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ ProcessCode EDM4hepReader::read(const AlgorithmContext& ctx) {

for (auto it = hitsByParticle.begin(), end = hitsByParticle.end();
it != end; it = hitsByParticle.upper_bound(it->first)) {
std::cout << "Particle " << it->first << " has "
<< hitsByParticle.count(it->first) << " hits" << std::endl;
ACTS_DEBUG("Particle " << it->first << " has "
<< hitsByParticle.count(it->first) << " hits");

std::vector<std::size_t> hitIndices;
hitIndices.reserve(hitsByParticle.count(it->first));
Expand Down
3 changes: 0 additions & 3 deletions Examples/Io/Root/src/RootMaterialTrackReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ RootMaterialTrackReader::RootMaterialTrackReader(const Config& config,
ACTS_DEBUG("The full chain has "
<< nentries << " entries for " << m_events
<< " events this corresponds to a batch size of: " << m_batchSize);
std::cout << "The full chain has " << nentries << " entries for " << m_events
<< " events this corresponds to a batch size of: " << m_batchSize
<< std::endl;

// Sort the entry numbers of the events
{
Expand Down
Loading