PF Jet selector for pat::Jets. More...
#include "PhysicsTools/SelectorUtils/interface/PFJetIDSelectionFunctor.h"
Public Types | |
enum | Quality_t { LOOSE, TIGHT, TIGHTLEPVETO, N_QUALITY } |
enum | Version_t { FIRSTDATA, RUNIISTARTUP, WINTER16, WINTER17, WINTER17PUPPI, SUMMER18, SUMMER18PUPPI, RUN2UL16CHS, RUN2UL16PUPPI, RUN3CHSrunsBCDEprompt, RUN3PUPPIrunsBCDEprompt, RUN3CHSruns2022FGruns2023CD, RUN3PUPPIruns2022FGruns2023CD, RUN2ULCHS, RUN2ULPUPPI, 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 | |
bool | firstDataCuts (reco::Jet const &jet, pat::strbitset &ret, Version_t version_) |
bool | operator() (const pat::Jet &jet, pat::strbitset &ret) override |
This provides the interface for base classes to select objects. More... | |
bool | operator() (const reco::PFJet &jet, pat::strbitset &ret) |
bool | operator() (const reco::PFJet &jet) |
PFJetIDSelectionFunctor () | |
PFJetIDSelectionFunctor (edm::ParameterSet const ¶ms, edm::ConsumesCollector &iC) | |
PFJetIDSelectionFunctor (edm::ParameterSet const ¶ms) | |
PFJetIDSelectionFunctor (Version_t version, Quality_t quality) | |
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) |
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 () |
Static Public Member Functions | |
static edm::ParameterSetDescription | getDescription () |
Private Member Functions | |
void | initCuts () |
void | initIndex () |
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... | |
PF Jet selector for pat::Jets.
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 PFJetIDSelectionFunctor.h.
Enumerator | |
---|---|
LOOSE | |
TIGHT | |
TIGHTLEPVETO | |
N_QUALITY |
Definition at line 48 of file PFJetIDSelectionFunctor.h.
Definition at line 30 of file PFJetIDSelectionFunctor.h.
|
inline |
Definition at line 50 of file PFJetIDSelectionFunctor.h.
|
inline |
Definition at line 53 of file PFJetIDSelectionFunctor.h.
|
inline |
Definition at line 57 of file PFJetIDSelectionFunctor.h.
References Selector< pat::Jet >::bits_, FIRSTDATA, mps_fire::i, initCuts(), initIndex(), B2GTnPMonitor_cfi::item, LOOSE, submitPVValidationJobs::params, quality_, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, Selector< pat::Jet >::setIgnoredCuts(), AlCaHLTBitMon_QueryRunRegistry::string, pat::strbitset::strings(), SUMMER18, SUMMER18PUPPI, TIGHT, TIGHTLEPVETO, version_, WINTER16, WINTER17, and WINTER17PUPPI.
|
inline |
Definition at line 255 of file PFJetIDSelectionFunctor.h.
References funct::abs(), cms::cuda::assert(), reco::Candidate::begin(), reco::PFJet::chargedEmEnergy(), pat::Jet::chargedEmEnergy(), pat::Jet::chargedEmEnergyFraction(), reco::PFJet::chargedHadronEnergy(), pat::Jet::chargedHadronEnergy(), pat::Jet::chargedHadronEnergyFraction(), reco::PFJet::chargedMultiplicity(), pat::Jet::chargedMultiplicity(), Selector< pat::Jet >::cut(), MillePedeFileConverter_cfg::e, reco::PFJet::electronEnergy(), reco::Candidate::end(), reco::LeafCandidate::energy(), FIRSTDATA, reco::PFJet::HFEMEnergy(), Selector< pat::Jet >::ignoreCut(), indexCEF_, indexCEF_TR_, indexCHF_, indexMUF_, indexMUF_TR_, indexNCH_, indexNCH_TR_, indexNConstituents_, indexNEF_, indexNEF_EC_, indexNEF_EC_L_, indexNEF_EC_U_, indexNEF_FW_, indexNEF_TR_, indexNHF_, indexNHF_EC_, indexNHF_FW_, indexNHF_TR_, indexNNeutrals_EC_, indexNNeutrals_FW_, indexNNeutrals_FW_L_, indexNNeutrals_FW_U_, pat::Jet::isBasicJet(), pat::Jet::isPFJet(), metsig::jet, reco::PFJet::muonEnergy(), pat::Jet::muonEnergy(), pat::Jet::muonEnergyFraction(), reco::PFJet::neutralEmEnergy(), pat::Jet::neutralEmEnergy(), pat::Jet::neutralEmEnergyFraction(), reco::PFJet::neutralHadronEnergy(), pat::Jet::neutralHadronEnergy(), pat::Jet::neutralHadronEnergyFraction(), reco::PFJet::neutralMultiplicity(), pat::Jet::neutralMultiplicity(), Selector< pat::Jet >::passCut(), reco::PFJet::photonEnergy(), quality_, runTheMatrix::ret, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, Selector< pat::Jet >::setIgnored(), SUMMER18, SUMMER18PUPPI, TIGHT, TIGHTLEPVETO, version_, WINTER16, WINTER17, and WINTER17PUPPI.
Referenced by operator()().
|
inlinestatic |
Definition at line 132 of file PFJetIDSelectionFunctor.h.
References HLT_2024v14_cff::CEF, HLT_2024v14_cff::CHF, submitPVResolutionJobs::desc, HLT_2024v14_cff::NCH, custom_jme_cff::nConstituents, HLT_2024v14_cff::NEF, and HLT_2024v14_cff::NHF.
|
inlineprivate |
Definition at line 713 of file PFJetIDSelectionFunctor.h.
References LOOSE, Selector< pat::Jet >::push_back(), quality_, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, SUMMER18, SUMMER18PUPPI, TIGHT, TIGHTLEPVETO, version_, WINTER16, WINTER17, and WINTER17PUPPI.
Referenced by PFJetIDSelectionFunctor().
|
inlineprivate |
Definition at line 1164 of file PFJetIDSelectionFunctor.h.
References Selector< pat::Jet >::bits_, Selector< pat::Jet >::getBitTemplate(), indexCEF_, indexCEF_TR_, indexCHF_, indexMUF_, indexMUF_TR_, indexNCH_, indexNCH_TR_, indexNConstituents_, indexNEF_, indexNEF_EC_, indexNEF_EC_L_, indexNEF_EC_U_, indexNEF_FW_, indexNEF_TR_, indexNHF_, indexNHF_EC_, indexNHF_FW_, indexNHF_TR_, indexNNeutrals_EC_, indexNNeutrals_FW_, indexNNeutrals_FW_L_, indexNNeutrals_FW_U_, quality_, Selector< pat::Jet >::retInternal_, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, SUMMER18, SUMMER18PUPPI, TIGHT, TIGHTLEPVETO, version_, WINTER16, WINTER17, and WINTER17PUPPI.
Referenced by PFJetIDSelectionFunctor().
|
inlineoverridevirtual |
This provides the interface for base classes to select objects.
Implements Selector< pat::Jet >.
Definition at line 213 of file PFJetIDSelectionFunctor.h.
References FIRSTDATA, firstDataCuts(), metsig::jet, runTheMatrix::ret, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, SUMMER18, SUMMER18PUPPI, version_, WINTER16, WINTER17, and WINTER17PUPPI.
Referenced by operator()().
|
inline |
Definition at line 233 of file PFJetIDSelectionFunctor.h.
References FIRSTDATA, firstDataCuts(), metsig::jet, runTheMatrix::ret, RUN2UL16CHS, RUN2UL16PUPPI, RUN2ULCHS, RUN2ULPUPPI, RUN3CHSruns2022FGruns2023CD, RUN3CHSrunsBCDEprompt, RUN3PUPPIruns2022FGruns2023CD, RUN3PUPPIrunsBCDEprompt, RUNIISTARTUP, SUMMER18, SUMMER18PUPPI, version_, WINTER16, WINTER17, and WINTER17PUPPI.
|
inline |
Definition at line 245 of file PFJetIDSelectionFunctor.h.
References metsig::jet, operator()(), Selector< pat::Jet >::retInternal_, pat::strbitset::set(), and Selector< pat::Jet >::setIgnored().
|
private |
Definition at line 1279 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1287 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1280 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1277 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1286 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1281 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1285 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1275 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1276 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1296 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1297 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1298 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1290 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1284 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1278 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1295 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1289 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1283 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1299 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1291 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1292 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1293 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), and initIndex().
|
private |
Definition at line 1273 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), initCuts(), initIndex(), and PFJetIDSelectionFunctor().
|
private |
Definition at line 1272 of file PFJetIDSelectionFunctor.h.
Referenced by firstDataCuts(), initCuts(), initIndex(), operator()(), and PFJetIDSelectionFunctor().