#include <BCToEFilterAlgo.h>
Public Member Functions | |
BCToEFilterAlgo (const edm::ParameterSet &, edm::ConsumesCollector &&iC) | |
bool | filter (const edm::Event &iEvent) |
bool | hasBCAncestors (const reco::GenParticle &gp) |
~BCToEFilterAlgo () | |
Private Member Functions | |
bool | isBCBaryon (const reco::GenParticle &gp) |
bool | isBCHadron (const reco::GenParticle &gp) |
bool | isBCMeson (const reco::GenParticle &gp) |
Private Attributes | |
float | eTThreshold_ |
float | FILTER_ETA_MAX_ |
edm::EDGetTokenT< reco::GenParticleCollection > | genParSource_ |
BCToEFilterAlgo returns true for events that have an electron, above configurable eT threshold and within |eta|<2.5, that has an ancestor of a b or c quark
Definition at line 26 of file BCToEFilterAlgo.h.
BCToEFilterAlgo::BCToEFilterAlgo | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 7 of file BCToEFilterAlgo.cc.
References eTThreshold_, FILTER_ETA_MAX_, objects.autophobj::float, genParSource_, and edm::ParameterSet::getParameter().
BCToEFilterAlgo::~BCToEFilterAlgo | ( | ) |
Definition at line 16 of file BCToEFilterAlgo.cc.
bool BCToEFilterAlgo::filter | ( | const edm::Event & | iEvent | ) |
Definition at line 22 of file BCToEFilterAlgo.cc.
References funct::abs(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), eTThreshold_, FILTER_ETA_MAX_, genParSource_, edm::Event::getByToken(), runTauDisplay::gp, hasBCAncestors(), reco::LeafCandidate::pdgId(), mps_fire::result, and reco::LeafCandidate::status().
bool BCToEFilterAlgo::hasBCAncestors | ( | const reco::GenParticle & | gp | ) |
Definition at line 49 of file BCToEFilterAlgo.cc.
References isBCHadron(), reco::CompositeRefCandidateT< D >::motherRef(), and reco::CompositeRefCandidateT< D >::numberOfMothers().
Referenced by filter().
|
private |
Definition at line 80 of file BCToEFilterAlgo.cc.
References funct::abs(), BPhysicsValidation_cfi::pdgid, and reco::LeafCandidate::pdgId().
Referenced by isBCHadron().
|
private |
Definition at line 64 of file BCToEFilterAlgo.cc.
References isBCBaryon(), and isBCMeson().
Referenced by hasBCAncestors().
|
private |
Definition at line 68 of file BCToEFilterAlgo.cc.
References funct::abs(), BPhysicsValidation_cfi::pdgid, and reco::LeafCandidate::pdgId().
Referenced by isBCHadron().
|
private |
Definition at line 47 of file BCToEFilterAlgo.h.
Referenced by BCToEFilterAlgo(), and filter().
|
private |
Definition at line 45 of file BCToEFilterAlgo.h.
Referenced by BCToEFilterAlgo(), and filter().
|
private |
Definition at line 48 of file BCToEFilterAlgo.h.
Referenced by BCToEFilterAlgo(), and filter().