ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaMonitoring
AthenaMonitoring
AthenaMonManager.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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
11
#include "
AthenaBaseComps/AthAlgorithm.h
"
12
#include "GaudiKernel/StatusCode.h"
13
#include "GaudiKernel/ServiceHandle.h"
14
#include "GaudiKernel/ToolHandle.h"
15
#include "
xAODEventInfo/EventInfo.h
"
16
#include "
StoreGate/ReadHandleKey.h
"
17
18
class
ISvcLocator;
19
class
ITHistSvc;
20
class
ManagedMonitorToolBase
;
21
class
TObject;
22
class
IMonitorToolBase
;
23
33
34
class
AthenaMonManager
:
public
AthAlgorithm
{
35
36
public
:
37
49
enum
Environment_t
{
user
= 0,
noOutput
,
online
,
tier0
,
tier0Raw
,
tier0ESD
,
AOD
,
altprod
};
50
58
enum
DataType_t
{
userDefined
= 0,
monteCarlo
,
collisions
,
cosmics
,
heavyIonCollisions
};
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
79
static
Environment_t
environment
();
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
()
override
;
98
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
99
virtual
StatusCode
start
()
override
;
100
virtual
StatusCode
stop
()
override
;
101
102
virtual
std::string
fileKey
()
const
;
103
107
virtual
void
passOwnership
( TObject*
h
,
const
std::string& key );
108
112
virtual
void
writeAndDelete
(
const
std::string& key );
113
114
protected
:
115
ToolHandleArray<IMonitorToolBase>
m_monTools
;
116
117
ServiceHandle<ITHistSvc>
m_THistSvc
;
118
119
private
:
120
// Use private implementation idiom for more flexible development.
121
class
Imp
;
122
Imp
*
m_d
;
123
124
};
125
126
#endif
AthAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
h
Header file for AthHistogramAlgorithm.
AthenaMonManager::Imp
Definition
AthenaMonManager.cxx:33
AthenaMonManager::getLBsLowStat
static unsigned int getLBsLowStat()
Definition
AthenaMonManager.cxx:300
AthenaMonManager::m_monTools
ToolHandleArray< IMonitorToolBase > m_monTools
Definition
AthenaMonManager.h:115
AthenaMonManager::initialize
virtual StatusCode initialize() override
Definition
AthenaMonManager.cxx:358
AthenaMonManager::DataType_t
DataType_t
An enumeration of the different types of data the monitoring application may be running over.
Definition
AthenaMonManager.h:58
AthenaMonManager::monteCarlo
@ monteCarlo
Definition
AthenaMonManager.h:58
AthenaMonManager::userDefined
@ userDefined
Definition
AthenaMonManager.h:58
AthenaMonManager::heavyIonCollisions
@ heavyIonCollisions
Definition
AthenaMonManager.h:58
AthenaMonManager::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition
AthenaMonManager.h:117
AthenaMonManager::fillNumber
static unsigned int fillNumber()
Definition
AthenaMonManager.cxx:350
AthenaMonManager::envStringToEnum
static Environment_t envStringToEnum(const std::string &str)
Converts a string to an Environment_t of the same name.
Definition
AthenaMonManager.cxx:229
AthenaMonManager::dataTypeStringToEnum
static DataType_t dataTypeStringToEnum(const std::string &str)
Converts a string to a DataType_t of the same name.
Definition
AthenaMonManager.cxx:265
AthenaMonManager::Environment_t
Environment_t
An enumeration of the different types of running environment the monitoring application may be in.
Definition
AthenaMonManager.h:49
AthenaMonManager::user
@ user
Definition
AthenaMonManager.h:49
AthenaMonManager::online
@ online
Definition
AthenaMonManager.h:49
AthenaMonManager::noOutput
@ noOutput
Definition
AthenaMonManager.h:49
AthenaMonManager::tier0
@ tier0
Definition
AthenaMonManager.h:49
AthenaMonManager::tier0Raw
@ tier0Raw
Definition
AthenaMonManager.h:49
AthenaMonManager::tier0ESD
@ tier0ESD
Definition
AthenaMonManager.h:49
AthenaMonManager::altprod
@ altprod
Definition
AthenaMonManager.h:49
AthenaMonManager::AOD
@ AOD
Definition
AthenaMonManager.h:49
AthenaMonManager::writeAndDelete
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
Definition
AthenaMonManager.cxx:643
AthenaMonManager::getLBsHigStat
static unsigned int getLBsHigStat()
Definition
AthenaMonManager.cxx:306
AthenaMonManager::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
AthenaMonManager.cxx:466
AthenaMonManager::AthenaMonManager
AthenaMonManager(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AthenaMonManager.cxx:192
AthenaMonManager::m_d
Imp * m_d
Definition
AthenaMonManager.h:122
AthenaMonManager::getLBsMedStat
static unsigned int getLBsMedStat()
Definition
AthenaMonManager.cxx:303
AthenaMonManager::lumiBlockNumber
static unsigned int lumiBlockNumber()
Definition
AthenaMonManager.cxx:326
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition
AthenaMonManager.cxx:627
AthenaMonManager::environment
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
Definition
AthenaMonManager.cxx:295
AthenaMonManager::forkedProcess
bool forkedProcess()
Definition
AthenaMonManager.cxx:319
AthenaMonManager::~AthenaMonManager
virtual ~AthenaMonManager()
Definition
AthenaMonManager.cxx:218
AthenaMonManager::runNumber
static unsigned int runNumber()
Definition
AthenaMonManager.cxx:338
AthenaMonManager::start
virtual StatusCode start() override
Definition
AthenaMonManager.cxx:591
AthenaMonManager::dataType
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
Definition
AthenaMonManager.cxx:312
AthenaMonManager::passOwnership
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject to this manager so that it will be deleted appropriately.
Definition
AthenaMonManager.cxx:635
AthenaMonManager::stop
virtual StatusCode stop() override
Definition
AthenaMonManager.cxx:543
IMonitorToolBase
Definition
IMonitorToolBase.h:26
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition
ManagedMonitorToolBase.h:74
ServiceHandle
Definition
ClusterMakerTool.h:36
collisions
Definition
collisions.py:1
cosmics
Definition
cosmics.py:1
str
Definition
BTagTrackIpAccessor.cxx:11
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0