6 const std::vector<edm::ParameterSet>& mvaEstimatorConfigs
9 for(
auto &imva : mvaEstimatorConfigs ){
12 std::unique_ptr<AnyMVAEstimatorRun2Base> thisEstimator;
13 thisEstimator.reset(
nullptr);
22 const std::string full_name = estimator->getName() + estimator->getTag();
23 auto diditwork =
mvas_.emplace( full_name,
MVAPtr(estimator) );
24 if( !diditwork.second ) {
26 <<
"Tried already to make an mva of name: " << estimator->getName()
27 <<
" please ensure that the name of the MVA is unique!" << std::endl;
31 <<
" failed to find proper configuration for " 32 <<
"one of the MVAs in the main python script " << std::endl;
39 auto itr =
mvas_.find(mva);
40 if( itr ==
mvas_.end() ) {
42 << mva <<
" is not managed by this evaluator!";
VParameterSet const & getParameterSetVector(std::string const &name) const
std::unique_ptr< const AnyMVAEstimatorRun2Base > MVAPtr
MVAObjectCache(const edm::ParameterSet &conf)
const MVAPtr & getMVA(const std::string &mva) const
std::unordered_map< std::string, MVAPtr > mvas_
T get(const Candidate &c)