ATLAS Offline Software
Loading...
Searching...
No Matches
TrigGenericHypoTool Class Reference

#include <TrigGenericHypoTool.h>

Inheritance diagram for TrigGenericHypoTool:
Collaboration diagram for TrigGenericHypoTool:

Classes

struct  HypoToolInfo

Public Member Functions

 TrigGenericHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize () override
StatusCode decide (const std::vector< HypoToolInfo > &input) const

Private Attributes

HLT::Identifier m_decisionId
SG::ReadDecorHandleKey< xAOD::TrigCompositeContainerm_passKey {this, "PassString", "TrigComposite.pass", "TrigComposite should pass"}

Detailed Description

Definition at line 13 of file TrigGenericHypoTool.h.

Constructor & Destructor Documentation

◆ TrigGenericHypoTool()

TrigGenericHypoTool::TrigGenericHypoTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 8 of file TrigGenericHypoTool.cxx.

8 :
9 AthAlgTool(type, name, parent),
static HLT::Identifier fromToolName(const std::string &tname)
HLT::Identifier m_decisionId

Member Function Documentation

◆ decide()

StatusCode TrigGenericHypoTool::decide ( const std::vector< HypoToolInfo > & input) const

Definition at line 20 of file TrigGenericHypoTool.cxx.

20 {
21 ATH_MSG_DEBUG("Executing decide() of " << name());
22
23 SG::ReadDecorHandle<xAOD::TrigCompositeContainer, int> trigCompositePassed(m_passKey);
24
25 for ( const TrigGenericHypoTool::HypoToolInfo& hypoInfo : input ) {
26 if ( TrigCompositeUtils::passed( m_decisionId.numeric(), hypoInfo.previousDecisionIDs ) ) {
27 int decisionPassed = trigCompositePassed(*hypoInfo.trigComp);
28 if (decisionPassed==1) {
29 TrigCompositeUtils::addDecisionID( m_decisionId.numeric(), hypoInfo.decision );
30 }
31 }
32 }
33
34 return StatusCode::SUCCESS;
35}
#define ATH_MSG_DEBUG(x)
SG::ReadDecorHandleKey< xAOD::TrigCompositeContainer > m_passKey
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.

◆ initialize()

StatusCode TrigGenericHypoTool::initialize ( )
overridevirtual

Definition at line 13 of file TrigGenericHypoTool.cxx.

13 {
14
15 ATH_CHECK(m_passKey.initialize());
16 return StatusCode::SUCCESS;
17}
#define ATH_CHECK
Evaluate an expression and check for errors.

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigGenericHypoTool::m_decisionId
private

Definition at line 36 of file TrigGenericHypoTool.h.

◆ m_passKey

SG::ReadDecorHandleKey<xAOD::TrigCompositeContainer> TrigGenericHypoTool::m_passKey {this, "PassString", "TrigComposite.pass", "TrigComposite should pass"}
private

Definition at line 37 of file TrigGenericHypoTool.h.

37{this, "PassString", "TrigComposite.pass", "TrigComposite should pass"};

The documentation for this class was generated from the following files: