| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HistogramAgent.h
Go to the documentation of this file.
1 // $Id: HistogramAgent.h,v 1.3 2003/04/15 07:51:15 mato Exp $
2 #ifndef GAUDIKERNEL_HISTOGRAMAGENT_H
3 #define GAUDIKERNEL_HISTOGRAMAGENT_H
4
5 #include "GaudiKernel/ClassID.h"
6 #include "GaudiKernel/IRegistry.h"
7 #include "GaudiKernel/IDataSelector.h"
8 #include "GaudiKernel/IDataStoreAgent.h"
9
18 class HistogramAgent : virtual public IDataStoreAgent {
19 protected:
20 IDataSelector m_objects;
21 public:
23 HistogramAgent() {
24 }
26 virtual ~HistogramAgent() {
27 }
29 IDataSelector* selectedObjects() {
30 return &m_objects;
31 }
33 virtual bool analyse(IRegistry* pRegistry, int ) {
34 DataObject* obj = pRegistry->object();
35 if ( 0 != obj ) {
36 if ( obj->clID() != CLID_StatisticsFile ) {
37 m_objects.push_back(obj);
38 return true;
39 }
40 }
41 return false;
42 }
43 };
44 #endif // GAUDIKERNEL_HISTOGRAMAGENT_H