CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloJetQualifier Class Reference

#include <CaloJetQualifier.h>

List of all members.

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.

                                                            :
  minEmf_( cfg.getParameter<double>( "minEmfCaloJet" ) ),
  maxEmf_( cfg.getParameter<double>( "maxEmfCaloJet" ) )
{
}
CaloJetQualifier::~CaloJetQualifier ( ) [inline]

Definition at line 16 of file CaloJetQualifier.h.

{};

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

{
  if( !(minEmf_<=jet.emEnergyFraction() && jet.emEnergyFraction()<=maxEmf_) )
    // is the emf of the CaloJet in the specifiedc range?
    return false;   
  
  return true;
}

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