Pluto v6.3.0
Loading...
Searching...
No Matches
dp_cocktail_1.25.C
Go to the documentation of this file.
1//TITLE <b>Total cross sections:</b> The dp cocktail at 1.25AGeV
2//
3//
4{
5
6//for explanations what is going on here see pp_cocktail_1.25.C
7
8 makeDistributionManager()->Exec("elementary");
9 makeDistributionManager()->Exec("brems: kaptari; weighting");
10
11//makeDistributionManager()->Exec("brems: delta");
12 makeDistributionManager()->Exec("brems: sum");
13//makeDistributionManager()->Exec("brems: elastic");
14
15//makeDistributionManager()->Exec("brems: fsi");
16
18 new PTCrossWeight("n + p_to_n_p_pi0_pi0/tcross",
19 "Cross section for double pi0 production",-1);
20 my_cross->SetCrossSection(0.1 * 0.001 * 2); //0.1mb times 2 (see below)
22
23 makeDistributionManager()->Exec("dalitz_mod: krivoruchenko");
24 makeDistributionManager()->Exec("dalitz_mod: static_br_thresh=0.100 ; flat_generator");
25
26//Once we are done, print the collection just to see if the plugins worked:
27
28 makeDistributionManager()->Print("root");
29
30//Here we have to add all isospin channels
31
33 new PReaction("2.50","d","p","n D+ [p pi0 [g dilepton [e+ e-]]] (p)","dp_1.25",1,0,0,0);
34 my_reaction->AddReaction("p D0 [n pi0 [g dilepton [e+ e-]]] (p)");
35 my_reaction->AddReaction("p n pi0 pi0 [g dilepton [e+ e-]] (p)");
36
37 //Add Delta, if you want that:
38 //my_reaction->AddReaction("n D+ [p dilepton [e+ e-]] (p)");
39 //my_reaction->AddReaction("p D0 [n dilepton [e+ e-]] (p)");
40
41 //Add Bremsstrahlung, if you want that:
42 my_reaction->AddReaction("n p dilepton [e+ e-] (p)");
43 //keep in mind double counting, if you enabled brems with "delta" or "sum"
44
45//Attach a control histogram
46 TH1F * pn_sum =
47 new TH1F ("pn_sum","pn DiLepton mass",100,0.,0.6);
48 pn_sum->Sumw2();
49
50 my_reaction->Do(pn_sum,"_x=[dilepton]->M()");
51
52 my_reaction->Print();
53
54 my_reaction->Preheating(100);
55 my_reaction->Loop(10000);
56
57 //Subtreshold eta production
58 //make an extra reaction to have an independent histo
60 new PReaction("2.50","d","p","n p eta [g dilepton [e+ e-]] (p)",NULL,1,0,0,0);
61 my_reaction2->AddReaction("d eta [g dilepton [e+ e-]] (p)");
62
63 my_reaction2->Print();
64
65//Only eta
66 TH1F * eta_sum =
67 new TH1F ("eta_sum","pn DiLepton mass (coherent sum)",100,0.,0.6);
68
69 eta_sum->Sumw2();
70
71 my_reaction2->Do(eta_sum,"_x=[dilepton]->M()");
72
73 my_reaction2->Preheating(100);
74
75 my_reaction2->Loop(10000);
76
77
78//It is very crucial to correct the histo for binsize
82
83
84 TCanvas *c1 = new TCanvas("ee_mass", "ee invmass",800,800);
85 c1->SetLogy(1);
86 pn_sum->Draw();
87 eta_sum->Draw("same");
88
89}
new TCanvas()
static void correct(TH1 *histo)
PTCrossWeight * my_cross
TH1F * pn_sum
TH1F * eta_sum
makeDistributionManager() -> Exec("brems: kaptari; weighting")
PReaction my_reaction2("2.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")