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 49 of file PileupJetIdProducer.h.

Constructor & Destructor Documentation

◆ GBRForestsAndConstants()

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

Definition at line 21 of file PileupJetIdProducer.cc.

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  if (residualsFromTxt_) {
30  residualsTxt_ = iConfig.getParameter<edm::FileInPath>("residualsTxt");
31  }
32 
33  std::vector<edm::ParameterSet> algos = iConfig.getParameter<std::vector<edm::ParameterSet>>("algos");
34  for (auto const& algoPset : algos) {
35  vAlgoGBRForestsAndConstants_.emplace_back(algoPset, runMvas_);
36  }
37 
38  if (!runMvas_) {
39  assert(algos.size() == 1);
40  }
41 }

References hltPFPuppi_cfi::algos, cms::cuda::assert(), edm::ParameterSet::getParameter(), residualsFromTxt_, residualsTxt_, runMvas_, and vAlgoGBRForestsAndConstants_.

Member Function Documentation

◆ applyJec()

bool GBRForestsAndConstants::applyJec ( ) const
inline

Definition at line 60 of file PileupJetIdProducer.h.

60 { return applyJec_; }

References applyJec_.

Referenced by PileupJetIdProducer::produce().

◆ inputIsCorrected()

bool GBRForestsAndConstants::inputIsCorrected ( ) const
inline

Definition at line 59 of file PileupJetIdProducer.h.

59 { return inputIsCorrected_; }

References inputIsCorrected_.

Referenced by PileupJetIdProducer::produce().

◆ jec()

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

Definition at line 61 of file PileupJetIdProducer.h.

61 { return jec_; }

References jec_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

◆ produceJetIds()

bool GBRForestsAndConstants::produceJetIds ( ) const
inline

Definition at line 58 of file PileupJetIdProducer.h.

58 { return produceJetIds_; }

References produceJetIds_.

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

◆ residualsFromTxt()

bool GBRForestsAndConstants::residualsFromTxt ( ) const
inline

Definition at line 62 of file PileupJetIdProducer.h.

62 { return residualsFromTxt_; }

References residualsFromTxt_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

◆ residualsTxt()

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

Definition at line 63 of file PileupJetIdProducer.h.

63 { return residualsTxt_; }

References residualsTxt_.

Referenced by PileupJetIdProducer::initJetEnergyCorrector().

◆ runMvas()

bool GBRForestsAndConstants::runMvas ( ) const
inline

Definition at line 57 of file PileupJetIdProducer.h.

57 { return runMvas_; }

References runMvas_.

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

◆ usePuppi()

bool GBRForestsAndConstants::usePuppi ( ) const
inline

Definition at line 64 of file PileupJetIdProducer.h.

64 { return usePuppi_; }

References usePuppi_.

Referenced by PileupJetIdProducer::produce().

◆ vAlgoGBRForestsAndConstants()

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

Definition at line 53 of file PileupJetIdProducer.h.

53  {
55  }

References vAlgoGBRForestsAndConstants_.

Referenced by PileupJetIdProducer::PileupJetIdProducer().

Member Data Documentation

◆ 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().

◆ usePuppi_

bool GBRForestsAndConstants::usePuppi_
private

Definition at line 76 of file PileupJetIdProducer.h.

Referenced by usePuppi().

◆ vAlgoGBRForestsAndConstants_

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

Definition at line 67 of file PileupJetIdProducer.h.

Referenced by GBRForestsAndConstants(), and vAlgoGBRForestsAndConstants().

GBRForestsAndConstants::produceJetIds_
bool produceJetIds_
Definition: PileupJetIdProducer.h:70
GBRForestsAndConstants::usePuppi_
bool usePuppi_
Definition: PileupJetIdProducer.h:76
cms::cuda::assert
assert(be >=bs)
GBRForestsAndConstants::runMvas_
bool runMvas_
Definition: PileupJetIdProducer.h:69
edm::FileInPath
Definition: FileInPath.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hltPFPuppi_cfi.algos
algos
Definition: hltPFPuppi_cfi.py:18
GBRForestsAndConstants::applyJec_
bool applyJec_
Definition: PileupJetIdProducer.h:72
GBRForestsAndConstants::inputIsCorrected_
bool inputIsCorrected_
Definition: PileupJetIdProducer.h:71
GBRForestsAndConstants::residualsFromTxt_
bool residualsFromTxt_
Definition: PileupJetIdProducer.h:74
GBRForestsAndConstants::jec_
std::string jec_
Definition: PileupJetIdProducer.h:73
GBRForestsAndConstants::residualsTxt_
edm::FileInPath residualsTxt_
Definition: PileupJetIdProducer.h:75
GBRForestsAndConstants::vAlgoGBRForestsAndConstants_
std::vector< PileupJetIdAlgo::AlgoGBRForestsAndConstants > vAlgoGBRForestsAndConstants_
Definition: PileupJetIdProducer.h:67