CMS 3D CMS Logo

Defines | Functions | Variables

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/RecoJets/JetProducers/src/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 "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"

Go to the source code of this file.

Defines

#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()

Define Documentation

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

Definition at line 560 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 172 of file PileupJetIdAlgo.cc.

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

{
        size_t sz = vec.size();
        a = ( sz > 0 ? vec[0] : 0. );
        b = ( sz > 1 ? vec[1] : 0. );
        c = ( sz > 2 ? vec[2] : 0. );
        d = ( sz > 3 ? vec[3] : 0. );
}
void setPtEtaPhi ( const reco::Candidate p,
float &  pt,
float &  eta,
float &  phi 
)

Definition at line 181 of file PileupJetIdAlgo.cc.

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

Referenced by PileupJetIdAlgo::computeIdVariables().

{
        pt  = p.pt();
        eta = p.eta();
        phi = p.phi();
}

Variable Documentation

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

Definition at line 13 of file PileupJetIdAlgo.cc.

Referenced by PileupJetIdAlgo::initVariables().