From 74e61a30704917bf9d1c4ea5204308e2b82f5886 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 9 Aug 2024 21:36:59 +0200 Subject: [PATCH 1/2] Change Associations to Links see https://github.com/key4hep/EDM4hep/pull/341 --- k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp | 8 ++++---- k4Reco/DDPlanarDigi/components/DDPlanarDigi.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp index aaa4b52..c3f6d70 100644 --- a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp +++ b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp @@ -85,7 +85,7 @@ StatusCode DDPlanarDigi::initialize() { return StatusCode::SUCCESS; } -std::tuple DDPlanarDigi::operator()( +std::tuple DDPlanarDigi::operator()( const edm4hep::SimTrackerHitCollection& simTrackerHits, const edm4hep::EventHeaderCollection& headers) const { auto seed = m_uidSvc->getUniqueID(headers[0].getEventNumber(), headers[0].getRunNumber(), this->name()); debug() << "Using seed " << seed << " for event " << headers[0].getEventNumber() << " and run " @@ -96,7 +96,7 @@ std::tupleconstantAsString(m_encodingStringVariable.value()); dd4hep::DDSegmentation::BitFieldCoder bitFieldCoder(cellIDEncodingString); @@ -295,8 +295,8 @@ std::tuple( + std::tuple( const edm4hep::SimTrackerHitCollection&, const edm4hep::EventHeaderCollection&)> { DDPlanarDigi(const std::string& name, ISvcLocator* svcLoc); StatusCode initialize() override; - std::tuple operator()( + std::tuple operator()( const edm4hep::SimTrackerHitCollection& simTrackerHits, const edm4hep::EventHeaderCollection& headers) const override; From b5b32267fd99ef94495ac1f3ac015bb03f53e1ff Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 9 Aug 2024 21:40:22 +0200 Subject: [PATCH 2/2] Fix pre-commit --- k4Reco/DDPlanarDigi/components/DDPlanarDigi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h index c9a0baf..fa3675e 100644 --- a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h +++ b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h @@ -23,9 +23,9 @@ #include "Gaudi/Property.h" #include "edm4hep/EventHeaderCollection.h" -#include "edm4hep/TrackerHitSimTrackerHitLinkCollection.h" #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/TrackerHitPlaneCollection.h" +#include "edm4hep/TrackerHitSimTrackerHitLinkCollection.h" #include "k4FWCore/Transformer.h" #include "k4Interface/IGeoSvc.h"