Skip to content

Commit

Permalink
Merge pull request #28227 from Dr15Jones/consumesMTDTopologyEP
Browse files Browse the repository at this point in the history
Use ESGetToken in MTDTopologyEP
  • Loading branch information
cmsbuild committed Oct 24, 2019
2 parents 95f5aa0 + f9e5703 commit f1d6b10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Geometry/MTDNumberingBuilder/plugins/MTDTopologyEP.cc
Expand Up @@ -41,14 +41,12 @@ void MTDTopologyEP::fillDescriptions(edm::ConfigurationDescriptions& description

MTDTopologyEP::ReturnType MTDTopologyEP::produce(const MTDTopologyRcd& iRecord) {
edm::LogInfo("MTDTopologyEP") << "MTDTopologyEP::produce(const MTDTopologyRcd& iRecord)";
edm::ESHandle<PMTDParameters> ptp;
iRecord.getRecord<PMTDParametersRcd>().get(ptp);

int mtdTopologyMode;
MTDTopology::BTLValues btlVals;
MTDTopology::ETLValues etlVals;

fillParameters(*ptp, mtdTopologyMode, btlVals, etlVals);
fillParameters(iRecord.get(token_), mtdTopologyMode, btlVals, etlVals);

return std::make_unique<MTDTopology>(mtdTopologyMode, btlVals, etlVals);
}
Expand Down

0 comments on commit f1d6b10

Please sign in to comment.