16 m_useCondDB(cfg.getParameter<
bool>(
"useCondDB")),
17 m_gbrForestLabel(cfg.existsAs<
std::
string>(
"gbrForestLabel") ? cfg.getParameter<
std::
string>(
"gbrForestLabel") :
""),
18 m_weightFile(cfg.existsAs<
edm::FileInPath>(
"weightFile") ? cfg.getParameter<
edm::FileInPath>(
"weightFile") :
edm::FileInPath()),
19 m_useGBRForest(cfg.existsAs<
bool>(
"useGBRForest") ? cfg.getParameter<
bool>(
"useGBRForest") :
false),
20 m_useAdaBoost(cfg.existsAs<
bool>(
"useAdaBoost") ? cfg.getParameter<
bool>(
"useAdaBoost") :
false)
29 std::vector<std::string>
variables({
"sip3d",
"sip2d",
"ptRel",
"deltaR",
"ratio",
"mva_e_pi"});
52 std::uniform_real_distribution<float> dist(0.
f,1.
f);
55 for (
unsigned int i = 0;
i < info.
leptons();
i++) {
60 float rndm = dist(random);
65 std::map<std::string,float>
inputs;
66 inputs[
"sip3d"] = sip3dsig;
67 inputs[
"sip2d"] = sip2dsig;
68 inputs[
"ptRel"] = properties.
ptRel;
69 inputs[
"deltaR"] = properties.
deltaR;
70 inputs[
"ratio"] = properties.
ratio;
71 inputs[
"mva_e_pi"] = properties.
elec_mva;
const T & get(unsigned int index=0) const
float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet parameters in the extened info collection
const SoftLeptonProperties & properties(size_t i) const
const btag::LeptonSelector m_selector
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
const bool m_useGBRForest
const edm::FileInPath m_weightFile
const DepRecordT getRecord() const
ElectronTagger(const edm::ParameterSet &)
explicit ctor
void uses(unsigned int id, const std::string &label)
Abs< T >::type abs(const T &t)
std::unique_ptr< TMVAEvaluator > mvaID
std::string fullPath() const
const std::string m_gbrForestLabel
void initialize(const JetTagComputerRecord &) override
unsigned int leptons(void) const