The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
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>
18
27class HistogramAgent final : virtual public IDataStoreAgent {
29
30public:
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};
std::vector< DataObject * > IDataSelector
This is only a placeholder to allow me compiling until the responsible guy does his work!
A DataObject is the base class of any identifiable object on any data store.
Definition DataObject.h:37
virtual const CLID & clID() const
Retrieve reference to class definition structure.
HistogramAgent base in charge of collecting all the references to DataObjects in a transient store th...
IDataSelector m_objects
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Generic data agent interface.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition IRegistry.h:29
virtual DataObject * object() const =0
Retrieve object behind the link.