Skip to content

Commit

Permalink
Merge pull request #32311 from jsalfeld/adjustToEsConsumes
Browse files Browse the repository at this point in the history
changing to esConsumes after fix in  #32217
  • Loading branch information
cmsbuild authored Dec 2, 2020
2 parents 9be9e4c + 7120df7 commit 6f77d78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ HLTScoutingEgammaProducer::HLTScoutingEgammaProducer(const edm::ParameterSet& iC
//register products
produces<Run3ScoutingElectronCollection>();
produces<Run3ScoutingPhotonCollection>();
topologyToken_ = esConsumes();
}

HLTScoutingEgammaProducer::~HLTScoutingEgammaProducer() = default;
Expand Down Expand Up @@ -179,9 +180,7 @@ void HLTScoutingEgammaProducer::produce(edm::StreamID sid, edm::Event& iEvent, e
iEvent.getByToken(ecalRechitEB_, rechitsEB);
iEvent.getByToken(ecalRechitEE_, rechitsEE);

edm::ESHandle<CaloTopology> pTopology;
setup.get<CaloTopologyRecord>().get(pTopology);
const CaloTopology* topology = pTopology.product();
const CaloTopology* topology = &setup.getData(topologyToken_);

// Produce electrons and photons
int index = 0;
Expand Down
1 change: 1 addition & 0 deletions HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class HLTScoutingEgammaProducer : public edm::global::EDProducer<> {

const edm::EDGetTokenT<EcalRecHitCollection> ecalRechitEB_;
const edm::EDGetTokenT<EcalRecHitCollection> ecalRechitEE_;
edm::ESGetToken<CaloTopology, CaloTopologyRecord> topologyToken_;
};

#endif

0 comments on commit 6f77d78

Please sign in to comment.