CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
MVAJetIdMaker.cc File Reference
#include "JetMETCorrections/Objects/interface/JetCorrectionsRecord.h"
#include "JetMETCorrections/Objects/interface/JetCorrector.h"
#include "DQM/PhysicsHWW/interface/MVAJetIdMaker.h"

Go to the source code of this file.

Typedefs

typedef math::XYZTLorentzVectorF LorentzVector
 

Functions

bool passPFLooseId (const reco::PFJet *iJet)
 

Typedef Documentation

Definition at line 5 of file MVAJetIdMaker.cc.

Function Documentation

bool passPFLooseId ( const reco::PFJet iJet)

Definition at line 18 of file MVAJetIdMaker.cc.

References reco::PFJet::chargedEmEnergy(), reco::PFJet::chargedHadronEnergy(), reco::PFJet::chargedMultiplicity(), reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), reco::Jet::nConstituents(), reco::PFJet::neutralEmEnergy(), and reco::PFJet::neutralHadronEnergy().

18  {
19  if(iJet->energy()== 0) return false;
20  if(iJet->neutralHadronEnergy()/iJet->energy() > 0.99) return false;
21  if(iJet->neutralEmEnergy()/iJet->energy() > 0.99) return false;
22  if(iJet->nConstituents() < 2) return false;
23  if(iJet->chargedHadronEnergy()/iJet->energy() <= 0 && fabs(iJet->eta()) < 2.4 ) return false;
24  if(iJet->chargedEmEnergy()/iJet->energy() > 0.99 && fabs(iJet->eta()) < 2.4 ) return false;
25  if(iJet->chargedMultiplicity() < 1 && fabs(iJet->eta()) < 2.4 ) return false;
26  return true;
27 }
float chargedEmEnergy() const
chargedEmEnergy
Definition: PFJet.h:142
int chargedMultiplicity() const
chargedMultiplicity
Definition: PFJet.h:155
virtual double eta() const
momentum pseudorapidity
float neutralEmEnergy() const
neutralEmEnergy
Definition: PFJet.h:150
virtual double energy() const
energy
virtual int nConstituents() const
of constituents
Definition: Jet.h:65
float neutralHadronEnergy() const
neutralHadronEnergy
Definition: PFJet.h:102
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: PFJet.h:98