Pluto v6.3.0
Loading...
Searching...
No Matches
using_pdg_code.C
Go to the documentation of this file.
1//TITLE Using the pdg-code
2
3{
4
5 //Analyze example:
6 PParticle *array[70];
7
8 for (int i=0; i<70; i++) {
9 array[i] = new PParticle(i);
10 }
11
12 makeDistributionManager()->Exec("pdg:init");
13
14 for (int i=0; i<70; i++) {
15 cout << array[i]->Name() << ", old id: " << array[i]->ID() << ", pdg code: " << array[i]->GetDBInt("pdg") << endl;
16 }
17
18}
const char * Name()
Definition PParticle.h:82
Int_t ID() const
Definition PParticle.h:80
Int_t GetDBInt(char *name)
Definition PParticle.h:160
makeDistributionManager() -> Exec("pdg:init")