Omega Dalitz with decay manager in the p+d reaction


{
    PDecayChannel *c   = new PDecayChannel;
    PDecayManager *pdm = new PDecayManager;
    pdm->SetVerbose(1);          // Print really useful info
    
    PParticle *p = new PParticle("p", 3.5); // proton beam
    PParticle *d = new PParticle("d");      // deuteron target
    PParticle *s = new PParticle(*p + *d);  // composite quasiparticle
    
    pdm->SetDefault("w");        // include omega decay modes
    pdm->SetDefault("pi0");      // include pi0 decay modes
    pdm->SetDefault("dilepton"); // e+e- production
    
    c = new PDecayChannel;    
    c->AddChannel(0.1, "p", "d", "w");        // coherent reaction
    c->AddChannel(0.9, "p", "p", "pi0", "n"); // breakup reaction (spec. last)
    pdm->InitReaction(s, c);                  // initialize the reaction
    
    pdm->loop(10000, 0, "pdomega", 1, 0, 0, 1, 0);   
    //arguments: num_events, weighting, filename, f0-f3, random_flag

    //data->Draw("M()","(ID()==52) * W()");
}
 dp_w_dalitz.C:1
 dp_w_dalitz.C:2
 dp_w_dalitz.C:3
 dp_w_dalitz.C:4
 dp_w_dalitz.C:5
 dp_w_dalitz.C:6
 dp_w_dalitz.C:7
 dp_w_dalitz.C:8
 dp_w_dalitz.C:9
 dp_w_dalitz.C:10
 dp_w_dalitz.C:11
 dp_w_dalitz.C:12
 dp_w_dalitz.C:13
 dp_w_dalitz.C:14
 dp_w_dalitz.C:15
 dp_w_dalitz.C:16
 dp_w_dalitz.C:17
 dp_w_dalitz.C:18
 dp_w_dalitz.C:19
 dp_w_dalitz.C:20
 dp_w_dalitz.C:21
 dp_w_dalitz.C:22
 dp_w_dalitz.C:23
 dp_w_dalitz.C:24
 dp_w_dalitz.C:25