The Gaudi Framework  v30r3 (a5ef0a68)
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"
9 
18 class HistogramAgent final : virtual public IDataStoreAgent
19 {
21 
22 public:
24  const IDataSelector& selectedObjects() const { return m_objects; }
26  bool analyse( IRegistry* pRegistry, int ) override
27  {
28  DataObject* obj = pRegistry->object();
29  if ( obj && obj->clID() != CLID_StatisticsFile ) {
30  m_objects.push_back( obj );
31  return true;
32  }
33  return false;
34  }
35 };
36 #endif // GAUDIKERNEL_HISTOGRAMAGENT_H
HistogramAgent base in charge of collecting all the refereces to DataObjects in a transient store tha...
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:62
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
virtual DataObject * object() const =0
Retrieve object behind the link.
IDataSelector m_objects
Generic data agent interface.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30