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
}
PParticle
Definition
PParticle.h:25
PParticle::Name
const char * Name()
Definition
PParticle.h:82
PParticle::ID
Int_t ID() const
Definition
PParticle.h:80
PParticle::GetDBInt
Int_t GetDBInt(char *name)
Definition
PParticle.h:160
makeDistributionManager
makeDistributionManager() -> Exec("pdg:init")
pluto6
plugins
pdg_unigen
macros
using_pdg_code.C
Generated by
1.14.0