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"
#include "RecoBTau/JetTagComputer/interface/JetTagComputerRecord.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 22 of file GenericMVAJetTagComputer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

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