| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes | List of all members
HistogramAgent Class Reference

HistogramAgent base in charge of collecting all the refereces to DataObjects in a transient store that passes some selection criteria. More...

`#include <GaudiKernel/HistogramAgent.h>`

Inheritance diagram for HistogramAgent:
[legend]
Collaboration diagram for HistogramAgent:
[legend]

## Public Member Functions
| HistogramAgent ()=default
| Default creator. More...
| ~HistogramAgent () override=default
| Destructor. More...
IDataSelector * | selectedObjects ()
| Return the set of selected DataObjects. More...
bool | analyse (IRegistry *pRegistry, int) override
| Analyses a given directory entry. More...
| HistogramAgent ()
| Default creator. More...
virtual | ~HistogramAgent ()
| Destructor. More...
IDataSelector * | selectedObjects ()
| 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...

## Protected Attributes
IDataSelector | m_objects

## Detailed Description

HistogramAgent base in charge of collecting all the refereces 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 17 of file HistogramAgent.h.

## Constructor & Destructor Documentation

HistogramAgent::HistogramAgent | ( |  | ) |
| default

Default creator.

HistogramAgent::~HistogramAgent | ( |  | ) |
| override default

Destructor.

HistogramAgent::HistogramAgent | ( |  | ) |
| inline

Default creator.

Definition at line 25 of file HistogramAgent.h.

25 {}

virtual HistogramAgent::~HistogramAgent | ( |  | ) |
| inline virtual

Destructor.

Definition at line 27 of file HistogramAgent.h.

27 {}

## Member Function Documentation

bool HistogramAgent::analyse | ( | IRegistry * | pRegistry,
|  | int |
| ) |  |
| inline override virtual

Analyses a given directory entry.

Implements IDataStoreAgent.

Definition at line 31 of file HistogramAgent.h.

32 {
33 DataObject* obj = pRegistry->object();
34 if ( 0 != obj ) {
35 if ( obj->clID() != CLID_StatisticsFile ) {
36 m_objects.push_back( obj );
37 return true;
38 }
39 }
40 return false;
41 }
std::vector::push_back
T push_back(T...args)
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:62
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:20
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29

bool HistogramAgent::analyse | ( | IRegistry * | pRegistry,
|  | int |
| ) |  |
| inline override virtual

Analyses a given directory entry.

Implements IDataStoreAgent.

Definition at line 32 of file HistogramAgent.h.

33 {
34 DataObject* obj = pRegistry->object();
35 if ( obj && obj->clID() != CLID_StatisticsFile ) {
36 m_objects.push_back( obj );
37 return true;
38 }
39 return false;
40 }
std::vector::push_back
T push_back(T...args)
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:62
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:20
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29

IDataSelector* HistogramAgent::selectedObjects | ( |  | ) |
| inline

Return the set of selected DataObjects.

Definition at line 29 of file HistogramAgent.h.

29 { return &m_objects; }
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:20

IDataSelector* HistogramAgent::selectedObjects | ( |  | ) |
| inline

Return the set of selected DataObjects.

Definition at line 30 of file HistogramAgent.h.

30 { return &m_objects; }
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:20

## Member Data Documentation

IDataSelector HistogramAgent::m_objects
| protected

Definition at line 20 of file HistogramAgent.h.

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

- GaudiCoreSvc/src/ApplicationMgr/HistogramAgent.h