Pluto v6.3.0
Loading...
Searching...
No Matches
embeddedParticles.C
Go to the documentation of this file.
1//TITLE <PEmbeddedParticles> Adds embedded particles in the eta Dalitz decay
2
3{
4
5 PReaction my_reaction(3.13, "p", "p", "p p eta [dilepton [e+ e-] g]", "eta_dalitz_embedded", 1, 0, 0, 0);
6
7 //Construct the bulk container:
9
10 //Add an e+ which we emit at a single point:
11 PParticle *e_plus = new PParticle("e+", 1., 2., 3.);
12 //Just add the particle to the container:
13 embedded->AddParticle(e_plus);
14
15 //We can also add a "white" dilepton, which we emit in a small cone:
16 PParticle *dilepton = new PParticle("dilepton");
17 embedded->AddParticle(dilepton);
18 embedded->SetSampling(0, 1., //pmin and pmax in lab frame
19 TMath::Pi()/1000., //opening angle
20 TMath::Pi()/2., //Theta of pointing vect.
21 TMath::Pi()/2., //Phi of pointing vect.
22 0.2, 1.5 //Mass sampling (optional)
23 );
24
25 //Add our container to the reaction:
27
28 my_reaction.loop(100000);
29}
PParticle * dilepton
PParticle * e_plus
PEmbeddedParticles * embedded
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")