Produce Delta Dalitz events in the quasi-free n+p (d+p) collision

// This macro tests:
//   1. The deuteron Fermi sampling
//   2. The mass-dependent width Breit-Wigner distribution of the Delta 
//   3. The anisotropic (s+p wave) production angle for the pn->pDelta channel
//   4. The dilepton mass for Delta Dalitz decay
{
gROOT->Reset();

PParticle *p1=new PParticle("d",2.);          // projectile   = 1 GeV/u
PParticle *p2=new PParticle("p");             // target
PParticle *p3=new PParticle("p");
PParticle *p4=new PParticle("p");
PParticle *delta=new PParticle("D0");

PParticle *p5=new PParticle("n");
PParticle *dl=new PParticle("dilepton");

PParticle *em=new PParticle("e-");
PParticle *ep=new PParticle("e+");

PParticle *q=new PParticle(*p1+*p2);   // composite p+d
//q->SetW(0.1);

PParticle *s1[]={q,p3,delta,p4}, *s2[]={delta,p5,dl}, *s3[]={dl,em,ep};

PChannel *c1=new PChannel(s1,3);
PChannel *c2=new PChannel(s2);
PChannel *c3=new PChannel(s3);
PChannel *cc[]={c1,c2,c3};

PReaction *r=new PReaction(cc,"dp_delta_dalitz",3,1);

r->Print();
r->loop(10000);
}











 dp_delta_dalitz.C:1
 dp_delta_dalitz.C:2
 dp_delta_dalitz.C:3
 dp_delta_dalitz.C:4
 dp_delta_dalitz.C:5
 dp_delta_dalitz.C:6
 dp_delta_dalitz.C:7
 dp_delta_dalitz.C:8
 dp_delta_dalitz.C:9
 dp_delta_dalitz.C:10
 dp_delta_dalitz.C:11
 dp_delta_dalitz.C:12
 dp_delta_dalitz.C:13
 dp_delta_dalitz.C:14
 dp_delta_dalitz.C:15
 dp_delta_dalitz.C:16
 dp_delta_dalitz.C:17
 dp_delta_dalitz.C:18
 dp_delta_dalitz.C:19
 dp_delta_dalitz.C:20
 dp_delta_dalitz.C:21
 dp_delta_dalitz.C:22
 dp_delta_dalitz.C:23
 dp_delta_dalitz.C:24
 dp_delta_dalitz.C:25
 dp_delta_dalitz.C:26
 dp_delta_dalitz.C:27
 dp_delta_dalitz.C:28
 dp_delta_dalitz.C:29
 dp_delta_dalitz.C:30
 dp_delta_dalitz.C:31
 dp_delta_dalitz.C:32
 dp_delta_dalitz.C:33
 dp_delta_dalitz.C:34
 dp_delta_dalitz.C:35
 dp_delta_dalitz.C:36
 dp_delta_dalitz.C:37
 dp_delta_dalitz.C:38
 dp_delta_dalitz.C:39
 dp_delta_dalitz.C:40
 dp_delta_dalitz.C:41
 dp_delta_dalitz.C:42
 dp_delta_dalitz.C:43
 dp_delta_dalitz.C:44
 dp_delta_dalitz.C:45
 dp_delta_dalitz.C:46
 dp_delta_dalitz.C:47