Cocktails for 3.5GeV: the pp reaction


{
    
    PDecayChannel *c;
    PDecayManager *pdm = new PDecayManager;

    PParticle *beam   = new PParticle(14, 3.5);  // beam  14-proton
    PParticle *target = new PParticle(14);       // target
    PParticle *s      = new PParticle(*beam + *target);

    c = new PDecayChannel;                    //define reaction channels
    c->AddChannel(0.61,  "p", "D+");
    c->AddChannel(0.03,  "p", "p", "eta");                
    c->AddChannel(0.011, "p", "p", "w");
    c->AddChannel(0.02,  "p", "p", "rho0");

    PDecayChannel *c_d = new PDecayChannel;
    c_d->AddChannel(1.0, "e+", "e-");
    pdm->AddChannel("dilepton", c_d);

    PDecayChannel *c_pi0 = new PDecayChannel;                      //pi0
    c_pi0->AddChannel(.012, "g", "dilepton");
    pdm->AddChannel("pi0", c_pi0);

    PDecayChannel *c_delta = new PDecayChannel;
    c_delta->AddChannel(6.0e-5, "p", "dilepton");    // Delta
    c_delta->AddChannel(0.666, "p", "pi0");    // add decay mode with weight + products
    pdm->AddChannel("D+", c_delta);

    PDecayChannel *c_eta = new PDecayChannel;
    c_eta->AddChannel(6.0e-3, "g", "dilepton");    // eta
    pdm->AddChannel("eta", c_eta);

    PDecayChannel *c_omega = new PDecayChannel;
    c_omega->AddChannel(7.0e-5, "e+", "e-");    // omega
    c_omega->AddChannel(5.9e-4, "pi0", "dilepton");
    pdm->AddChannel("w", c_omega);

    PDecayChannel *c_rho = new PDecayChannel;                  //rho0
    c_rho->AddChannel(4.5e-5, "e+", "e-");
    pdm->AddChannel("rho0", c_rho);

    pdm->InitReaction(s, c);               // cocktail production in p + p

    Int_t n = pdm->loop(10000, 1, "pp35_cocktail", 1, 0, 0, 1, 1); // make events + vertices
    cout << "Events processed: " << n << endl;

    //Draw the spectrum:
    //data->Draw("M()","ID() == 51 || ID()==52 || ID()==41");

}

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