Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:28

0001 class Particle(object):
0002 
0003     def __str__(self):
0004         tmp = '{className} : {pdgId:>3}, pt={pt:5.1f}, eta={eta:5.2f}, phi={phi:5.2f}, mass={mass:5.2f}'
0005         return tmp.format( className = self.__class__.__name__,
0006                            pdgId = self.pdgId(),
0007                            pt = self.pt(),
0008                            eta = self.eta(),
0009                            phi = self.phi(),
0010                            mass = self.mass() )
0011