#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <map>
#include <string>
#include <cmath>
#include <stdio.h>
int eff_e3jets() {
const int dim = 6;
double MH[dim], deltaMH[dim];
double effWW[dim], effWH[dim], effHH[dim];
double deltaeffWW[dim], deltaeffWH[dim], deltaeffHH[dim];
//
// MH values
//
MH[0] = 3.0;
MH[1] = 3.5;
MH[2] = 4.0;
MH[3] = 4.5;
MH[4] = 5.0;
deltaMH[0] = 0.0;
deltaMH[1] = 0.0;
deltaMH[2] = 0.0;
deltaMH[3] = 0.0;
deltaMH[4] = 0.0;
//
// effWW values
//
effWW[0] = 0.1507;
effWW[1] = 0.1559;
effWW[2] = 0.1468;
effWW[3] = 0.1511;
effWW[4] = 0.1552;
//
//------------------
TCanvas *c1 = new TCanvas("c1","1",1000,800);
c1->Clear();
//c1->SetLogy();
c1->SetGridy();
// Draw a frame
TH1F *frame = c1->DrawFrame(0.0,5e-2,6.0,0.2);
frame->GetXaxis()->SetTitle("metl cut");
frame->GetXaxis()->SetTitleSize(.040);
frame->GetXaxis()->SetLabelSize(.05);
frame->GetXaxis()->SetTitleColor(1);
frame->GetXaxis()->SetTitleOffset(1.2);
frame->GetXaxis()->SetNdivisions(508,true);
frame->GetYaxis()->SetTitle("RMS");
frame->GetYaxis()->SetTitleSize(.040);
frame->GetYaxis()->SetLabelSize(.05);
frame->GetYaxis()->SetTitleColor(1);
frame->GetYaxis()->SetTitleOffset(1.4);
// Draw the frame
frame->SetTitle("metl x RMS");
frame->Draw();
TGraphErrors *grcc0 = new TGraphErrors(dim, MH, effWW, deltaMH, deltaeffWW);
grcc0-> SetMarkerColor(kRed);
grcc0-> SetMarkerStyle(20);
grcc0-> SetMarkerSize(1.2);
grcc0-> SetLineWidth(2);
grcc0-> Draw("p");
// Legend:
// TLegend *leg = new TLegend(x1,y1,x2,y2,NULL,"brNDC");
TLegend *leg = new TLegend(0.72,0.75,0.90,0.90,NULL,"brNDC");
leg->SetTextSize(0.05);
leg->SetFillStyle(0);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
// leg->SetBorderSize(0);
// entry=leg->AddEntry(grcc0,"WW","p");
// entry->SetTextFont(22);
// leg->Draw();
c1->Modified();
c1->Print("METsig-RMS.eps");
c1->Print("METsig-RMS.gif");
return 0;
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>