9 const std::string Trig::TrigTauMatchingTool::
10 kDefaultHLTLabel =
"TrigTauRecMerged";
12 const std::string Trig::TrigTauMatchingTool::
13 kDefaultL1Label =
"LVL1EmTauRoIs";
17 m_trigDecTool(
"TrigDecisionTool"),
18 m_hltLabel(kDefaultHLTLabel),
19 m_l1Label(kDefaultL1Label),
20 m_allowResurrectedDecision(false)
23 "Trigger decision tool for the trigger navigagtion");
25 "Label of the HLT tau jet container to use for matching");
27 "Label of the L1 EmTau container to use for matching");
29 "Allow use of resurrected decision when retrieving "
30 "trigger decisions and features.");
39 return StatusCode::SUCCESS;
46 return getHLT(
p,
trigger, deltaRCut) != 0;
54 if (m_trigDecTool->isPassed(
trigger, getCondition()))
58 double dR =
it->p4().DeltaR(
p->p4());
73 if (m_trigDecTool->isPassed(
trigger, getCondition()))
83 l1.SetPtEtaPhiM(
it->tauClus(),
it->eta(),
it->phi(), 1.0);
84 dR =
l1.DeltaR(
p->p4());
103 if (m_trigDecTool->isPassed(
trigger, getCondition()))
105 auto features = m_trigDecTool->features(
trigger, getCondition());
108 if (!m_hltLabel.empty())
118 if (tauFeatures.size() == 0)
121 <<
" has no features of type xAOD::TauJetContainer");
124 for (
auto &tauContainer : tauFeatures)
127 if (tauContainer.cptr())
129 for (
auto itTauHLT : *tauContainer.cptr())
131 double dR = itTauHLT->p4().DeltaR(
p->p4());
166 if (m_allowResurrectedDecision)
168 return TrigDefs::Physics | TrigDefs::allowResurrectedDecision;
172 return TrigDefs::Physics;