| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# 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