#include <SimpleCutBasedElectronIDSelectionFunctor.h>
Public Types | |
enum | Version_t { relIso95 = 0, cIso95, relIso90, cIso90, relIso85, cIso85, relIso80, cIso80, relIso70, cIso70, relIso60, cIso60, NONE } |
Public Types inherited from Selector< pat::Electron > | |
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 (Double_t trackIso_EB, Double_t ecalIso_EB, Double_t hcalIso_EB, Double_t sihih_EB, Double_t dphi_EB, Double_t deta_EB, Double_t hoe_EB, Double_t cIso_EB, Double_t trackIso_EE, Double_t ecalIso_EE, Double_t hcalIso_EE, Double_t sihih_EE, Double_t dphi_EE, Double_t deta_EE, Double_t hoe_EE, Double_t cIso_EE, Int_t conversionRejection, Int_t maxNumberOfExpectedMissingHits) |
void | initialize (Version_t version) |
bool | operator() (const pat::Electron &electron, pat::strbitset &ret) override |
This provides the interface for base classes to select objects. More... | |
SimpleCutBasedElectronIDSelectionFunctor () | |
SimpleCutBasedElectronIDSelectionFunctor (edm::ParameterSet const ¶meters) | |
SimpleCutBasedElectronIDSelectionFunctor (Version_t version) | |
bool | spring10Variables (const pat::Electron &electron, pat::strbitset &ret) |
Public Member Functions inherited from Selector< pat::Electron > | |
void | clear (index_type const &i) |
void | clear (std::string const &s) |
Turn off a given selection cut. More... | |
bool | considerCut (index_type const &i) const |
bool | considerCut (std::string const &s) const |
consider the cut at index "s" More... | |
double | cut (index_type const &i, double val) const |
Access the double cut values at index "s". More... | |
int | cut (index_type const &i, 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... | |
int | cut (std::string s, int val) const |
Access the int cut values at index "s". More... | |
pat::strbitset | getBitTemplate () const |
Get an empty bitset with the proper names. More... | |
double | getPasses (index_type const &i) const |
double | getPasses (std::string const &s) const |
Return the number of passing cases. More... | |
bool | ignoreCut (index_type const &i) const |
bool | ignoreCut (std::string const &s) const |
ignore the cut at index "s" 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) |
This provides an alternative signature that includes extra information. 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... | |
bool | operator[] (index_type const &i) const |
bool | operator[] (std::string const &s) const |
void | passCut (pat::strbitset &ret, index_type const &i) |
void | passCut (pat::strbitset &ret, std::string const &s) |
Passing cuts. More... | |
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, double cut) |
This is the registration of an individual cut string, with a double cut value. 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... | |
Selector () | |
Constructor clears the bits. More... | |
void | set (index_type const &i, bool val=true) |
void | set (index_type const &i, double cut, bool val=true) |
void | set (index_type const &i, int cut, bool val=true) |
void | set (std::string const &s, bool val=true) |
Set a given selection cut, on or off. More... | |
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 (std::string const &s, int cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
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 () |
Private Attributes | |
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 60 of file SimpleCutBasedElectronIDSelectionFunctor.h.
Enumerator | |
---|---|
relIso95 | |
cIso95 | |
relIso90 | |
cIso90 | |
relIso85 | |
cIso85 | |
relIso80 | |
cIso80 | |
relIso70 | |
cIso70 | |
relIso60 | |
cIso60 | |
NONE |
Definition at line 62 of file SimpleCutBasedElectronIDSelectionFunctor.h.
|
inline |
Definition at line 78 of file SimpleCutBasedElectronIDSelectionFunctor.h.
|
inline |
Definition at line 81 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References Selector< pat::Electron >::getBitTemplate(), initialize(), and Selector< pat::Electron >::retInternal_.
|
inline |
Definition at line 104 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References cIso80, gather_cfg::cout, Selector< pat::Electron >::getBitTemplate(), initialize(), NONE, Selector< pat::Electron >::retInternal_, and BeamSplash_cfg::version.
|
inline |
Definition at line 396 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References simpleCutBasedSpring10SelectionBlocks_cfi::cIso_EB, simpleCutBasedSpring10SelectionBlocks_cfi::cIso_EE, simpleCutBasedSpring10SelectionBlocks_cfi::deta_EB, simpleCutBasedSpring10SelectionBlocks_cfi::deta_EE, simpleCutBasedSpring10SelectionBlocks_cfi::dphi_EB, simpleCutBasedSpring10SelectionBlocks_cfi::dphi_EE, simpleCutBasedSpring10SelectionBlocks_cfi::ecalIso_EB, simpleCutBasedSpring10SelectionBlocks_cfi::ecalIso_EE, simpleCutBasedSpring10SelectionBlocks_cfi::hcalIso_EB, simpleCutBasedSpring10SelectionBlocks_cfi::hcalIso_EE, simpleCutBasedSpring10SelectionBlocks_cfi::hoe_EB, simpleCutBasedSpring10SelectionBlocks_cfi::hoe_EE, simpleCutBasedSpring10SelectionBlocks_cfi::maxNumberOfExpectedMissingHits, NONE, Selector< pat::Electron >::push_back(), Selector< pat::Electron >::set(), simpleCutBasedSpring10SelectionBlocks_cfi::sihih_EB, simpleCutBasedSpring10SelectionBlocks_cfi::sihih_EE, simpleCutBasedSpring10SelectionBlocks_cfi::trackIso_EB, simpleCutBasedSpring10SelectionBlocks_cfi::trackIso_EE, and version_.
|
inline |
Definition at line 115 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References cIso60, cIso70, cIso80, cIso85, cIso90, cIso95, MillePedeFileConverter_cfg::e, Selector< pat::Electron >::push_back(), relIso60, relIso70, relIso80, relIso85, relIso90, relIso95, Selector< pat::Electron >::set(), BeamSplash_cfg::version, and version_.
Referenced by SimpleCutBasedElectronIDSelectionFunctor().
|
inlineoverridevirtual |
This provides the interface for base classes to select objects.
Implements Selector< pat::Electron >.
Definition at line 458 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References HPSPFTauProducerPuppi_cfi::electron, runTheMatrix::ret, and spring10Variables().
|
inline |
Definition at line 464 of file SimpleCutBasedElectronIDSelectionFunctor.h.
References Selector< pat::Electron >::cut(), HPSPFTauProducerPuppi_cfi::electron, Selector< pat::Electron >::ignoreCut(), SiStripPI::max, reco::HitPattern::MISSING_INNER_HITS, Selector< pat::Electron >::passCut(), runTheMatrix::ret, and Selector< pat::Electron >::setIgnored().
Referenced by operator()().
|
private |
Definition at line 556 of file SimpleCutBasedElectronIDSelectionFunctor.h.
Referenced by initialize().