Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

HistogramAgent.h

Go to the documentation of this file.
00001 // $Id: HistogramAgent.h,v 1.3 2003/04/15 07:51:15 mato Exp $
00002 #ifndef GAUDIKERNEL_HISTOGRAMAGENT_H
00003 #define GAUDIKERNEL_HISTOGRAMAGENT_H
00004 
00005 #include "GaudiKernel/ClassID.h"
00006 #include "GaudiKernel/IRegistry.h"
00007 #include "GaudiKernel/IDataSelector.h"
00008 #include "GaudiKernel/IDataStoreAgent.h"
00009 
00018 class HistogramAgent : virtual public IDataStoreAgent  {
00019 protected:
00020   IDataSelector m_objects;
00021 public:
00023   HistogramAgent() {
00024   }
00026   virtual ~HistogramAgent()  {
00027   }
00029   IDataSelector* selectedObjects()    {
00030     return &m_objects;
00031   }
00033   virtual bool analyse(IRegistry* pRegistry, int )   {
00034     DataObject* obj = pRegistry->object();
00035     if ( 0 != obj )  {
00036       if ( obj->clID() != CLID_StatisticsFile )    {
00037         m_objects.push_back(obj);
00038         return true;
00039       }
00040     }
00041     return false;
00042   }
00043 };
00044 #endif // GAUDIKERNEL_HISTOGRAMAGENT_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:25:00 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004