CMS 3D CMS Logo

Particle.py
Go to the documentation of this file.
1 class Particle(object):
2 
3  def __str__(self):
4  tmp = '{className} : {pdgId:>3}, pt={pt:5.1f}, eta={eta:5.2f}, phi={phi:5.2f}, mass={mass:5.2f}'
5  return tmp.format( className = self.__class__.__name__,
6  pdgId = self.pdgId(),
7  pt = self.pt(),
8  eta = self.eta(),
9  phi = self.phi(),
10  mass = self.mass() )
11 
def __str__(self)
Definition: Particle.py:3