Skip to content

Commit

Permalink
fix: rm m_detector from CalorimeterHitDigi_factoryT
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Jul 26, 2023
1 parent b29d1b8 commit 23534eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/factories/calorimetry/CalorimeterHitDigi_factoryT.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class CalorimeterHitDigi_factoryT :

// Use JDD4hep_service to get dd4hep::Detector
auto geoSvc = app->template GetService<JDD4hep_service>();
m_detector = geoSvc->detector();

// SpdlogMixin logger initialization, sets m_log
SpdlogMixin<CalorimeterHitDigi_factoryT>::InitLogger(JChainMultifactoryT<CalorimeterHitDigiConfig>::GetPrefix(), "info");
Expand All @@ -63,7 +62,7 @@ class CalorimeterHitDigi_factoryT :
app->SetDefaultParameter(param_prefix + ":readoutClass", cfg.readout);

m_algo.applyConfig(cfg);
m_algo.init(m_detector, logger());
m_algo.init(geoSvc->detector(), logger());
}

void Process(const std::shared_ptr<const JEvent> &event) override {
Expand All @@ -80,7 +79,6 @@ class CalorimeterHitDigi_factoryT :
}

private:
const dd4hep::Detector* m_detector;
CalorimeterHitDigi m_algo;

};
Expand Down

0 comments on commit 23534eb

Please sign in to comment.