Pluto v6.3.0
Loading...
Searching...
No Matches
dp_mult.C
Go to the documentation of this file.
1{ // test decay manager with 1AGeV d+p collisions
2 // R.H. 10/8/2000
3
5 pdm->SetVerbose();
6 // pdm->SetDefault("D0"); // use default Delta0 decays (not implemented!)
7 pdm->SetDefault("dilepton");
8
10 d1->AddChannel(1.0, "dilepton", "n");
11 pdm->AddChannel("D0", d1);
12
14 d1->AddChannel(1.0, "dilepton", "p");
15 pdm->AddChannel("D+", d2);
16
17 PDecayChannel *c = new PDecayChannel; // set up decay of d+p -> Delta -> e+e-
18 c->AddChannel(0.5*0.5, "p", "D0", "p");
19 c->AddChannel(0.5*0.5, "D+", "n", "p");
20 c->AddChannel(0.5*0.25, "p", "D+", "n");
21 c->AddChannel(0.5*0.25, "D+", "p", "n");
22
23 PParticle *d = new PParticle("d", 2.0);
24 PParticle *p = new PParticle("p");
25 PParticle *s = new PParticle(*d + *p);
26
27 pdm->InitReaction(s, c);
28 pdm->Print();
29
30 pdm->loop(10000, 0, "d+p", 1, 0, 0, 0);
31
32
33}
34
35
36
37
PParticle * d
PChannel * c[]
PDecayChannel * d1
Definition dp_mult.C:9
PParticle * p
Definition dp_mult.C:24
PParticle * s
Definition dp_mult.C:25
PDecayChannel * d2
Definition dp_mult.C:13
PDecayManager * pdm
Definition dp_w_dalitz.C:5