Particle Data Table

Complete: 3

About the Particle Data Table in CMSSW

Short description of the Particle Data Table (PDT) in CMSSW and how to use them.

We are using the HepPDT package for creating/using the Particle Data Table.

What is available?

There are two Particle Data Tables available in CMSSW:

  • one based on the particles in Pythia : it includes hypothetic particles such as Higgs bosons and supersymmetric particles


  • one based on the PDG booklet : it only contains experimentally observed particles, but it also contains the errors on the measurements.
It is advised to use the Pythia table (for consistency with the generated particle properties). THIS PDG TABLE WILL DISAPPEAR SOON (in 1_4_0) to have 1 consistent table througout our software !!!!!

Using the Particle Data Table in CMSSW

  • In your .cfg files, include the following line:
  include "SimGeneral/HepPDTESSource/data/pythiapdt.cfi" 
  • In your code, you can access the particle data table as follows:

   // getting the table from the EventSource es and filling it into pdt
ESHandle < ParticleDataTable > pdt;
es.getData( pdt );

  • to see what you can do with the table, you can have a look at the
header files in:

Some examples:

const DefaultConfig::ParticleData * part = pdt->particle( "mu-");     // get the muon data
cout << " Particle properties of the " <<  part->name() << " are:" << endl;  
cout << " Particle ID = " <<  part->pid() <<  endl;  
cout << " Charge = " <<  part->charge() << endl;  
cout << " Mass = " <<  part->mass() << endl;

  • an example of an EDAnalyzer ("HepPDTAnalyzer") that prints out some particle properties can be found in


Review Status

Editor/Reviewer and date Comments
Main.fmoortga - 18 Jul 2006 Page author (Filip Moortgat)

Responsible: Main.fmoortga
Last reviewed by: Reviewer

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2009-10-21 - LucaLista

    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback