Use the long example to produce omega Dalitz events

{
    gROOT->Reset();

    //((PDalitzDecay *) makeDistributionManager()->GetDistribution("w_dalitz"))->SetUseQED(1);
    // use this to get pure QED form factors

    PParticle *pim = new PParticle("pi-",1.1);
    PParticle *p   = new PParticle("p");
    PParticle *n   = new PParticle("n");
    PParticle *g   = new PParticle("dilepton");
    PParticle *w   = new PParticle("w");
    PParticle *pi0 = new PParticle("pi0");
    PParticle *em  = new PParticle("e-");
    PParticle *ep  = new PParticle("e+");
    PParticle *q   = new PParticle(*pim+*p);
    PParticle *s1[] = {q,n,w}, *s2[] = {w,pi0,g}, *s3[] = {g,em,ep};

    PChannel *ch1  = new PChannel(s1);
    PChannel *ch2  = new PChannel(s2);
    PChannel *ch3  = new PChannel(s3);
    PChannel *ch[] = {ch1,ch2,ch3};
    PReaction *r = new PReaction(ch, "w_dalitz", 3, 1, 0, 0);

    r->Print();
    // r->SetMaxFileSize(10000);  //make a lot of small files....
    r->loop(10000, 1);

    //data->Draw("M()","ID()==51");
}

 w_dalitz.C:1
 w_dalitz.C:2
 w_dalitz.C:3
 w_dalitz.C:4
 w_dalitz.C:5
 w_dalitz.C:6
 w_dalitz.C:7
 w_dalitz.C:8
 w_dalitz.C:9
 w_dalitz.C:10
 w_dalitz.C:11
 w_dalitz.C:12
 w_dalitz.C:13
 w_dalitz.C:14
 w_dalitz.C:15
 w_dalitz.C:16
 w_dalitz.C:17
 w_dalitz.C:18
 w_dalitz.C:19
 w_dalitz.C:20
 w_dalitz.C:21
 w_dalitz.C:22
 w_dalitz.C:23
 w_dalitz.C:24
 w_dalitz.C:25
 w_dalitz.C:26
 w_dalitz.C:27
 w_dalitz.C:28
 w_dalitz.C:29
 w_dalitz.C:30
 w_dalitz.C:31