source: GLBFrejus/HEAD/run/sensi.C@ 2

Last change on this file since 2 was 2, checked in by campagne, 20 years ago

first import

File size: 1.8 KB
Line 
1{
2
3 gROOT->LoadMacro("TDSyst.C++");
4 TCanvas* c1 = new TCanvas("c1","Contour",100,100,600,600);
5 c1->SetGridx();
6 c1->SetGridy();
7 c1->SetLogy();
8
9 TH2D* hdum = new TH2D("hdum","Theta vs Delta",41,-180,180,31,1e-4,1e-1);
10 hdum->SetXTitle("#delta_{CP} (deg)");
11 hdum->SetYTitle("sin^{2}(2#theta_{13})");
12 hdum->Draw();
13
14 TPad *overlay = new TPad("overlay","",
15 gStyle->GetPadLeftMargin(),
16 gStyle->GetPadBottomMargin(),
17 1-gStyle->GetPadRightMargin(),
18 1-gStyle->GetPadTopMargin());
19 overlay->SetFillStyle(4000);
20 overlay->Draw();
21 overlay->Range(-180.,-4,180.,-1);
22
23 //Original
24 TFile* file1 = new TFile("./SPLDeltaTheta2+8OldFluxCorr.root");
25 TTree* tree1 = (TTree*)file1->Get("SplGlb");
26 TDSyst* comp1 = new TDSyst(tree1,"h1");
27 comp1->Loop();
28
29 TH2D* h1 = comp1->GetHisto();
30 h1->SetContour(1);
31 h1->SetContourLevel(0,4.605); //Chi2 for 2 dof and 90% CL
32 // h1->SetLineStyle(2);
33 h1->SetLineColor(4); //blue
34 overlay->cd();
35 h1->Draw("CONT3 SAME");
36 overlay->Update();
37
38 //Comp
39 TFile* file2 = new TFile("./OptiFlux/SPLDeltaThetaSens.root");
40 TTree* tree2 = (TTree*)file2->Get("SplGlb");
41 TDSyst* comp2 = new TDSyst(tree2,"h2");
42 comp2->Loop();
43
44 TH2D* h2 = comp2->GetHisto();
45 h2->SetContour(1);
46 h2->SetContourLevel(0,4.605); //Chi2 for 2 dof and 90% CL
47 h2->SetLineColor(2); //red
48 overlay->cd();
49 h2->Draw("CONT3 SAME");
50 overlay->Update();
51
52 //Comp
53 TFile* file3 = new TFile("./OptiFlux/SPLDeltaThetaRateCorr.root");
54 TTree* tree3 = (TTree*)file3->Get("SplGlb");
55 TDSyst* comp3 = new TDSyst(tree3,"h3");
56 comp3->Loop();
57
58 TH2D* h3 = comp3->GetHisto();
59 h3->SetContour(1);
60 h3->SetContourLevel(0,4.605); //Chi2 for 2 dof and 90% CL
61 h3->SetLineColor(6); //blue
62 overlay->cd();
63 h3->Draw("CONT3 SAME");
64 overlay->Update();
65
66}
Note: See TracBrowser for help on using the repository browser.