26 for (std::vector<std::string>::const_iterator iter =
labels.begin(); iter !=
labels.end(); iter++) {
38 <<
"GenericMVAComputerCache::getComputer Error occurred during update.\n" 39 <<
"Calibration record " <<
errorUpdatingLabel <<
" not found in MVAComputerContainer." << std::endl;
47 <<
"GenericMVAComputerCache::isEmpty Error occurred during update.\n" 48 <<
"Calibration record " <<
errorUpdatingLabel <<
" not found in MVAComputerContainer." << std::endl;
61 for (std::vector<IndividualComputer>::iterator iter =
computers.begin(); iter !=
computers.end(); iter++) {
63 if (iter->label.empty())
68 if (!
calib->contains(iter->label)) {
75 iter->computer.reset();
80 if (iter->computer.get() && !computerCalib->
changed(iter->cacheId)) {
86 iter->computer.reset();
92 iter->computer = std::make_unique<GenericMVAComputer>(computerCalib);
PhysicsTools::Calibration::MVAComputerContainer::CacheId cacheId
GenericMVAComputer const * getComputer(int index) const
std::string errorUpdatingLabel
bool update(const PhysicsTools::Calibration::MVAComputerContainer *calib)
GenericMVAComputerCache(const std::vector< std::string > &labels)
~GenericMVAComputerCache()
std::vector< IndividualComputer > computers