Skip to content

Commit

Permalink
consumes interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Dildick committed Dec 1, 2016
1 parent 6f5c281 commit 025d699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GeneratorInterface/GenFilters/src/MCMultiParticleFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

MCMultiParticleFilter::MCMultiParticleFilter(const edm::ParameterSet& iConfig) :
src_(iConfig.getUntrackedParameter<edm::InputTag>("src",edm::InputTag(std::string("generator"),"unsmeared"))),
token_(consumes<edm::HepMCProduct>(src_)),
numRequired_(iConfig.getParameter<int>("NumRequired")),
acceptMore_(iConfig.getParameter<bool>("AcceptMore")),
particleID_(iConfig.getParameter< std::vector<int> >("ParticleID")),
Expand Down Expand Up @@ -54,7 +55,7 @@ MCMultiParticleFilter::~MCMultiParticleFilter()
bool MCMultiParticleFilter::filter(edm::Event& iEvent, const edm::EventSetup& iSetup)
{
edm::Handle<edm::HepMCProduct> evt;
iEvent.getByLabel(src_, evt);
iEvent.getByToken(token_, evt);

totalEvents_++;
int nFound = 0;
Expand Down

0 comments on commit 025d699

Please sign in to comment.