CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FastObjects.py
Go to the documentation of this file.
1 import ROOT
2 def AddPhysObj(x):
3  x.physObj = x
4  return x
6  x.physObj = x
7  x._physObjInit()
8  return x
9 
10 
11 def decorate(orig,deco):
12  for b in deco.__bases__ :
13  decorate(orig,b)
14  for m in deco.__dict__ :
15  if m[0] != "_" or m[1] != "_" :
16  setattr(orig,m,deco.__dict__[m])
17  #print m
18 
19 
20 #$ef decorate(oldstyle):
21 # cmssw=eval("ROOT.pat.%s"%oldstyle.__name__)
22 # for ty in tuple([oldstyle])+oldstyle.__bases__:
23 # print ty
24 # for m in ty.__dict__ :
25 # if m[0] != "_" or m[1] != "_":
26 # setattr(cmssw,m,ty.__dict__[m])
27 # print m
28 
29 # decorate(o)
30 # o=AddPhysObj
def AddPhysObjAndCallInit
Definition: FastObjects.py:5
def AddPhysObj
Definition: FastObjects.py:2