From bf6415860a98b59a4b470ef9cdf8927de187601e Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Sat, 27 Jul 2024 23:41:08 +0200 Subject: [PATCH] Minor fixes: add missing k4FWCore::k4Interface when linking and fix warning about an unused variable (#26) * Add missing k4FWCore::k4Interface when linking * Fix warning about an unused variable --------- Co-authored-by: jmcarcell --- DCHdigi/CMakeLists.txt | 1 + VTXdigi/CMakeLists.txt | 1 + VTXdigi/src/VTXdigitizer.cpp | 4 ---- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DCHdigi/CMakeLists.txt b/DCHdigi/CMakeLists.txt index b753c26..e378554 100644 --- a/DCHdigi/CMakeLists.txt +++ b/DCHdigi/CMakeLists.txt @@ -49,6 +49,7 @@ gaudi_add_module(${PackageName} EDM4HEP::edm4hep extensionDict k4FWCore::k4FWCore + k4FWCore::k4Interface DD4hep::DDRec ) diff --git a/VTXdigi/CMakeLists.txt b/VTXdigi/CMakeLists.txt index 58ace97..0beeb15 100644 --- a/VTXdigi/CMakeLists.txt +++ b/VTXdigi/CMakeLists.txt @@ -16,6 +16,7 @@ gaudi_add_module(${PackageName} Gaudi::GaudiKernel EDM4HEP::edm4hep k4FWCore::k4FWCore + k4FWCore::k4Interface DD4hep::DDRec ) diff --git a/VTXdigi/src/VTXdigitizer.cpp b/VTXdigi/src/VTXdigitizer.cpp index a6e5ac0..1011d00 100644 --- a/VTXdigi/src/VTXdigitizer.cpp +++ b/VTXdigi/src/VTXdigitizer.cpp @@ -49,8 +49,6 @@ StatusCode VTXdigitizer::execute(const EventContext&) const { const edm4hep::SimTrackerHitCollection* input_sim_hits = m_input_sim_hits.get(); verbose() << "Input Sim Hit collection size: " << input_sim_hits->size() << endmsg; - unsigned nDismissedHits=0; - // Digitize the sim hits edm4hep::TrackerHit3DCollection* output_digi_hits = m_output_digi_hits.createAndPut(); for (const auto& input_sim_hit : *input_sim_hits) { @@ -105,8 +103,6 @@ StatusCode VTXdigitizer::execute(const EventContext&) const { simHitGlobalPositionVector = oldPosOnSurf ; } - else - ++nDismissedHits; } }