ATLAS Offline Software
Loading...
Searching...
No Matches
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"
20#include "GaudiKernel/IIoComponent.h"
21#include "GaudiKernel/IIoComponentMgr.h"
22
26
31
32namespace AthenaInternal {
33
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
uint32_t CLID
The Class ID type.
static Double_t sc
std::pair< StatusCode, TTree * > getTree(ITHistSvc &svc, const std::string &name)
std::pair< StatusCode, TEfficiency * > getEfficiency(ITHistSvc &svc, const std::string &name)
std::pair< StatusCode, TH1 * > getHist(ITHistSvc &svc, const std::string &name, size_t index=0)
CLID getClid(IClassIDSvc *self, const std::string &typeName)
std::pair< StatusCode, TGraph * > getGraph(ITHistSvc &svc, const std::string &name)
Definition index.py:1