| 1 | {
|
|---|
| 2 |
|
|---|
| 3 | Int_t nLogSin22q13 = 21;
|
|---|
| 4 | Double_t logSin2Min = -3.3;
|
|---|
| 5 | Double_t logSin2Max = -1;
|
|---|
| 6 | Double_t logSin2BinWidth =
|
|---|
| 7 | (logSin2Max - logSin2Min)/double(nLogSin22q13-1.);
|
|---|
| 8 | Double_t logSin2EdgeMax = logSin2Max + logSin2BinWidth/2.;
|
|---|
| 9 | Double_t logSin2EdgeMin = logSin2Min - logSin2BinWidth/2.;
|
|---|
| 10 |
|
|---|
| 11 | Int_t nDeltaCP = 41;
|
|---|
| 12 | Double_t deltaMin = 0.; //rad/pi
|
|---|
| 13 | Double_t deltaMax = 2.;
|
|---|
| 14 | Double_t deltaBinWidth = (deltaMax - deltaMin)/double(nDeltaCP-1.);
|
|---|
| 15 | Double_t deltaEdgeMax = deltaMax + deltaBinWidth/2.;
|
|---|
| 16 | Double_t deltaEdgeMin = deltaMin - deltaBinWidth/2.;
|
|---|
| 17 |
|
|---|
| 18 | TLegend* leg = new TLegend(0.75,0.7,0.99,0.9);
|
|---|
| 19 | leg->SetTextFont(gStyle->GetTextFont());
|
|---|
| 20 | leg->SetTextSize(0.05);
|
|---|
| 21 | leg->SetFillColor(10);
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | TCanvas* c1 = new TCanvas("c1","Contour",100,100,600,600);
|
|---|
| 25 | c1->SetGridx();
|
|---|
| 26 | c1->SetGridy();
|
|---|
| 27 | c1->SetLogx();
|
|---|
| 28 |
|
|---|
| 29 | TH2D* hdum = new TH2D("hdum","3#sigma CP discovery (#Delta #chi^{2}=9,1dof)",
|
|---|
| 30 | nLogSin22q13,TMath::Power(10.,logSin2Min),
|
|---|
| 31 | TMath::Power(10.,logSin2Max),
|
|---|
| 32 | nDeltaCP,deltaMin,deltaMax
|
|---|
| 33 | );
|
|---|
| 34 | hdum->SetYTitle("true #delta_{CP}/#pi");
|
|---|
| 35 | hdum->SetXTitle("true sin^{2}(2#theta_{13})");
|
|---|
| 36 | hdum->Draw();
|
|---|
| 37 |
|
|---|
| 38 | TPad *overlay = new TPad("overlay","",
|
|---|
| 39 | gStyle->GetPadLeftMargin(),
|
|---|
| 40 | gStyle->GetPadBottomMargin(),
|
|---|
| 41 | 1-gStyle->GetPadRightMargin(),
|
|---|
| 42 | 1-gStyle->GetPadTopMargin());
|
|---|
| 43 | overlay->SetFillStyle(4000);
|
|---|
| 44 | overlay->Draw();
|
|---|
| 45 | overlay->Range(logSin2Min,deltaMin,logSin2Max,deltaMax);
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | TFile f1("./SPLCPDisco-h0-o0.root");
|
|---|
| 49 | TTree* tree1 = (TTree*)f1.Get("SplGlb");
|
|---|
| 50 | TH2D* histo1 = new TH2D("histo1"," Theta vs Delta",
|
|---|
| 51 | nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
|
|---|
| 52 | nDeltaCP,deltaEdgeMin,deltaEdgeMax
|
|---|
| 53 | );
|
|---|
| 54 |
|
|---|
| 55 | tree1->Project(histo1->GetName(),"deltaCP/pi:TMath::Log10(pow(sin(2*theta13),2))","chi2");
|
|---|
| 56 |
|
|---|
| 57 | histo1->SetContour(1);
|
|---|
| 58 | histo1->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
|
|---|
| 59 | histo1->SetLineColor(4); //blue
|
|---|
| 60 | overlay->cd();
|
|---|
| 61 | histo1->Draw("CONT3 SAME");
|
|---|
| 62 | leg->AddEntry(histo1,"H^{t} Us","l");
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | TPaveLabel* text = new TPaveLabel(-3.0,1.,-2.5,1.1,"true sin^{2}#theta_{23}=0.5");
|
|---|
| 66 | text->SetBorderSize(0);
|
|---|
| 67 | text->SetFillColor(10);
|
|---|
| 68 | text->SetTextSize(1.0);
|
|---|
| 69 | text->Draw("SAME");
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | TFile f2("./SPLCPDiscoRefereeA-h0-o0.root");
|
|---|
| 74 | TTree* tree2 = (TTree*)f2.Get("SplGlb");
|
|---|
| 75 | TH2D* histo2 = new TH2D("histo2"," Theta vs Delta",
|
|---|
| 76 | nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
|
|---|
| 77 | nDeltaCP,deltaEdgeMin,deltaEdgeMax
|
|---|
| 78 | );
|
|---|
| 79 | tree2->Project(histo2->GetName(),"deltaCP/pi:TMath::Log10(pow(sin(2*theta13),2))","chi2");
|
|---|
| 80 |
|
|---|
| 81 | histo2->SetContour(1);
|
|---|
| 82 | histo2->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
|
|---|
| 83 | histo2->SetLineColor(2); //red
|
|---|
| 84 | overlay->cd();
|
|---|
| 85 | histo2->Draw("CONT3 SAME");
|
|---|
| 86 | leg->AddEntry(histo2,"H^{t} Ref.A","l");
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | TFile f3("./SPLCPDisco-h1-o0.root");
|
|---|
| 90 | TTree* tree3 = (TTree*)f3.Get("SplGlb");
|
|---|
| 91 | TH2D* histo3 = new TH2D("histo3"," Theta vs Delta",
|
|---|
| 92 | nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
|
|---|
| 93 | nDeltaCP,deltaEdgeMin,deltaEdgeMax
|
|---|
| 94 | );
|
|---|
| 95 | tree3->Project(histo3->GetName(),"deltaCP/pi:TMath::Log10(pow(sin(2*theta13),2))","chi2");
|
|---|
| 96 |
|
|---|
| 97 | histo3->SetContour(1);
|
|---|
| 98 | histo3->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
|
|---|
| 99 | histo3->SetLineStyle(2); //dashed
|
|---|
| 100 | histo3->SetLineColor(4); //blue
|
|---|
| 101 | overlay->cd();
|
|---|
| 102 | histo3->Draw("CONT3 SAME");
|
|---|
| 103 | leg->AddEntry(histo3,"H^{w} Us","l");
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | TFile f4("./SPLCPDiscoRefereeA-h1-o0.root");
|
|---|
| 107 | TTree* tree4 = (TTree*)f4.Get("SplGlb");
|
|---|
| 108 | TH2D* histo4 = new TH2D("histo4"," Theta vs Delta",
|
|---|
| 109 | nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
|
|---|
| 110 | nDeltaCP,deltaEdgeMin,deltaEdgeMax
|
|---|
| 111 | );
|
|---|
| 112 | tree4->Project(histo4->GetName(),"deltaCP/pi:TMath::Log10(pow(sin(2*theta13),2))","chi2");
|
|---|
| 113 |
|
|---|
| 114 | histo4->SetContour(1);
|
|---|
| 115 | histo4->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
|
|---|
| 116 | histo4->SetLineStyle(2); //dashed
|
|---|
| 117 | histo4->SetLineColor(2); //red
|
|---|
| 118 | overlay->cd();
|
|---|
| 119 | histo4->Draw("CONT3 SAME");
|
|---|
| 120 | leg->AddEntry(histo4,"H^{w} Ref. A","l");
|
|---|
| 121 |
|
|---|
| 122 | // TFile f5("./SPLCPDiscoveryFake-h1-o0.root");
|
|---|
| 123 | // TTree* tree5 = (TTree*)f5.Get("SplGlb");
|
|---|
| 124 | // TH2D* histo5 = new TH2D("histo5"," Theta vs Delta",
|
|---|
| 125 | // nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
|
|---|
| 126 | // nDeltaCP,deltaEdgeMin,deltaEdgeMax
|
|---|
| 127 | // );
|
|---|
| 128 | // tree5->Project(histo5->GetName(),"deltaCP/pi:TMath::Log10(pow(sin(2*theta13),2))","chi2");
|
|---|
| 129 |
|
|---|
| 130 | // histo5->SetContour(1);
|
|---|
| 131 | // histo5->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
|
|---|
| 132 | // histo5->SetLineStyle(2); //dashed
|
|---|
| 133 | // histo5->SetLineColor(4); //red
|
|---|
| 134 | // overlay->cd();
|
|---|
| 135 | // histo5->Draw("CONT3 SAME");
|
|---|
| 136 | // leg->AddEntry(histo5,"syst 2%, Fake Hier","l");
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 | leg->Draw("SAME");
|
|---|
| 141 | overlay->Update();
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 | // TCanvas c2;
|
|---|
| 145 | //histo1->Draw("SURF");
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 | }
|
|---|