CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions | Variables
PileupJetIdAlgo.cc File Reference
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "DataFormats/JetReco/interface/PFJet.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "DQM/PhysicsHWW/interface/PileupJetIdAlgo.h"

Go to the source code of this file.

Macros

#define INIT_VARIABLE(NAME, TMVANAME, VAL)
 

Functions

void assign (const std::vector< float > &vec, float &a, float &b, float &c, float &d)
 
void setPtEtaPhi (const reco::Candidate &p, float &pt, float &eta, float &phi)
 

Variables

const float large_val = std::numeric_limits<float>::max()
 

Macro Definition Documentation

#define INIT_VARIABLE (   NAME,
  TMVANAME,
  VAL 
)
Value:
internalId_.NAME ## _ = VAL; \
variables_[ # NAME ] = std::make_pair(& internalId_.NAME ## _, VAL);

Definition at line 561 of file PileupJetIdAlgo.cc.

Referenced by PileupJetIdAlgo::initVariables().

Function Documentation

void assign ( const std::vector< float > &  vec,
float &  a,
float &  b,
float &  c,
float &  d 
)

Definition at line 173 of file PileupJetIdAlgo.cc.

174 {
175  size_t sz = vec.size();
176  a = ( sz > 0 ? vec[0] : 0. );
177  b = ( sz > 1 ? vec[1] : 0. );
178  c = ( sz > 2 ? vec[2] : 0. );
179  d = ( sz > 3 ? vec[3] : 0. );
180 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
void setPtEtaPhi ( const reco::Candidate p,
float &  pt,
float &  eta,
float &  phi 
)

Definition at line 182 of file PileupJetIdAlgo.cc.

References reco::Candidate::eta(), reco::Candidate::phi(), and reco::Candidate::pt().

Referenced by PileupJetIdAlgo::computeIdVariables().

183 {
184  pt = p.pt();
185  eta = p.eta();
186  phi = p.phi();
187 }
virtual float eta() const =0
momentum pseudorapidity
virtual float phi() const =0
momentum azimuthal angle
T eta() const
virtual float pt() const =0
transverse momentum
Definition: DDAxes.h:10

Variable Documentation

const float large_val = std::numeric_limits<float>::max()

Definition at line 14 of file PileupJetIdAlgo.cc.

Referenced by PileupJetIdAlgo::initVariables().