User Tools

Site Tools


root:convpdgnumber

The convPDGnumber class

Idea

The C++-class convPDGnumber takes as an input the numbers of the Monte Carlo particle numbering schemes and provides information about them. The class is based on a list of all particles (PDGLaTeXTable.txt), according to the Review of Particle Physics 2008. From version 1.1 on, antiparticles are implemented as well.

Methods

The class has several methods.

  • latex(PDGnumber) - Returns the name of the particle in LaTeX-format (with a $ sign at the beginning and the end).
  • latexNoDollar(PDGnumber) - Returns the name of the particle in LaTeX-format (without the $ sign at the beginning and the end).
  • type(PDGnumber) - Returns the type of the particle, i.e. “Bottom Meson” or “Quarks”.
  • name(PDGnumber) - Returns the name of the particle in ASCII-format.
  • print() - Prints the whole list in ascending order.

Compilation

The class can be used in conjunction with BGlatex or alone. The easiest is to compile both with the Makefile provided in backcat.

Disclaimer

The numbering scheme is based on the 2008 edition of the Review of Particle Physics. However, I was not always sure when the antiparticles were concerned. I added all the antiparticles that seemed reasonable to me - if they don't exist in reality, the number will never be called and this should not lead to an error.

root/convpdgnumber.txt · Last modified: 2009/02/03 14:22 by decianm