Skip to content

Commit

Permalink
Minor fixes: add missing k4FWCore::k4Interface when linking and fix w…
Browse files Browse the repository at this point in the history
…arning about an unused variable (#26)

* Add missing k4FWCore::k4Interface when linking

* Fix warning about an unused variable

---------

Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Jul 27, 2024
1 parent 5d406f3 commit bf64158
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions DCHdigi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ gaudi_add_module(${PackageName}
EDM4HEP::edm4hep
extensionDict
k4FWCore::k4FWCore
k4FWCore::k4Interface
DD4hep::DDRec
)

Expand Down
1 change: 1 addition & 0 deletions VTXdigi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ gaudi_add_module(${PackageName}
Gaudi::GaudiKernel
EDM4HEP::edm4hep
k4FWCore::k4FWCore
k4FWCore::k4Interface
DD4hep::DDRec
)

Expand Down
4 changes: 0 additions & 4 deletions VTXdigi/src/VTXdigitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -105,8 +103,6 @@ StatusCode VTXdigitizer::execute(const EventContext&) const {

simHitGlobalPositionVector = oldPosOnSurf ;
}
else
++nDismissedHits;
}
}

Expand Down

0 comments on commit bf64158

Please sign in to comment.