23 :
weightFile_(parameters.existsAs<edm::FileInPath>(
"weightFile")
24 ? parameters.getParameter<edm::FileInPath>(
"weightFile")
26 useGBRForest_(parameters.existsAs<bool>(
"useGBRForest") ? parameters.getParameter<bool>(
"useGBRForest") :
false),
27 useAdaBoost_(parameters.existsAs<bool>(
"useAdaBoost") ? parameters.getParameter<bool>(
"useAdaBoost") :
false),
29 uses(0,
"svTagInfos");
31 mvaID = std::make_unique<TMVAEvaluator>();
36 std::vector<std::string>
variables({
"z_ratio",
45 "trackSip2dSigAboveCharm_0",
46 "trackSip2dSigAboveBottom_0",
47 "trackSip2dSigAboveBottom_1",
55 "tau_vertexEnergyRatio_0",
57 "tau_flightDistance2dSig_0",
59 "tau_vertexEnergyRatio_1",
60 "tau_flightDistance2dSig_1",
64 std::vector<std::string> spectators({
"massPruned",
"flavour",
"nbHadrons",
"ptPruned",
"etaPruned"});
83 std::map<std::string, float>
inputs;
113 value =
mvaID->evaluate(inputs);
edm::ESGetToken< GBRForest, GBRWrapperRcd > gbrForest_
CandidateBoostedDoubleSecondaryVertexComputer(const edm::ParameterSet ¶meters, Tokens tokens)
const T & get(unsigned int index=0) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
std::unique_ptr< TMVAEvaluator > mvaID
const edm::FileInPath weightFile_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Tokens(const edm::ParameterSet ¶meters, edm::ESConsumesCollector &&cc)
constexpr bool isInitialized() const noexcept
TaggingVariableList taggingVariables(void) const override
returns a description of the extended informations in a TaggingVariableList
T getParameter(std::string const &) const
void initialize(const JetTagComputerRecord &) override
float discriminator(const TagInfoHelper &tagInfos) const override
std::string fullPath() const