| The Gaudi Framework v32r1 (f65d50dc)

HistogramAgent.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_HISTOGRAMAGENT_H
2 #define GAUDIKERNEL_HISTOGRAMAGENT_H
3
4 #include "GaudiKernel/ClassID.h"
5 #include "GaudiKernel/DataObject.h"
6 #include "GaudiKernel/IDataSelector.h"
7 #include "GaudiKernel/IDataStoreAgent.h"
8 #include "GaudiKernel/IRegistry.h"
9
18 class HistogramAgent final : virtual public IDataStoreAgent {
19 IDataSelector m_objects;
20
21 public:
23 const IDataSelector& selectedObjects() const { return m_objects; }
25 bool analyse( IRegistry* pRegistry, int ) override {
26 DataObject* obj = pRegistry->object();
27 if ( obj && obj->clID() != CLID_StatisticsFile ) {
28 m_objects.push_back( obj );
29 return true;
30 }
31 return false;
32 }
33 };
34 #endif // GAUDIKERNEL_HISTOGRAMAGENT_H
IDataSelector.h
ClassID.h
HistogramAgent
HistogramAgent base in charge of collecting all the references to DataObjects in a transient store th...
Definition: HistogramAgent.h:18
HistogramAgent::analyse
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Definition: HistogramAgent.h:25
std::vector::push_back
T push_back(T... args)
IRegistry.h
IRegistry
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
IDataStoreAgent.h
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:19
std::vector< DataObject * >
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:56
IDataStoreAgent
Generic data agent interface.
Definition: IDataStoreAgent.h:17
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
HistogramAgent::selectedObjects
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
Definition: HistogramAgent.h:23
DataObject.h