#include <PFElectronSelector.h>
Public Types | |
enum | Version_t { SPRING11, N_VERSIONS } |
Public Types inherited from Selector< pat::Electron > | |
typedef std::binary_function< pat::Electron, pat::strbitset, bool > | base_type |
typedef std::pair< index_type, size_t > | cut_flow_item |
typedef std::vector< cut_flow_item > | cut_flow_map |
typedef pat::Electron | data_type |
typedef std::map< index_type, double > | double_map |
typedef pat::strbitset::index_type | index_type |
typedef std::map< index_type, int > | int_map |
Public Member Functions | |
void | initialize (Version_t version, double mva=0.4, double d0=0.02, int nMissingHits=1, std::string eidUsed="eidTightMC", bool convRej=true, double pfiso=0.15) |
bool | operator() (const pat::Electron &electron, pat::strbitset &ret) |
PFElectronSelector () | |
PFElectronSelector (edm::ParameterSet const ¶meters, edm::ConsumesCollector &&iC) | |
PFElectronSelector (edm::ParameterSet const ¶meters) | |
bool | spring11Cuts (const pat::Electron &electron, pat::strbitset &ret) |
Public Member Functions inherited from Selector< pat::Electron > | |
void | clear (std::string const &s) |
Turn off a given selection cut. More... | |
void | clear (index_type const &i) |
bool | considerCut (std::string const &s) const |
consider the cut at index "s" More... | |
bool | considerCut (index_type const &i) const |
int | cut (index_type const &i, int val) const |
Access the int cut values at index "s". More... | |
double | cut (index_type const &i, double val) const |
Access the double cut values at index "s". More... | |
int | cut (std::string s, int val) const |
Access the int cut values at index "s". More... | |
double | cut (std::string s, double val) const |
Access the double cut values at index "s". More... | |
pat::strbitset | getBitTemplate () const |
Get an empty bitset with the proper names. More... | |
double | getPasses (std::string const &s) const |
Return the number of passing cases. More... | |
double | getPasses (index_type const &i) const |
bool | ignoreCut (std::string const &s) const |
ignore the cut at index "s" More... | |
bool | ignoreCut (index_type const &i) const |
virtual bool | operator() (pat::Electron const &t, pat::strbitset &ret)=0 |
This provides the interface for base classes to select objects. More... | |
virtual bool | operator() (pat::Electron const &t) |
This provides an alternative signature without the second ret. More... | |
virtual bool | operator() (pat::Electron const &t, edm::EventBase const &e, pat::strbitset &ret) |
This provides an alternative signature that includes extra information. More... | |
virtual bool | operator() (pat::Electron const &t, edm::EventBase const &e) |
This provides an alternative signature that includes extra information. More... | |
bool | operator[] (std::string const &s) const |
bool | operator[] (index_type const &i) const |
void | passCut (pat::strbitset &ret, std::string const &s) |
Passing cuts. More... | |
void | passCut (pat::strbitset &ret, index_type const &i) |
void | print (std::ostream &out) const |
Print the cut flow. More... | |
void | printActiveCuts (std::ostream &out) const |
Print the cuts being considered. More... | |
virtual void | push_back (std::string const &s) |
This is the registration of an individual cut string. More... | |
virtual void | push_back (std::string const &s, int cut) |
This is the registration of an individual cut string, with an int cut value. More... | |
virtual void | push_back (std::string const &s, double cut) |
This is the registration of an individual cut string, with a double cut value. More... | |
Selector () | |
Constructor clears the bits. More... | |
void | set (std::string const &s, bool val=true) |
Set a given selection cut, on or off. More... | |
void | set (index_type const &i, bool val=true) |
void | set (std::string const &s, int cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, int cut, bool val=true) |
void | set (std::string const &s, double cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, double cut, bool val=true) |
void | setIgnored (pat::strbitset &ret) |
set ignored bits More... | |
void | setIgnoredCuts (std::vector< std::string > const &bitsToIgnore) |
set the bits to ignore from a vector More... | |
virtual | ~Selector () |
Public Attributes | |
bool | verbose_ |
Private Attributes | |
std::string | electronIDvalue_ |
index_type | indexConvRej_ |
index_type | indexD0_ |
index_type | indexElectronId_ |
index_type | indexID |
index_type | indexMaxMissingHits_ |
index_type | indexMVA_ |
index_type | indexPFIso_ |
Version_t | version_ |
Additional Inherited Members | |
Protected Attributes inherited from Selector< pat::Electron > | |
pat::strbitset | bits_ |
the bitset indexed by strings More... | |
cut_flow_map | cutFlow_ |
map of cut flows in "human" order More... | |
double_map | doubleCuts_ |
the double-value cut map More... | |
int_map | intCuts_ |
the int-value cut map More... | |
pat::strbitset | retInternal_ |
internal ret if users don't care about return bits More... | |
Definition at line 16 of file PFElectronSelector.h.
|
inline |
Definition at line 24 of file PFElectronSelector.h.
|
inline |
Definition at line 27 of file PFElectronSelector.h.
|
inline |
Definition at line 32 of file PFElectronSelector.h.
References Exception, edm::ParameterSet::exists(), Selector< pat::Electron >::getBitTemplate(), edm::ParameterSet::getParameter(), initialize(), N_VERSIONS, Selector< pat::Electron >::retInternal_, Selector< pat::Electron >::setIgnoredCuts(), SPRING11, AlCaHLTBitMon_QueryRunRegistry::string, and jetIDSelector_cfi::version.
|
inline |
Definition at line 63 of file PFElectronSelector.h.
References Selector< pat::Electron >::bits_, allConversions_cfi::d0, electronIDvalue_, indexConvRej_, indexD0_, indexElectronId_, indexMaxMissingHits_, indexMVA_, indexPFIso_, Selector< pat::Electron >::push_back(), jetIDSelector_cfi::version, and version_.
Referenced by PFElectronSelector().
|
inline |
Definition at line 101 of file PFElectronSelector.h.
References Utilities::operator, SPRING11, spring11Cuts(), and version_.
|
inline |
Definition at line 112 of file PFElectronSelector.h.
References reco::GsfElectron::convDcot(), reco::GsfElectron::convDist(), Selector< pat::Electron >::cut(), pat::Electron::dB(), pat::Electron::electronID(), electronIDvalue_, stringResolutionProvider_cfi::et, reco::LeafCandidate::et(), pat::Electron::gsfTrack(), Selector< pat::Electron >::ignoreCut(), indexConvRej_, indexD0_, indexElectronId_, indexMaxMissingHits_, indexMVA_, indexPFIso_, createfilelist::int, reco::HitPattern::MISSING_INNER_HITS, reco::GsfElectron::mva_e_pi(), Selector< pat::Electron >::passCut(), pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, pat::strbitset::set(), Selector< pat::Electron >::setIgnored(), and pat::Lepton< LeptonType >::userIsolation().
Referenced by operator()().
|
private |
Definition at line 158 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 153 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 152 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 156 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 150 of file PFElectronSelector.h.
|
private |
Definition at line 151 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 155 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
|
private |
Definition at line 154 of file PFElectronSelector.h.
Referenced by initialize(), and spring11Cuts().
bool PFElectronSelector::verbose_ |
Definition at line 20 of file PFElectronSelector.h.
|
private |
Definition at line 148 of file PFElectronSelector.h.
Referenced by initialize(), and operator()().