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::binary_function< pat::Jet, 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::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, edm::ConsumesCollector &iC) | |
JetIDSelectionFunctor (edm::ParameterSet const ¶meters) | |
JetIDSelectionFunctor (Version_t version, Quality_t quality) | |
bool | operator() (const pat::Jet &jet, pat::strbitset &ret) |
bool | operator() (reco::Candidate::LorentzVector const &correctedP4, double emEnergyFraction, 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::CaloJet const &jet, reco::JetID const &jetID, pat::strbitset &ret) |
virtual bool | operator() (reco::CaloJet const &jet, reco::JetID const &jetID) |
accessor like previous, without the ret More... | |
Public Member Functions inherited from Selector< pat::Jet > | |
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::Jet const &t, pat::strbitset &ret)=0 |
This provides the interface for base classes to select objects. 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, pat::strbitset &ret) |
This provides an alternative signature that includes extra information. More... | |
virtual bool | operator() (pat::Jet 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 () |
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 32 of file JetIDSelectionFunctor.h.
Enumerator | |
---|---|
MINIMAL | |
LOOSE_AOD | |
LOOSE | |
TIGHT | |
N_QUALITY |
Definition at line 37 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 39 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 42 of file JetIDSelectionFunctor.h.
|
inline |
Definition at line 48 of file JetIDSelectionFunctor.h.
References CRAFT08, DQM09, Exception, edm::ParameterSet::getParameter(), initialize(), LOOSE, LOOSE_AOD, MINIMAL, N_QUALITY, PURE09, jets_cff::quality, AlCaHLTBitMon_QueryRunRegistry::string, and TIGHT.
Definition at line 75 of file JetIDSelectionFunctor.h.
References initialize().
|
inline |
Definition at line 230 of file JetIDSelectionFunctor.h.
Referenced by operator()().
|
inline |
Definition at line 324 of file JetIDSelectionFunctor.h.
References Abs(), reco::JetID::approximatefHPD, jetCorrFactors_cfi::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_, pat::strbitset::set(), Selector< pat::Jet >::setIgnored(), and TIGHT.
Referenced by operator()().
|
inline |
Definition at line 408 of file JetIDSelectionFunctor.h.
References Abs(), reco::JetID::approximatefHPD, jetCorrFactors_cfi::emf, reco::JetID::fHFOOT, reco::JetID::fHPD, reco::JetID::fLong, reco::JetID::fLS, reco::JetID::fShort, HB, hcaldqm::constants::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(), pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
Referenced by operator()().
Definition at line 79 of file JetIDSelectionFunctor.h.
References Selector< pat::Jet >::bits_, CRAFT08, DQM09, funct::false, 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(), jets_cff::quality, quality_, Selector< pat::Jet >::retInternal_, TIGHT, jets_cff::version, and version_.
Referenced by JetIDSelectionFunctor().
|
inline |
Definition at line 243 of file JetIDSelectionFunctor.h.
References pat::Jet::correctedP4(), count_hits(), CRAFT08, craft08Cuts(), pat::Jet::currentJECLevel(), DQM09, pat::Jet::emEnergyFraction(), reco::Jet::etaetaMoment(), fwd09Cuts(), pat::Jet::getCaloConstituents(), pat::Jet::isCaloJet(), pat::Jet::isJPTJet(), pat::Jet::jetID(), Utilities::operator, reco::LeafCandidate::p4(), reco::Jet::phiphiMoment(), PURE09, and version_.
Referenced by operator()().
|
inline |
Definition at line 272 of file JetIDSelectionFunctor.h.
References CRAFT08, craft08Cuts(), and version_.
|
inlinevirtual |
accessor like previous, without the ret
Definition at line 283 of file JetIDSelectionFunctor.h.
References operator()(), Selector< pat::Jet >::retInternal_, pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
|
inline |
Definition at line 297 of file JetIDSelectionFunctor.h.
References count_hits(), CRAFT08, craft08Cuts(), DQM09, reco::CaloJet::emEnergyFraction(), reco::Jet::etaetaMoment(), fwd09Cuts(), reco::CaloJet::getCaloConstituents(), reco::LeafCandidate::p4(), reco::Jet::phiphiMoment(), PURE09, and version_.
|
inlinevirtual |
accessor like previous, without the ret
Definition at line 312 of file JetIDSelectionFunctor.h.
References operator()(), Selector< pat::Jet >::retInternal_, pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
|
private |
Definition at line 545 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 535 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 525 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 523 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 524 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 529 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 527 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 536 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 537 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 528 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 534 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 521 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 540 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 532 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 531 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), fwd09Cuts(), and initialize().
|
private |
Definition at line 541 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 542 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 539 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 543 of file JetIDSelectionFunctor.h.
Referenced by fwd09Cuts(), and initialize().
|
private |
Definition at line 519 of file JetIDSelectionFunctor.h.
Referenced by craft08Cuts(), and initialize().
|
private |
Definition at line 518 of file JetIDSelectionFunctor.h.
Referenced by initialize(), and operator()().