CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
iovInspector Namespace Reference

Classes

class  Iov
 
class  PayLoad
 
class  WhatDescription
 

Functions

def extractorWhat
 
def setWhat
 

Function Documentation

def iovInspector.extractorWhat (   db,
  tag 
)

Definition at line 39 of file iovInspector.py.

39 
40 def extractorWhat(db, tag) :
41  exec('import '+db.moduleName(tag)+' as Plug')
42  ret ={}
43  w = WhatDescription(Plug.What())
44  return w.describe()
def iovInspector.setWhat (   w,
  ret 
)

Definition at line 45 of file iovInspector.py.

Referenced by iovInspector.Iov.trend(), and iovInspector.Iov.trendinrange().

45 
46 def setWhat(w,ret) :
47  for key in ret.keys():
48  _val = ret[key]
49  if (type(_val)==type([])) :
50  _vi = CondDB.VInt()
51  for i in _val :
52  _vi.append(i)
53  exec ('w.set_'+key+'(_vi)')
54  else :
55  exec ('w.set_'+key+'(w.'+key+'().'+ret[key]+')')
56  return w
57