Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:27

0001 import ROOT
0002 def AddPhysObj(x):
0003     x.physObj = x
0004     return x
0005 def AddPhysObjAndCallInit(x):
0006     x.physObj = x
0007     x._physObjInit()
0008     return x
0009 
0010 
0011 def decorate(orig,deco):
0012    for b in deco.__bases__ :
0013         decorate(orig,b)
0014    for m in deco.__dict__ :
0015         if m[0] != "_" or m[1] != "_" :
0016                 setattr(orig,m,deco.__dict__[m])
0017                 #print m
0018 
0019 
0020 #$ef decorate(oldstyle):
0021 #   cmssw=eval("ROOT.pat.%s"%oldstyle.__name__)
0022 #   for ty in tuple([oldstyle])+oldstyle.__bases__:
0023 #  print ty
0024 #      for m in ty.__dict__ :
0025 #        if m[0] != "_" or m[1] != "_":
0026 #                setattr(cmssw,m,ty.__dict__[m])
0027 #               print m
0028 
0029 #   decorate(o)
0030 #   o=AddPhysObj