The scattering of two nucleons inside deuterons


//This macro demonstrates how the model PFermiMomentumDD
//can be used

{
    //This is the real reaction:
    PParticle *beam   = new PParticle("d", 2.2);
    PParticle *target = new PParticle("d");

    //Set the values BEFORE using the "+" operator
    //beam->SetValue(P_SCATTER);
    target->SetValue(P_SCATTER);

    PParticle *s = new PParticle(*beam+*target);

    s->Print("scatter");

    //Quasi-free sub-reaction:
    PParticle *beam2   = new PParticle("p");
    PParticle *target2 = new PParticle("n");
    PParticle *spectator1 = new PParticle("n");
    PParticle *spectator2 = new PParticle("p");
    PParticle *s2 = new PParticle(*beam2 + *target2);

    //The 2 outgoing products of the p-n scattering:
    PParticle *p1  =new PParticle("p");
    PParticle *p2  =new PParticle("n");

    PParticle *cc1[] = {s, s2, spectator1, spectator2};
    PParticle *cc2[] = {s2, p1, p2};

    PChannel *c1 = new PChannel(cc1, 3);
    PChannel *c2 = new PChannel(cc2, 2);
    PChannel *cc[] = {c1,c2};

    //PFermiMomentumDD *pmodel = new PFermiMomentumDD("nn_in_dd","Quasi-free particle production");
    PFermiMomentumDD *pmodel = 
	new PFermiMomentumDD("nn_in_dd@d + d_to_p + n_n_p", "Quasi-free particle production", -1);

    //now add all particles
    //define spectators and final decay products (the granddaughters)
    pmodel->Add("q,parent");
    pmodel->Add("d,grandparent,beam");
    pmodel->Add("d,grandparent,target");
    pmodel->Add("p,daughter,spectator");
    pmodel->Add("n,daughter,spectator");
    pmodel->Add("q,daughter,composite"); 
    pmodel->Add("p,granddaughter,p1");
    pmodel->Add("n,granddaughter,p2");

    //make it known to the Pluto world:
    makeDistributionManager()->Add(pmodel);
    makeDistributionManager()->Print("user");//The "Print()" statement is optional

    PReaction *r = new PReaction(cc, "fermi_dd", 2, 1, 0, 0, 0);

    r->Print();

    r->loop(100000);
}
 fermi_dd.C:1
 fermi_dd.C:2
 fermi_dd.C:3
 fermi_dd.C:4
 fermi_dd.C:5
 fermi_dd.C:6
 fermi_dd.C:7
 fermi_dd.C:8
 fermi_dd.C:9
 fermi_dd.C:10
 fermi_dd.C:11
 fermi_dd.C:12
 fermi_dd.C:13
 fermi_dd.C:14
 fermi_dd.C:15
 fermi_dd.C:16
 fermi_dd.C:17
 fermi_dd.C:18
 fermi_dd.C:19
 fermi_dd.C:20
 fermi_dd.C:21
 fermi_dd.C:22
 fermi_dd.C:23
 fermi_dd.C:24
 fermi_dd.C:25
 fermi_dd.C:26
 fermi_dd.C:27
 fermi_dd.C:28
 fermi_dd.C:29
 fermi_dd.C:30
 fermi_dd.C:31
 fermi_dd.C:32
 fermi_dd.C:33
 fermi_dd.C:34
 fermi_dd.C:35
 fermi_dd.C:36
 fermi_dd.C:37
 fermi_dd.C:38
 fermi_dd.C:39
 fermi_dd.C:40
 fermi_dd.C:41
 fermi_dd.C:42
 fermi_dd.C:43
 fermi_dd.C:44
 fermi_dd.C:45
 fermi_dd.C:46
 fermi_dd.C:47
 fermi_dd.C:48
 fermi_dd.C:49
 fermi_dd.C:50
 fermi_dd.C:51
 fermi_dd.C:52
 fermi_dd.C:53
 fermi_dd.C:54
 fermi_dd.C:55
 fermi_dd.C:56
 fermi_dd.C:57
 fermi_dd.C:58
 fermi_dd.C:59
 fermi_dd.C:60
 fermi_dd.C:61