ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
PyPoolBrowser.RootItem Class Reference
Inheritance diagram for PyPoolBrowser.RootItem:
Collaboration diagram for PyPoolBrowser.RootItem:

Public Member Functions

def GetSubList (self)
 
def GetText (self)
 
def IsExpandable (self)
 
def GetIconName (self)
 
def OnDoubleClick (self)
 

Public Attributes

 name
 
 ref
 
 expandable
 
 classKey
 

Detailed Description

Definition at line 79 of file PyPoolBrowser.py.

Member Function Documentation

◆ GetIconName()

def PyPoolBrowser.EDMItem.GetIconName (   self)
inherited

Definition at line 32 of file PyPoolBrowser.py.

32  def GetIconName(self):
33  if not self.IsExpandable():
34  return "python" # XXX wish there was a "file" icon
35 

◆ GetSubList()

def PyPoolBrowser.RootItem.GetSubList (   self)

Reimplemented from PyPoolBrowser.EDMItem.

Definition at line 81 of file PyPoolBrowser.py.

81  def GetSubList (self):
82  sublist = []
83  # get EDM objects
84  attrs=dir(self.ref)
85  attrs.sort()
86  for attr in attrs:
87  # private
88  if re.search("\A_",attr):
89  continue
90  # else
91  attrRef = getattr(self.ref,attr)
92  item = EDMItem (attr,attrRef,True,attr)
93  sublist.append(item)
94  return sublist
95 

◆ GetText()

def PyPoolBrowser.EDMItem.GetText (   self)
inherited

Definition at line 26 of file PyPoolBrowser.py.

26  def GetText (self):
27  return self.name
28 

◆ IsExpandable()

def PyPoolBrowser.EDMItem.IsExpandable (   self)
inherited

Definition at line 29 of file PyPoolBrowser.py.

29  def IsExpandable (self):
30  return self.expandable
31 

◆ OnDoubleClick()

def PyPoolBrowser.EDMItem.OnDoubleClick (   self)
inherited

Definition at line 37 of file PyPoolBrowser.py.

37  def OnDoubleClick(self):
38  # not a leaf
39  if self.IsExpandable():
40  return
41  # doesn't belong to a class
42  if self.classKey == None:
43  return
44  # draw histogram
45  x = eval ('PyKernel.plot ("%s#%s", "$x.%s()")' % (objList[self.classKey], self.classKey, self.name))
46  # sleep is needed to draw up canvas
47  time.sleep(1)
48  # return is also needed. see PyKernel.plot
49  return x
50 

Member Data Documentation

◆ classKey

PyPoolBrowser.EDMItem.classKey
inherited

Definition at line 24 of file PyPoolBrowser.py.

◆ expandable

PyPoolBrowser.EDMItem.expandable
inherited

Definition at line 23 of file PyPoolBrowser.py.

◆ name

PyPoolBrowser.EDMItem.name
inherited

Definition at line 21 of file PyPoolBrowser.py.

◆ ref

PyPoolBrowser.EDMItem.ref
inherited

Definition at line 22 of file PyPoolBrowser.py.


The documentation for this class was generated from the following file:
beamspotman.dir
string dir
Definition: beamspotman.py:623