Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
Heppy
python
physicsobjects
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
Particle.Particle.__str__
def __str__
Definition:
Particle.py:3
Particle
Definition:
Particle.h:21
Generated for CMSSW Reference Manual by
1.8.5