41 ATH_CHECK(m_JetCollectionKey.initialize());
46 <<
"calibration interface tool!");
50 std::transform(m_calibrationUncertainty.begin(), m_calibrationUncertainty.end(),
51 m_calibrationUncertainty.begin(),
tolower);
52 if (m_calibrationUncertainty.find(
"total") != string::npos) {
54 }
else if (m_calibrationUncertainty.find(
"syst") != string::npos) {
56 }
else if (m_calibrationUncertainty.find(
"stat") != string::npos) {
63 return StatusCode::SUCCESS;
73 EventContext& ctx = Gaudi::Hive::currentContext();
77 int njtag = (*jets).size();
79 <<
" found with " << njtag <<
" jets.");
81 for (
auto jetItr :
jets) {
83 double weight = (*jetItr)->getFlavourTagWeight(m_tagger);
93 std::pair<double, double> sfResult =
94 m_calibrationInterface->getScaleFactor(**jetItr,
label, m_operatingPoint, m_uncertaintyType);
95 std::pair<double, double> effResult =
96 m_calibrationInterface->getEfficiency(**jetItr,
label, m_operatingPoint, m_uncertaintyType);
101 <<
"(" << sfResult.second <<
")");
102 ATH_MSG_DEBUG(
" eff (unc.): " << effResult.first <<
"(" << effResult.second <<
")");
106 return StatusCode::SUCCESS;