test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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/Utils/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

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

Definition at line 486 of file MVAJetPuId.cc.

Referenced by MVAJetPuId::initVariables().

Function Documentation

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

Definition at line 122 of file MVAJetPuId.cc.

Referenced by MVAJetPuId::computeIdVariables().

123 {
124  size_t sz = vec.size();
125  a = ( sz > 0 ? vec[0] : 0. );
126  b = ( sz > 1 ? vec[1] : 0. );
127  c = ( sz > 2 ? vec[2] : 0. );
128  d = ( sz > 3 ? vec[3] : 0. );
129 }
tuple d
Definition: ztail.py:151
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 132 of file MVAJetPuId.cc.

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

Referenced by MVAJetPuId::computeIdVariables().

133 {
134  pt = p.pt();
135  eta = p.eta();
136  phi = p.phi();
137 }
virtual double pt() const =0
transverse momentum
Geom::Phi< T > phi() const
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity

Variable Documentation

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

Definition at line 14 of file MVAJetPuId.cc.

Referenced by MVAJetPuId::initVariables(), and PileupJetIdAlgo::initVariables().