- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
Notes on TDatabasePDG and TParticlePDG
TDatabasePDG and TParticleDB may be a better alternative to the particle codes used in the StarClassLibrary. Examining the code, I have a few notes about it. Will make some remarks at the end about how STAR can benefit from this class.
TDatabasePDG reads in particle properties and the particle data group ID associated with each particle. These properties include mass, charge, lifetime, etc... They also contain the decay modes for each particle. The code reads the data from a text file located at $ROOTSTS/etc/pdg_table.txt.
The advantage over the StarClassLibrary is
(1) The code is an interface to a plain text file rather than N~100 different classes,
(2) The full list of PDG particles is in the text file, rather than the subset which appears in StarClassLibrary,
(3) The interface to the database (TDatabasePDG) is maintained by the ROOT team,
...
A few limitations of the class:
+ The geant3 (G3) particle IDs are mapped to the PDG ids in a hardcoded lookup table
+ Ditto for the isajet/pythia ids.
+ No facility provided for defining a user mapping
+ It is not clear whether the text file is updated with ROOT releases, or with ROOT releases following
Groups:
- jwebb's blog
- Login or register to post comments