![]() |
![]() |
#include <algorithm>
#include <iostream>
#include <string>
#include <memory>
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "CondFormats/PhysicsToolsObjects/interface/MVAComputer.h"
#include "CondFormats/DataRecord/interface/BTauGenericMVAJetTagComputerRcd.h"
#include "DataFormats/Common/interface/RefToBase.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "DataFormats/BTauReco/interface/TaggingVariable.h"
#include "RecoBTau/JetTagComputer/interface/GenericMVAComputer.h"
#include "RecoBTau/JetTagComputer/interface/GenericMVAJetTagComputer.h"
Go to the source code of this file.
Functions | |
static std::vector< std::string > | getCalibrationLabels (const edm::ParameterSet ¶ms, std::auto_ptr< TagInfoMVACategorySelector > &selector) |
static std::vector<std::string> getCalibrationLabels | ( | const edm::ParameterSet & | params, |
std::auto_ptr< TagInfoMVACategorySelector > & | selector | ||
) | [static] |
Definition at line 21 of file GenericMVAJetTagComputer.cc.
References edm::ParameterSet::getParameter().
{ if (params.getParameter<bool>("useCategories")) { selector = std::auto_ptr<TagInfoMVACategorySelector>( new TagInfoMVACategorySelector(params)); return selector->getCategoryLabels(); } else { std::string calibrationRecord = params.getParameter<std::string>("calibrationRecord"); std::vector<std::string> calibrationLabels; calibrationLabels.push_back(calibrationRecord); return calibrationLabels; } }