Skip to content

Commit

Permalink
replace
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Nov 27, 2024
1 parent 93d8781 commit aff024f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
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

0 comments on commit aff024f

Please sign in to comment.