Creates and and MVAComputer from calibrations via EventSetup. More...
#include <MVAComputerCache.h>
Public Member Functions | |
MVAComputer * | get () |
const MVAComputer * | get () const |
MVAComputerCache () | |
operator bool () const | |
MVAComputer & | operator* () |
const MVAComputer & | operator* () const |
MVAComputer * | operator-> () |
const MVAComputer * | operator-> () const |
std::unique_ptr< MVAComputer > | release () |
void | reset () |
bool | update (const Calibration::MVAComputer *computer) |
bool | update (const Calibration::MVAComputerContainer *container, const char *calib) |
template<class T > | |
bool | update (const char *label, const edm::EventSetup &es) |
template<class T > | |
bool | update (const char *label, const edm::EventSetup &es, const char *calib) |
template<class T > | |
bool | update (const edm::EventSetup &es) |
template<class T > | |
bool | update (const edm::EventSetup &es, const char *calib) |
~MVAComputerCache () | |
Private Attributes | |
std::unique_ptr< MVAComputer > | computer |
Calibration::MVAComputer::CacheId | computerCacheId |
Calibration::MVAComputerContainer::CacheId | containerCacheId |
Creates and and MVAComputer from calibrations via EventSetup.
Definition at line 28 of file MVAComputerCache.h.
PhysicsTools::MVAComputerCache::MVAComputerCache | ( | ) |
Definition at line 9 of file MVAComputerCache.cc.
PhysicsTools::MVAComputerCache::~MVAComputerCache | ( | ) |
Definition at line 13 of file MVAComputerCache.cc.
|
inline |
Definition at line 72 of file MVAComputerCache.h.
References computer.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), and update().
|
inline |
Definition at line 73 of file MVAComputerCache.h.
References computer.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and submitPVValidationJobs.BetterConfigParser::getResultingSection().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::unique_ptr< MVAComputer > PhysicsTools::MVAComputerCache::release | ( | ) |
Definition at line 53 of file MVAComputerCache.cc.
References computer, computerCacheId, containerCacheId, and eostools::move().
|
inline |
bool PhysicsTools::MVAComputerCache::update | ( | const Calibration::MVAComputer * | computer | ) |
Definition at line 15 of file MVAComputerCache.cc.
References computer, computerCacheId, and containerCacheId.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), TtFullHadSignalSelMVAComputer::produce(), TtSemiLepJetCombMVAComputer::produce(), TtSemiLepSignalSelMVAComputer::produce(), and update().
bool PhysicsTools::MVAComputerCache::update | ( | const Calibration::MVAComputerContainer * | container, |
const char * | calib | ||
) |
Definition at line 33 of file MVAComputerCache.cc.
References PhysicsTools::Calibration::MVAComputerContainer::changed(), computer, computerCacheId, containerCacheId, PhysicsTools::Calibration::MVAComputerContainer::find(), PhysicsTools::Calibration::MVAComputerContainer::getCacheId(), mps_fire::result, and update().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
Definition at line 51 of file MVAComputerCache.h.
References get(), edm::EventSetup::get(), patZpeak::handle, label, and update().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
Definition at line 58 of file MVAComputerCache.h.
References L1EGammaCrystalsEmulatorProducer_cfi::calib, get(), edm::EventSetup::get(), patZpeak::handle, label, and update().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
Definition at line 37 of file MVAComputerCache.h.
References get(), edm::EventSetup::get(), patZpeak::handle, and update().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
inline |
Definition at line 44 of file MVAComputerCache.h.
References L1EGammaCrystalsEmulatorProducer_cfi::calib, get(), edm::EventSetup::get(), patZpeak::handle, and update().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 82 of file MVAComputerCache.h.
Referenced by get(), operator bool(), operator*(), operator->(), release(), reset(), and update().
|
private |
Definition at line 81 of file MVAComputerCache.h.
|
private |
Definition at line 80 of file MVAComputerCache.h.