16 sl_computer_(configuration.getParameter<edm::
ParameterSet>(
"slComputerCfg")),
17 mva_name_( configuration.getParameter<std::
string >(
"mvaName") ),
18 use_condDB_(configuration.getParameter<bool>(
"useCondDB")),
19 gbrForest_label_(configuration.getParameter<std::
string>(
"gbrForestLabel")),
20 weight_file_(configuration.getParameter<edm::
FileInPath>(
"weightFile")),
21 use_GBRForest_(configuration.getParameter<bool>(
"useGBRForest")),
22 use_adaBoost_(configuration.getParameter<bool>(
"useAdaBoost"))
25 for(
auto &
var : vars_definition) {
38 uses(0,
"pfImpactParameterTagInfos");
39 uses(1,
"pfInclusiveSecondaryVertexFinderCvsLTagInfos");
40 uses(2,
"softPFMuonsTagInfos");
41 uses(3,
"softPFElectronsTagInfos");
48 std::vector<std::string> variable_names;
52 variable_names.push_back(
var.name);
54 std::vector<std::string> spectators;
62 mvaID_->initializeGBRForest(
63 gbrForestHandle.product(), variable_names,
90 std::map<std::string, float>
inputs;
93 if(mva_var.has_index){
94 std::vector<float>
vals = vars.getList(mva_var.id,
false);
95 inputs[mva_var.name] = (vals.size() > mva_var.index) ? vals[mva_var.index] : mva_var.default_value;
99 inputs[mva_var.name] = vars.get(mva_var.id, mva_var.default_value);
T getParameter(std::string const &) const
const T & get(unsigned int index=0) const
virtual float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet parameters in the extened info collection
virtual void initialize(const JetTagComputerRecord &record) override
edm::FileInPath weight_file_
std::vector< MVAVar > variables_
const DepRecordT & getRecord() const
CombinedSVSoftLeptonComputer sl_computer_
void get(HolderT &iHolder) const
void uses(unsigned int id, const std::string &label)
std::string gbrForest_label_
TaggingVariableName getTaggingVariableName(const std::string &name)
reco::btau::TaggingVariableName id
std::vector< edm::ParameterSet > vpset
std::unique_ptr< TMVAEvaluator > mvaID_
CharmTagger(const edm::ParameterSet &)
explicit ctor
std::string fullPath() const