ATLAS Offline Software
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
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 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 ROIB::RoIBResult ,
HLT::IDVec  
) const
overridevirtual

Reimplemented in CTPUnpackingTool, and CTPUnpackingEmulationTool.

Definition at line 32 of file CTPUnpackingToolBase.cxx.

32  {
33  ATH_MSG_ERROR("Base class should not call this function");
34  return StatusCode::FAILURE;
35 }

◆ initialize()

StatusCode CTPUnpackingToolBase::initialize ( )
overridevirtual

Reimplemented in CTPUnpackingTool, and CTPUnpackingEmulationTool.

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 }

◆ isEmulated()

virtual bool CTPUnpackingToolBase::isEmulated ( ) const
inlineoverridevirtual

Reimplemented in CTPUnpackingEmulationTool.

Definition at line 40 of file CTPUnpackingToolBase.h.

40 {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 45 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 47 of file CTPUnpackingToolBase.h.

◆ m_monTool

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

Definition at line 50 of file CTPUnpackingToolBase.h.

◆ s_CTPIDForUnseededChains

constexpr int CTPUnpackingToolBase::s_CTPIDForUnseededChains = -1
staticconstexprprotected

Definition at line 44 of file CTPUnpackingToolBase.h.


The documentation for this class was generated from the following files:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
CTPUnpackingToolBase::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: CTPUnpackingToolBase.h:50
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78