Skip to content

Commit

Permalink
Use the name of the algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 27, 2023
1 parent 4a0b603 commit 33ee52d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ StatusCode DDPlanarDigi::initialize() {
throw std::runtime_error(err.str());
}

// Get and store the name for a debug message later
(void)this->getProperty("SimTrackerHitCollectionName", m_collName);

return StatusCode::SUCCESS;
}

std::tuple<TrackerHitPlaneColl, Association> DDPlanarDigi::operator()(
const SimTrackerHitCollection& simTrackerHits, const Header& headers) const {
auto seed = m_uidSvc->getUniqueID(headers[0].getEventNumber(), headers[0].getRunNumber(), m_collName);
auto seed = m_uidSvc->getUniqueID(headers[0].getEventNumber(), headers[0].getRunNumber(), this->name());
info() << "Using seed " << seed << " for event " << headers[0].getEventNumber() << " and run "
<< headers[0].getRunNumber() << endmsg;
m_engine.seed(seed);
Expand Down

0 comments on commit 33ee52d

Please sign in to comment.