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/IRegistry.h"
6 #include "GaudiKernel/IDataSelector.h"
7 #include "GaudiKernel/IDataStoreAgent.h"
8 
17 class HistogramAgent : virtual public IDataStoreAgent {
18 protected:
20 public:
22  HistogramAgent() = default;
23 
25  ~HistogramAgent() override = default;
26 
29  return &m_objects;
30  }
32  bool analyse(IRegistry* pRegistry, int ) override {
33  DataObject* obj = pRegistry->object();
34  if ( obj && obj->clID() != CLID_StatisticsFile ) {
35  m_objects.push_back(obj);
36  return true;
37  }
38  return false;
39  }
40 };
41 #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.
std::vector< DataObject * > IDataSelector
This is only a placeholder to allow me compiling until the responsible guy does his work! M...
Definition: IDataSelector.h:8
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:68
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
IDataSelector * selectedObjects()
Return the set of selected DataObjects.
virtual DataObject * object() const =0
Retrieve object behind the link.
~HistogramAgent() override=default
Destructor.
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
HistogramAgent()=default
Default creator.