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:
8
PEmbeddedParticles
*
embedded
=
new
PEmbeddedParticles
();
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:
26
my_reaction
.AddBulk(
embedded
);
27
28
my_reaction
.loop(100000);
29
}
PEmbeddedParticles
Definition
PEmbeddedParticles.h:13
PParticle
Definition
PParticle.h:25
PReaction
Definition
PReaction.h:37
dilepton
PParticle * dilepton
Definition
embeddedParticles.C:16
e_plus
PParticle * e_plus
Definition
embeddedParticles.C:11
embedded
PEmbeddedParticles * embedded
Definition
embeddedParticles.C:8
my_reaction
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
pluto6
macros
embeddedParticles.C
Generated by
1.14.0