CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
GenericMVAJetTagComputer.cc File Reference
#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 &params, std::auto_ptr< TagInfoMVACategorySelector > &selector)
 

Function Documentation

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

23 {
24  if (params.getParameter<bool>("useCategories")) {
25  selector = std::auto_ptr<TagInfoMVACategorySelector>(
26  new TagInfoMVACategorySelector(params));
27 
28  return selector->getCategoryLabels();
29  } else {
30  std::string calibrationRecord =
31  params.getParameter<std::string>("calibrationRecord");
32 
33  std::vector<std::string> calibrationLabels;
34  calibrationLabels.push_back(calibrationRecord);
35  return calibrationLabels;
36  }
37 }
T getParameter(std::string const &) const