1 | { |
---|
2 | gROOT->LoadMacro("Compare.C++"); |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | TCanvas* c1 = new TCanvas("c1","Contour",100,100,600,600); |
---|
9 | c1->SetGridx(); |
---|
10 | c1->SetGridy(); |
---|
11 | |
---|
12 | |
---|
13 | //Original |
---|
14 | TFile* file1 = new TFile("./Mauro/Original/SPLHierTOctTv2.root"); |
---|
15 | TTree* tree1 = (TTree*)file1->Get("SplGlb"); |
---|
16 | Compare* comp1 = new Compare(tree1,"h1"); |
---|
17 | comp1->Loop(); |
---|
18 | TH2D* h1 = comp1->GetHisto(); |
---|
19 | // h1->SetTitle("Hier^{tr} Oct^{tr}"); |
---|
20 | h1->SetXTitle("sin^{2}(2#theta_{13})"); |
---|
21 | h1->SetYTitle("#delta_{CP}/#pi"); |
---|
22 | h1->SetContour(1); |
---|
23 | h1->SetContourLevel(0,4.605); //Chi2 for 2 dof and 90% CL |
---|
24 | h1->SetLineColor(2); //red |
---|
25 | h1->Draw("CONT3"); |
---|
26 | |
---|
27 | // TH2D h1bis; |
---|
28 | // h1->Copy(h1bis); |
---|
29 | // h1bis.SetContour(1); |
---|
30 | // h1bis.SetContourLevel(0,6.0); //Chi2 for 2 dof and 95% CL |
---|
31 | // h1bis.SetLineColor(2); //red |
---|
32 | // h1bis.SetLineStyle(2); //dashed |
---|
33 | // h1bis.Draw("CONT3 SAME"); |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | //Second to be compared |
---|
38 | TFile* file2 = new TFile("./SPLHierTOctFv2.root"); |
---|
39 | TTree* tree2 = (TTree*)file2->Get("SplGlb"); |
---|
40 | Compare* comp2 = new Compare(tree2,"h2"); |
---|
41 | comp2->Loop(); |
---|
42 | TH2D* h2 = comp2->GetHisto(); |
---|
43 | h2->SetContour(1); |
---|
44 | h2->SetContourLevel(0,4.605); |
---|
45 | h2->SetLineStyle(1); //full |
---|
46 | h2->SetLineColor(4); //blue |
---|
47 | h2->Draw("CONT3 SAME"); |
---|
48 | |
---|
49 | // TH2D h2bis; |
---|
50 | // h2->Copy(h2bis); |
---|
51 | // h2bis.SetContour(1); |
---|
52 | // h2bis.SetContourLevel(0,6.0); //Chi2 for 2 dof and 95% CL |
---|
53 | // h2bis.SetLineColor(4); //blue |
---|
54 | // h2bis.SetLineStyle(2); //dashed |
---|
55 | // h2bis.Draw("CONT3 SAME"); |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | // //Third to be compared |
---|
60 | // TFile* file3 = new TFile("./Mauro/Original/SPLHierFOctT.root"); |
---|
61 | // TTree* tree3 = (TTree*)file3->Get("SplGlb"); |
---|
62 | // Compare* comp3 = new Compare(tree3,"h3"); |
---|
63 | // comp3->Loop(); |
---|
64 | // TH2D* h3 = comp3->GetHisto(); |
---|
65 | // h3->SetContour(1); |
---|
66 | // h3->SetContourLevel(0,4.605); |
---|
67 | // h3->SetLineColor(3); //green |
---|
68 | // h3->Draw("CONT3 SAME"); |
---|
69 | |
---|
70 | // //Fourth to be compared |
---|
71 | // TFile* file4 = new TFile("./Mauro/Original/SPLHierFOctF.root"); |
---|
72 | // TTree* tree4 = (TTree*)file4->Get("SplGlb"); |
---|
73 | // Compare* comp4 = new Compare(tree4,"h4"); |
---|
74 | // comp4->Loop(); |
---|
75 | // TH2D* h4 = comp4->GetHisto(); |
---|
76 | // h4->SetContour(1); |
---|
77 | // h4->SetContourLevel(0,4.605); |
---|
78 | // h4->SetLineColor(5); //yellow |
---|
79 | // h4->Draw("CONT3 SAME"); |
---|
80 | |
---|
81 | |
---|
82 | |
---|
83 | //Draw True sin2(2theta) delta/pi (Hierarchy = T && Octant = T) |
---|
84 | double x[1] = {0.03}; |
---|
85 | double y[1] = {-0.85}; |
---|
86 | TGraph* true_value = new TGraph(1,x,y); |
---|
87 | true_value->Draw("*"); |
---|
88 | |
---|
89 | |
---|
90 | c1->Update(); |
---|
91 | |
---|
92 | } |
---|