2 from PhysicsTools.Heppy.physicsobjects.Particle
import Particle
5 '''Wrapper to particle-like C++ objects.''' 12 '''Very dirty trick, the physObj is deepcopied...''' 13 physObj = copy.deepcopy( self.
physObj )
14 newone = type(self)(physObj)
15 newone.__dict__.update(self.__dict__)
16 newone.physObj = physObj
20 p4 = self.physObj.p4()
22 self.physObj.setP4( p4 )
26 '''Makes all attributes and methods of the wrapped physObj 27 directly available.''' 28 return getattr(self.
physObj, name)
def scaleEnergy(self, scale)
def __getattr__(self, name)
def __init__(self, physObj)