CMS 3D CMS Logo

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

#include <CaloJetQualifier.h>

Public Member Functions

 CaloJetQualifier (const edm::ParameterSet &)
 
bool operator() (const reco::CaloJet &)
 
 ~CaloJetQualifier ()
 

Private Attributes

double maxEmf_
 
double minEmf_
 

Detailed Description

Definition at line 12 of file CaloJetQualifier.h.

Constructor & Destructor Documentation

CaloJetQualifier::CaloJetQualifier ( const edm::ParameterSet cfg)
inline

Definition at line 25 of file CaloJetQualifier.h.

25  :
26  minEmf_( cfg.getParameter<double>( "minEmfCaloJet" ) ),
27  maxEmf_( cfg.getParameter<double>( "maxEmfCaloJet" ) )
28 {
29 }
T getParameter(std::string const &) const
CaloJetQualifier::~CaloJetQualifier ( )
inline

Definition at line 16 of file CaloJetQualifier.h.

16 {};

Member Function Documentation

bool CaloJetQualifier::operator() ( const reco::CaloJet jet)
inline

Definition at line 32 of file CaloJetQualifier.h.

References reco::CaloJet::emEnergyFraction(), maxEmf_, and minEmf_.

33 {
34  if( !(minEmf_<=jet.emEnergyFraction() && jet.emEnergyFraction()<=maxEmf_) )
35  // is the emf of the CaloJet in the specifiedc range?
36  return false;
37 
38  return true;
39 }
float emEnergyFraction() const
Definition: CaloJet.h:98

Member Data Documentation

double CaloJetQualifier::maxEmf_
private

Definition at line 21 of file CaloJetQualifier.h.

Referenced by operator()().

double CaloJetQualifier::minEmf_
private

Definition at line 21 of file CaloJetQualifier.h.

Referenced by operator()().