Skip to content
Snippets Groups Projects
Commit d6175c8e authored by Rene Brun's avatar Rene Brun
Browse files

from biagio.di.micco@cern.ch

The method ReadPDGTable of TDatabasePDG was setting the stable flags for all particles regardless of their width.


git-svn-id: http://root.cern.ch/svn/root/trunk@31955 27541ba8-7e3a-0410-8455-c3a389f83636
parent 5887b4cb
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ Andreas Hoecker, CERN/Atlas, TMVA <br/>
Wim Lavrijsen, LBNL, PyRoot<br/>
Sergei Linev, GSI,<br/>
Anar Manafov, GSI, <br/>
Biagio di Micco, Pythia8, <br/>
Lorenzo Moneta, CERN/SFT,<br/>
Axel Naumann, CERN/SFT,<br/>
Eddy Offermann, Renaissance, <br/>
......
......@@ -561,7 +561,7 @@ void TDatabasePDG::ReadPDGTable(const char *FileName)
Double_t mass, width, branching_ratio;
Int_t dau[20];
Int_t idecay, decay_type, flavor, ndau;
Int_t idecay, decay_type, flavor, ndau, stable;
while ( (c[0]=getc(file)) != EOF) {
......@@ -591,14 +591,15 @@ void TDatabasePDG::ReadPDGTable(const char *FileName)
fscanf(file,"%i",&nch);
// nothing more on this line
fgets(c,200,file);
if (width > 1e-10) stable = 0;
else stable = 1;
// create particle
TParticlePDG* part = AddParticle(name,
name,
mass,
1,
stable,
width,
charge,
class_name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment