1 | { |
---|
2 | |
---|
3 | TCanvas* c1 = new TCanvas("c1","Surf 1",100,100,600,600); |
---|
4 | |
---|
5 | TFile* file1 = new TFile("./OptiFlux/SPLDmThetaCorr.root"); |
---|
6 | TTree* tree1 = (TTree*)file1->Get("SplGlb"); |
---|
7 | tree1->Draw("log10(dm31):log10(pow(sin(2.0*theta13),2.0))>>h1(41,-3.3325,-1.9675,41,-3.3325,-1.967)","chi2","SURF"); |
---|
8 | |
---|
9 | // tree1->Draw("log10(dm31):log10(pow(sin(2.0*theta13),2.0))>>h1(21,-3.3065,-1.935,21,-3.3065,-1.935)","chi2","SURF"); |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | TCanvas* c3 = new TCanvas("c3","Contour",100,100,600,600); |
---|
15 | c3->SetGridx(); |
---|
16 | c3->SetGridy(); |
---|
17 | c3->SetLogx(); |
---|
18 | c3->SetLogy(); |
---|
19 | |
---|
20 | |
---|
21 | TH2D* hdum = new TH2D("hdum","Theta vs Delta",10,5e-4,1e-2,10,5e-4,1e-2); |
---|
22 | hdum->SetXTitle("sin^{2}(2#theta_{13})"); |
---|
23 | hdum->SetYTitle("#Delta m^{2}_{31} (eV^{2})"); |
---|
24 | hdum->Draw(); |
---|
25 | |
---|
26 | TPad *overlay = new TPad("overlay","", |
---|
27 | gStyle->GetPadLeftMargin(), |
---|
28 | gStyle->GetPadBottomMargin(), |
---|
29 | 1-gStyle->GetPadRightMargin(), |
---|
30 | 1-gStyle->GetPadTopMargin()); |
---|
31 | overlay->SetFillStyle(4000); |
---|
32 | overlay->Draw(); |
---|
33 | overlay->Range(-3.3,-3.3,-2.0,-2.0); |
---|
34 | |
---|
35 | |
---|
36 | TH2F *h1 = (TH2F*)gDirectory->Get("h1"); |
---|
37 | if (h1) { |
---|
38 | h1->SetContour(1); |
---|
39 | h1->SetContourLevel(0,4.605); //90%CL 2dof |
---|
40 | // h1->SetContourLevel(0,11.83); //3sigma 2dof |
---|
41 | h1->SetLineColor(2); //red |
---|
42 | overlay->cd(); |
---|
43 | h1->Draw("CONT3 SAME"); |
---|
44 | } |
---|
45 | |
---|
46 | TCanvas* c2 = new TCanvas("c2","Surf 2",100,100,600,600); |
---|
47 | |
---|
48 | TFile* file2 = new TFile("./SPLDmThetaCorr.root"); |
---|
49 | TTree* tree2 = (TTree*)file2->Get("SplGlb"); |
---|
50 | tree2->Draw("log10(dm31):log10(pow(sin(2.0*theta13),2.0))>>h2(41,-3.3325,-1.9675,41,-3.3325,-1.967)","chi2","SURF"); |
---|
51 | |
---|
52 | // // tree2->Draw("log10(dm31):log10(pow(sin(2.0*theta13),2.0))>>h2(21,-3.3065,-1.935,21,-3.3065,-1.935)","chi2","SURF"); |
---|
53 | |
---|
54 | TH2F *h2 = (TH2F*)gDirectory->Get("h2"); |
---|
55 | if (h2) { |
---|
56 | h2->SetContour(1); |
---|
57 | h2->SetContourLevel(0,4.605); //90%CL 2dof |
---|
58 | // h2->SetContourLevel(0,11.83); //3sigma 2dof |
---|
59 | h2->SetLineColor(4); //blue |
---|
60 | overlay->cd(); |
---|
61 | h2->Draw("CONT3 SAME"); |
---|
62 | } |
---|
63 | // TH2D* h1bis = h1->Clone("h1bis"); |
---|
64 | // h1bis->SetContour(1); |
---|
65 | // h1bis->SetContourLevel(0,4.605); //90%CL 2dof |
---|
66 | // h1bis->SetLineColor(4); //blue |
---|
67 | // h1bis->Draw("CONT3 SAME"); |
---|
68 | |
---|
69 | |
---|
70 | } |
---|