CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoBTau/JetTagComputer/src/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().

{
        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;
        }
}