Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IStatSvc.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/IInterface.h>
14 #include <string>
15 
16 class StatEntity;
17 
25 class GAUDI_API IStatSvc : virtual public IInterface {
26 public:
30  typedef std::string StatTag;
32  typedef double StatFlag;
33 
34 public:
40  virtual void stat( const StatTag& t, const StatFlag& f ) = 0;
45  virtual void statPrint( const StatTag& t ) = 0;
50  virtual StatEntity* stat( const StatTag& t ) = 0;
51 };
StatEntity
backward compatible StatEntity class.
Definition: StatEntity.h:23
IStatSvc::StatFlag
double StatFlag
the actual value type used for Stat
Definition: IStatSvc.h:32
IStatSvc::stat
virtual void stat(const StatTag &t, const StatFlag &f)=0
add statistical information to the entity , tagged by its name
IStatSvc
Definition: IStatSvc.h:25
IStatSvc::stat
virtual StatEntity * stat(const StatTag &t)=0
extract the stat entity for the given tag (name)
bug_34121.t
t
Definition: bug_34121.py:31
IInterface.h
IStatSvc::DeclareInterfaceID
DeclareInterfaceID(IStatSvc, 2, 0)
InterfaceID.
IStatSvc::StatTag
std::string StatTag
the actual identificator of Stat
Definition: IStatSvc.h:30
IInterface
Definition: IInterface.h:225
IStatSvc::statPrint
virtual void statPrint(const StatTag &t)=0
prints (using message service) info about statistical entity, tagged by its name
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49