The Gaudi Framework
master (5c735ca6)
Toggle main menu visibility
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
>
14
#include <
GaudiKernel/DataObject.h
>
15
#include <
GaudiKernel/IDataSelector.h
>
16
#include <
GaudiKernel/IDataStoreAgent.h
>
17
#include <
GaudiKernel/IRegistry.h
>
18
27
class
HistogramAgent
final :
virtual
public
IDataStoreAgent
{
28
IDataSelector
m_objects
;
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
};
ClassID.h
DataObject.h
IDataSelector.h
IDataSelector
std::vector< DataObject * > IDataSelector
This is only a placeholder to allow me compiling until the responsible guy does his work!
Definition
IDataSelector.h:21
IDataStoreAgent.h
IRegistry.h
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition
DataObject.h:37
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition
DataObject.cpp:66
HistogramAgent
HistogramAgent base in charge of collecting all the references to DataObjects in a transient store th...
Definition
HistogramAgent.h:27
HistogramAgent::m_objects
IDataSelector m_objects
Definition
HistogramAgent.h:28
HistogramAgent::selectedObjects
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
Definition
HistogramAgent.h:32
HistogramAgent::analyse
bool analyse(IRegistry *pRegistry, int) override
Analyses a given directory entry.
Definition
HistogramAgent.h:34
IDataStoreAgent
Generic data agent interface.
Definition
IDataStoreAgent.h:24
IRegistry
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition
IRegistry.h:29
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
GaudiHive
src
HistogramAgent.h
Generated on
for The Gaudi Framework by
1.17.0