CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GBRForestsAndConstants Class Reference

#include <PileupJetIdProducer.h>

Public Member Functions

bool applyJec () const
 
 GBRForestsAndConstants (edm::ParameterSet const &)
 
bool inputIsCorrected () const
 
std::string const & jec () const
 
bool produceJetIds () const
 
bool residualsFromTxt () const
 
edm::FileInPath const & residualsTxt () const
 
bool runMvas () const
 
bool usePuppi () const
 
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > const & vAlgoGBRForestsAndConstants () const
 

Private Attributes

bool applyJec_
 
bool inputIsCorrected_
 
std::string jec_
 
bool produceJetIds_
 
bool residualsFromTxt_
 
edm::FileInPath residualsTxt_
 
bool runMvas_
 
bool usePuppi_
 
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstantsvAlgoGBRForestsAndConstants_
 

Detailed Description

Definition at line 50 of file PileupJetIdProducer.h.

Constructor & Destructor Documentation

GBRForestsAndConstants::GBRForestsAndConstants ( edm::ParameterSet const &  iConfig)

Definition at line 21 of file PileupJetIdProducer.cc.

References hltMVAJetPuId_cff::algos, edm::ParameterSet::getParameter(), residualsFromTxt_, residualsTxt_, runMvas_, and vAlgoGBRForestsAndConstants_.

21  :
22  runMvas_(iConfig.getParameter<bool>("runMvas")),
23  produceJetIds_(iConfig.getParameter<bool>("produceJetIds")),
24  inputIsCorrected_(iConfig.getParameter<bool>("inputIsCorrected")),
25  applyJec_(iConfig.getParameter<bool>("applyJec")),
26  jec_(iConfig.getParameter<std::string>("jec")),
27  residualsFromTxt_(iConfig.getParameter<bool>("residualsFromTxt")),
28  usePuppi_(iConfig.getParameter<bool>("usePuppi")) {
29 
30  if (residualsFromTxt_) {
31  residualsTxt_ = iConfig.getParameter<edm::FileInPath>("residualsTxt");
32  }
33 
34  std::vector<edm::ParameterSet> algos = iConfig.getParameter<std::vector<edm::ParameterSet> >("algos");
35  for (auto const& algoPset : algos) {
36  vAlgoGBRForestsAndConstants_.emplace_back(algoPset, runMvas_);
37  }
38 
39  if (!runMvas_) {
40  assert(algos.size() == 1);
41  }
42 }
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > vAlgoGBRForestsAndConstants_
edm::FileInPath residualsTxt_

Member Function Documentation

bool GBRForestsAndConstants::applyJec ( ) const
inline

Definition at line 62 of file PileupJetIdProducer.h.

References applyJec_.

Referenced by PileupJetIdProducer::produce().

62 { return applyJec_; }
bool GBRForestsAndConstants::inputIsCorrected ( ) const
inline

Definition at line 61 of file PileupJetIdProducer.h.

References inputIsCorrected_.

Referenced by PileupJetIdProducer::produce().

std::string const& GBRForestsAndConstants::jec ( ) const
inline

Definition at line 63 of file PileupJetIdProducer.h.

References jec_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector(), and PileupJetIdProducer::produce().

63 { return jec_; }
bool GBRForestsAndConstants::produceJetIds ( ) const
inline
bool GBRForestsAndConstants::residualsFromTxt ( ) const
inline
edm::FileInPath const& GBRForestsAndConstants::residualsTxt ( ) const
inline

Definition at line 65 of file PileupJetIdProducer.h.

References residualsTxt_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

65 { return residualsTxt_; }
edm::FileInPath residualsTxt_
bool GBRForestsAndConstants::runMvas ( ) const
inline
bool GBRForestsAndConstants::usePuppi ( ) const
inline

Definition at line 66 of file PileupJetIdProducer.h.

References usePuppi_.

Referenced by PileupJetIdProducer::produce().

66 { return usePuppi_; }
std::vector<PileupJetIdAlgo::AlgoGBRForestsAndConstants> const& GBRForestsAndConstants::vAlgoGBRForestsAndConstants ( ) const
inline

Definition at line 55 of file PileupJetIdProducer.h.

References vAlgoGBRForestsAndConstants_.

Referenced by PileupJetIdProducer::PileupJetIdProducer().

55  {
57  }
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > vAlgoGBRForestsAndConstants_

Member Data Documentation

bool GBRForestsAndConstants::applyJec_
private

Definition at line 75 of file PileupJetIdProducer.h.

Referenced by applyJec().

bool GBRForestsAndConstants::inputIsCorrected_
private

Definition at line 74 of file PileupJetIdProducer.h.

Referenced by inputIsCorrected().

std::string GBRForestsAndConstants::jec_
private

Definition at line 76 of file PileupJetIdProducer.h.

Referenced by jec().

bool GBRForestsAndConstants::produceJetIds_
private

Definition at line 73 of file PileupJetIdProducer.h.

Referenced by produceJetIds().

bool GBRForestsAndConstants::residualsFromTxt_
private

Definition at line 77 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsFromTxt().

edm::FileInPath GBRForestsAndConstants::residualsTxt_
private

Definition at line 78 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsTxt().

bool GBRForestsAndConstants::runMvas_
private

Definition at line 72 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and runMvas().

bool GBRForestsAndConstants::usePuppi_
private

Definition at line 79 of file PileupJetIdProducer.h.

Referenced by usePuppi().

std::vector<PileupJetIdAlgo::AlgoGBRForestsAndConstants> GBRForestsAndConstants::vAlgoGBRForestsAndConstants_
private

Definition at line 70 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and vAlgoGBRForestsAndConstants().