ATLAS Offline Software
Loading...
Searching...
No Matches
PyEventTools.py
Go to the documentation of this file.
1# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2
3"""module to access Event objects interactively
4
5:author: Tadashi Maeno
6:contact: Tadashi.Maeno@cern.ch
7
8"""
9__docformat__ = "restructuredtext en"
10
11from PyKernel import PyKernel as PyK
12
13def getEventInfo (aKey):
14 """Retrieve EventInfo object from SG
15
16 :param aKey: key of the object
17
18 **examples**::
19
20 athena> e = PyEventTools.getEventInfo('McEventInfo')
21 athena> print e.event_ID().event_number()
22
23 """
24 return PyK.retrieve('xAOD::EventInfo',aKey)