ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
DecisionCollectorTool Class Reference

#include <DecisionCollectorTool.h>

Inheritance diagram for DecisionCollectorTool:
Collaboration diagram for DecisionCollectorTool:

Public Member Functions

 DecisionCollectorTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~DecisionCollectorTool () override
 
void getDecisions (std::vector< TrigCompositeUtils::DecisionID > &) const override
 
void getSequencesPerEvent (std::set< std::string > &) const
 
void getSequencesNames (std::set< std::string > &) const
 
virtual StatusCode initialize () override
 

Public Attributes

SG::ReadHandleKeyArray< TrigCompositeUtils::DecisionContainerm_decisionsKey { this, "Decisions", {}, "Containers from which the decisions need to be red" }
 

Detailed Description

Definition at line 19 of file DecisionCollectorTool.h.

Constructor & Destructor Documentation

◆ DecisionCollectorTool()

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

Definition at line 7 of file DecisionCollectorTool.cxx.

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

◆ ~DecisionCollectorTool()

DecisionCollectorTool::~DecisionCollectorTool ( )
overridevirtual

Definition at line 10 of file DecisionCollectorTool.cxx.

10 {}

Member Function Documentation

◆ getDecisions()

void DecisionCollectorTool::getDecisions ( std::vector< TrigCompositeUtils::DecisionID > &  output) const
override

Definition at line 33 of file DecisionCollectorTool.cxx.

33  {
34  for (const auto& decisionKey: m_decisionsKey ) {
35  auto handle = SG::makeHandle( decisionKey );
36  if ( handle.isValid() ) {
37  for ( const TrigCompositeUtils::Decision* d : *handle.cptr() ) {
38  output.insert( output.end(),
41  }
42  ATH_MSG_DEBUG("Collected from decision container " << decisionKey.key() << " objects " <<handle.cptr()->size() << " accumulated decisions " << output.size() );
43  }
44  }
45 }

◆ getSequencesNames()

void DecisionCollectorTool::getSequencesNames ( std::set< std::string > &  output) const

Definition at line 27 of file DecisionCollectorTool.cxx.

27  {
28  for (const auto& decisionKey: m_decisionsKey) {
29  output.insert(decisionKey.key());
30  }
31 }

◆ getSequencesPerEvent()

void DecisionCollectorTool::getSequencesPerEvent ( std::set< std::string > &  output) const

Definition at line 18 of file DecisionCollectorTool.cxx.

18  {
19  for (const auto& decisionKey: m_decisionsKey) {
20  auto handle = SG::makeHandle( decisionKey );
21  if ( handle.isValid() ) {
22  output.insert(decisionKey.key());
23  }
24  }
25 }

◆ initialize()

StatusCode DecisionCollectorTool::initialize ( )
overridevirtual

Definition at line 12 of file DecisionCollectorTool.cxx.

12  {
13  ATH_CHECK( m_decisionsKey.initialize() );
14  renounceArray( m_decisionsKey );
15  return StatusCode::SUCCESS;
16 }

Member Data Documentation

◆ m_decisionsKey

SG::ReadHandleKeyArray<TrigCompositeUtils::DecisionContainer> DecisionCollectorTool::m_decisionsKey { this, "Decisions", {}, "Containers from which the decisions need to be red" }

Definition at line 30 of file DecisionCollectorTool.h.


The documentation for this class was generated from the following files:
hist_file_dump.d
d
Definition: hist_file_dump.py:137
DecisionCollectorTool::m_decisionsKey
SG::ReadHandleKeyArray< TrigCompositeUtils::DecisionContainer > m_decisionsKey
Definition: DecisionCollectorTool.h:30
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
merge.output
output
Definition: merge.py:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:67