ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaPython
AthenaPython
AthenaPythonDict.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef ATHENAPYTHON_ATHENAPYTHONDICT_H
8
#define ATHENAPYTHON_ATHENAPYTHONDICT_H
9
10
#include <string>
11
#include <typeinfo>
12
#include "GaudiKernel/IEvtSelector.h"
13
#include "GaudiKernel/IClassIDSvc.h"
14
#include "GaudiKernel/ITHistSvc.h"
15
#include "
AthenaKernel/IThinningHdlr.h
"
16
#include "
AthenaKernel/ISlimmingHdlr.h
"
17
#include "
AthenaKernel/IValgrindSvc.h
"
18
#include "
AthenaKernel/IDictLoaderSvc.h
"
19
#include "
AthenaKernel/IEvtIdModifierSvc.h
"
20
#include "GaudiKernel/IIoComponent.h"
21
#include "GaudiKernel/IIoComponentMgr.h"
22
23
#include "
AthenaBaseComps/AthAlgorithm.h
"
24
#include "
AthenaBaseComps/AthAlgTool.h
"
25
#include "
AthenaBaseComps/AthService.h
"
26
27
#include "
AthenaPython/PyAthenaAlg.h
"
28
#include "
AthenaPython/PyAthenaSvc.h
"
29
#include "
AthenaPython/PyAthenaTool.h
"
30
#include "
AthenaPython/PyAthenaAud.h
"
31
32
namespace
AthenaInternal
{
33
34
class
ROOT6_AthenaPython_WorkAround_Dummy
{};
35
36
CLID
getClid
( IClassIDSvc* self,
const
std::string& typeName ) {
37
CLID
clid = CLID_NULL;
38
self->getIDOfTypeName(typeName, clid).ignore();
39
return
clid;
40
}
41
42
std::pair<StatusCode, TH1*>
getHist
(ITHistSvc& svc,
43
const
std::string& name,
44
size_t
index
= 0)
45
{
46
TH1* o =
nullptr
;
47
StatusCode
sc
= svc.getHist (name, o,
index
);
48
return
std::make_pair (
sc
, o);
49
}
50
51
std::pair<StatusCode, TGraph*>
getGraph
(ITHistSvc& svc,
52
const
std::string& name)
53
{
54
TGraph* o =
nullptr
;
55
StatusCode
sc
= svc.getGraph (name, o);
56
return
std::make_pair (
sc
, o);
57
}
58
59
std::pair<StatusCode, TEfficiency*>
getEfficiency
(ITHistSvc& svc,
60
const
std::string& name)
61
{
62
TEfficiency* o =
nullptr
;
63
StatusCode
sc
= svc.getEfficiency (name, o);
64
return
std::make_pair (
sc
, o);
65
}
66
67
std::pair<StatusCode, TTree*>
getTree
(ITHistSvc& svc,
68
const
std::string& name)
69
{
70
TTree* o =
nullptr
;
71
StatusCode
sc
= svc.getTree (name, o);
72
return
std::make_pair (
sc
, o);
73
}
74
75
}
// namespace AthenaInternal
76
77
#endif
// ATHENAPYTHON_ATHENAPYTHONDICT_H
AthAlgTool.h
AthAlgorithm.h
AthService.h
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IDictLoaderSvc.h
IEvtIdModifierSvc.h
ISlimmingHdlr.h
IThinningHdlr.h
IValgrindSvc.h
sc
static Double_t sc
Definition
LArPhysWaveHECTool.cxx:37
PyAthenaAlg.h
PyAthenaAud.h
PyAthenaSvc.h
PyAthenaTool.h
AthenaInternal::ROOT6_AthenaPython_WorkAround_Dummy
Definition
AthenaPythonDict.h:34
AthenaInternal
Definition
AthenaPythonDict.h:32
AthenaInternal::getTree
std::pair< StatusCode, TTree * > getTree(ITHistSvc &svc, const std::string &name)
Definition
AthenaPythonDict.h:67
AthenaInternal::getEfficiency
std::pair< StatusCode, TEfficiency * > getEfficiency(ITHistSvc &svc, const std::string &name)
Definition
AthenaPythonDict.h:59
AthenaInternal::getHist
std::pair< StatusCode, TH1 * > getHist(ITHistSvc &svc, const std::string &name, size_t index=0)
Definition
AthenaPythonDict.h:42
AthenaInternal::getClid
CLID getClid(IClassIDSvc *self, const std::string &typeName)
Definition
AthenaPythonDict.h:36
AthenaInternal::getGraph
std::pair< StatusCode, TGraph * > getGraph(ITHistSvc &svc, const std::string &name)
Definition
AthenaPythonDict.h:51
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0