Using the pdg-code
{
//Analyze example:
PParticle *array[70];
for (int i=0; i<70; i++) {
array[i] = new PParticle(i);
}
makeDistributionManager()->Exec("pdg:init");
for (int i=0; i<70; i++) {
cout << array[i]->Name() << ", old id: " << array[i]->ID() << ", pdg code: " << array[i]->GetDBInt("pdg") << endl;
}
}
plugin_using_pdg_code.C:1 plugin_using_pdg_code.C:2 plugin_using_pdg_code.C:3 plugin_using_pdg_code.C:4 plugin_using_pdg_code.C:5 plugin_using_pdg_code.C:6 plugin_using_pdg_code.C:7 plugin_using_pdg_code.C:8 plugin_using_pdg_code.C:9 plugin_using_pdg_code.C:10 plugin_using_pdg_code.C:11 plugin_using_pdg_code.C:12 plugin_using_pdg_code.C:13 plugin_using_pdg_code.C:14 plugin_using_pdg_code.C:15 plugin_using_pdg_code.C:16 plugin_using_pdg_code.C:17 plugin_using_pdg_code.C:18