CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::AlgoGBRForestsAndConstants
vAlgoGBRForestsAndConstants_
 

Detailed Description

Definition at line 49 of file PileupJetIdProducer.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file PileupJetIdProducer.cc.

References Puppi_cff::algos, cms::cuda::assert(), edm::ParameterSet::getParameter(), residualsFromTxt_, residualsTxt_, runMvas_, 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")),
30  usePuppi_(iConfig.getParameter<bool>("usePuppi")) {
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 }
assert(be >=bs)
tuple algos
Definition: Puppi_cff.py:76
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > vAlgoGBRForestsAndConstants_
edm::FileInPath residualsTxt_

Member Function Documentation

bool GBRForestsAndConstants::applyJec ( ) const
inline

Definition at line 60 of file PileupJetIdProducer.h.

References applyJec_.

Referenced by PileupJetIdProducer::produce().

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

Definition at line 59 of file PileupJetIdProducer.h.

References inputIsCorrected_.

Referenced by PileupJetIdProducer::produce().

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

Definition at line 61 of file PileupJetIdProducer.h.

References jec_.

Referenced by PileupJetIdProducer::PileupJetIdProducer().

61 { return jec_; }
bool GBRForestsAndConstants::produceJetIds ( ) const
inline
bool GBRForestsAndConstants::residualsFromTxt ( ) const
inline

Definition at line 62 of file PileupJetIdProducer.h.

References residualsFromTxt_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

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_
bool GBRForestsAndConstants::runMvas ( ) const
inline
bool GBRForestsAndConstants::usePuppi ( ) const
inline

Definition at line 64 of file PileupJetIdProducer.h.

References usePuppi_.

Referenced by PileupJetIdProducer::produce().

64 { return usePuppi_; }
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

bool GBRForestsAndConstants::applyJec_
private

Definition at line 72 of file PileupJetIdProducer.h.

Referenced by applyJec().

bool GBRForestsAndConstants::inputIsCorrected_
private

Definition at line 71 of file PileupJetIdProducer.h.

Referenced by inputIsCorrected().

std::string GBRForestsAndConstants::jec_
private

Definition at line 73 of file PileupJetIdProducer.h.

Referenced by jec().

bool GBRForestsAndConstants::produceJetIds_
private

Definition at line 70 of file PileupJetIdProducer.h.

Referenced by produceJetIds().

bool GBRForestsAndConstants::residualsFromTxt_
private

Definition at line 74 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsFromTxt().

edm::FileInPath GBRForestsAndConstants::residualsTxt_
private

Definition at line 75 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and residualsTxt().

bool GBRForestsAndConstants::runMvas_
private

Definition at line 69 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and runMvas().

bool GBRForestsAndConstants::usePuppi_
private

Definition at line 76 of file PileupJetIdProducer.h.

Referenced by usePuppi().

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

Definition at line 67 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and vAlgoGBRForestsAndConstants().