ATLAS Offline Software
|
Classes | |
class | _DummyClass |
class | _SetEventCounter |
Functions | |
def | init (v_theApp, v_rootStream=None) |
def | retrieve (aClass, aKey=None) |
def | retrieveDet (aClass, aKey=None) |
def | fill (hist, classAndKey, value, criteria="True", nEvent=100) |
def | plot (classAndKey, value="$x", criteria="True", nEvent=100) |
def | fill2 (hist, classAndKey, valueX, valueY, criteria="True", nEvent=100) |
def | plot2 (classAndKey, valueX="$x", valueY="$x", criteria="True", nEvent=100) |
def | fillProf (hist, classAndKey, valueX, valueY, criteria="True", nEvent=100) |
def | plotProf (classAndKey, valueX="$x", valueY="$x", criteria="True", nEvent=100) |
def | _parseString (str) |
def | dumpSG () |
def | unregister (path) |
def | dumpHist () |
def | preProcess () |
def | normalProcess () |
def | hybridProcess () |
Variables | |
string | __docformat__ = "restructuredtext en" |
GNS = cppyy.gbl | |
int | _PreProcess = 0 |
int | _NormalProcess = 1 |
int | _HybridProcess = 2 |
AttributeList | |
AANT | |
storeGate = None | |
detStore = None | |
|
private |
Definition at line 719 of file PyKernel.py.
def python.PyKernel.dumpHist | ( | ) |
Dump histograms in HistogramSvc **examples**:: athena> dumpHist()
Definition at line 765 of file PyKernel.py.
def python.PyKernel.dumpSG | ( | ) |
Dump objects in StoreGate **examples**:: athena> dumpSG()
Definition at line 737 of file PyKernel.py.
def python.PyKernel.fill | ( | hist, | |
classAndKey, | |||
value, | |||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Fill 1D-histogram :param hist: reference to AIDA or ROOT histogram :param classAndKey: combination of class name and key separeted with "#". "Class#Key" :param value: physics parameter in string :param criteria: selection criteria :param nEvent: number of event to be processed **examples**:: athena> fill(h,"ElectronContainer#ElectronCollection","$x.pt()") fill hist with pt of electrons "$x" denotes an element of "Class#Key", if "Class#Key" is a collection athena> fill(h,"MissingET#MET_Calib","$x.sumet()") fill hist with et of MissingET. "$x" denotes "Class#Key" itself, if "Class#Key" is not a vector-like class athena> fill(h,"ElectronContainer#ElectronCollection","$x.pt()","$x.pz()>0") apply a selection criteria For more detail of parameters, see `PyAnalysisExamples/PlotTest.py`_ .. _PyAnalysisExamples/PlotTest.py: http://atlas-sw.cern.ch/cgi-bin/viewcvs-atlas.cgi/offline/PhysicsAnalysis/PyAnalysis/PyAnalysisExamples/share/PlotTest.py?rev=HEAD&content-type=text/vnd.viewcvs-markup
Definition at line 168 of file PyKernel.py.
def python.PyKernel.fill2 | ( | hist, | |
classAndKey, | |||
valueX, | |||
valueY, | |||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Fill 2D-histogram :param hist: reference to AIDA or ROOT histogram :param classAndKey: combination of class name and key separeted with '#', 'Class#Key' :param valueX: physics parameter for X in string :param valueY: physics parameter for Y in string :param criteria: selection criteria :param nEvent: number of event to be processed For detail, see `fill`
Definition at line 349 of file PyKernel.py.
def python.PyKernel.fillProf | ( | hist, | |
classAndKey, | |||
valueX, | |||
valueY, | |||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Fill profile-histogram :param hist: reference to AIDA or ROOT histogram :param classAndKey: combination of class name and key separeted with '#', 'Class#Key' :param valueX: physics parameter for X in string :param valueY: physics parameter for Y in string :param criteria: selection criteria :param nEvent: number of event to be processed For detail, see `fill`
Definition at line 546 of file PyKernel.py.
def python.PyKernel.hybridProcess | ( | ) |
def python.PyKernel.init | ( | v_theApp, | |
v_rootStream = None |
|||
) |
Initialize core This method is called in `PyKernel/InitPyKernel.py`_. :param v_theApp: reference to the application manager. theApp **examples**:: athena> PyKernel.init(theApp) .. _PyKernel/InitPyKernel.py: http://atlas-sw.cern.ch/cgi-bin/viewcvs-atlas.cgi/offline/Control/PyKernel/share/InitPyKernel.py?rev=HEAD&content-type=text/vnd.viewcvs-markup
Definition at line 45 of file PyKernel.py.
def python.PyKernel.normalProcess | ( | ) |
def python.PyKernel.plot | ( | classAndKey, | |
value = "$x" , |
|||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Plot 1D-histogram :param classAndKey: combination of class name and key separeted with '#'. 'Class#Key' :param value: physics parameter in string :param criteria: selection criteria :param nEvent: number of event to be processed **examples**:: athena> plot('ElectronContainer#ElectronCollection','$x.pt()') plot pt of electrons For detail, see `PyAnalysisExamples/PlotTest.py`_ .. _PyAnalysisExamples/PlotTest.py: http://atlas-sw.cern.ch/cgi-bin/viewcvs-atlas.cgi/offline/PhysicsAnalysis/PyAnalysis/PyAnalysisExamples/share/PlotTest.py?rev=HEAD&content-type=text/vnd.viewcvs-markup
Definition at line 320 of file PyKernel.py.
def python.PyKernel.plot2 | ( | classAndKey, | |
valueX = "$x" , |
|||
valueY = "$x" , |
|||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Plot 2D-histogram :param classAndKey: combination of class name and key separeted with '#', 'Class#Key' :param valueX: physics parameter for X in string :param valueY: physics parameter for Y in string :param criteria: selection criteria :param nEvent: number of event to be processed For detail, see `plot`
Definition at line 525 of file PyKernel.py.
def python.PyKernel.plotProf | ( | classAndKey, | |
valueX = "$x" , |
|||
valueY = "$x" , |
|||
criteria = "True" , |
|||
nEvent = 100 |
|||
) |
Plot profile-histogram :param classAndKey: combination of class name and key separeted with '#', 'Class#Key' :param valueX: physics parameter for X in string :param valueY: physics parameter for Y in string :param criteria: selection criteria :param nEvent: number of event to be processed For detail, see `plot`
Definition at line 698 of file PyKernel.py.
def python.PyKernel.preProcess | ( | ) |
def python.PyKernel.retrieve | ( | aClass, | |
aKey = None |
|||
) |
Retrieve object from StoreGate :param aClass: type of the class :param aKey: key of the object **examples**:: 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 cppyy g = cppyy.gbl
Definition at line 110 of file PyKernel.py.
def python.PyKernel.retrieveDet | ( | aClass, | |
aKey = None |
|||
) |
Retrieve object from DetectorStore :param aClass: type of the class :param aKey: key of the object **examples**:: 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 cppyy g = cppyy.gbl
Definition at line 141 of file PyKernel.py.
def python.PyKernel.unregister | ( | path | ) |
Unregister histogram from HistogramSvc :param path: path to the histogram **examples**:: athena> unregister("/stat/tmpHist")
Definition at line 750 of file PyKernel.py.
|
private |
Definition at line 15 of file PyKernel.py.
|
private |
Definition at line 32 of file PyKernel.py.
|
private |
Definition at line 31 of file PyKernel.py.
|
private |
Definition at line 30 of file PyKernel.py.
python.PyKernel.AANT |
Definition at line 37 of file PyKernel.py.
python.PyKernel.AttributeList |
Definition at line 36 of file PyKernel.py.
python.PyKernel.detStore = None |
Definition at line 41 of file PyKernel.py.
python.PyKernel.GNS = cppyy.gbl |
Definition at line 25 of file PyKernel.py.
python.PyKernel.storeGate = None |
Definition at line 40 of file PyKernel.py.