ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TrigCompositeUtils::LinkInfo< T > Struct Template Reference

Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGroup) linked together (for convenience) More...

#include <LinkInfo.h>

Collaboration diagram for TrigCompositeUtils::LinkInfo< T >:

Public Member Functions

 LinkInfo ()=default
 
 LinkInfo (const Decision *s, const ElementLink< T > &l, ActiveState as=ActiveState::UNSET)
 
 LinkInfo (const Decision *s, const ElementLink< T > &l, ActiveState as, const DecisionIDContainer &decisions)
 
bool isValid () const
 
 operator StatusCode ()
 helper conversion to make it usable with CHECK macro expecting StatusCode More...
 

Public Attributes

const Decisionsource {nullptr}
 The node in the NavGraph for this feature. More...
 
ElementLink< T > link
 Link to the feature. More...
 
ActiveState state {ActiveState::UNSET}
 Was the linked feature active for any requested chains. More...
 
DecisionIDContainer decisions
 All decision IDs active for this feature. More...
 

Detailed Description

template<typename T>
struct TrigCompositeUtils::LinkInfo< T >

Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGroup) linked together (for convenience)

Definition at line 28 of file LinkInfo.h.

Constructor & Destructor Documentation

◆ LinkInfo() [1/3]

template<typename T >
TrigCompositeUtils::LinkInfo< T >::LinkInfo ( )
default

◆ LinkInfo() [2/3]

template<typename T >
TrigCompositeUtils::LinkInfo< T >::LinkInfo ( const Decision s,
const ElementLink< T > &  l,
ActiveState  as = ActiveState::UNSET 
)
inline

Definition at line 30 of file LinkInfo.h.

32  : source{s}, link{l}, state{as} {
33  if (s)
34  {
35  decisions.insert(s->decisions().begin(), s->decisions().end());
36  }
37  }

◆ LinkInfo() [3/3]

template<typename T >
TrigCompositeUtils::LinkInfo< T >::LinkInfo ( const Decision s,
const ElementLink< T > &  l,
ActiveState  as,
const DecisionIDContainer decisions 
)
inline

Definition at line 39 of file LinkInfo.h.

41  : source{s}, link{l}, state{as}, decisions(decisions) {}

Member Function Documentation

◆ isValid()

template<typename T >
bool TrigCompositeUtils::LinkInfo< T >::isValid ( ) const
inline

Definition at line 43 of file LinkInfo.h.

43  {
44  return source && link.isValid();
45  }

◆ operator StatusCode()

template<typename T >
TrigCompositeUtils::LinkInfo< T >::operator StatusCode ( )
inline

helper conversion to make it usable with CHECK macro expecting StatusCode

Definition at line 49 of file LinkInfo.h.

49  {
50  return (isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE);
51  }

Member Data Documentation

◆ decisions

template<typename T >
DecisionIDContainer TrigCompositeUtils::LinkInfo< T >::decisions

All decision IDs active for this feature.

Definition at line 65 of file LinkInfo.h.

◆ link

template<typename T >
ElementLink<T> TrigCompositeUtils::LinkInfo< T >::link

Link to the feature.

Definition at line 61 of file LinkInfo.h.

◆ source

template<typename T >
const Decision* TrigCompositeUtils::LinkInfo< T >::source {nullptr}

The node in the NavGraph for this feature.

Note that when retrieving features for multi-leg chains the same feature can be attached to multiple nodes and only one of those nodes will be returned here.

Definition at line 59 of file LinkInfo.h.

◆ state

template<typename T >
ActiveState TrigCompositeUtils::LinkInfo< T >::state {ActiveState::UNSET}

Was the linked feature active for any requested chains.

Definition at line 63 of file LinkInfo.h.


The documentation for this struct was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigCompositeUtils::LinkInfo::source
const Decision * source
The node in the NavGraph for this feature.
Definition: LinkInfo.h:59
TrigCompositeUtils::LinkInfo::link
ElementLink< T > link
Link to the feature.
Definition: LinkInfo.h:61
TrigCompositeUtils::LinkInfo::decisions
DecisionIDContainer decisions
All decision IDs active for this feature.
Definition: LinkInfo.h:65
TrigCompositeUtils::LinkInfo::isValid
bool isValid() const
Definition: LinkInfo.h:43
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
TrigCompositeUtils::LinkInfo::state
ActiveState state
Was the linked feature active for any requested chains.
Definition: LinkInfo.h:63