CMS 3D CMS Logo

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.

00040                            :
00041        exec('import '+db.moduleName(tag)+' as Plug')
00042        ret ={}
00043        w =  WhatDescription(Plug.What())
00044        return w.describe()

def iovInspector::setWhat (   w,
  ret 
)

Definition at line 45 of file iovInspector.py.

00046                    :
00047        for key in ret.keys():
00048               _val = ret[key]
00049               if (type(_val)==type([])) :
00050                      _vi = CondDB.VInt()
00051                      for i in _val :
00052                             _vi.append(i)
00053                      exec ('w.set_'+key+'(_vi)')
00054               else :
00055                      exec ('w.set_'+key+'(w.'+key+'().'+ret[key]+')')
00056        return w
00057