#include <DeepTauBase.h>
Definition at line 30 of file DeepTauBase.h.
◆ TauWPThreshold()
deep_tau::TauWPThreshold::TauWPThreshold |
( |
const std::string & |
cut_str | ) |
|
|
explicit |
Definition at line 14 of file DeepTauBase.cc.
15 bool simple_value =
false;
19 simple_value = (
pos == cut_str.size());
20 }
catch (std::invalid_argument&) {
21 }
catch (std::out_of_range&) {
25 "[&](double *x, double *p) { const int decayMode = p[0];"
26 "const double pt = p[1]; const double eta = p[2];";
27 static const int n_params = 3;
28 static const auto handler = [](
int, Bool_t,
const char*,
const char*) ->
void {};
31 auto old_handler = SetErrorHandler(handler);
32 fn_ = std::make_unique<TF1>(
"fn_", fn_str.c_str(), 0, 1, n_params);
33 SetErrorHandler(old_handler);
35 throw cms::Exception(
"TauWPThreshold: invalid formula") <<
"Invalid WP cut formula = '" << cut_str <<
"'.";
References fn_, createfilelist::int, ZMuMuAnalysisNtupler_cff::prefix, AlCaHLTBitMon_QueryRunRegistry::string, and value_.
◆ operator()()
double deep_tau::TauWPThreshold::operator() |
( |
const pat::Tau & |
tau | ) |
const |
◆ fn_
std::unique_ptr<TF1> deep_tau::TauWPThreshold::fn_ |
|
private |
◆ value_
double deep_tau::TauWPThreshold::value_ |
|
private |