CMS 3D CMS Logo

Public Member Functions | Private Attributes

GenJetQualifier Class Reference

#include <GenJetQualifier.h>

List of all members.

Public Member Functions

 GenJetQualifier (const edm::ParameterSet &)
bool operator() (const reco::GenJet &)
 ~GenJetQualifier ()

Private Attributes

double maxEmf_
double minEmf_

Detailed Description

Definition at line 12 of file GenJetQualifier.h.


Constructor & Destructor Documentation

GenJetQualifier::GenJetQualifier ( const edm::ParameterSet cfg) [inline]

Definition at line 25 of file GenJetQualifier.h.

                                                          :
  minEmf_( cfg.getParameter<double>( "minEmfGenJet" ) ),
  maxEmf_( cfg.getParameter<double>( "maxEmfGenJet" ) )
{
}
GenJetQualifier::~GenJetQualifier ( ) [inline]

Definition at line 16 of file GenJetQualifier.h.

{};

Member Function Documentation

bool GenJetQualifier::operator() ( const reco::GenJet jet) [inline]

Definition at line 32 of file GenJetQualifier.h.

References reco::GenJet::emEnergy(), reco::LeafCandidate::energy(), maxEmf_, and minEmf_.

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

Member Data Documentation

double GenJetQualifier::maxEmf_ [private]

Definition at line 21 of file GenJetQualifier.h.

Referenced by operator()().

double GenJetQualifier::minEmf_ [private]

Definition at line 21 of file GenJetQualifier.h.

Referenced by operator()().