Pluto
v6.3.0
Loading...
Searching...
No Matches
pn_ela.C
Go to the documentation of this file.
1
//TITLE Low-energy pp scattering
2
3
{
4
gROOT->Reset();
5
6
makeDistributionManager
()->Enable(
"pn_elastic"
);
7
8
TCanvas
*
test_elastic_phi
=
new
9
TCanvas
(
"test_elastic_phi"
,
"pn elastic"
,100,10,600,400);
10
11
TCanvas
*
test_elastic_theta
=
new
12
TCanvas
(
"test_elastic_theta"
,
"pn elastic"
,200,5,700,800);
13
test_elastic_theta
->Divide(2,2);
14
15
PReaction
ela_pn
(
"0.0011"
,
"p"
,
"n"
,
"p n"
);
16
ela_pn
->Print();
17
TH1F *
phi1
=
new
TH1F (
"phi10"
,
"1 MeV Azimuthal angle"
,360,-180,180);
18
TH1F *
thetac1
=
new
TH1F (
"thetac1"
,
"1 MeV CM Polar angle"
,180,0,180);
19
ela_pn
.Do(
phi1
,
"p1 = [p,1]; p1->Boost([p + n]); _x = p1->Phi()* 180./TMath::Pi()"
);
20
ela_pn
.Do(
thetac1
,
"p1 = [p,1]; p1->Boost([p + n]); _x = p1->Theta()* 180./TMath::Pi()"
);
21
ela_pn
.Loop(100000);
22
23
test_elastic_phi
->cd();
24
phi1
->SetMinimum(0);
25
phi1
->Draw(
""
);
26
test_elastic_theta
->cd(1);
27
thetac1
->Draw(
""
);
28
29
return
;
30
31
PReaction
ela_pn
(
"0.159"
,
"p"
,
"n"
,
"p n"
);
32
ela_pn
->Print();
33
TH1F *
thetac159
=
new
TH1F (
"thetac159"
,
"159 MeV CM Polar angle"
,180,0,180);
34
ela_pn
.Do(
thetac159
,
"p1 = [p,1]; p1->Boost([p + n]); _x = p1->Theta()* 180./TMath::Pi()"
);
35
ela_pn
.Loop(100000);
36
test_elastic_theta
->cd(2);
37
thetac159
->Draw(
""
);
38
39
PReaction
ela_pn
(
"0.370"
,
"p"
,
"n"
,
"p n"
);
40
ela_pn
->Print();
41
TH1F *
thetac370
=
new
TH1F (
"thetac370"
,
"370 MeV CM Polar angle"
,180,0,180);
42
ela_pn
.Do(
thetac370
,
"p1 = [p,1]; p1->Boost([p + n]); _x = p1->Theta()* 180./TMath::Pi()"
);
43
ela_pn
.Loop(100000);
44
test_elastic_theta
->cd(3);
45
thetac370
->Draw(
""
);
46
47
PReaction
ela_pn
(
"2.0"
,
"p"
,
"n"
,
"p n"
);
48
ela_pn
->Print();
49
TH1F *
thetac2000
=
new
TH1F (
"thetac2000"
,
"2000 MeV CM Polar angle"
,180,0,180);
50
ela_pn
.Do(
thetac2000
,
"p1 = [p,1]; p1->Boost([p + n]); _x = p1->Theta()* 180./TMath::Pi()"
);
51
ela_pn
.Loop(100000);
52
test_elastic_theta
->cd(4);
53
thetac2000
->Draw(
""
);
54
55
56
}
TCanvas
new TCanvas()
PReaction
Definition
PReaction.h:37
test_elastic_phi
TCanvas * test_elastic_phi
Definition
pn_ela.C:8
makeDistributionManager
makeDistributionManager() -> Enable("pn_elastic")
test_elastic_theta
TCanvas * test_elastic_theta
Definition
pn_ela.C:11
thetac2000
TH1F * thetac2000
Definition
pn_ela.C:49
thetac159
TH1F * thetac159
Definition
pn_ela.C:33
thetac370
TH1F * thetac370
Definition
pn_ela.C:41
thetac1
TH1F * thetac1
Definition
pn_ela.C:18
ela_pn
PReaction ela_pn("0.0011","p","n","p n")
phi1
TH1F * phi1
Definition
pn_ela.C:17
pluto6
plugins
scatter_mod
macros
pn_ela.C
Generated by
1.14.0