The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
IMonitorSvc.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
14#include <set>
15#include <string>
16
17// forward declaration
18namespace AIDA {
19 class IBaseHistogram;
20}
21class StatEntity;
22
31
32class GAUDI_API IMonitorSvc : virtual public IInterface {
33public:
36
44 virtual void declareInfo( const std::string& name, const bool& var, const std::string& desc,
45 const IInterface* owner ) = 0;
46 virtual void declareInfo( const std::string& name, const int& var, const std::string& desc,
47 const IInterface* owner ) = 0;
48 virtual void declareInfo( const std::string& name, const long& var, const std::string& desc,
49 const IInterface* owner ) = 0;
50 virtual void declareInfo( const std::string& name, const double& var, const std::string& desc,
51 const IInterface* owner ) = 0;
52 virtual void declareInfo( const std::string& name, const std::string& var, const std::string& desc,
53 const IInterface* owner ) = 0;
54 virtual void declareInfo( const std::string& name, const std::pair<double, double>& var, const std::string& desc,
55 const IInterface* owner ) = 0;
56 virtual void declareInfo( const std::string& name, const AIDA::IBaseHistogram* var, const std::string& desc,
57 const IInterface* owner ) = 0;
58 virtual void declareInfo( const std::string& name, const StatEntity& var, const std::string& desc,
59 const IInterface* owner ) = 0;
60 virtual void declareInfo( const std::string& name, const std::string& format, const void* var, int size,
61 const std::string& desc, const IInterface* owner ) = 0;
62
67 virtual void undeclareInfo( const std::string& name, const IInterface* owner ) = 0;
71 virtual void undeclareAll( const IInterface* owner ) = 0;
72
77 virtual std::set<std::string>* getInfos( const IInterface* owner = 0 ) = 0;
78};
#define GAUDI_API
Definition Kernel.h:49
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition MsgStream.cpp:93
Definition of the basic interface.
Definition IInterface.h:225
Definition of the IMonitorSvc interface, which publishes Gaudi variables to outside monitoring proces...
Definition IMonitorSvc.h:32
virtual void declareInfo(const std::string &name, const std::pair< double, double > &var, const std::string &desc, const IInterface *owner)=0
virtual std::set< std::string > * getInfos(const IInterface *owner=0)=0
Get the names for all declared monitoring informations for a given owner.
virtual void undeclareAll(const IInterface *owner)=0
Undeclare monitoring information.
virtual void declareInfo(const std::string &name, const long &var, const std::string &desc, const IInterface *owner)=0
virtual void undeclareInfo(const std::string &name, const IInterface *owner)=0
Undeclare monitoring information.
virtual void declareInfo(const std::string &name, const StatEntity &var, const std::string &desc, const IInterface *owner)=0
virtual void declareInfo(const std::string &name, const std::string &format, const void *var, int size, const std::string &desc, const IInterface *owner)=0
virtual void declareInfo(const std::string &name, const bool &var, const std::string &desc, const IInterface *owner)=0
Declare monitoring information.
virtual void declareInfo(const std::string &name, const AIDA::IBaseHistogram *var, const std::string &desc, const IInterface *owner)=0
virtual void declareInfo(const std::string &name, const std::string &var, const std::string &desc, const IInterface *owner)=0
virtual void declareInfo(const std::string &name, const double &var, const std::string &desc, const IInterface *owner)=0
virtual void declareInfo(const std::string &name, const int &var, const std::string &desc, const IInterface *owner)=0
DeclareInterfaceID(IMonitorSvc, 4, 1)
InterfaceID.
backward compatible StatEntity class.
Definition StatEntity.h:23