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

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