Selects good Jets. More...
#include "PhysicsTools/PatUtils/JetSelector.h"
Public Member Functions | |
const ParticleStatus | filter (const unsigned int &index, const edm::View< JetType > &Jets, const JetValueMap *JetMap) const |
JetSelector (const JetSelection &config) | |
~JetSelector () | |
Private Attributes | |
std::unique_ptr< CaloJetSelector > | CaloJetSelector_ |
JetSelection | config_ |
Selects good Jets.
The Jet selector returns a flag (see pat::ParticleStatus) based on one of the possible selections: either cut-based or custom (user-defined set of cuts). This is driven by the configuration parameters (see the PATJetCleaner documentation for configuration details).
The parameters are passed to the selector through a JetSelection struct. (An adapter exists for use in CMSSW: reco::modules::ParameterAdapter<pat::JetSelector<JetIn>>.)
Definition at line 37 of file JetSelector.h.
pat::JetSelector< JetType >::JetSelector | ( | const JetSelection & | config | ) |
|
inline |
Definition at line 42 of file JetSelector.h.
References pat::JetSelector< JetType >::filter(), and diffTreeTool::index.
const ParticleStatus pat::JetSelector< JetType >::filter | ( | const unsigned int & | index, |
const edm::View< JetType > & | Jets, | ||
const JetValueMap * | JetMap | ||
) | const |
Returns 0 if Jet matches criteria, a flag otherwise. Criteria depend on the selector's configuration. Jet IDs only need to be provided if selection is based on it (cut, neural net or likelihood). Cluster shapes are for custom selection only.
Referenced by pat::JetSelector< JetType >::~JetSelector().
|
private |
Definition at line 60 of file JetSelector.h.
|
private |
Definition at line 58 of file JetSelector.h.