5#ifndef TRIGCOMPOSITEUTILS_LINKINFO_H
6#define TRIGCOMPOSITEUTILS_LINKINFO_H
9#include "AthLinks/ElementLink.h"
15#include <unordered_set>
26 if (s)
decisions.emplace(s->decisions().begin(), s->decisions().end());
43 operator StatusCode () {
44 return (
isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE);
60 std::optional<std::unordered_set<DecisionID>>
decisions;
ElementLink implementation for ROOT usage.
xAOD::TrigComposite Decision
ActiveState
Additional information returned by the TrigerDecisionTool's feature retrieval, contained within the L...
@ UNSET
Default property of state.
std::set< DecisionID > DecisionIDContainer
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
LinkInfo(const Decision *s, const ElementLink< T > &l, ActiveState as, const DecisionIDContainer &decisionIDs)
LinkInfo(const Decision *s, const ElementLink< T > &l, ActiveState as=ActiveState::UNSET)
LinkInfo(const TypelessLinkInfo &li, const ElementLink< T > &l)
std::optional< std::unordered_set< DecisionID > > decisions
ElementLink< TrigRoiDescriptorCollection > link
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...