CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
JetIDSelectionFunctor Class Reference

Jet selector for pat::Jets and for CaloJets. More...

#include "PhysicsTools/Utilities/interface/JetIDSelectionFunctor.h"

Inheritance diagram for JetIDSelectionFunctor:
Selector< pat::Jet >

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 &parameters, edm::ConsumesCollector &iC)
 
 JetIDSelectionFunctor (edm::ParameterSet const &parameters)
 
 JetIDSelectionFunctor (Version_t version, Quality_t quality)
 
bool operator() (const pat::Jet &jet, pat::strbitset &ret)
 This provides the interface for base classes to select objects. More...
 
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::Jetconst &t)
 This provides an alternative signature without the second ret. More...
 
virtual bool operator() (pat::Jetconst &t, edm::EventBase const &e, pat::strbitset &ret)
 This provides an alternative signature that includes extra information. More...
 
virtual bool operator() (pat::Jetconst &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 ()
 

Private Attributes

index_type index_EF_EMF_
 
index_type index_EF_N90Hits_
 
index_type index_LOOSE_als_
 
index_type index_LOOSE_AOD_EMF_
 
index_type index_LOOSE_AOD_fHPD_
 
index_type index_LOOSE_AOD_N90Hits_
 
index_type index_LOOSE_EMF_
 
index_type index_LOOSE_fHPD_
 
index_type index_LOOSE_fls_
 
index_type index_LOOSE_foot_
 
index_type index_LOOSE_N90Hits_
 
index_type index_LOOSE_nHit_
 
index_type index_MINIMAL_EMF_
 
index_type index_TIGHT_als_
 
index_type index_TIGHT_EMF_
 
index_type index_TIGHT_fHPD_
 
index_type index_TIGHT_fls_
 
index_type index_TIGHT_foot_
 
index_type index_TIGHT_nHit_
 
index_type index_widths_
 
Quality_t quality_
 
Version_t version_
 

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...
 

Detailed Description

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.

Author
Salvatore Rappoccio (Update: Amnon Harel)
Version
Id:
JetIDSelectionFunctor.h,v 1.15 2010/08/31 20:31:50 srappocc Exp

Definition at line 32 of file JetIDSelectionFunctor.h.

Member Enumeration Documentation

Enumerator
MINIMAL 
LOOSE_AOD 
LOOSE 
TIGHT 
N_QUALITY 

Definition at line 37 of file JetIDSelectionFunctor.h.

Enumerator
CRAFT08 
PURE09 
DQM09 
N_VERSIONS 

Definition at line 36 of file JetIDSelectionFunctor.h.

Constructor & Destructor Documentation

JetIDSelectionFunctor::JetIDSelectionFunctor ( )
inline

Definition at line 39 of file JetIDSelectionFunctor.h.

JetIDSelectionFunctor::JetIDSelectionFunctor ( edm::ParameterSet const &  parameters,
edm::ConsumesCollector iC 
)
inline

Definition at line 42 of file JetIDSelectionFunctor.h.

JetIDSelectionFunctor::JetIDSelectionFunctor ( edm::ParameterSet const &  parameters)
inline

Definition at line 48 of file JetIDSelectionFunctor.h.

JetIDSelectionFunctor::JetIDSelectionFunctor ( Version_t  version,
Quality_t  quality 
)
inline

Definition at line 75 of file JetIDSelectionFunctor.h.

Member Function Documentation

unsigned int JetIDSelectionFunctor::count_hits ( const std::vector< CaloTowerPtr > &  towers)
inline

Definition at line 230 of file JetIDSelectionFunctor.h.

bool JetIDSelectionFunctor::craft08Cuts ( reco::Candidate::LorentzVector const &  correctedP4,
double  emEnergyFraction,
reco::JetID const &  jetID,
pat::strbitset ret 
)
inline

Definition at line 324 of file JetIDSelectionFunctor.h.

bool JetIDSelectionFunctor::fwd09Cuts ( reco::Candidate::LorentzVector const &  rawP4,
double  emEnergyFraction,
double  etaWidth,
double  phiWidth,
unsigned int  nHit,
reco::JetID const &  jetID,
pat::strbitset ret 
)
inline

Definition at line 408 of file JetIDSelectionFunctor.h.

void JetIDSelectionFunctor::initialize ( Version_t  version,
Quality_t  quality 
)
inline

Definition at line 79 of file JetIDSelectionFunctor.h.

bool JetIDSelectionFunctor::operator() ( const pat::Jet t,
pat::strbitset ret 
)
inlinevirtual

This provides the interface for base classes to select objects.

Implements Selector< pat::Jet >.

Definition at line 243 of file JetIDSelectionFunctor.h.

bool JetIDSelectionFunctor::operator() ( reco::Candidate::LorentzVector const &  correctedP4,
double  emEnergyFraction,
reco::JetID const &  jetID,
pat::strbitset ret 
)
inline

Definition at line 272 of file JetIDSelectionFunctor.h.

virtual bool JetIDSelectionFunctor::operator() ( reco::Candidate::LorentzVector const &  correctedP4,
double  emEnergyFraction,
reco::JetID const &  jetID 
)
inlinevirtual

accessor like previous, without the ret

Definition at line 283 of file JetIDSelectionFunctor.h.

bool JetIDSelectionFunctor::operator() ( reco::CaloJet const &  jet,
reco::JetID const &  jetID,
pat::strbitset ret 
)
inline

Definition at line 297 of file JetIDSelectionFunctor.h.

virtual bool JetIDSelectionFunctor::operator() ( reco::CaloJet const &  jet,
reco::JetID const &  jetID 
)
inlinevirtual

accessor like previous, without the ret

Definition at line 312 of file JetIDSelectionFunctor.h.

Member Data Documentation

index_type JetIDSelectionFunctor::index_EF_EMF_
private

Definition at line 545 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_EF_N90Hits_
private

Definition at line 544 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_als_
private

Definition at line 535 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_AOD_EMF_
private

Definition at line 525 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_AOD_fHPD_
private

Definition at line 523 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_AOD_N90Hits_
private

Definition at line 524 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_EMF_
private

Definition at line 529 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_fHPD_
private

Definition at line 527 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_fls_
private

Definition at line 536 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_foot_
private

Definition at line 537 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_N90Hits_
private

Definition at line 528 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_LOOSE_nHit_
private

Definition at line 534 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_MINIMAL_EMF_
private

Definition at line 521 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_als_
private

Definition at line 540 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_EMF_
private

Definition at line 532 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_fHPD_
private

Definition at line 531 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_fls_
private

Definition at line 541 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_foot_
private

Definition at line 542 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_TIGHT_nHit_
private

Definition at line 539 of file JetIDSelectionFunctor.h.

index_type JetIDSelectionFunctor::index_widths_
private

Definition at line 543 of file JetIDSelectionFunctor.h.

Quality_t JetIDSelectionFunctor::quality_
private

Definition at line 519 of file JetIDSelectionFunctor.h.

Version_t JetIDSelectionFunctor::version_
private

Definition at line 518 of file JetIDSelectionFunctor.h.