39 return StatusCode::SUCCESS;
53 trigInfo = eiRH.
isValid() ? eiRH.
cptr()->trigger_info() :
nullptr;
57 std::unique_ptr<xAOD::TrigDecisionAuxInfo>
aux = std::make_unique<xAOD::TrigDecisionAuxInfo>();
58 std::unique_ptr<xAOD::TrigDecision> xaod = std::make_unique<xAOD::TrigDecision>();
59 xaod->setStore(
aux.get() );
69 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
The TrigDecision is an object which merges trigger informations from various levels.
This class contains trigger related information.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
SG::ReadHandleKey< EventInfo > m_eventInfoKey
SG::WriteHandleKey< xAOD::TrigDecision > m_xaodKey
virtual StatusCode initialize() override
Function initialising the algorithm.
ToolHandle< ITrigDecisionCnvTool > m_cnvTool
TrigDecisionCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
virtual ~TrigDecisionCnvAlg()
SG::ReadHandleKey< TrigDec::TrigDecision > m_aodKey