#include #include using namespace std; #include "TH1D.h" #include "TGraph.h" #include "TStyle.h" int likelihood_plot(){ ifstream inf("FCN2.txt"); TH1D *h1=new TH1D("h1","h1",300,0,3); double x, y; int a=0; while(inf>>y){ if(y!=0) h1->SetBinContent(a, y); a++; } gStyle->SetOptStat("00"); h1->SetTitle(""); h1->SetXTitle("Sigma value"); h1->SetYTitle("-2 Log Likelihood"); h1->Draw(); return 0; }