43 genToken = consumes<GenParticleCollection>(
edm::InputTag(
"genParticles"));
53 std::cout <<
"number of events processed: " << evt << std::endl;
54 std::cout <<
"number of events kept: " << ikept << std::endl;
62 bool keepEvent =
false;
68 bool TwoETwoM =
false;
72 event.getByToken(genToken, genParticles);
79 for (GenParticleCollection::const_iterator mcIter=genParticles->begin(); mcIter!=genParticles->end(); ++mcIter) {
81 if ( mcIter->pdgId() == 13 || mcIter->pdgId() == -13) {
83 if ( mcIter->mother()->pdgId() == 23 ) {
85 if ( mcIter->pt() < 3 )
continue;
86 if ( mcIter->eta() > -2.4 && mcIter->eta() < 2.4 ) nMuon++;
90 if ( mcIter->pdgId() == 11 || mcIter->pdgId() == -11)
92 if ( mcIter->mother()->pdgId() == 23 ) {
94 if ( mcIter->pt() < 3 )
continue;
95 if ( mcIter->eta() > -2.5 && mcIter->eta() < 2.5 ) nElec++;
100 if (nElec > 3) FourE =
true;
101 if (nMuon > 3) FourM =
true;
102 if (nMuon > 1 && nElec > 1) TwoETwoM =
true;
103 if ( FourE || FourM || TwoETwoM ) FourL =
true;
112 if (keepEvent ) ikept++;
HiggsToZZ4LeptonsPreFilter(const edm::ParameterSet &)
T getParameter(std::string const &) const
leptonFlavour
lepton flavor
def setup(process, global_tag, zero_tesla=False)
~HiggsToZZ4LeptonsPreFilter() override
bool filter(edm::Event &, const edm::EventSetup &) override
Get event properties to send to builder to fill seed collection.