From 33ee52da117f7ca2955648a527d38fafa7d7a9ac Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 27 Oct 2023 10:55:32 +0200 Subject: [PATCH] Use the name of the algorithm --- k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp index 258e887..ea5fe5d 100644 --- a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp +++ b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp @@ -89,6 +89,7 @@ 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; @@ -96,7 +97,7 @@ StatusCode DDPlanarDigi::initialize() { std::tuple 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);