Skip to content

Commit 7af0a06

Browse files
committed
Update PileupRandomNumberGenerator to new API
1 parent 2fab2d1 commit 7af0a06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Mixing/Base/src/PileupRandomNumberGenerator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ std::vector<RandomEngineState> const& PileupRandomNumberGenerator::getLumiCache(
6767
return s_dummy;
6868
}
6969

70-
void PileupRandomNumberGenerator::consumes(edm::ConsumesCollector&& iC) const {}
70+
edm::EDConsumerBase* PileupRandomNumberGenerator::consumer() { return nullptr; }
7171

7272
void PileupRandomNumberGenerator::print(std::ostream& os) const {}
7373

Mixing/Base/src/PileupRandomNumberGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class PileupRandomNumberGenerator : public edm::RandomNumberGenerator {
5454
std::vector<RandomEngineState> const& getEventCache(edm::StreamID const&) const final;
5555
std::vector<RandomEngineState> const& getLumiCache(edm::LuminosityBlockIndex const&) const final;
5656

57-
void consumes(edm::ConsumesCollector&& iC) const final;
57+
edm::EDConsumerBase* consumer() final;
5858

5959
/// For debugging purposes only.
6060
void print(std::ostream& os) const final;

0 commit comments

Comments
 (0)