CMS 3D CMS Logo

Macros | Functions | Variables
MVAJetPuId.cc File Reference
#include "RecoJets/JetProducers/interface/MVAJetPuId.h"
#include "DataFormats/JetReco/interface/PFJet.h"
#include "FWCore/Framework/interface/Frameworkfwd.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 "CommonTools/MVAUtils/interface/TMVAZipReader.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "DataFormats/JetReco/interface/PileupJetIdentifier.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

◆ INIT_VARIABLE

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

Definition at line 496 of file MVAJetPuId.cc.

Function Documentation

◆ Assign()

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

Definition at line 111 of file MVAJetPuId.cc.

111  {
112  size_t sz = vec.size();
113  a = (sz > 0 ? vec[0] : 0.);
114  b = (sz > 1 ? vec[1] : 0.);
115  c = (sz > 2 ? vec[2] : 0.);
116  d = (sz > 3 ? vec[3] : 0.);
117 }

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

Referenced by MVAJetPuId::computeIdVariables().

◆ SetPtEtaPhi()

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

Definition at line 119 of file MVAJetPuId.cc.

119  {
120  pt = p.pt();
121  eta = p.eta();
122  phi = p.phi();
123 }

References PVValHelper::eta, AlCaHLTBitMon_ParallelJobs::p, PVValHelper::phi, and DiDispStaMuonMonitor_cfi::pt.

Referenced by MVAJetPuId::computeIdVariables().

Variable Documentation

◆ large_val

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

Definition at line 14 of file MVAJetPuId.cc.

Referenced by MVAJetPuId::initVariables().

DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
crabWrapper._
_
Definition: crabWrapper.py:19
PVValHelper::eta
Definition: PVValidationHelpers.h:69
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
PVValHelper::phi
Definition: PVValidationHelpers.h:68
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
ztail.d
d
Definition: ztail.py:151