|
ATLAS Offline Software
|
#include <cTauRoIThresholdsTool.h>
Definition at line 12 of file cTauRoIThresholdsTool.h.
◆ ExtraInfoRef
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
◆ ThrVec
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
◆ ThrVecRef
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
◆ cTauRoIThresholdsTool()
cTauRoIThresholdsTool::cTauRoIThresholdsTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
|
inline |
◆ decorateThresholds()
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
virtual StatusCode RoIThresholdsTool< T_RoI, T_RoIContainer, N_RoIContainer, N_ThresholdType >::decorateThresholds |
( |
const EventContext & |
eventContext | ) |
const |
|
inlineoverridevirtualinherited |
Definition at line 63 of file IRoIThresholdsTool.h.
74 for (
const T_RoI* roi: *thresholdPatterns) {
76 thresholdPatterns(*roi) =
getPattern(*roi, menuThresholds.value().get(), menuExtraInfo.value().get());
79 ATH_MSG_ERROR(
"getPattern() for " << N_RoIContainer <<
" failed with exception: " << ex.what());
80 return StatusCode::FAILURE;
84 return StatusCode::SUCCESS;
◆ getMenuThresholdExtraInfo()
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
Definition at line 50 of file IRoIThresholdsTool.h.
52 std::optional<ExtraInfoRef> menuExtraInfo;
57 ATH_MSG_ERROR(
"Failed to retrieve " << N_ThresholdType <<
" threshold extra info from L1 menu. Exception:" << ex.what());
◆ getMenuThresholds()
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
Definition at line 37 of file IRoIThresholdsTool.h.
39 std::optional<ThrVecRef> menuThresholds;
44 ATH_MSG_ERROR(
"Failed to retrieve " << N_ThresholdType <<
" thresholds from L1 menu. Exception:" << ex.what());
47 return menuThresholds;
◆ getPattern() [1/2]
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
To be implemented by each template instance.
◆ getPattern() [2/2]
Definition at line 17 of file cTauRoIThresholdsTool.cxx.
24 if (not jTauLinkAcc.isPresent()) {
28 jTauLink_t jTauLink = jTauLinkAcc(eTau);
29 bool matched{jTauLink.isValid()};
36 <<
", eFex et (100 MeV/counts) = " << eTau.
etTOB() <<
", jFex et (200 MeV/counts) = " << jTau->
tobEt() <<
", jFex iso (200 MeV/counts) = " << jTau->
tobIso()
40 <<
", eFex et (100 MeV/counts) = " << eTau.
etTOB() <<
", no matching jTau found"
48 for (
const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
60 bool passEt = eTau.
etTOB() > thr->thrValue100MeV(eTau.
iEta());
62 if (passIso && passeTAUWP && passEt) {
63 thresholdMask |= (1<<thr->mapping());
◆ initialize()
StatusCode cTauRoIThresholdsTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_jTauLinkKey
Initial value:{
this, "jTauLinkKey", "L1_cTauRoI.jTauLink",
"Decoration for the link from eTau to the matching jTau"}
Definition at line 25 of file cTauRoIThresholdsTool.h.
◆ m_l1MenuKey
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
Initial value:{
this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu",
"Name of the L1Menu object to read configuration from"}
Definition at line 93 of file IRoIThresholdsTool.h.
◆ m_thresholdPatternsKey
template<typename T_RoI , typename T_RoIContainer , const char * N_RoIContainer, const char * N_ThresholdType>
Initial value:{
this, "ThresholdPatternsDecorKey", std::string(N_RoIContainer)+".thresholdPatterns",
"Decoration for the threshold patterns"}
Definition at line 97 of file IRoIThresholdsTool.h.
The documentation for this class was generated from the following files:
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
unsigned int tauTwoThresholds() const
Tau Condition 2 (generic) results.
Exception — Deference of read handle failed.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
unsigned int tauOneThresholds() const
Tau Condition 1 (generic) results.
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
static bool checkIsolationWP(const xAOD::eFexTauRoI &eTau, const xAOD::jFexTauRoI &jTau, const TrigConf::L1Threshold_cTAU &thr)
int iPhi() const
Setter for the above.
static bool checkeTAUWP(const xAOD::eFexTauRoI &eTau, const TrigConf::L1Threshold_cTAU &thr)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ElementLink implementation for ROOT usage.
unsigned int etTOB() const
Cluster ET (TOB ET scale, 100 MeV/count)
int iEta() const
setter for the above