22 {
23
24
25 using jTauLink_t = ElementLink<xAOD::jFexTauRoIContainer>;
26 SG::ReadDecorHandle<xAOD::eFexTauRoIContainer, jTauLink_t> jTauLinkAcc{
m_jTauLinkKey, ctx};
30 }
31 jTauLink_t jTauLink = jTauLinkAcc(eTau);
32 bool matched{jTauLink.isValid()};
33
34 if (matched) {
36
39 <<
", eFex et (100 MeV/counts) = " << eTau.
etTOB() <<
", jFex et (200 MeV/counts) = " << jTau->
tobEt() <<
", jFex iso (200 MeV/counts) = " << jTau->
tobIso()
41 } else {
43 <<
", eFex et (100 MeV/counts) = " << eTau.
etTOB() <<
", no matching jTau found"
45 }
46
47
49
50
51 for (const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
52 auto thr =
static_cast<TrigConf::L1Threshold_cTAU*
>(thrBase.get());
53
54
55
57
58
60
61
62
63 bool passEt = eTau.
etTOB() >
thr->thrValue100MeV(eTau.
iEta());
64
65 if (passIso && passeTAUWP && passEt) {
66 thresholdMask |= (1_u64<<
thr->mapping());
67 }
68
69 }
70
71 return thresholdMask;
72}
bool isPresent() const
Is the referenced container present in SG?
static bool checkeTAUWP(const xAOD::eFexTauRoI &eTau, const TrigConf::L1Threshold_cTAU &thr)
static bool checkIsolationWP(const xAOD::eFexTauRoI &eTau, const xAOD::jFexTauRoI &jTau, const TrigConf::L1Threshold_cTAU &thr)
int iPhi() const
Setter for the above.
int iEta() const
setter for the above
unsigned int tauOneThresholds() const
Tau Condition 1 (generic) results.
unsigned int etTOB() const
Cluster ET (TOB ET scale, 100 MeV/count)
unsigned int tauTwoThresholds() const
Tau Condition 2 (generic) results.
jFexTauRoI_v1 jFexTauRoI
Define the latest version of the jFexSRJetRoI class.