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

Base class for CTP unpacking tools. More...

#include <CTPUnpackingToolBase.h>

Inheritance diagram for CTPUnpackingToolBase:
Collaboration diagram for CTPUnpackingToolBase:

Public Member Functions

 CTPUnpackingToolBase (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode decode (const EventContext &ctx, const ROIB::RoIBResult &, HLT::IDVec &) const override
virtual StatusCode initialize () override
virtual StatusCode passBeforePrescaleSelection (const ROIB::RoIBResult *, const std::vector< std::string > &, bool &) const override
virtual bool isEmulated () const override

Protected Attributes

std::unordered_map< int, HLT::IDVecm_ctpToChain
Gaudi::Property< bool > m_forceEnable
ToolHandle< GenericMonitoringToolm_monTool {this, "MonTool", "", "Monitoring tool"}

Static Protected Attributes

static constexpr int s_CTPIDForUnseededChains = -1

Detailed Description

Base class for CTP unpacking tools.

Provides common features needed by all CPT unpacker.

Definition at line 24 of file CTPUnpackingToolBase.h.

Constructor & Destructor Documentation

◆ CTPUnpackingToolBase()

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

Definition at line 8 of file CTPUnpackingToolBase.cxx.

11 : base_class(type, name, parent) {}

Member Function Documentation

◆ decode()

StatusCode CTPUnpackingToolBase::decode ( const EventContext & ctx,
const ROIB::RoIBResult & ,
HLT::IDVec &  ) const
overridevirtual

Reimplemented in CTPUnpackingEmulationTool, and CTPUnpackingTool.

Definition at line 32 of file CTPUnpackingToolBase.cxx.

34 {
35 ATH_MSG_ERROR("Base class should not call this function");
36 return StatusCode::FAILURE;
37}
#define ATH_MSG_ERROR(x)

◆ initialize()

StatusCode CTPUnpackingToolBase::initialize ( )
overridevirtual

Reimplemented in CTPUnpackingEmulationTool, and CTPUnpackingTool.

Definition at line 14 of file CTPUnpackingToolBase.cxx.

15{
16 if ( !m_monTool.empty() ) {
17 ATH_CHECK( m_monTool.retrieve() );
18 }
19
20 return StatusCode::SUCCESS;
21}
#define ATH_CHECK
Evaluate an expression and check for errors.
ToolHandle< GenericMonitoringTool > m_monTool

◆ isEmulated()

virtual bool CTPUnpackingToolBase::isEmulated ( ) const
inlineoverridevirtual

Reimplemented in CTPUnpackingEmulationTool.

Definition at line 41 of file CTPUnpackingToolBase.h.

41{return false;}

◆ passBeforePrescaleSelection()

StatusCode CTPUnpackingToolBase::passBeforePrescaleSelection ( const ROIB::RoIBResult * ,
const std::vector< std::string > & ,
bool &  ) const
overridevirtual

Reimplemented in CTPUnpackingTool.

Definition at line 24 of file CTPUnpackingToolBase.cxx.

26 {
27 ATH_MSG_ERROR("Base class should not call this function");
28 return StatusCode::FAILURE;
29}

Member Data Documentation

◆ m_ctpToChain

std::unordered_map<int, HLT::IDVec> CTPUnpackingToolBase::m_ctpToChain
protected

Definition at line 46 of file CTPUnpackingToolBase.h.

◆ m_forceEnable

Gaudi::Property<bool> CTPUnpackingToolBase::m_forceEnable
protected
Initial value:
{
this, "ForceEnableAllChains", false, "Enables all chains in each event, testing mode"}

Definition at line 48 of file CTPUnpackingToolBase.h.

48 {
49 this, "ForceEnableAllChains", false, "Enables all chains in each event, testing mode"};

◆ m_monTool

ToolHandle<GenericMonitoringTool> CTPUnpackingToolBase::m_monTool {this, "MonTool", "", "Monitoring tool"}
protected

Definition at line 51 of file CTPUnpackingToolBase.h.

51{this, "MonTool", "", "Monitoring tool"};

◆ s_CTPIDForUnseededChains

int CTPUnpackingToolBase::s_CTPIDForUnseededChains = -1
staticconstexprprotected

Definition at line 45 of file CTPUnpackingToolBase.h.


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