Skip to content

Commit

Permalink
Update ESProducers following cms-sw#31556 (#555)
Browse files Browse the repository at this point in the history
Remove setConsumes() from ESConsumesCollector: the functionality was replaced with the type-deducing consumes().
  • Loading branch information
fwyzard committed Nov 9, 2020
1 parent 048e7a5 commit ceacead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions EventFilter/EcalRawToDigi/plugins/EcalRawESProducerGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ template <typename Target, typename Source, typename Record>
class EcalRawESProducerGPU : public edm::ESProducer {
public:
explicit EcalRawESProducerGPU(edm::ParameterSet const& ps) {
auto const label = ps.getParameter<std::string>("label");
auto name = ps.getParameter<std::string>("ComponentName");
auto const& label = ps.getParameter<std::string>("label");
auto const& name = ps.getParameter<std::string>("ComponentName");
auto cc = setWhatProduced(this, name);
cc.setConsumes(token_, edm::ESInputTag{"", label});
token_ = cc.consumes(edm::ESInputTag{"", label});
}

std::unique_ptr<Target> produce(Record const& record) {
Expand Down
6 changes: 3 additions & 3 deletions RecoLocalCalo/EcalRecProducers/plugins/EcalESProducerGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ template <typename Target, typename Source, typename Record>
class EcalESProducerGPU : public edm::ESProducer {
public:
explicit EcalESProducerGPU(edm::ParameterSet const& ps) {
auto const label = ps.getParameter<std::string>("label");
std::string name = ps.getParameter<std::string>("ComponentName");
auto const& label = ps.getParameter<std::string>("label");
auto const& name = ps.getParameter<std::string>("ComponentName");
auto cc = setWhatProduced(this, name);
cc.setConsumes(token_, edm::ESInputTag{"", label});
token_ = cc.consumes(edm::ESInputTag{"", label});
}

std::unique_ptr<Target> produce(Record const& record) {
Expand Down

0 comments on commit ceacead

Please sign in to comment.