12#include "GaudiKernel/EventContext.h"
26 return StatusCode::SUCCESS;
37 fsRoIs->push_back( std::make_unique<TrigRoiDescriptor>(
true) );
43 std::vector<TrigConf::TriggerThreshold*> thresholds{ &
threshold};
45 for (
const auto & emTauFragment : roibH->eMTauResult() ) {
46 for (
const auto & roi : emTauFragment.roIVec() ) {
47 uint32_t roIWord = roi.roIWord();
49 ATH_MSG_VERBOSE(
"Skipping RoI as it is not EM threshold " << roIWord );
54 emRoIs->push_back( std::make_unique<TrigRoiDescriptor>(
59 ATH_MSG_DEBUG(
"Decoded EM RoI at position " << *emRoIs->back() );
68 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
xAOD::TrigComposite Decision
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
ElementLink implementation for ROOT usage.
SG::ReadHandleKey< ROIB::RoIBResult > m_RoIBResultKey
virtual StatusCode initialize() override
HLTSeedingNoCtpForTesting(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > m_EMDecisionsKey
SG::WriteHandleKey< TrigRoiDescriptorCollection > m_trigFSRoIKey
SG::WriteHandleKey< TrigRoiDescriptorCollection > m_trigEMRoIsKey
This class defines the reconstructed em/tau hadron ROI.
virtual double eta() const
returns eta coord of ROI
virtual double phi() const
returns phi coord of ROI
virtual bool isValid() override final
Can the handle be successfully dereferenced?
pointer_type ptr()
Dereference the pointer.
bool setObjectLink(const std::string &name, const ElementLink< CONTAINER > &link)
Set the link to an object.
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx)
Creates and right away records the Container CONT with the key.
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
const std::string & initialRoIString()
const std::string & hltSeedingNodeName()
Forward iterator to traverse the main components of the trigger configuration.