CMS 3D CMS Logo

Macros | Functions | Variables
PileupJetIdAlgo.cc File Reference
#include "RecoJets/JetProducers/interface/PileupJetIdAlgo.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 "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CommonTools/MVAUtils/interface/GBRForestTools.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include <utility>

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

◆ INIT_VARIABLE

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

Definition at line 789 of file PileupJetIdAlgo.cc.

Referenced by PileupJetIdAlgo::initVariables().

Function Documentation

◆ assign()

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

Definition at line 139 of file PileupJetIdAlgo.cc.

References a, b, HltBtagPostValidation_cff::c, and ztail::d.

Referenced by PileupJetIdAlgo::computeIdVariables(), and PTStatistics::PTStatistics().

139  {
140  size_t sz = vec.size();
141  a = (sz > 0 ? vec[0] : 0.);
142  b = (sz > 1 ? vec[1] : 0.);
143  c = (sz > 2 ? vec[2] : 0.);
144  d = (sz > 3 ? vec[3] : 0.);
145 }
d
Definition: ztail.py:151
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ setPtEtaPhi()

void setPtEtaPhi ( const reco::Candidate p,
float &  pt,
float &  eta,
float &  phi 
)

Variable Documentation

◆ large_val

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