#include <TwoVBGenFilter.h>
|
| TwoVBGenFilter (const edm::ParameterSet &) |
|
| ~TwoVBGenFilter () |
|
| EDFilter () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDFilter () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 37 of file TwoVBGenFilter.h.
TwoVBGenFilter::~TwoVBGenFilter |
( |
| ) |
|
void TwoVBGenFilter::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void TwoVBGenFilter::endJob |
( |
void |
| ) |
|
|
privatevirtual |
Implements edm::EDFilter.
Definition at line 42 of file TwoVBGenFilter.cc.
References funct::abs(), GenParticle::GenParticle, edm::Event::getByLabel(), reco::isElectron(), reco::isMuon(), reco::isNeutrino(), reco::isTau(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::ne(), and AlCaHLTBitMon_ParallelJobs::p.
53 const HepMC::GenEvent* myGenEvent = evt->GetEvent();
55 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
56 p != myGenEvent->particles_end(); ++
p ) {
58 if(
abs((*p)->pdg_id()) !=23 &&
abs((*p)->pdg_id()) !=24)
continue;
60 if ( (*p)->end_vertex() ) {
61 for ( HepMC::GenVertex::particle_iterator des=(*p)->end_vertex()->particles_begin(HepMC::children);
62 des != (*p)->end_vertex()->particles_end(HepMC::children); ++des ) {
68 else if(
isMuon(theDaughter)) ++nmu;
69 else if(
isTau(theDaughter)) ++ntau;
75 if (ne==2 && nj == 2 &&
eejj_)
return true;
76 else if (ne==1 && nj == 2 && nnu==1 &&
enujj_)
return true;
77 else if (nmu==2 && nj == 2 &&
mumujj_)
return true;
78 else if (nmu==1 && nj == 2 && nnu==1 &&
munujj_)
return true;
79 else if (ntau==2 && nj == 2 &&
tautaujj_)
return true;
80 else if (ntau==1 && nj == 2 && nnu==1 &&
taunujj_)
return true;
81 else if (nnu==2 && nj == 2 &&
nunujj_)
return true;
bool isQuark(const HepMC::GenParticle *)
bool isNeutrino(const HepMC::GenParticle *)
bool isTau(const HepMC::GenParticle *)
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool isElectron(const HepMC::GenParticle *)
bool isMuon(const HepMC::GenParticle *)
bool TwoVBGenFilter::isElectron |
( |
const HepMC::GenParticle * |
p | ) |
|
|
private |
bool TwoVBGenFilter::isMuon |
( |
const HepMC::GenParticle * |
p | ) |
|
|
private |
bool TwoVBGenFilter::isNeutrino |
( |
const HepMC::GenParticle * |
p | ) |
|
|
private |
bool TwoVBGenFilter::isQuark |
( |
const HepMC::GenParticle * |
p | ) |
|
|
private |
bool TwoVBGenFilter::isTau |
( |
const HepMC::GenParticle * |
p | ) |
|
|
private |
bool TwoVBGenFilter::eejj_ |
|
private |
bool TwoVBGenFilter::enujj_ |
|
private |
bool TwoVBGenFilter::mumujj_ |
|
private |
bool TwoVBGenFilter::munujj_ |
|
private |
bool TwoVBGenFilter::nunujj_ |
|
private |
bool TwoVBGenFilter::taunujj_ |
|
private |
bool TwoVBGenFilter::tautaujj_ |
|
private |