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

#include <L1InfoHypoTool.h>

Inheritance diagram for L1InfoHypoTool:
Collaboration diagram for L1InfoHypoTool:

Public Member Functions

 L1InfoHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize () override
StatusCode decide (const std::vector< IL1InfoHypoTool::L1Info > &input) const override
const HLT::IdentifiergetId () const override

Private Attributes

HLT::Identifier m_decisionId
Gaudi::Property< std::vector< std::string > > m_l1ItemNames {this, "L1ItemNames"}
ToolHandle< ICTPUnpackingToolm_ctpUnpackingTool {this, "CTPUnpackingTool", "CTPUnpackingTool"}

Detailed Description

Definition at line 18 of file L1InfoHypoTool.h.

Constructor & Destructor Documentation

◆ L1InfoHypoTool()

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

Definition at line 7 of file L1InfoHypoTool.cxx.

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

Member Function Documentation

◆ decide()

StatusCode L1InfoHypoTool::decide ( const std::vector< IL1InfoHypoTool::L1Info > & input) const
override

Definition at line 20 of file L1InfoHypoTool.cxx.

20 {
21 ATH_MSG_DEBUG("Executing decide() of " << name());
22
23 std::vector<IL1InfoHypoTool::L1Info* > positive( input.size() );
24
25 for ( const IL1InfoHypoTool::L1Info& hypoInfo : input ) {
26 if ( hypoInfo.previousDecisionsIDs.count( m_decisionId.numeric() ) > 0 ) {
27 bool decisionPassed = false;
28 ATH_CHECK(m_ctpUnpackingTool->passBeforePrescaleSelection(hypoInfo.roib, m_l1ItemNames, decisionPassed));
29 if (decisionPassed) {
30 TrigCompositeUtils::addDecisionID( m_decisionId.numeric(), hypoInfo.decision );
31 }
32 }
33 }
34
35 return StatusCode::SUCCESS;
36}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Gaudi::Property< std::vector< std::string > > m_l1ItemNames
ToolHandle< ICTPUnpackingTool > m_ctpUnpackingTool
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.

◆ getId()

const HLT::Identifier & L1InfoHypoTool::getId ( ) const
override

Definition at line 38 of file L1InfoHypoTool.cxx.

38 {
39 return m_decisionId;
40}

◆ initialize()

StatusCode L1InfoHypoTool::initialize ( )
overridevirtual

Definition at line 12 of file L1InfoHypoTool.cxx.

12 {
13
14 ATH_CHECK(m_ctpUnpackingTool.retrieve());
15
16 return StatusCode::SUCCESS;
17}

Member Data Documentation

◆ m_ctpUnpackingTool

ToolHandle<ICTPUnpackingTool> L1InfoHypoTool::m_ctpUnpackingTool {this, "CTPUnpackingTool", "CTPUnpackingTool"}
private

Definition at line 29 of file L1InfoHypoTool.h.

29{this, "CTPUnpackingTool", "CTPUnpackingTool"};

◆ m_decisionId

HLT::Identifier L1InfoHypoTool::m_decisionId
private

Definition at line 27 of file L1InfoHypoTool.h.

◆ m_l1ItemNames

Gaudi::Property<std::vector<std::string> > L1InfoHypoTool::m_l1ItemNames {this, "L1ItemNames"}
private

Definition at line 28 of file L1InfoHypoTool.h.

28{this, "L1ItemNames"};

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