TDatabasePDG::GetParticleClass() instability stat

Dear ROOTers,

TDatabasePDG::GetParticleClass() causes a crash if the pdg table is not yet read in. In order to prevent from this I suggest to replace the current implementation by:

  TParticleClassPDG* GetParticleClass(const char* name) {
    if (fParticleList == 0)  ((TDatabasePDG*)this)->ReadPDGTable();
    return (TParticleClassPDG*) fListOfClasses->FindObject(name);
  }

Thanks in advance,
Oliver

Oliver,

Thanks for the suggestion. Now in CVS

Rene