The Gaudi Framework  master (37c0b60a)
HistogramAgent Class Referencefinal

#include <GaudiKernel/HistogramAgent.h>

Inheritance diagram for HistogramAgent:
Collaboration diagram for HistogramAgent:

Public Member Functions

const IDataSelectorselectedObjects () const
 Return the set of selected DataObjects. More...
 
bool analyse (IRegistry *pRegistry, int) override
 Analyses a given directory entry. More...
 
- Public Member Functions inherited from IDataStoreAgent
virtual ~IDataStoreAgent ()=default
 destructor More...
 

Private Attributes

IDataSelector m_objects
 

Detailed Description

HistogramAgent base in charge of collecting all the references to DataObjects in a transient store that passes some selection criteria. The default behaviour is to collect all entries.

Author
Markus Frank

Definition at line 28 of file HistogramAgent.h.

Member Function Documentation

◆ analyse()

bool HistogramAgent::analyse ( IRegistry pRegistry,
int   
)
inlineoverridevirtual

Analyses a given directory entry.

Implements IDataStoreAgent.

Definition at line 35 of file HistogramAgent.h.

35  {
36  DataObject* obj = pRegistry->object();
37  if ( obj && obj->clID() != CLID_StatisticsFile ) {
38  m_objects.push_back( obj );
39  return true;
40  }
41  return false;
42  }

◆ selectedObjects()

const IDataSelector& HistogramAgent::selectedObjects ( ) const
inline

Return the set of selected DataObjects.

Definition at line 33 of file HistogramAgent.h.

33 { return m_objects; }

Member Data Documentation

◆ m_objects

IDataSelector HistogramAgent::m_objects
private

Definition at line 29 of file HistogramAgent.h.


The documentation for this class was generated from the following file:
std::vector::push_back
T push_back(T... args)
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:29
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
DataObject
Definition: DataObject.h:36
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:66