From 114d5d8608fe2757e166f86e8d9d6c6698f05551 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Thu, 27 Jun 2024 17:58:15 +0200 Subject: [PATCH] Switch to association type that has not been removed (#3) --- k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp | 8 +++----- k4Reco/DDPlanarDigi/components/DDPlanarDigi.h | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp index b7dfce9..f2ab57a 100644 --- a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp +++ b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp @@ -19,7 +19,6 @@ #include "DDPlanarDigi.h" #include "edm4hep/EventHeaderCollection.h" -#include "edm4hep/MCRecoTrackerHitPlaneAssociationCollection.h" #include "edm4hep/SimTrackerHit.h" #include "edm4hep/TrackerHitPlaneCollection.h" @@ -89,9 +88,8 @@ StatusCode DDPlanarDigi::initialize() { return StatusCode::SUCCESS; } -std::tuple -DDPlanarDigi::operator()(const edm4hep::SimTrackerHitCollection& simTrackerHits, - const edm4hep::EventHeaderCollection& headers) const { +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 " << headers[0].getRunNumber() << endmsg; @@ -101,7 +99,7 @@ DDPlanarDigi::operator()(const edm4hep::SimTrackerHitCollection& simTrackerHits, int nDismissedHits = 0; auto trkhitVec = edm4hep::TrackerHitPlaneCollection(); - auto thsthcol = edm4hep::MCRecoTrackerHitPlaneAssociationCollection(); + auto thsthcol = edm4hep::MCRecoTrackerAssociationCollection(); std::string cellIDEncodingString = m_geoSvc->constantAsString(m_encodingStringVariable.value()); dd4hep::DDSegmentation::BitFieldCoder bitFieldCoder(cellIDEncodingString); diff --git a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h index 4e5f0ce..31aca7f 100644 --- a/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h +++ b/k4Reco/DDPlanarDigi/components/DDPlanarDigi.h @@ -23,7 +23,7 @@ #include "Gaudi/Property.h" #include "edm4hep/EventHeaderCollection.h" -#include "edm4hep/MCRecoTrackerHitPlaneAssociationCollection.h" +#include "edm4hep/MCRecoTrackerAssociationCollection.h" #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/TrackerHitPlaneCollection.h" @@ -73,14 +73,14 @@ enum { hu = 0, hv, hT, hitE, hitsAccepted, diffu, diffv, diffT, hSize }; struct DDPlanarDigi final : k4FWCore::MultiTransformer< - std::tuple( + std::tuple( const edm4hep::SimTrackerHitCollection&, const edm4hep::EventHeaderCollection&)> { DDPlanarDigi(const std::string& name, ISvcLocator* svcLoc); StatusCode initialize() override; StatusCode finalize() override; - std::tuple operator()( + std::tuple operator()( const edm4hep::SimTrackerHitCollection& simTrackerHits, const edm4hep::EventHeaderCollection& headers) const override;