The Gaudi Framework  master (d98a2936)
HistogramAgent.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 #include <GaudiKernel/ClassID.h>
14 #include <GaudiKernel/DataObject.h>
17 #include <GaudiKernel/IRegistry.h>
18 
27 class HistogramAgent final : virtual public IDataStoreAgent {
29 
30 public:
32  const IDataSelector& selectedObjects() const { return m_objects; }
34  bool analyse( IRegistry* pRegistry, int ) override {
35  DataObject* obj = pRegistry->object();
36  if ( obj && obj->clID() != CLID_StatisticsFile ) {
37  m_objects.push_back( obj );
38  return true;
39  }
40  return false;
41  }
42 };
IDataSelector
std::vector< DataObject * > IDataSelector
This is only a placeholder to allow me compiling until the responsible guy does his work!...
Definition: IDataSelector.h:15
ClassID.h
IRegistry
Definition: IRegistry.h:29
HistogramAgent::selectedObjects
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
Definition: HistogramAgent.h:32
HistogramAgent
Definition: HistogramAgent.h:27
HistogramAgent::m_objects
IDataSelector m_objects
Definition: HistogramAgent.h:28
IDataSelector.h
IRegistry.h
DataObject.h
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
DataObject
Definition: DataObject.h:37
HistogramAgent::analyse
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Definition: HistogramAgent.h:34
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:66
IDataStoreAgent.h
IDataStoreAgent
Definition: IDataStoreAgent.h:24