source: GLBFrejus/HEAD/run/newComp.C@ 700

Last change on this file since 700 was 154, checked in by campagne, 19 years ago

new version

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1{
2 TCanvas* c1 = new TCanvas("c1","Contour",100,100,600,600);
3 c1->SetGridx();
4 c1->SetGridy();
5
6 //Reference plot
7 TFile* file1 = new TFile("./Mauro/Original/SPLHierTOctTv2.root");
8 TTree* tree1 = (TTree*)file1->Get("SplGlb");
9 tree1->Draw("deltaCP:sin(2*theta13)^2>>h1(41,-0.001,0.081,31,-1.025,0.525)","chi2","SURF");
10 TH2F *h1 = (TH2F*)gDirectory->Get("h1");
11 h1->SetXTitle("sin^{2}(2#theta_{13})");
12 h1->SetYTitle("#delta_{CP}/#pi");
13 h1->SetContour(1);
14 h1->SetContourLevel(0,4.605);
15 h1->SetLineColor(2); //red
16 h1->Draw("CONT3");
17
18// TH2D h1bis;
19// h1->Copy(h1bis);
20// h1bis.SetContour(1);
21// h1bis.SetContourLevel(0,6.0); //Chi2 for 2 dof and 95% CL
22// h1bis.SetLineColor(2); //red
23// h1bis.SetLineStyle(2); //dashed
24// h1bis.Draw("CONT3 SAME");
25
26
27 //Second to be compared
28 TFile* file2 = new TFile("./SPLHierTOctFv2.root");
29 TTree* tree2 = (TTree*)file2->Get("SplGlb");
30 tree2->Draw("deltaCP:sin(2*theta13)^2>>h2(41,-0.001,0.081,31,-1.025,0.525)","chi2","SURF");
31 TH2F *h2 = (TH2F*)gDirectory->Get("h2");
32 h2->SetContour(1);
33 h2->SetContourLevel(0,4.605);
34 h2->SetLineStyle(1); //full
35 h2->SetLineColor(4); //blue
36 h2->Draw("CONT3 SAME");
37
38// TH2D h2bis;
39// h2->Copy(h2bis);
40// h2bis.SetContour(1);
41// h2bis.SetContourLevel(0,6.0); //Chi2 for 2 dof and 95% CL
42// h2bis.SetLineColor(4); //blue
43// h2bis.SetLineStyle(2); //dashed
44// h2bis.Draw("CONT3 SAME");
45
46
47}
Note: See TracBrowser for help on using the repository browser.