Jet selector for pat::Jets and for CaloJets. More...
#include "PhysicsTools/Utilities/interface/JetIDSelectionFunctor.h"
Public Types | |
enum | Quality_t { MINIMAL, LOOSE_AOD, LOOSE, TIGHT, N_QUALITY } |
enum | Version_t { CRAFT08, PURE09, DQM09, N_VERSIONS } |
Public Types inherited from Selector< pat::Jet > | |
typedef std::pair< index_type, size_t > | cut_flow_item |
typedef std::vector< cut_flow_item > | cut_flow_map |
typedef pat::Jet | 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 | |
unsigned int | count_hits (const std::vector< CaloTowerPtr > &towers) |
bool | craft08Cuts (reco::Candidate::LorentzVector const &correctedP4, double emEnergyFraction, reco::JetID const &jetID, pat::strbitset &ret) |
bool | fwd09Cuts (reco::Candidate::LorentzVector const &rawP4, double emEnergyFraction, double etaWidth, double phiWidth, unsigned int nHit, reco::JetID const &jetID, pat::strbitset &ret) |
void | initialize (Version_t version, Quality_t quality) |
JetIDSelectionFunctor () | |
JetIDSelectionFunctor (edm::ParameterSet const ¶meters) | |
JetIDSelectionFunctor (edm::ParameterSet const ¶meters, edm::ConsumesCollector &iC) | |
JetIDSelectionFunctor (Version_t version, Quality_t quality) | |
bool | operator() (const pat::Jet &jet, pat::strbitset &ret) override |
This provides the interface for base classes to select objects. More... | |
virtual bool | operator() (reco::CaloJet const &jet, reco::JetID const &jetID) |
accessor like previous, without the ret More... | |
bool | operator() (reco::CaloJet const &jet, reco::JetID const &jetID, pat::strbitset &ret) |
virtual bool | operator() (reco::Candidate::LorentzVector const &correctedP4, double emEnergyFraction, reco::JetID const &jetID) |
accessor like previous, without the ret More... | |
bool | operator() (reco::Candidate::LorentzVector const &correctedP4, double emEnergyFraction, reco::JetID const &jetID, pat::strbitset &ret) |
Public Member Functions inherited from Selector< pat::Jet > | |
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::Jet const &t) |
This provides an alternative signature without the second ret. More... | |
virtual bool | operator() (pat::Jet const &t, edm::EventBase const &e) |
This provides an alternative signature that includes extra information. More... | |
virtual bool | operator() (pat::Jet 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 () |
Additional Inherited Members | |
Protected Attributes inherited from Selector< pat::Jet > | |
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... | |
Jet selector for pat::Jets and for CaloJets.
Selector functor for pat::Jets that implements quality cuts based on studies of noise patterns.
Please see https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATSelectors for a general overview of the selectors.
Definition at line 28 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 33 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 36 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 40 of file JetIDSelectionFunctor.h.
References CRAFT08, DQM09, Exception, initialize(), LOOSE, LOOSE_AOD, MINIMAL, N_QUALITY, PURE09, quality, AlCaHLTBitMon_QueryRunRegistry::string, and TIGHT.
Definition at line 68 of file JetIDSelectionFunctor.h.
References initialize(), quality, and BeamSplash_cfg::version.
|
inline |
Definition at line 218 of file JetIDSelectionFunctor.h.
References HLT_FULL_cff::towers.
Referenced by operator()().
|
inline |
Definition at line 309 of file JetIDSelectionFunctor.h.
References Abs(), reco::JetID::approximatefHPD, CorrectedMETProducer_namespace::correctedP4(), custom_jme_cff::emf, reco::JetID::fHPD, reco::JetID::hitsInN90, Selector< pat::Jet >::ignoreCut(), index_LOOSE_AOD_EMF_, index_LOOSE_AOD_fHPD_, index_LOOSE_AOD_N90Hits_, index_LOOSE_EMF_, index_LOOSE_fHPD_, index_LOOSE_N90Hits_, index_MINIMAL_EMF_, index_TIGHT_EMF_, index_TIGHT_fHPD_, LOOSE, LOOSE_AOD, reco::JetID::n90Hits, Selector< pat::Jet >::passCut(), quality_, runTheMatrix::ret, Selector< pat::Jet >::setIgnored(), and TIGHT.
Referenced by operator()().
|
inline |
Definition at line 416 of file JetIDSelectionFunctor.h.
References Abs(), reco::JetID::approximatefHPD, custom_jme_cff::emf, reco::JetID::fHFOOT, reco::JetID::fHPD, reco::JetID::fLong, reco::JetID::fLS, reco::JetID::fShort, HB, DigiToRawDM_cff::HBHE, DigiToRawDM_cff::HF, reco::JetID::hitsInN90, Selector< pat::Jet >::ignoreCut(), index_EF_EMF_, index_EF_N90Hits_, index_LOOSE_als_, index_LOOSE_AOD_fHPD_, index_LOOSE_AOD_N90Hits_, index_LOOSE_fHPD_, index_LOOSE_fls_, index_LOOSE_foot_, index_LOOSE_N90Hits_, index_LOOSE_nHit_, index_MINIMAL_EMF_, index_TIGHT_als_, index_TIGHT_EMF_, index_TIGHT_fHPD_, index_TIGHT_fls_, index_TIGHT_foot_, index_TIGHT_nHit_, index_widths_, Max(), Min(), reco::JetID::n90Hits, Selector< pat::Jet >::passCut(), jets_cff::rawPt, runTheMatrix::ret, and Selector< pat::Jet >::setIgnored().
Referenced by operator()().
Definition at line 70 of file JetIDSelectionFunctor.h.
References Selector< pat::Jet >::bits_, CRAFT08, DQM09, Selector< pat::Jet >::getBitTemplate(), index_EF_EMF_, index_EF_N90Hits_, index_LOOSE_als_, index_LOOSE_AOD_EMF_, index_LOOSE_AOD_fHPD_, index_LOOSE_AOD_N90Hits_, index_LOOSE_EMF_, index_LOOSE_fHPD_, index_LOOSE_fls_, index_LOOSE_foot_, index_LOOSE_N90Hits_, index_LOOSE_nHit_, index_MINIMAL_EMF_, index_TIGHT_als_, index_TIGHT_EMF_, index_TIGHT_fHPD_, index_TIGHT_fls_, index_TIGHT_foot_, index_TIGHT_nHit_, index_widths_, LOOSE, LOOSE_AOD, Selector< pat::Jet >::push_back(), quality, quality_, Selector< pat::Jet >::retInternal_, Selector< pat::Jet >::set(), TIGHT, BeamSplash_cfg::version, and version_.
Referenced by JetIDSelectionFunctor().
|
inlineoverridevirtual |
This provides the interface for base classes to select objects.
Implements Selector< pat::Jet >.
Definition at line 230 of file JetIDSelectionFunctor.h.
References count_hits(), CRAFT08, craft08Cuts(), DQM09, fwd09Cuts(), metsig::jet, PURE09, runTheMatrix::ret, and version_.
Referenced by operator()().
|
inlinevirtual |
accessor like previous, without the ret
Definition at line 299 of file JetIDSelectionFunctor.h.
References metsig::jet, operator()(), Selector< pat::Jet >::retInternal_, pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
|
inline |
Definition at line 287 of file JetIDSelectionFunctor.h.
References count_hits(), CRAFT08, craft08Cuts(), DQM09, fwd09Cuts(), metsig::jet, PURE09, runTheMatrix::ret, and version_.
|
inlinevirtual |
accessor like previous, without the ret
Definition at line 274 of file JetIDSelectionFunctor.h.
References CorrectedMETProducer_namespace::correctedP4(), operator()(), Selector< pat::Jet >::retInternal_, pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
|
inline |
Definition at line 263 of file JetIDSelectionFunctor.h.
References CorrectedMETProducer_namespace::correctedP4(), CRAFT08, craft08Cuts(), runTheMatrix::ret, and version_.
|
private |
Definition at line 554 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 553 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 544 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 534 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 532 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 533 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 538 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 536 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 545 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 546 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 537 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 543 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 530 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 549 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 541 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 540 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 550 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 551 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 548 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 552 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 528 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 527 of file JetIDSelectionFunctor.h.
Referenced by initialize(), and operator()().