00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <Stiostream.h>
00022 #include <typeinfo>
00023 #include "StParticleTable.hh"
00024 #include "StParticleTypes.hh"
00025
00026 int main()
00027 {
00028 int i;
00029
00030
00031
00032
00033 StParticleTable *table = StParticleTable::instance();
00034 table->dump();
00035
00036
00037
00038
00039 cout << "The following particles have no PDG encoding:" << endl;
00040 StVecPtrParticleDefinition vec = table->allParticles();
00041 for (i=0; i<vec.size(); i++) {
00042 if (vec[i]->pdgEncoding() == 0)
00043 cout << vec[i]->name().c_str() << endl;
00044 }
00045
00046
00047
00048
00049 StParticleDefinition *p1, *p2;
00050 for (i=0; i<100; i++) {
00051 p1 = table->findParticleByGeantId(14);
00052 if (p1) {
00053 p2 = table->findParticle(p1->name());
00054 if (*p1 != *p2)
00055 cerr << "WARNING: inconsistency in lookup table" << endl;
00056 }
00057 }
00058 return 0;
00059 }