CMS 3D CMS Logo

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

#include <PileupJetIdProducer.h>

Public Member Functions

bool applyConstituentWeight () const
 
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
 
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > const & vAlgoGBRForestsAndConstants () const
 

Private Attributes

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

Detailed Description

Definition at line 49 of file PileupJetIdProducer.h.

Constructor & Destructor Documentation

◆ GBRForestsAndConstants()

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

Definition at line 23 of file PileupJetIdProducer.cc.

References Puppi_cff::algos, applyConstituentWeight_, cms::cuda::assert(), edm::ParameterSet::getParameter(), residualsFromTxt_, residualsTxt_, runMvas_, PileupJetID_cfi::srcConstituentWeights, and vAlgoGBRForestsAndConstants_.

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

Member Function Documentation

◆ applyConstituentWeight()

bool GBRForestsAndConstants::applyConstituentWeight ( ) const
inline

Definition at line 64 of file PileupJetIdProducer.h.

References applyConstituentWeight_.

Referenced by PileupJetIdProducer::produce().

◆ applyJec()

bool GBRForestsAndConstants::applyJec ( ) const
inline

Definition at line 60 of file PileupJetIdProducer.h.

References applyJec_.

Referenced by PileupJetIdProducer::produce().

60 { return applyJec_; }

◆ inputIsCorrected()

bool GBRForestsAndConstants::inputIsCorrected ( ) const
inline

Definition at line 59 of file PileupJetIdProducer.h.

References inputIsCorrected_.

Referenced by PileupJetIdProducer::produce().

◆ jec()

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

Definition at line 61 of file PileupJetIdProducer.h.

References jec_.

Referenced by PileupJetIdProducer::PileupJetIdProducer().

61 { return jec_; }

◆ produceJetIds()

bool GBRForestsAndConstants::produceJetIds ( ) const
inline

◆ residualsFromTxt()

bool GBRForestsAndConstants::residualsFromTxt ( ) const
inline

◆ residualsTxt()

edm::FileInPath const& GBRForestsAndConstants::residualsTxt ( ) const
inline

Definition at line 63 of file PileupJetIdProducer.h.

References residualsTxt_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

63 { return residualsTxt_; }
edm::FileInPath residualsTxt_

◆ runMvas()

bool GBRForestsAndConstants::runMvas ( ) const
inline

◆ vAlgoGBRForestsAndConstants()

std::vector<PileupJetIdAlgo::AlgoGBRForestsAndConstants> const& GBRForestsAndConstants::vAlgoGBRForestsAndConstants ( ) const
inline

Definition at line 53 of file PileupJetIdProducer.h.

References vAlgoGBRForestsAndConstants_.

Referenced by PileupJetIdProducer::PileupJetIdProducer().

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

Member Data Documentation

◆ applyConstituentWeight_

bool GBRForestsAndConstants::applyConstituentWeight_
private

Definition at line 76 of file PileupJetIdProducer.h.

Referenced by applyConstituentWeight(), and GBRForestsAndConstants().

◆ applyJec_

bool GBRForestsAndConstants::applyJec_
private

Definition at line 72 of file PileupJetIdProducer.h.

Referenced by applyJec().

◆ inputIsCorrected_

bool GBRForestsAndConstants::inputIsCorrected_
private

Definition at line 71 of file PileupJetIdProducer.h.

Referenced by inputIsCorrected().

◆ jec_

std::string GBRForestsAndConstants::jec_
private

Definition at line 73 of file PileupJetIdProducer.h.

Referenced by jec().

◆ produceJetIds_

bool GBRForestsAndConstants::produceJetIds_
private

Definition at line 70 of file PileupJetIdProducer.h.

Referenced by produceJetIds().

◆ residualsFromTxt_

bool GBRForestsAndConstants::residualsFromTxt_
private

Definition at line 74 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsFromTxt().

◆ residualsTxt_

edm::FileInPath GBRForestsAndConstants::residualsTxt_
private

Definition at line 75 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsTxt().

◆ runMvas_

bool GBRForestsAndConstants::runMvas_
private

Definition at line 69 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and runMvas().

◆ vAlgoGBRForestsAndConstants_

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

Definition at line 67 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and vAlgoGBRForestsAndConstants().