Skip to content

Commit

Permalink
Update to compile with the k4FWCore#173
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 17, 2024
1 parent cc0b509 commit 9f4ba89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions k4Reco/DDPlanarDigi/components/DDPlanarDigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
DDPlanarDigi::DDPlanarDigi(const std::string& name, ISvcLocator* svcLoc)
: MultiTransformer(name, svcLoc,
{
KeyValue("SimTrackerHitCollectionName", "SimTrackerHits"),
KeyValue("HeaderName", "EventHeader"),
KeyValues("SimTrackerHitCollectionName", {"SimTrackerHits"}),
KeyValues("HeaderName", {"EventHeader"}),
},
{KeyValue("TrackerHitCollectionName", "VTXTrackerHits"),
KeyValue("SimTrkHitRelCollection", "VTXTrackerHitRelations")}) {
{KeyValues("TrackerHitCollectionName", {"VTXTrackerHits"}),
KeyValues("SimTrkHitRelCollection", {"VTXTrackerHitRelations"})}) {
m_uidSvc = service<IUniqueIDGenSvc>("UniqueIDGenSvc", true);
if (!m_uidSvc) {
error() << "Unable to get UniqueIDGenSvc" << endmsg;
Expand Down
12 changes: 6 additions & 6 deletions k4Reco/DDPlanarDigi/components/DDPlanarDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@
#include "Gaudi/Property.h"
#include "GaudiAlg/Transformer.h"
#include "GaudiKernel/RndmGenerators.h"
#include "k4FWCore/BaseClass.h"
#include "k4Interface/IGeoSvc.h"
#include "k4Interface/IUniqueIDGenSvc.h"

#include "edm4hep/EventHeaderCollection.h"
#include "edm4hep/MCRecoTrackerHitPlaneAssociationCollection.h"
#include "edm4hep/SimTrackerHitCollection.h"
#include "edm4hep/TrackerHitPlaneCollection.h"

#include "k4FWCore/Transformer.h"
#include "k4Interface/IGeoSvc.h"
#include "k4Interface/IUniqueIDGenSvc.h"

#include "DDRec/SurfaceManager.h"

#include <random>
Expand Down Expand Up @@ -74,10 +75,9 @@
enum { hu = 0, hv, hT, hitE, hitsAccepted, diffu, diffv, diffT, hSize };

struct DDPlanarDigi final
: Gaudi::Functional::MultiTransformer<
: k4FWCore::MultiTransformer<
std::tuple<edm4hep::TrackerHitPlaneCollection, edm4hep::MCRecoTrackerHitPlaneAssociationCollection>(
const edm4hep::SimTrackerHitCollection&, const edm4hep::EventHeaderCollection&),
BaseClass_t> {
const edm4hep::SimTrackerHitCollection&, const edm4hep::EventHeaderCollection&)> {
DDPlanarDigi(const std::string& name, ISvcLocator* svcLoc);

StatusCode initialize() override;
Expand Down

0 comments on commit 9f4ba89

Please sign in to comment.