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")),
23 defaultValueNoTracks_(configuration.getParameter<
bool>(
"defaultValueNoTracks"))
26 for(
auto &
var : vars_definition) {
39 uses(0,
"pfImpactParameterTagInfos");
40 uses(1,
"pfInclusiveSecondaryVertexFinderCvsLTagInfos");
41 uses(2,
"softPFMuonsTagInfos");
42 uses(3,
"softPFElectronsTagInfos");
49 std::vector<std::string> variable_names;
53 variable_names.push_back(
var.name);
63 mvaID_->initializeGBRForest(
64 gbrForestHandle.product(), variable_names,
91 std::map<std::string, float>
inputs;
94 if(mva_var.has_index){
95 std::vector<float>
vals = vars.getList(mva_var.id,
false);
96 inputs[mva_var.name] = (vals.size() > mva_var.index) ? vals[mva_var.index] : mva_var.default_value;
100 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
void initialize(const JetTagComputerRecord &record) override
edm::FileInPath weight_file_
std::vector< MVAVar > variables_
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet parameters in the extened info collection
const DepRecordT getRecord() const
CombinedSVSoftLeptonComputer sl_computer_
void uses(unsigned int id, const std::string &label)
std::string gbrForest_label_
bool defaultValueNoTracks_
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