Hello Everyone!

I am trying to plot 2-D histogram for contour making at 1,2 and 3 sigma confidence level.

I am reading data from a .dat file with three columns and i want plot it as a contour at above mentioned confidence levels . Please suggest me how to set 1,2 and 3 sigma confidence levels in my code…

‘’’

#include

#include<math.h>

#include <TVirtualFitter.h>

#include <TF2.h>

void rootContourPlot()

{

ifstream f1;

TCanvas *c1 = new TCanvas(“c1”,“c1”,600,400);

TH2F *hcont2 = new TH2F(“hcont2”," ",40,-4,-2,40,0,200);

Double_t x[10001]={0.}, y[10001]={0.},z[10001]={0.}, i,j,k;

int ss=0;

f1.open(“test1.dat”);

while(!f1.eof())

{

f1>>i>>j>>k;

```
hcont2->Fill(i,j,k);
(TVirtualFitter::GetFitter())->GetConfidenceIntervals(hcont2, 0.95);
}
```

hcont2->Draw("CONT2 ");

c1->Update();

f1.close();

}

‘’’