Use the long example to produce eta Dalitz events


{
    Double_t beam_energy=2.2;
    PParticle p1("p",beam_energy);
    PParticle p2("p");
    
    PParticle q=p1+p2;       //construct the beam particle
    
    // eta production
    PParticle p3("p");
    PParticle p4("p");
    PParticle eta("eta");
    PParticle *eta_part[]={&q,&eta,&p4,&p3};
    PChannel eta_prod(eta_part,3,1);
    
    // eta dalitz decay
    PParticle di_eta("dilepton");
    PParticle g_eta("g");
    
    PParticle *dalitz_part_eta[]={&eta,&di_eta,&g_eta};
    PChannel dalitz_decay_eta(dalitz_part_eta,2,1);
    
    // decay of the eta dilepton   
    PParticle em_eta("e-");
    PParticle ep_eta("e+");
    PParticle *dileptons_eta[]={&di_eta,&em_eta,&ep_eta};
    PChannel dilepton_decay_eta(dileptons_eta,2,1);
    
    PChannel *c[ ]={&eta_prod,&dalitz_decay_eta,&dilepton_decay_eta};
    PReaction r(c,"eta_dalitz",3,0,0,0,1);
    r.Print();
    
    r.loop(10000);
}
 complete_eta.C:1
 complete_eta.C:2
 complete_eta.C:3
 complete_eta.C:4
 complete_eta.C:5
 complete_eta.C:6
 complete_eta.C:7
 complete_eta.C:8
 complete_eta.C:9
 complete_eta.C:10
 complete_eta.C:11
 complete_eta.C:12
 complete_eta.C:13
 complete_eta.C:14
 complete_eta.C:15
 complete_eta.C:16
 complete_eta.C:17
 complete_eta.C:18
 complete_eta.C:19
 complete_eta.C:20
 complete_eta.C:21
 complete_eta.C:22
 complete_eta.C:23
 complete_eta.C:24
 complete_eta.C:25
 complete_eta.C:26
 complete_eta.C:27
 complete_eta.C:28
 complete_eta.C:29
 complete_eta.C:30
 complete_eta.C:31
 complete_eta.C:32
 complete_eta.C:33
 complete_eta.C:34
 complete_eta.C:35