source: GLBFrejus/HEAD/run/discover3.C@ 689

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

new version

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1{
2
3 Int_t nLogSin22q13 = 41;
4 Double_t logSin2Min = -4;
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 = 61;
12 Double_t deltaMin = 0.; //degree
13 Double_t deltaMax = 180.;
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
19
20
21
22 TCanvas* c1 = new TCanvas("c1","Contour",100,100,600,600);
23 c1->SetGridx();
24 c1->SetGridy();
25 c1->SetLogx();
26
27 TH2D* hdum = new TH2D("hdum","#delta_{CP} 3#sigma discovery",
28 nLogSin22q13,TMath::Power(10.,logSin2Min),TMath::Power(10.,logSin2Max),
29 nDeltaCP,deltaMin,deltaMax
30 );
31 hdum->SetYTitle("#delta_{CP} (deg)");
32 hdum->SetXTitle("sin^{2}(2#theta_{13})");
33 hdum->Draw();
34
35 TPad *overlay = new TPad("overlay","",
36 gStyle->GetPadLeftMargin(),
37 gStyle->GetPadBottomMargin(),
38 1-gStyle->GetPadRightMargin(),
39 1-gStyle->GetPadTopMargin());
40 overlay->SetFillStyle(4000);
41 overlay->Draw();
42 overlay->Range(logSin2Min,deltaMin,logSin2Max,deltaMax);
43
44
45 TFile f1("./OptiFlux/SPLDeltaCorr3.root");
46 TTree* tree1 = (TTree*)f1.Get("SplGlb");
47 TH2D* histo1 = new TH2D("histo1"," Theta vs Delta",
48 nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
49 nDeltaCP,deltaEdgeMin,deltaEdgeMax
50 );
51
52 tree1->Project(histo1->GetName(),"deltaCP/pi*180.:TMath::Log10(pow(sin(2*theta13),2))","chi2");
53
54 histo1->SetContour(1);
55 histo1->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
56 histo1->SetLineColor(2); //red
57 overlay->cd();
58 histo1->Draw("CONT3 SAME");
59
60
61
62 TFile f2("./SPLDeltaCorrOldFlux3.root");
63 TTree* tree2 = (TTree*)f2.Get("SplGlb");
64 TH2D* histo2 = new TH2D("histo2"," Theta vs Delta",
65 nLogSin22q13,logSin2EdgeMin,logSin2EdgeMax,
66 nDeltaCP,deltaEdgeMin,deltaEdgeMax
67 );
68 tree2->Project(histo2->GetName(),"deltaCP/pi*180.:TMath::Log10(pow(sin(2*theta13),2))","chi2");
69
70 histo2->SetContour(1);
71 histo2->SetContourLevel(0,9); //Chi2 for 1 dof and 3sigma
72 histo2->SetLineColor(4); //blue
73 overlay->cd();
74 histo2->Draw("CONT3 SAME");
75
76
77
78
79 overlay->Update();
80
81
82
83}
Note: See TracBrowser for help on using the repository browser.