Adds embedded particles in the eta Dalitz decay


{
    
    PReaction my_reaction(3.13, "p", "p", "p p eta [dilepton [e+ e-] g]", "eta_dalitz_embedded", 1, 0, 0, 0);

    //Construct the bulk container:
    PEmbeddedParticles *embedded = new PEmbeddedParticles();

    //Add an e+ which we emit at a single point:
    PParticle *e_plus = new PParticle("e+", 1., 2., 3.);  
    //Just add the particle to the container:
    embedded->AddParticle(e_plus);

    //We can also add a "white" dilepton, which we emit in a small cone:
    PParticle *dilepton = new PParticle("dilepton");
    embedded->AddParticle(dilepton);
    embedded->SetSampling(0, 1.,   //pmin and pmax in lab frame 
			  TMath::Pi()/1000., //opening angle
			  TMath::Pi()/2.,    //Theta of pointing vect.
			  TMath::Pi()/2.,    //Phi of pointing vect.
			  0.2, 1.5  //Mass sampling (optional)
			  ); 

    //Add our container to the reaction:
    my_reaction.AddBulk(embedded);

    my_reaction.loop(100000);
}
 embeddedParticles.C:1
 embeddedParticles.C:2
 embeddedParticles.C:3
 embeddedParticles.C:4
 embeddedParticles.C:5
 embeddedParticles.C:6
 embeddedParticles.C:7
 embeddedParticles.C:8
 embeddedParticles.C:9
 embeddedParticles.C:10
 embeddedParticles.C:11
 embeddedParticles.C:12
 embeddedParticles.C:13
 embeddedParticles.C:14
 embeddedParticles.C:15
 embeddedParticles.C:16
 embeddedParticles.C:17
 embeddedParticles.C:18
 embeddedParticles.C:19
 embeddedParticles.C:20
 embeddedParticles.C:21
 embeddedParticles.C:22
 embeddedParticles.C:23
 embeddedParticles.C:24
 embeddedParticles.C:25
 embeddedParticles.C:26
 embeddedParticles.C:27
 embeddedParticles.C:28
 embeddedParticles.C:29