Commit 5d7926ef authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (PyKernel-00-00-42)

	* Tagging PyKernel-00-00-42.
	* share/InitPyKernel.py: PyCintex -> cppyy.

2015-03-02  scott snyder  <snyder@bnl.gov>

	* Tagging PyKernel-00-00-41.
	* python/PyKernel.py: Fix typo in last change.

2015-03-01  scott snyder  <snyder@bnl.gov>

	* Tagging PyKernel-00-00-40.
	* python/PyKernel.py: PyCintex -> cppyy.
	* PyKernel/PyReverseProxy.h: Fix compilation warnings.
parent f895ba21
################################################################################
# Package: PyKernel
################################################################################
# Declare the package name:
atlas_subdir( PyKernel )
# External dependencies:
find_package( PythonLibs )
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_library( PyKernel
src/*.cxx
PUBLIC_HEADERS PyKernel
INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${PYTHON_LIBRARIES}
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} )
atlas_add_dictionary( PyKernelDict
PyKernel/PyKernelDict.h
PyKernel/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${PYTHON_LIBRARIES} PyKernel )
# Install files from the package:
atlas_install_python_modules( python/*.py )
atlas_install_joboptions( share/*.py )
......@@ -11,6 +11,12 @@
@author Tadashi Maeno
*/
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif
#ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
#endif
#include "Python.h"
#include <map>
#include <string>
......
......@@ -18,13 +18,13 @@ __docformat__ = "restructuredtext en"
#"""
import re
import types
import PyCintex
import cppyy
import PyKHist
from math import *
from AthenaCommon.SystemOfUnits import *
# global name space
GNS = PyCintex.Namespace('')
GNS = cppyy.gbl
#"""
......@@ -119,8 +119,8 @@ def retrieve (aClass, aKey=None):
athena> obj = PyKernel.retrieve(g.MyClass,'mykey')
athena> obj = PyKernel.retrieve(g.MyClass) # when only one MyClass obj is in SG
where the prefix 'g' is the global namespace provided by PyCintex
g = PyCintex.Namespace('')
where the prefix 'g' is the global namespace provided by cppyy
g = cppyy.gbl
"""
#import workaround
......@@ -150,8 +150,8 @@ def retrieveDet (aClass, aKey=None):
athena> obj = PyKernel.retrieveDet(g.MyClass,'mykey')
athena> obj = PyKernel.retrieveDet(g.MyClass) # when only one MyClass obj is in SG
where the prefix 'g' is the global namespace provided by PyCintex
g = PyCintex.Namespace('')
where the prefix 'g' is the global namespace provided by cppyy
g = cppyy.gbl
"""
#import workaround
......
......@@ -3,11 +3,11 @@ from PyKernel import PyKernel
from PyKernel.PyKernel import plot,plot2,fill,fill2,dumpSG,book,bookProf
from PyKernel.PyKernel import plotProf,fillProf,unregister,dumpHist,retrieveHist
import PyCintex
PyCintex.loadDictionary("libPyKernelDict")
import cppyy
cppyy.loadDictionary("libPyKernelDict")
# Bind the C++ global namespace to the Python variable g
g = PyCintex.Namespace('')
g = cppyy.gbl
## temporary hack to 'fix' #58078
if 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment