CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
PFMETAlgorithmMVA Class Reference

#include <PFMETAlgorithmMVA.h>

Public Member Functions

void evaluateMVA ()
 
double getCovU1 () const
 
double getCovU2 () const
 
double getDPhi () const
 
reco::Candidate::LorentzVector getMEt () const
 
const reco::METCovMatrixgetMEtCov () const
 
double getU () const
 
void initialize (const edm::EventSetup &)
 
 PFMETAlgorithmMVA (const edm::ParameterSet &cfg)
 
void print (std::ostream &) const
 
void setHasPhotons (bool hasPhotons)
 
void setInput (const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::Vertex::Point > &)
 
 ~PFMETAlgorithmMVA ()
 

Private Member Functions

void computeMET ()
 
std::unique_ptr< float[]> createFloatVector (std::vector< std::string > variableNames)
 
const float evaluateCovU1 ()
 
const float evaluateCovU2 ()
 
const float evaluateDPhi ()
 
const float evaluateU ()
 
const float GetResponse (const GBRForest *Reader, std::vector< std::string > &variableNames)
 
const GBRForestloadMVAfromDB (const edm::EventSetup &es, const std::string &mvaName)
 
const GBRForestloadMVAfromFile (const edm::FileInPath &inputFileName, const std::string &mvaName)
 
const std::string updateVariableNames (std::string input)
 

Private Attributes

edm::ParameterSet cfg_
 
double chargedSumLeptonPx_
 
double chargedSumLeptonPy_
 
double dZcut_
 
bool hasPhotons_
 
bool loadMVAfromDB_
 
float * mvaInputCovU1_
 
float * mvaInputCovU2_
 
float * mvaInputDPhi_
 
float * mvaInputU_
 
reco::Candidate::LorentzVector mvaMEt_
 
reco::METCovMatrix mvaMEtCov_
 
std::string mvaNameCovU1_
 
std::string mvaNameCovU2_
 
std::string mvaNameDPhi_
 
std::string mvaNameU_
 
float mvaOutputCovU1_
 
float mvaOutputCovU2_
 
float mvaOutputDPhi_
 
float mvaOutputU_
 
const GBRForestmvaReaderCovU1_
 
const GBRForestmvaReaderCovU2_
 
const GBRForestmvaReaderDPhi_
 
const GBRForestmvaReaderU_
 
int mvaType_
 
double sumLeptonPx_
 
double sumLeptonPy_
 
MvaMEtUtilities utils_
 
std::map< std::string, float > var_
 
std::vector< std::string > varForCovU1_
 
std::vector< std::string > varForCovU2_
 
std::vector< std::string > varForDPhi_
 
std::vector< std::string > varForU_
 

Detailed Description

MVA based algorithm for computing the particle-flow missing Et

Authors
Phil Harris, CERN Christian Veelken, LLR

Definition at line 31 of file PFMETAlgorithmMVA.h.

Constructor & Destructor Documentation

PFMETAlgorithmMVA::PFMETAlgorithmMVA ( const edm::ParameterSet cfg)

Definition at line 93 of file PFMETAlgorithmMVA.cc.

PFMETAlgorithmMVA::~PFMETAlgorithmMVA ( )

Definition at line 107 of file PFMETAlgorithmMVA.cc.

Member Function Documentation

void PFMETAlgorithmMVA::computeMET ( )
private

Definition at line 244 of file PFMETAlgorithmMVA.cc.

std::unique_ptr< float[]> PFMETAlgorithmMVA::createFloatVector ( std::vector< std::string >  variableNames)
private

Definition at line 206 of file PFMETAlgorithmMVA.cc.

const float PFMETAlgorithmMVA::evaluateCovU1 ( )
private
const float PFMETAlgorithmMVA::evaluateCovU2 ( )
private
const float PFMETAlgorithmMVA::evaluateDPhi ( )
private
void PFMETAlgorithmMVA::evaluateMVA ( )

Definition at line 218 of file PFMETAlgorithmMVA.cc.

const float PFMETAlgorithmMVA::evaluateU ( )
private
double PFMETAlgorithmMVA::getCovU1 ( ) const
inline

Definition at line 55 of file PFMETAlgorithmMVA.h.

References mvaOutputCovU1_.

55 { return mvaOutputCovU1_; }
double PFMETAlgorithmMVA::getCovU2 ( ) const
inline

Definition at line 56 of file PFMETAlgorithmMVA.h.

References mvaOutputCovU2_.

56 { return mvaOutputCovU2_; }
double PFMETAlgorithmMVA::getDPhi ( ) const
inline

Definition at line 54 of file PFMETAlgorithmMVA.h.

References mvaOutputDPhi_.

54 { return mvaOutputDPhi_; }
reco::Candidate::LorentzVector PFMETAlgorithmMVA::getMEt ( ) const
inline

Definition at line 50 of file PFMETAlgorithmMVA.h.

References mvaMEt_.

50 { return mvaMEt_; }
reco::Candidate::LorentzVector mvaMEt_
const reco::METCovMatrix& PFMETAlgorithmMVA::getMEtCov ( ) const
inline

Definition at line 51 of file PFMETAlgorithmMVA.h.

References mvaMEtCov_.

51 { return mvaMEtCov_; }
reco::METCovMatrix mvaMEtCov_
const float PFMETAlgorithmMVA::GetResponse ( const GBRForest Reader,
std::vector< std::string > &  variableNames 
)
private

Definition at line 264 of file PFMETAlgorithmMVA.cc.

double PFMETAlgorithmMVA::getU ( ) const
inline

Definition at line 53 of file PFMETAlgorithmMVA.h.

References mvaOutputU_.

53 { return mvaOutputU_; }
void PFMETAlgorithmMVA::initialize ( const edm::EventSetup es)

Definition at line 118 of file PFMETAlgorithmMVA.cc.

const GBRForest * PFMETAlgorithmMVA::loadMVAfromDB ( const edm::EventSetup es,
const std::string &  mvaName 
)
private

Definition at line 86 of file PFMETAlgorithmMVA.cc.

const GBRForest * PFMETAlgorithmMVA::loadMVAfromFile ( const edm::FileInPath inputFileName,
const std::string &  mvaName 
)
private

Definition at line 52 of file PFMETAlgorithmMVA.cc.

void PFMETAlgorithmMVA::print ( std::ostream &  stream) const

Definition at line 272 of file PFMETAlgorithmMVA.cc.

void PFMETAlgorithmMVA::setHasPhotons ( bool  hasPhotons)
inline

Definition at line 41 of file PFMETAlgorithmMVA.h.

References hasPhotons_.

41 { hasPhotons_ = hasPhotons; }
void PFMETAlgorithmMVA::setInput ( const std::vector< reco::PUSubMETCandInfo > &  leptons,
const std::vector< reco::PUSubMETCandInfo > &  jets,
const std::vector< reco::PUSubMETCandInfo > &  pfCandidates,
const std::vector< reco::Vertex::Point > &  vertices 
)

Definition at line 146 of file PFMETAlgorithmMVA.cc.

const std::string PFMETAlgorithmMVA::updateVariableNames ( std::string  input)
private

Definition at line 20 of file PFMETAlgorithmMVA.cc.

Member Data Documentation

edm::ParameterSet PFMETAlgorithmMVA::cfg_
private

Definition at line 119 of file PFMETAlgorithmMVA.h.

double PFMETAlgorithmMVA::chargedSumLeptonPx_
private

Definition at line 105 of file PFMETAlgorithmMVA.h.

double PFMETAlgorithmMVA::chargedSumLeptonPy_
private

Definition at line 106 of file PFMETAlgorithmMVA.h.

double PFMETAlgorithmMVA::dZcut_
private

Definition at line 80 of file PFMETAlgorithmMVA.h.

bool PFMETAlgorithmMVA::hasPhotons_
private

Definition at line 78 of file PFMETAlgorithmMVA.h.

Referenced by setHasPhotons().

bool PFMETAlgorithmMVA::loadMVAfromDB_
private

Definition at line 117 of file PFMETAlgorithmMVA.h.

float* PFMETAlgorithmMVA::mvaInputCovU1_
private

Definition at line 89 of file PFMETAlgorithmMVA.h.

float* PFMETAlgorithmMVA::mvaInputCovU2_
private

Definition at line 90 of file PFMETAlgorithmMVA.h.

float* PFMETAlgorithmMVA::mvaInputDPhi_
private

Definition at line 88 of file PFMETAlgorithmMVA.h.

float* PFMETAlgorithmMVA::mvaInputU_
private

Definition at line 87 of file PFMETAlgorithmMVA.h.

reco::Candidate::LorentzVector PFMETAlgorithmMVA::mvaMEt_
private

Definition at line 108 of file PFMETAlgorithmMVA.h.

Referenced by getMEt().

reco::METCovMatrix PFMETAlgorithmMVA::mvaMEtCov_
private

Definition at line 110 of file PFMETAlgorithmMVA.h.

Referenced by getMEtCov().

std::string PFMETAlgorithmMVA::mvaNameCovU1_
private

Definition at line 74 of file PFMETAlgorithmMVA.h.

std::string PFMETAlgorithmMVA::mvaNameCovU2_
private

Definition at line 75 of file PFMETAlgorithmMVA.h.

std::string PFMETAlgorithmMVA::mvaNameDPhi_
private

Definition at line 73 of file PFMETAlgorithmMVA.h.

std::string PFMETAlgorithmMVA::mvaNameU_
private

Definition at line 72 of file PFMETAlgorithmMVA.h.

float PFMETAlgorithmMVA::mvaOutputCovU1_
private

Definition at line 94 of file PFMETAlgorithmMVA.h.

Referenced by getCovU1().

float PFMETAlgorithmMVA::mvaOutputCovU2_
private

Definition at line 95 of file PFMETAlgorithmMVA.h.

Referenced by getCovU2().

float PFMETAlgorithmMVA::mvaOutputDPhi_
private

Definition at line 93 of file PFMETAlgorithmMVA.h.

Referenced by getDPhi().

float PFMETAlgorithmMVA::mvaOutputU_
private

Definition at line 92 of file PFMETAlgorithmMVA.h.

Referenced by getU().

const GBRForest* PFMETAlgorithmMVA::mvaReaderCovU1_
private

Definition at line 114 of file PFMETAlgorithmMVA.h.

const GBRForest* PFMETAlgorithmMVA::mvaReaderCovU2_
private

Definition at line 115 of file PFMETAlgorithmMVA.h.

const GBRForest* PFMETAlgorithmMVA::mvaReaderDPhi_
private

Definition at line 113 of file PFMETAlgorithmMVA.h.

const GBRForest* PFMETAlgorithmMVA::mvaReaderU_
private

Definition at line 112 of file PFMETAlgorithmMVA.h.

int PFMETAlgorithmMVA::mvaType_
private

Definition at line 77 of file PFMETAlgorithmMVA.h.

double PFMETAlgorithmMVA::sumLeptonPx_
private

Definition at line 103 of file PFMETAlgorithmMVA.h.

double PFMETAlgorithmMVA::sumLeptonPy_
private

Definition at line 104 of file PFMETAlgorithmMVA.h.

MvaMEtUtilities PFMETAlgorithmMVA::utils_
private

Definition at line 70 of file PFMETAlgorithmMVA.h.

std::map<std::string, float> PFMETAlgorithmMVA::var_
private

Definition at line 84 of file PFMETAlgorithmMVA.h.

std::vector<std::string> PFMETAlgorithmMVA::varForCovU1_
private

Definition at line 99 of file PFMETAlgorithmMVA.h.

std::vector<std::string> PFMETAlgorithmMVA::varForCovU2_
private

Definition at line 100 of file PFMETAlgorithmMVA.h.

std::vector<std::string> PFMETAlgorithmMVA::varForDPhi_
private

Definition at line 98 of file PFMETAlgorithmMVA.h.

std::vector<std::string> PFMETAlgorithmMVA::varForU_
private

Definition at line 97 of file PFMETAlgorithmMVA.h.