ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaMonManager.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef AthenaMonManager_H
6#define AthenaMonManager_H
7
8#include <map>
9#include <string>
10
12#include "GaudiKernel/StatusCode.h"
13#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
17
18class ISvcLocator;
19class ITHistSvc;
21class TObject;
23
33
35
36 public:
37
50
59
60 AthenaMonManager( const std::string& name, ISvcLocator* pSvcLocator );
61
62 virtual ~AthenaMonManager();
63
68 static Environment_t envStringToEnum( const std::string& str );
69
73 static DataType_t dataTypeStringToEnum( const std::string& str );
74
80
85 static DataType_t dataType();
86
87 static unsigned int lumiBlockNumber();
88 static unsigned int runNumber();
89 static unsigned int fillNumber();
90
91 static unsigned int getLBsLowStat();
92 static unsigned int getLBsMedStat();
93 static unsigned int getLBsHigStat();
94
95 bool forkedProcess();
96
97 virtual StatusCode initialize();
98 virtual StatusCode execute();
99 virtual StatusCode start();
100 virtual StatusCode stop();
101 virtual StatusCode finalize();
102
103 virtual std::string fileKey() const;
104
108 virtual void passOwnership( TObject* h, const std::string& key );
109
113 virtual void writeAndDelete( const std::string& key );
114
115 protected:
116 ToolHandleArray<IMonitorToolBase> m_monTools;
117
119
120 private:
121 // Use private implementation idiom for more flexible development.
122 class Imp;
124
125};
126
127#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Header file for AthHistogramAlgorithm.
virtual StatusCode start()
virtual StatusCode stop()
static unsigned int getLBsLowStat()
ToolHandleArray< IMonitorToolBase > m_monTools
DataType_t
An enumeration of the different types of data the monitoring application may be running over.
ServiceHandle< ITHistSvc > m_THistSvc
static unsigned int fillNumber()
static Environment_t envStringToEnum(const std::string &str)
Converts a string to an Environment_t of the same name.
static DataType_t dataTypeStringToEnum(const std::string &str)
Converts a string to a DataType_t of the same name.
Environment_t
An enumeration of the different types of running environment the monitoring application may be in.
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
virtual StatusCode finalize()
static unsigned int getLBsHigStat()
AthenaMonManager(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute()
virtual StatusCode initialize()
static unsigned int getLBsMedStat()
static unsigned int lumiBlockNumber()
virtual std::string fileKey() const
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
static unsigned int runNumber()
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject to this manager so that it will be deleted appropriately.
Provides functionality for users to implement and save histograms, ntuples, and summary data,...