CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
iovInspector.WhatDescription Class Reference

Public Member Functions

def __init__
 
def commaSeparated
 
def describe
 
def multiple
 
def single
 

Private Attributes

 __me
 
 __ret
 

Detailed Description

Definition at line 9 of file iovInspector.py.

Constructor & Destructor Documentation

def iovInspector.WhatDescription.__init__ (   self,
  w 
)

Member Function Documentation

def iovInspector.WhatDescription.commaSeparated (   self,
  att 
)

Definition at line 35 of file iovInspector.py.

References iovInspector.WhatDescription.__ret.

Referenced by iovInspector.WhatDescription.describe().

35 
36  def commaSeparated(self,att) :
37  self.__ret[att]=('commaSeparated',[])
def iovInspector.WhatDescription.describe (   self)

Definition at line 13 of file iovInspector.py.

References iovInspector.WhatDescription.__me, iovInspector.WhatDescription.__ret, iovInspector.WhatDescription.commaSeparated(), dir, if(), iovInspector.WhatDescription.multiple(), PhysicsTools::TreeReader::Value.multiple, and iovInspector.WhatDescription.single().

13 
14  def describe(self) :
15  _w = self.__me
16  _atts = (att for att in dir(self.__me) if not (att[0]=='_' or att[0:4]=='set_' or att[0:6]=='descr_'))
17  for _att in _atts:
18  exec('_a=_w.'+_att+'()')
19  if (_a.__class__==CondDB.VInt):
20  if(hasattr(self.__me,'descr_'+_att)) :
21  self.multiple(_att)
22  else :
23  self.commaSeparated(_att)
24  else :
25  self.single(_att,_a)
26  return self.__ret
perl if(1 lt scalar(@::datatypes))
Definition: edlooper.cc:31
dbl *** dir
Definition: mlp_gen.cc:35
def iovInspector.WhatDescription.multiple (   self,
  att 
)

Definition at line 30 of file iovInspector.py.

References iovInspector.WhatDescription.__me, and iovInspector.WhatDescription.__ret.

Referenced by iovInspector.WhatDescription.describe().

30 
31  def multiple(self,att) :
32  _w = self.__me
33  exec('_d=_w.descr_'+att+'()')
34  self.__ret[att]=('multiple',[val for val in _d])
def iovInspector.WhatDescription.single (   self,
  att,
  a 
)

Definition at line 27 of file iovInspector.py.

References iovInspector.WhatDescription.__ret, and dir.

Referenced by iovInspector.WhatDescription.describe().

27 
28  def single(self,att,a) :
29  self.__ret[att]=('single',[val for val in dir(a) if not (val[0]=='_' or val=='name'or val=='values')])
dbl *** dir
Definition: mlp_gen.cc:35

Member Data Documentation

iovInspector.WhatDescription.__me
private

Definition at line 11 of file iovInspector.py.

Referenced by iovInspector.WhatDescription.describe(), iovInspector.WhatDescription.multiple(), and iovInspector.PayLoad.object().

iovInspector.WhatDescription.__ret
private

Definition at line 12 of file iovInspector.py.

Referenced by iovInspector.WhatDescription.commaSeparated(), iovInspector.WhatDescription.describe(), iovInspector.WhatDescription.multiple(), and iovInspector.WhatDescription.single().