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 "CommonTools/Utils/interface/TMVAZipReader.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "TMVA/MethodBDT.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 674 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 127 of file PileupJetIdAlgo.cc.

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

128 {
129  size_t sz = vec.size();
130  a = ( sz > 0 ? vec[0] : 0. );
131  b = ( sz > 1 ? vec[1] : 0. );
132  c = ( sz > 2 ? vec[2] : 0. );
133  d = ( sz > 3 ? vec[3] : 0. );
134 }
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 136 of file PileupJetIdAlgo.cc.

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

Referenced by PileupJetIdAlgo::computeIdVariables(), and AlCaIsoTracksProducer::initializeGlobalCache().

137 {
138  pt = p.pt();
139  eta = p.eta();
140  phi = p.phi();
141 }
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
virtual double phi() const =0
momentum azimuthal angle

Variable Documentation

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

Definition at line 16 of file PileupJetIdAlgo.cc.

Referenced by PileupJetIdAlgo::initVariables().