void plot_toys() { TFile* f = new TFile("/project/atlas/users/tlenz/HWWStatisticsCode_v31/CPmix_kHWW2dot65m_0j_trainv31_v31_allsys_topLumi_toys.root"); RooWorkspace* w = (RooWorkspace*)f->Get("combined"); RooDataSet* data = (RooDataSet*)w->data("obsData"); RooDataSet* toydata = (RooDataSet*)w->data("toyData"); RooDataSet* toydata2 = (RooDataSet*)w->data("toyData4"); RooDataSet* thisAsimovData = (RooDataSet*)w->data("asimivData_profiled_for_epsilon_0"); //asimivData_profiled_for_epsilon_0 RooPlot* frame1 = w->var("obs_x_em_signalLike_0j_2012")->frame(); // RooPlot* frame2 = w->var("obs_x_em_mainControl_0j_2012")->frame(); // RooPlot* frame3 = w->var("obs_x_em_zbox_0j_2012")->frame(); data->plotOn(frame1, Name("data"), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_signalLike_0j_2012")); //data->plotOn(frame2, Name("data"), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_mainControl_0j_2012")); //data->plotOn(frame3, Name("data"), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_zbox_0j_2012")); toydata->plotOn(frame1, Name("toy1"), LineColor(kRed), MarkerStyle(21), MarkerColor(kRed), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_signalLike_0j_2012")); //toydata->plotOn(frame2, Name("toy1"), LineColor(kRed), MarkerStyle(21), MarkerColor(kRed), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_mainControl_0j_2012")); //toydata->plotOn(frame3, Name("toy1"), LineColor(kRed), MarkerStyle(21), MarkerColor(kRed), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_zbox_0j_2012")); toydata2->plotOn(frame1, Name("toy4"), LineColor(kGreen), MarkerStyle(21), MarkerColor(kGreen), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_signalLike_0j_2012")); //toydata2->plotOn(frame2, Name("toy4"), LineColor(kGreen), MarkerStyle(21), MarkerColor(kGreen), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_mainControl_0j_2012")); //toydata2->plotOn(frame3, Name("toy4"), LineColor(kGreen), MarkerStyle(21), MarkerColor(kGreen), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_zbox_0j_2012")); thisAsimovData->plotOn(frame1, Name("asimov"), LineColor(kBlue), MarkerStyle(22), MarkerColor(kBlue), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_signalLike_0j_2012")); //thisAsimovData->plotOn(frame2, Name("asimov"), LineColor(kBlue), MarkerStyle(22), MarkerColor(kBlue), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_mainControl_0j_2012")); //thisAsimovData->plotOn(frame3, Name("asimov"), LineColor(kBlue), MarkerStyle(22), MarkerColor(kBlue), DataError(RooAbsData::Poisson), Cut("merged_cat==merged_cat::em_zbox_0j_2012")); TCanvas* c = new TCanvas("c","c",1800,600); //c->Divide(3,1); /*c->cd(1);*/ /*gPad->SetLogy();*/ frame1->Draw(); //c->cd(2); frame2->Draw(); //draw legend TLegend *leg = new TLegend(0.48, 0.60, 0.84, 0.80, NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetTextSize(0.04); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); leg->SetNColumns(1); leg->AddEntry(frame1->findObject("data"),"data","pl"); leg->AddEntry(frame1->findObject("toy1"),"toy1","pl"); leg->AddEntry(frame1->findObject("toy4"),"toy4","pl"); leg->AddEntry(frame1->findObject("asimov"),"asimov","pl"); leg->Draw(); //c->cd(3); frame3->Draw(); c->Print("toys_linear.pdf"); }
void overlayPFRatio(){ // input is files created by drawR using the "hack to save" qcd only. it creates a ratio in its own root file, both with the same name. // run by doing root -l overlayPFRatio.C++ gROOT->SetStyle("CMS"); TString name1 = "minDeltaPhiN_HT350_ge1b_qcd"; TString name2 = "minDeltaPhiN_DJR_HT350_ge1b_qcd"; //TString name3 = "MET_15-2.7_"+bstring+"b_qcd"; TFile *f1=TFile::Open("../"+name1+".root","READ"); TFile *f2=TFile::Open("../"+name2+".root","READ"); //TFile *f3=TFile::Open(name3+".root","READ"); TH1D* h1=(TH1D*)f1->Get(name1); TH1D* h2=(TH1D*)f2->Get(name2); //TH1D* h3=(TH1D*)f3->Get(name3); h1->UseCurrentStyle(); h2->UseCurrentStyle(); //h3->UseCurrentStyle(); h2->SetLineColor(kRed); h2->SetMarkerColor(kRed); //h3->SetLineColor(kBlue); //h3->SetMarkerColor(kBlue); h1->GetYaxis()->SetTitle("N pass / N fail"); h1->GetXaxis()->SetTitle("MET"); //h1->SetMaximum(1.); h1->SetMinimum(0.); h1->Draw("hist e"); h2->Draw("SAME hist e"); //h3->Draw("SAME hist e"); TLegend *leg = new TLegend(0.2,.7,0.6,0.88); leg->AddEntry(h1,name1, "P"); leg->AddEntry(h2, name2, "P"); //leg->AddEntry(h3, name3, "P"); leg->SetFillColor(0); leg->SetBorderSize(0); leg->SetLineStyle(0); leg->SetTextFont(42); leg->SetFillStyle(0); leg->SetTextSize(0.03); leg->Draw(); gPad->SetRightMargin(0.1); gPad->Modified(); }
TLegend *getLegend(double x1, double y1, double x2, double y2) { TLegend *leg = new TLegend(x1,y1,x2,y2,NULL,"BRNDC"); leg->SetHeader(""); leg->SetBorderSize(0); leg->SetTextFont(42); leg->SetTextSize(0.06); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(10); leg->SetFillStyle(1001); return leg; }
TLegend* buildLegend(double y) { TLegend* leg = new TLegend(0.73,0.55+y,0.85,0.88,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.04); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); return leg; }
void DrawHijing2GeV() { TCanvas *c1 = new TCanvas(); TFile *fin = TFile::Open("Gamma_Neutron_Hijing_Energy_Graphs.root"); gROOT->cd(); TH1 *h1lim = new TH1F("h1lim","",1,0,0.1); TH1 *hjbkg = (TH1 *) fin->Get("hjbkg")->Clone(); TGraph *anti_neutron2GeV = (TGraph *) fin->Get("anti_neutron2GeV")->Clone(); TGraph *neutron2GeV = (TGraph *) fin->Get("neutron2GeV")->Clone(); h1lim->SetStats(0); h1lim->SetMaximum(0.3); h1lim->SetTitle("2 GeV Hadronic Showers with HIJING background"); h1lim->GetYaxis()->SetTitle("Deposited Energey [GeV]"); h1lim->GetYaxis()->SetTitleOffset(1.2); h1lim->GetXaxis()->SetTitle("cone size (#sqrt{#Delta#Phi^{2}+#Delta#Theta^{2}})"); h1lim->GetXaxis()->SetTitleOffset(1.2); h1lim->Draw(); hjbkg->SetStats(0); hjbkg->SetLineColor(6); hjbkg->SetMaximum(5.5); hjbkg->SetLineWidth(2); hjbkg->Draw("same"); anti_neutron2GeV->SetLineColor(4); anti_neutron2GeV->SetLineWidth(2); anti_neutron2GeV->Draw("same"); neutron2GeV->SetLineColor(2); neutron2GeV->SetLineWidth(2); neutron2GeV->Draw("same"); TLine *tl = new TLine(); tl->SetLineStyle(2); tl->DrawLine(0.024,0,0.024,0.3); TLegend *legrda = new TLegend(0.67,0.34,0.87,0.54,NULL,"brNDC"); legrda->SetLineColor(1); legrda->SetLineStyle(1); legrda->SetLineWidth(1); legrda->SetFillColor(10); legrda->SetFillStyle(1001); legrda->SetBorderSize(0); // legrda->SetTextSize(labelsize); legrda->AddEntry(hjbkg,"HIJING bkg"); legrda->AddEntry(anti_neutron2GeV,"2 GeV Anti Neutron","l"); legrda->AddEntry(neutron2GeV,"2 GeV Neutron", "l"); legrda->AddEntry(tl,"EMCal tower size","l"); legrda->Draw(); fin->Close(); c1->Print("Hijing2GeV.png"); }
void mdpRatios() { TGraphAsymmErrors* mdpN = GetCombinedEfficiency("min_delta_phi_met_N>4.","ht50>400&&jet2_pt>70&&jet3_pt>50&&num_reco_veto_electrons==0&&num_reco_veto_muons==0&&num_csvm_jets>0"); TGraphAsymmErrors* mdp = GetCombinedEfficiency("min_delta_phi_met>0.3","ht50>400&&jet2_pt>70&&jet3_pt>50&&num_reco_veto_electrons==0&&num_reco_veto_muons==0&&num_csvm_jets>0"); mdpN->SetLineColor(46); mdp->SetLineColor(38); mdpN->SetMarkerColor(46); mdp->SetMarkerColor(38); mdpN->SetMarkerStyle(21); mdp->SetMarkerStyle(22); mdpN->SetLineWidth(2); mdp->SetLineWidth(2); TCanvas * thecanvas= new TCanvas("thecanvas","the canvas",800,600); mdp->Draw("AP"); mdpN->Draw("P"); mdp->SetTitle("Efficiency of #Delta#phi cuts as a function of E_{T}^{miss};E_{T}^{miss} [GeV];Cut efficiency"); mdp->GetYaxis()->SetLabelSize(0.028); cout << "Dump efficiencies for min_delta_phi_met_N: " << endl; mdpN->Print(); cout << "Dump efficiencies for min_delta_phi_met: " << endl; mdp->Print(); TLegend * leg = new TLegend(0.65,0.75,0.8,0.9); leg->SetFillColor(0); leg->SetBorderSize(0); leg->SetLineStyle(0); leg->SetFillStyle(0); leg->SetTextFont(132); leg->SetTextSize(.04); leg->AddEntry(mdpN,"#Delta#hat{#phi}_{N}^{min}>4.","lp"); leg->AddEntry(mdp,"#Delta#phi_{min}>0.3","lp"); leg->Draw(); thecanvas->Print("macros/qcd_control/plots/ratio_test_geq1bm_all_samples.pdf"); // delete mdpN; // delete leg; // delete thecanvas; }
void OverlayAnalysis::DrawGraphs() { std::cout << "Drawing graphs" << std::endl; for(CanvasMultiGraphMap::iterator graphIter = m_canvasMultiGraphMap.begin(), graphEndIter = m_canvasMultiGraphMap.end() ; graphEndIter != graphIter ; ++graphIter) { graphIter->second.first->cd(); graphIter->second.second->Draw("ap"); this->PostDrawMultiGraph(graphIter->first, graphIter->second.second); TLegend *pLegend = graphIter->second.first->BuildLegend(); pLegend->SetBorderSize(0); pLegend->SetLineColor(0); pLegend->SetLineStyle(1); pLegend->SetLineWidth(1); pLegend->SetFillColor(0); pLegend->SetFillStyle(0); pLegend->SetTextSize(0.04); } }
TCanvas* GetPlot(TH1F *data_hist, TH1F* mc_hist, TString NJets) { double MaxY = data_hist->GetMaximum(); TCanvas *c = new TCanvas("c", "", 700, 700); c->SetLogy(); data_hist->GetYaxis()->SetRangeUser(0.001, 2.2 * MaxY); data_hist->SetXTitle("N_{Vtx}"); data_hist->SetYTitle("Prediction / # seed events "); data_hist->Draw(); // mc_hist->SetMarkerColor(kRed); mc_hist->SetMarkerStyle(21); mc_hist->SetMarkerColor(kAzure-3); mc_hist->SetLineColor(kAzure-3); mc_hist->Draw("same"); TLegend *leg = new TLegend(0.5, 0.3, 0.85, 0.42); leg->AddEntry( data_hist, "Data" , "lp"); leg->AddEntry( mc_hist, "QCD madgraph" , "lp"); leg->SetFillStyle(0); leg->SetLineStyle(1); leg->SetTextFont(42); leg->SetTextSize(0.035); leg->Draw("same"); TPaveText* pt2 = new TPaveText(0.11, 0.855, 0.95, 0.935, "NDC"); pt2->SetBorderSize(0); pt2->SetFillStyle(0); pt2->SetTextAlign(12); pt2->SetTextSize(0.03); pt2->AddText(NJets); pt2->AddText("CMS Preliminary, L = 19.5 fb^{ -1}, #sqrt{s} = 8 TeV"); pt2->Draw(); return c; }
void result_JES_akPu4PF_(refpt> 75 && refpt < 120)&&(abs(refeta)<2)_Centrality() { //=========Macro generated from canvas: Can_result_0/ //========= (Mon Apr 18 02:39:41 2016) by ROOT version6.02/13 TCanvas *Can_result_0 = new TCanvas("Can_result_0", "",18,40,700,500); gStyle->SetOptFit(1); Can_result_0->Range(-18.75,0.9236134,118.75,1.043845); Can_result_0->SetFillColor(0); Can_result_0->SetBorderMode(0); Can_result_0->SetBorderSize(2); Can_result_0->SetFrameBorderMode(0); Can_result_0->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName("name"); multigraph->SetTitle("JES_akPu4PF"); Double_t Graph_fx1001[4] = { 5, 20, 40, 75}; Double_t Graph_fy1001[4] = { 1.025461, 0.982262, 0.9644553, 0.970611}; Double_t Graph_fex1001[4] = { 5, 10, 10, 25}; Double_t Graph_fey1001[4] = { 0.001598024, 0.0009318739, 0.0008002418, 0.0004502591}; TGraphErrors *gre = new TGraphErrors(4,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001); gre->SetName("Graph"); gre->SetTitle("some title_0"); gre->SetFillColor(1); gre->SetFillStyle(0); TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","some title_0",100,0,110); Graph_Graph1001->SetMinimum(0.9573146); Graph_Graph1001->SetMaximum(1.0334); Graph_Graph1001->SetDirectory(0); Graph_Graph1001->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Graph_Graph1001->SetLineColor(ci); Graph_Graph1001->GetXaxis()->SetLabelFont(42); Graph_Graph1001->GetXaxis()->SetLabelSize(0.035); Graph_Graph1001->GetXaxis()->SetTitleSize(0.035); Graph_Graph1001->GetXaxis()->SetTitleFont(42); Graph_Graph1001->GetYaxis()->SetLabelFont(42); Graph_Graph1001->GetYaxis()->SetLabelSize(0.035); Graph_Graph1001->GetYaxis()->SetTitleSize(0.035); Graph_Graph1001->GetYaxis()->SetTitleFont(42); Graph_Graph1001->GetZaxis()->SetLabelFont(42); Graph_Graph1001->GetZaxis()->SetLabelSize(0.035); Graph_Graph1001->GetZaxis()->SetTitleSize(0.035); Graph_Graph1001->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1001); multigraph->Add(gre,""); Double_t Graph_fx1002[4] = { 5, 20, 40, 75}; Double_t Graph_fy1002[4] = { 1.025808, 0.9823451, 0.964104, 0.9707841}; Double_t Graph_fex1002[4] = { 5, 10, 10, 25}; Double_t Graph_fey1002[4] = { 0.001641175, 0.0009556419, 0.0008206184, 0.000461058}; gre = new TGraphErrors(4,Graph_fx1002,Graph_fy1002,Graph_fex1002,Graph_fey1002); gre->SetName("Graph"); gre->SetTitle("some title_1"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetLineColor(2); gre->SetMarkerColor(2); TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","some title_1",100,0,110); Graph_Graph1002->SetMinimum(0.9568668); Graph_Graph1002->SetMaximum(1.033866); Graph_Graph1002->SetDirectory(0); Graph_Graph1002->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1002->SetLineColor(ci); Graph_Graph1002->GetXaxis()->SetLabelFont(42); Graph_Graph1002->GetXaxis()->SetLabelSize(0.035); Graph_Graph1002->GetXaxis()->SetTitleSize(0.035); Graph_Graph1002->GetXaxis()->SetTitleFont(42); Graph_Graph1002->GetYaxis()->SetLabelFont(42); Graph_Graph1002->GetYaxis()->SetLabelSize(0.035); Graph_Graph1002->GetYaxis()->SetTitleSize(0.035); Graph_Graph1002->GetYaxis()->SetTitleFont(42); Graph_Graph1002->GetZaxis()->SetLabelFont(42); Graph_Graph1002->GetZaxis()->SetLabelSize(0.035); Graph_Graph1002->GetZaxis()->SetTitleSize(0.035); Graph_Graph1002->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1002); multigraph->Add(gre,""); Double_t Graph_fx1003[4] = { 5, 20, 40, 75}; Double_t Graph_fy1003[4] = { 0.9944711, 0.9453074, 0.9619222, 0.9556338}; Double_t Graph_fex1003[4] = { 5, 10, 10, 25}; Double_t Graph_fey1003[4] = { 0.01053149, 0.005298861, 0.004412705, 0.002663901}; gre = new TGraphErrors(4,Graph_fx1003,Graph_fy1003,Graph_fex1003,Graph_fey1003); gre->SetName("Graph"); gre->SetTitle("some title_2"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetLineColor(3); gre->SetMarkerColor(3); TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","some title_2",100,0,110); Graph_Graph1003->SetMinimum(0.9335092); Graph_Graph1003->SetMaximum(1.011502); Graph_Graph1003->SetDirectory(0); Graph_Graph1003->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1003->SetLineColor(ci); Graph_Graph1003->GetXaxis()->SetLabelFont(42); Graph_Graph1003->GetXaxis()->SetLabelSize(0.035); Graph_Graph1003->GetXaxis()->SetTitleSize(0.035); Graph_Graph1003->GetXaxis()->SetTitleFont(42); Graph_Graph1003->GetYaxis()->SetLabelFont(42); Graph_Graph1003->GetYaxis()->SetLabelSize(0.035); Graph_Graph1003->GetYaxis()->SetTitleSize(0.035); Graph_Graph1003->GetYaxis()->SetTitleFont(42); Graph_Graph1003->GetZaxis()->SetLabelFont(42); Graph_Graph1003->GetZaxis()->SetLabelSize(0.035); Graph_Graph1003->GetZaxis()->SetTitleSize(0.035); Graph_Graph1003->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1003); multigraph->Add(gre,""); multigraph->Draw("AP"); multigraph->GetXaxis()->SetTitle("Centrality"); multigraph->GetXaxis()->SetLabelFont(42); multigraph->GetXaxis()->SetLabelSize(0.035); multigraph->GetXaxis()->SetTitleSize(0.035); multigraph->GetXaxis()->SetTitleFont(42); multigraph->GetYaxis()->SetTitle("#mu_{Reco./Gen.}"); multigraph->GetYaxis()->SetLabelFont(42); multigraph->GetYaxis()->SetLabelSize(0.035); multigraph->GetYaxis()->SetTitleSize(0.035); multigraph->GetYaxis()->SetTitleFont(42); TLegend *leg = new TLegend(0.68,0.7,0.88,0.85,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph","allJets","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph","lightJets","l"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph","bJets","l"); entry->SetLineColor(3); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.25,0.7,"#bf{#color[2]{|#eta_{jet}|<2.0 &75<refpt<120}}"); tex->SetNDC(); tex->SetTextFont(43); tex->SetTextSize(24); tex->SetLineWidth(2); tex->Draw(); TPaveText *pt = new TPaveText(0.3750575,0.9365254,0.6249425,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText("JES_akPu4PF"); pt->Draw(); Can_result_0->Modified(); Can_result_0->cd(); Can_result_0->SetSelected(Can_result_0); }
void DarkSusy_mH_125_mGammaD_2000_cT_100_LHE_gammaD_Phi() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:18:26 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-5.7,-0.00509322,4.3,0.03408539); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_gammaD_1_Phi_dummy80 = new TH1F("h_gammaD_1_Phi_dummy80","h_gammaD_1_Phi_dummy",80,-4,4); h_gammaD_1_Phi_dummy80->SetMaximum(0.03134289); h_gammaD_1_Phi_dummy80->SetLineStyle(0); h_gammaD_1_Phi_dummy80->SetMarkerStyle(20); h_gammaD_1_Phi_dummy80->GetXaxis()->SetTitle("#phi of #gamma_{D} [rad]"); h_gammaD_1_Phi_dummy80->GetXaxis()->SetLabelFont(42); h_gammaD_1_Phi_dummy80->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi_dummy80->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_Phi_dummy80->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_Phi_dummy80->GetXaxis()->SetTitleFont(42); h_gammaD_1_Phi_dummy80->GetYaxis()->SetTitle("Fraction of events / 0.1 rad"); h_gammaD_1_Phi_dummy80->GetYaxis()->SetLabelFont(42); h_gammaD_1_Phi_dummy80->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi_dummy80->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_Phi_dummy80->GetYaxis()->SetTitleOffset(1.35); h_gammaD_1_Phi_dummy80->GetYaxis()->SetTitleFont(42); h_gammaD_1_Phi_dummy80->GetZaxis()->SetLabelFont(42); h_gammaD_1_Phi_dummy80->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi_dummy80->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_Phi_dummy80->GetZaxis()->SetTitleFont(42); h_gammaD_1_Phi_dummy80->Draw(""); TH1F *h_gammaD_1_Phi81 = new TH1F("h_gammaD_1_Phi81","h_gammaD_1_Phi",80,-4,4); h_gammaD_1_Phi81->SetBinContent(9,0.006925086); h_gammaD_1_Phi81->SetBinContent(10,0.01741272); h_gammaD_1_Phi81->SetBinContent(11,0.01686271); h_gammaD_1_Phi81->SetBinContent(12,0.0160377); h_gammaD_1_Phi81->SetBinContent(13,0.01707521); h_gammaD_1_Phi81->SetBinContent(14,0.01660021); h_gammaD_1_Phi81->SetBinContent(15,0.01686271); h_gammaD_1_Phi81->SetBinContent(16,0.0161002); h_gammaD_1_Phi81->SetBinContent(17,0.0160127); h_gammaD_1_Phi81->SetBinContent(18,0.01698771); h_gammaD_1_Phi81->SetBinContent(19,0.0159127); h_gammaD_1_Phi81->SetBinContent(20,0.0160377); h_gammaD_1_Phi81->SetBinContent(21,0.0160252); h_gammaD_1_Phi81->SetBinContent(22,0.0162752); h_gammaD_1_Phi81->SetBinContent(23,0.0158877); h_gammaD_1_Phi81->SetBinContent(24,0.0161627); h_gammaD_1_Phi81->SetBinContent(25,0.01555019); h_gammaD_1_Phi81->SetBinContent(26,0.0159502); h_gammaD_1_Phi81->SetBinContent(27,0.0161252); h_gammaD_1_Phi81->SetBinContent(28,0.0158502); h_gammaD_1_Phi81->SetBinContent(29,0.01641271); h_gammaD_1_Phi81->SetBinContent(30,0.0161877); h_gammaD_1_Phi81->SetBinContent(31,0.01667521); h_gammaD_1_Phi81->SetBinContent(32,0.0156127); h_gammaD_1_Phi81->SetBinContent(33,0.01521269); h_gammaD_1_Phi81->SetBinContent(34,0.0158377); h_gammaD_1_Phi81->SetBinContent(35,0.0156252); h_gammaD_1_Phi81->SetBinContent(36,0.0157127); h_gammaD_1_Phi81->SetBinContent(37,0.01526269); h_gammaD_1_Phi81->SetBinContent(38,0.0162752); h_gammaD_1_Phi81->SetBinContent(39,0.01507519); h_gammaD_1_Phi81->SetBinContent(40,0.0158002); h_gammaD_1_Phi81->SetBinContent(41,0.01682521); h_gammaD_1_Phi81->SetBinContent(42,0.01663771); h_gammaD_1_Phi81->SetBinContent(43,0.0160752); h_gammaD_1_Phi81->SetBinContent(44,0.01547519); h_gammaD_1_Phi81->SetBinContent(45,0.01653771); h_gammaD_1_Phi81->SetBinContent(46,0.0163377); h_gammaD_1_Phi81->SetBinContent(47,0.0157627); h_gammaD_1_Phi81->SetBinContent(48,0.0159002); h_gammaD_1_Phi81->SetBinContent(49,0.01653771); h_gammaD_1_Phi81->SetBinContent(50,0.0157002); h_gammaD_1_Phi81->SetBinContent(51,0.0160877); h_gammaD_1_Phi81->SetBinContent(52,0.0157377); h_gammaD_1_Phi81->SetBinContent(53,0.01538769); h_gammaD_1_Phi81->SetBinContent(54,0.0163627); h_gammaD_1_Phi81->SetBinContent(55,0.01515019); h_gammaD_1_Phi81->SetBinContent(56,0.0163377); h_gammaD_1_Phi81->SetBinContent(57,0.01542519); h_gammaD_1_Phi81->SetBinContent(58,0.01475018); h_gammaD_1_Phi81->SetBinContent(59,0.01462518); h_gammaD_1_Phi81->SetBinContent(60,0.01502519); h_gammaD_1_Phi81->SetBinContent(61,0.0156252); h_gammaD_1_Phi81->SetBinContent(62,0.01498769); h_gammaD_1_Phi81->SetBinContent(63,0.01530019); h_gammaD_1_Phi81->SetBinContent(64,0.0157377); h_gammaD_1_Phi81->SetBinContent(65,0.01555019); h_gammaD_1_Phi81->SetBinContent(66,0.0157002); h_gammaD_1_Phi81->SetBinContent(67,0.01483769); h_gammaD_1_Phi81->SetBinContent(68,0.0156127); h_gammaD_1_Phi81->SetBinContent(69,0.01525019); h_gammaD_1_Phi81->SetBinContent(70,0.0159002); h_gammaD_1_Phi81->SetBinContent(71,0.0158502); h_gammaD_1_Phi81->SetBinContent(72,0.006625083); h_gammaD_1_Phi81->SetBinError(9,0.0002942187); h_gammaD_1_Phi81->SetBinError(10,0.0004665423); h_gammaD_1_Phi81->SetBinError(11,0.0004591149); h_gammaD_1_Phi81->SetBinError(12,0.000447743); h_gammaD_1_Phi81->SetBinError(13,0.0004619987); h_gammaD_1_Phi81->SetBinError(14,0.0004555274); h_gammaD_1_Phi81->SetBinError(15,0.0004591149); h_gammaD_1_Phi81->SetBinError(16,0.0004486146); h_gammaD_1_Phi81->SetBinError(17,0.0004473938); h_gammaD_1_Phi81->SetBinError(18,0.0004608135); h_gammaD_1_Phi81->SetBinError(19,0.0004459946); h_gammaD_1_Phi81->SetBinError(20,0.000447743); h_gammaD_1_Phi81->SetBinError(21,0.0004475684); h_gammaD_1_Phi81->SetBinError(22,0.0004510461); h_gammaD_1_Phi81->SetBinError(23,0.0004456442); h_gammaD_1_Phi81->SetBinError(24,0.0004494845); h_gammaD_1_Phi81->SetBinError(25,0.0004408853); h_gammaD_1_Phi81->SetBinError(26,0.0004465199); h_gammaD_1_Phi81->SetBinError(27,0.0004489627); h_gammaD_1_Phi81->SetBinError(28,0.0004451179); h_gammaD_1_Phi81->SetBinError(29,0.0004529474); h_gammaD_1_Phi81->SetBinError(30,0.000449832); h_gammaD_1_Phi81->SetBinError(31,0.0004565553); h_gammaD_1_Phi81->SetBinError(32,0.0004417704); h_gammaD_1_Phi81->SetBinError(33,0.0004360745); h_gammaD_1_Phi81->SetBinError(34,0.0004449424); h_gammaD_1_Phi81->SetBinError(35,0.0004419473); h_gammaD_1_Phi81->SetBinError(36,0.000443183); h_gammaD_1_Phi81->SetBinError(37,0.0004367906); h_gammaD_1_Phi81->SetBinError(38,0.0004510461); h_gammaD_1_Phi81->SetBinError(39,0.0004340993); h_gammaD_1_Phi81->SetBinError(40,0.0004444153); h_gammaD_1_Phi81->SetBinError(41,0.0004586041); h_gammaD_1_Phi81->SetBinError(42,0.0004560416); h_gammaD_1_Phi81->SetBinError(43,0.0004482661); h_gammaD_1_Phi81->SetBinError(44,0.0004398208); h_gammaD_1_Phi81->SetBinError(45,0.000454669); h_gammaD_1_Phi81->SetBinError(46,0.0004519113); h_gammaD_1_Phi81->SetBinError(47,0.0004438876); h_gammaD_1_Phi81->SetBinError(48,0.0004458194); h_gammaD_1_Phi81->SetBinError(49,0.000454669); h_gammaD_1_Phi81->SetBinError(50,0.0004430067); h_gammaD_1_Phi81->SetBinError(51,0.0004484404); h_gammaD_1_Phi81->SetBinError(52,0.0004435354); h_gammaD_1_Phi81->SetBinError(53,0.0004385756); h_gammaD_1_Phi81->SetBinError(54,0.000452257); h_gammaD_1_Phi81->SetBinError(55,0.0004351778); h_gammaD_1_Phi81->SetBinError(56,0.0004519113); h_gammaD_1_Phi81->SetBinError(57,0.0004391097); h_gammaD_1_Phi81->SetBinError(58,0.0004293945); h_gammaD_1_Phi81->SetBinError(59,0.0004275711); h_gammaD_1_Phi81->SetBinError(60,0.0004333788); h_gammaD_1_Phi81->SetBinError(61,0.0004419473); h_gammaD_1_Phi81->SetBinError(62,0.0004328377); h_gammaD_1_Phi81->SetBinError(63,0.0004373269); h_gammaD_1_Phi81->SetBinError(64,0.0004435354); h_gammaD_1_Phi81->SetBinError(65,0.0004408853); h_gammaD_1_Phi81->SetBinError(66,0.0004430067); h_gammaD_1_Phi81->SetBinError(67,0.0004306662); h_gammaD_1_Phi81->SetBinError(68,0.0004417704); h_gammaD_1_Phi81->SetBinError(69,0.0004366117); h_gammaD_1_Phi81->SetBinError(70,0.0004458194); h_gammaD_1_Phi81->SetBinError(71,0.0004451179); h_gammaD_1_Phi81->SetBinError(72,0.0002877752); h_gammaD_1_Phi81->SetEntries(79999); h_gammaD_1_Phi81->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_gammaD_1_Phi81->SetLineColor(ci); h_gammaD_1_Phi81->SetLineWidth(2); h_gammaD_1_Phi81->SetMarkerStyle(20); h_gammaD_1_Phi81->GetXaxis()->SetLabelFont(42); h_gammaD_1_Phi81->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi81->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_Phi81->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_Phi81->GetXaxis()->SetTitleFont(42); h_gammaD_1_Phi81->GetYaxis()->SetLabelFont(42); h_gammaD_1_Phi81->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi81->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_Phi81->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_Phi81->GetYaxis()->SetTitleFont(42); h_gammaD_1_Phi81->GetZaxis()->SetLabelFont(42); h_gammaD_1_Phi81->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_Phi81->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_Phi81->GetZaxis()->SetTitleFont(42); h_gammaD_1_Phi81->Draw("SAMEHIST"); TH1F *h_gammaD_2_Phi82 = new TH1F("h_gammaD_2_Phi82","h_gammaD_2_Phi",80,-4,4); h_gammaD_2_Phi82->SetBinContent(9,0.007087589); h_gammaD_2_Phi82->SetBinContent(10,0.0164002); h_gammaD_2_Phi82->SetBinContent(11,0.01767522); h_gammaD_2_Phi82->SetBinContent(12,0.01652521); h_gammaD_2_Phi82->SetBinContent(13,0.01690021); h_gammaD_2_Phi82->SetBinContent(14,0.01672521); h_gammaD_2_Phi82->SetBinContent(15,0.0164002); h_gammaD_2_Phi82->SetBinContent(16,0.01701271); h_gammaD_2_Phi82->SetBinContent(17,0.0163627); h_gammaD_2_Phi82->SetBinContent(18,0.01655021); h_gammaD_2_Phi82->SetBinContent(19,0.01680021); h_gammaD_2_Phi82->SetBinContent(20,0.0163627); h_gammaD_2_Phi82->SetBinContent(21,0.0163377); h_gammaD_2_Phi82->SetBinContent(22,0.0160252); h_gammaD_2_Phi82->SetBinContent(23,0.01531269); h_gammaD_2_Phi82->SetBinContent(24,0.0157502); h_gammaD_2_Phi82->SetBinContent(25,0.01515019); h_gammaD_2_Phi82->SetBinContent(26,0.0160752); h_gammaD_2_Phi82->SetBinContent(27,0.0160252); h_gammaD_2_Phi82->SetBinContent(28,0.0158627); h_gammaD_2_Phi82->SetBinContent(29,0.01528769); h_gammaD_2_Phi82->SetBinContent(30,0.01555019); h_gammaD_2_Phi82->SetBinContent(31,0.0156377); h_gammaD_2_Phi82->SetBinContent(32,0.01513769); h_gammaD_2_Phi82->SetBinContent(33,0.0162502); h_gammaD_2_Phi82->SetBinContent(34,0.01548769); h_gammaD_2_Phi82->SetBinContent(35,0.0157252); h_gammaD_2_Phi82->SetBinContent(36,0.01558769); h_gammaD_2_Phi82->SetBinContent(37,0.01522519); h_gammaD_2_Phi82->SetBinContent(38,0.0158377); h_gammaD_2_Phi82->SetBinContent(39,0.01533769); h_gammaD_2_Phi82->SetBinContent(40,0.0158377); h_gammaD_2_Phi82->SetBinContent(41,0.0162627); h_gammaD_2_Phi82->SetBinContent(42,0.01557519); h_gammaD_2_Phi82->SetBinContent(43,0.01702521); h_gammaD_2_Phi82->SetBinContent(44,0.0159127); h_gammaD_2_Phi82->SetBinContent(45,0.0159627); h_gammaD_2_Phi82->SetBinContent(46,0.0159377); h_gammaD_2_Phi82->SetBinContent(47,0.01535019); h_gammaD_2_Phi82->SetBinContent(48,0.0161877); h_gammaD_2_Phi82->SetBinContent(49,0.01671271); h_gammaD_2_Phi82->SetBinContent(50,0.01546269); h_gammaD_2_Phi82->SetBinContent(51,0.0159002); h_gammaD_2_Phi82->SetBinContent(52,0.01558769); h_gammaD_2_Phi82->SetBinContent(53,0.01558769); h_gammaD_2_Phi82->SetBinContent(54,0.01505019); h_gammaD_2_Phi82->SetBinContent(55,0.0159627); h_gammaD_2_Phi82->SetBinContent(56,0.01482519); h_gammaD_2_Phi82->SetBinContent(57,0.01551269); h_gammaD_2_Phi82->SetBinContent(58,0.0159252); h_gammaD_2_Phi82->SetBinContent(59,0.01558769); h_gammaD_2_Phi82->SetBinContent(60,0.01545019); h_gammaD_2_Phi82->SetBinContent(61,0.01461268); h_gammaD_2_Phi82->SetBinContent(62,0.01506269); h_gammaD_2_Phi82->SetBinContent(63,0.0159502); h_gammaD_2_Phi82->SetBinContent(64,0.01476268); h_gammaD_2_Phi82->SetBinContent(65,0.01542519); h_gammaD_2_Phi82->SetBinContent(66,0.01673771); h_gammaD_2_Phi82->SetBinContent(67,0.0161002); h_gammaD_2_Phi82->SetBinContent(68,0.0156377); h_gammaD_2_Phi82->SetBinContent(69,0.01558769); h_gammaD_2_Phi82->SetBinContent(70,0.01535019); h_gammaD_2_Phi82->SetBinContent(71,0.01777522); h_gammaD_2_Phi82->SetBinContent(72,0.006975087); h_gammaD_2_Phi82->SetBinError(9,0.0002976507); h_gammaD_2_Phi82->SetBinError(10,0.0004527749); h_gammaD_2_Phi82->SetBinError(11,0.0004700458); h_gammaD_2_Phi82->SetBinError(12,0.0004544972); h_gammaD_2_Phi82->SetBinError(13,0.0004596252); h_gammaD_2_Phi82->SetBinError(14,0.0004572392); h_gammaD_2_Phi82->SetBinError(15,0.0004527749); h_gammaD_2_Phi82->SetBinError(16,0.0004611524); h_gammaD_2_Phi82->SetBinError(17,0.000452257); h_gammaD_2_Phi82->SetBinError(18,0.0004548408); h_gammaD_2_Phi82->SetBinError(19,0.0004582633); h_gammaD_2_Phi82->SetBinError(20,0.000452257); h_gammaD_2_Phi82->SetBinError(21,0.0004519113); h_gammaD_2_Phi82->SetBinError(22,0.0004475684); h_gammaD_2_Phi82->SetBinError(23,0.0004375055); h_gammaD_2_Phi82->SetBinError(24,0.0004437115); h_gammaD_2_Phi82->SetBinError(25,0.0004351778); h_gammaD_2_Phi82->SetBinError(26,0.0004482661); h_gammaD_2_Phi82->SetBinError(27,0.0004475684); h_gammaD_2_Phi82->SetBinError(28,0.0004452934); h_gammaD_2_Phi82->SetBinError(29,0.0004371482); h_gammaD_2_Phi82->SetBinError(30,0.0004408853); h_gammaD_2_Phi82->SetBinError(31,0.000442124); h_gammaD_2_Phi82->SetBinError(32,0.0004349983); h_gammaD_2_Phi82->SetBinError(33,0.0004506995); h_gammaD_2_Phi82->SetBinError(34,0.0004399984); h_gammaD_2_Phi82->SetBinError(35,0.0004433592); h_gammaD_2_Phi82->SetBinError(36,0.0004414166); h_gammaD_2_Phi82->SetBinError(37,0.0004362537); h_gammaD_2_Phi82->SetBinError(38,0.0004449424); h_gammaD_2_Phi82->SetBinError(39,0.0004378625); h_gammaD_2_Phi82->SetBinError(40,0.0004449424); h_gammaD_2_Phi82->SetBinError(41,0.0004508729); h_gammaD_2_Phi82->SetBinError(42,0.0004412396); h_gammaD_2_Phi82->SetBinError(43,0.0004613218); h_gammaD_2_Phi82->SetBinError(44,0.0004459946); h_gammaD_2_Phi82->SetBinError(45,0.0004466948); h_gammaD_2_Phi82->SetBinError(46,0.0004463449); h_gammaD_2_Phi82->SetBinError(47,0.0004380409); h_gammaD_2_Phi82->SetBinError(48,0.000449832); h_gammaD_2_Phi82->SetBinError(49,0.0004570683); h_gammaD_2_Phi82->SetBinError(50,0.0004396431); h_gammaD_2_Phi82->SetBinError(51,0.0004458194); h_gammaD_2_Phi82->SetBinError(52,0.0004414166); h_gammaD_2_Phi82->SetBinError(53,0.0004414166); h_gammaD_2_Phi82->SetBinError(54,0.0004337392); h_gammaD_2_Phi82->SetBinError(55,0.0004466948); h_gammaD_2_Phi82->SetBinError(56,0.0004304848); h_gammaD_2_Phi82->SetBinError(57,0.0004403534); h_gammaD_2_Phi82->SetBinError(58,0.0004461698); h_gammaD_2_Phi82->SetBinError(59,0.0004414166); h_gammaD_2_Phi82->SetBinError(60,0.0004394654); h_gammaD_2_Phi82->SetBinError(61,0.0004273884); h_gammaD_2_Phi82->SetBinError(62,0.0004339193); h_gammaD_2_Phi82->SetBinError(63,0.0004465199); h_gammaD_2_Phi82->SetBinError(64,0.0004295764); h_gammaD_2_Phi82->SetBinError(65,0.0004391097); h_gammaD_2_Phi82->SetBinError(66,0.0004574101); h_gammaD_2_Phi82->SetBinError(67,0.0004486146); h_gammaD_2_Phi82->SetBinError(68,0.000442124); h_gammaD_2_Phi82->SetBinError(69,0.0004414166); h_gammaD_2_Phi82->SetBinError(70,0.0004380409); h_gammaD_2_Phi82->SetBinError(71,0.0004713736); h_gammaD_2_Phi82->SetBinError(72,0.000295279); h_gammaD_2_Phi82->SetEntries(79999); h_gammaD_2_Phi82->SetDirectory(0); ci = TColor::GetColor("#ff0000"); h_gammaD_2_Phi82->SetLineColor(ci); h_gammaD_2_Phi82->SetLineWidth(2); h_gammaD_2_Phi82->SetMarkerStyle(20); h_gammaD_2_Phi82->GetXaxis()->SetLabelFont(42); h_gammaD_2_Phi82->GetXaxis()->SetLabelOffset(0.007); h_gammaD_2_Phi82->GetXaxis()->SetTitleSize(0.06); h_gammaD_2_Phi82->GetXaxis()->SetTitleOffset(0.95); h_gammaD_2_Phi82->GetXaxis()->SetTitleFont(42); h_gammaD_2_Phi82->GetYaxis()->SetLabelFont(42); h_gammaD_2_Phi82->GetYaxis()->SetLabelOffset(0.007); h_gammaD_2_Phi82->GetYaxis()->SetTitleSize(0.06); h_gammaD_2_Phi82->GetYaxis()->SetTitleOffset(1.3); h_gammaD_2_Phi82->GetYaxis()->SetTitleFont(42); h_gammaD_2_Phi82->GetZaxis()->SetLabelFont(42); h_gammaD_2_Phi82->GetZaxis()->SetLabelOffset(0.007); h_gammaD_2_Phi82->GetZaxis()->SetTitleSize(0.06); h_gammaD_2_Phi82->GetZaxis()->SetTitleFont(42); h_gammaD_2_Phi82->Draw("SAMEHIST"); TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_gammaD_1_Phi","1st dark photon (leading p_{T})","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_gammaD_2_Phi","2nd dark photon","L"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 100 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void DisplayBackground(){ gROOT->SetStyle("Plain"); gStyle->SetOptStat(0000); //gStyle->SetErrorX(0) gStyle->SetPadGridX(0); gStyle->SetPadGridY(0); TCanvas * c = new TCanvas("c", "c", 700,700); c->SetTickx(1); c->SetTicky(1); c->SetFrameFillStyle(4000); c->SetFrameFillColor(0); c->cd(); gStyle->SetPadGridX(0); gStyle->SetPadGridY(0); gROOT->SetStyle("Plain"); double totalLuminosity=2190; // /pb double xsec_ttbar=831.76; double xsec_qcd[8]={27850000,1717000,351300,31630.,6802.,1206.,120.4,25.24}; TFile *ttbar=new TFile("Histograms_TT_TuneCUETP8M1_13TeV-amcatnlo-pythia8_Skim.root"); /*std::vector<TFile*> qcd; qcd.push_back(new TFile ("Histograms_QCD_HT100to200_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT200to300_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT300to500_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT500to700_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT700to1000_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT1000to1500_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT1500to2000_Skim.root")); qcd.push_back(new TFile("Histograms_QCD_HT2000toInf_Skim.root")); double init_ttbar=((TH1F*)ttbar->Get("Count"))->GetBinContent(1); double init_qcd[8]; double scale_qcd[8]; double scale_ttbar=totalLuminosity*xsec_ttbar/init_ttbar; for(int l=0; l<8;l++){ init_qcd[l]=((TH1F*)qcd.at(l)->Get("Count"))->GetBinContent(1); scale_qcd[l]=totalLuminosity*xsec_qcd[l]/init_qcd[l]; } */ double init_ttbar=((TH1F*)ttbar->Get("Count"))->GetBinContent(1); double scale_ttbar=totalLuminosity*xsec_ttbar/init_ttbar; TH1F * h_bkg = new TH1F("h_bkg","h_bkg", 50, 0., 2000.); THStack hs("hs","test stacked histograms"); hs.SetTitle(""); //c->cd(); TH1F* h_mX_SB_kinFit=(TH1F*)ttbar->Get("h_mX_SB_kinFit"); h_mX_SB_kinFit->Scale(scale_ttbar); h_mX_SB_kinFit->Rebin(40); h_bkg->Add(h_mX_SB_kinFit); h_mX_SB_kinFit->SetLineColor(kBlue+1); h_mX_SB_kinFit->SetFillColor(kBlue+1); TLegend *leg = new TLegend(0.55625,0.7321654,0.8765625,0.8603839,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.035); leg->SetTextFont(42); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(2); leg->SetFillColor(0); leg->SetFillStyle(0); double integral =0 ; integral = integral + h_mX_SB_kinFit->Integral(0, 200); std::cout<< "integral tt " << integral<<std::endl; leg->AddEntry(h_mX_SB_kinFit, "t#bar{t} ", "f"); h_mX_SB_kinFit->Draw(""); hs.Add(h_mX_SB_kinFit,"hist"); /* double integralQCD =0; for(int m=0; m<8;m++){ TH1F* h_mX_SB_kinFitQ=(TH1F*)qcd.at(m)->Get("h_mX_SB_kinFit"); h_mX_SB_kinFitQ->Scale(scale_qcd[m]); h_mX_SB_kinFitQ->Rebin(40); h_bkg->Add(h_mX_SB_kinFitQ); h_mX_SB_kinFitQ->Draw("same"); h_mX_SB_kinFitQ->SetLineColor(kRed+1); h_mX_SB_kinFitQ->SetFillColor(kRed+1); // if(m==0) leg->AddEntry(h_mX_SB_kinFitQ, "QCD", "f"); // hs.Add(h_mX_SB_kinFitQ,"hist"); integralQCD = integralQCD + h_mX_SB_kinFitQ->Integral(0, 200); } std::cout<< "integral QCD " << integralQCD<<std::endl; */ h_mX_SB_kinFit->GetYaxis()->SetRangeUser(0., hs.GetMaximum()*7.); //h_mX_SB_kinFit->Scale(b/a); h_mX_SB_kinFit->SetTitle(""); h_mX_SB_kinFit->SetLineColor(kBlue+2); h_mX_SB_kinFit->GetXaxis()->SetTitle("m_{X} (GeV)"); std::cout<<h_mX_SB_kinFit->GetBinWidth(1)<<std::endl; //char * title="Events / 20 GeV";// / ("+itoa(h_mX_SB_kinFit->GetBinWidth(1))+" GeV)"; h_mX_SB_kinFit->GetYaxis()->SetTitle(("Events / "+itoa(h_mX_SB_kinFit->GetBinWidth(1))+" (GeV)").c_str()); h_mX_SB_kinFit->GetYaxis()->SetTitleSize(0.033); h_mX_SB_kinFit->GetYaxis()->SetTitleOffset(1.35); h_mX_SB_kinFit->GetYaxis()->SetLabelSize(0.03); h_mX_SB_kinFit->GetXaxis()->SetLabelSize(0.03); //h_mX_SB_kinFit->Draw(""); h_mX_SB_kinFit->GetXaxis()->SetRangeUser(300.,1800.); //h_mX_SB_kinFit->SetMarkerStyle(20); //h_mX_SB_kinFit->SetMarkerColor(kBlack); //h_mX_SB_kinFit->SetLineColor(kBlack); //h_mX_SB_kinFit->Draw("same"); //hs.GetXaxis()->SetRangeUser(220.,1200.); //hs->Rebin(2); hs.Draw(""); //hs.GetXaxis()->SetRangeUser(220.,1200.); h_mX_SB_kinFit->Draw(""); hs.Draw("same"); std::cout<<" adding data "<<std::endl; TFile * fData = new TFile("Histograms_Data_BTagCSV_2015_Skim.root"); TH1F* h_mX_SB_kinFitD=(TH1F*)fData->Get("h_mX_SB_kinFit"); h_mX_SB_kinFitD->Rebin(40); h_mX_SB_kinFitD->SetMarkerStyle(20); h_mX_SB_kinFitD->SetMarkerColor(kBlack); h_mX_SB_kinFitD->SetLineColor(kBlack); h_mX_SB_kinFitD->Draw("same"); //h_mX_SB_kinFit->Draw("same"); hs.Draw("same"); std::cout<<" data integral is : "<<h_mX_SB_kinFitD->Integral(0, 100)<<std::endl; leg->AddEntry(h_mX_SB_kinFitD, "Data in SB, MMR_{#chi} ", "lp"); TLatex * tPrel = new TLatex(); tPrel->SetNDC(); tPrel->SetTextColor(kBlack); tPrel->SetTextSize(0.04027386); tPrel->SetTextFont(42); tPrel->DrawLatex(0.09821429,0.9194523,"CMS Preliminary (13 TeV) 2.2 fb^{-1}"); leg->Draw("sames"); //h_ttbar->Rebin(2); c->Print("stackMMR.png"); c->Print("stackMMR.pdf"); //h_mX_SB_kinFit->Rebin(4); //sprintf(name,"SB: t#bar{t} contribution =%d",integral/data); //pave->AddText(name); //pave->Draw(); }
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_dimuon_p() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:17:57 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-21.25,-0.006229087,103.75,0.04168697); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_dimuon_1_p_dummy132 = new TH1F("h_dimuon_1_p_dummy132","h_dimuon_1_p_dummy",100,0,100); h_dimuon_1_p_dummy132->SetMaximum(0.03833284); h_dimuon_1_p_dummy132->SetLineStyle(0); h_dimuon_1_p_dummy132->SetMarkerStyle(20); h_dimuon_1_p_dummy132->GetXaxis()->SetTitle("p of #mu#mu [GeV]"); h_dimuon_1_p_dummy132->GetXaxis()->SetLabelFont(42); h_dimuon_1_p_dummy132->GetXaxis()->SetLabelOffset(0.007); h_dimuon_1_p_dummy132->GetXaxis()->SetTitleSize(0.06); h_dimuon_1_p_dummy132->GetXaxis()->SetTitleOffset(0.95); h_dimuon_1_p_dummy132->GetXaxis()->SetTitleFont(42); h_dimuon_1_p_dummy132->GetYaxis()->SetTitle("Fraction of events / 1 GeV"); h_dimuon_1_p_dummy132->GetYaxis()->SetLabelFont(42); h_dimuon_1_p_dummy132->GetYaxis()->SetLabelOffset(0.007); h_dimuon_1_p_dummy132->GetYaxis()->SetTitleSize(0.06); h_dimuon_1_p_dummy132->GetYaxis()->SetTitleOffset(1.35); h_dimuon_1_p_dummy132->GetYaxis()->SetTitleFont(42); h_dimuon_1_p_dummy132->GetZaxis()->SetLabelFont(42); h_dimuon_1_p_dummy132->GetZaxis()->SetLabelOffset(0.007); h_dimuon_1_p_dummy132->GetZaxis()->SetTitleSize(0.06); h_dimuon_1_p_dummy132->GetZaxis()->SetTitleFont(42); h_dimuon_1_p_dummy132->Draw(""); TH1F *h_dimuon_1_p133 = new TH1F("h_dimuon_1_p133","h_dimuon_1_p",101,0,101); h_dimuon_1_p133->SetBinContent(4,3.64385e-05); h_dimuon_1_p133->SetBinContent(5,0.000145754); h_dimuon_1_p133->SetBinContent(6,0.0002004118); h_dimuon_1_p133->SetBinContent(7,0.0004008235); h_dimuon_1_p133->SetBinContent(8,0.0006012353); h_dimuon_1_p133->SetBinContent(9,0.0009656203); h_dimuon_1_p133->SetBinContent(10,0.001657952); h_dimuon_1_p133->SetBinContent(11,0.001967679); h_dimuon_1_p133->SetBinContent(12,0.002477818); h_dimuon_1_p133->SetBinContent(13,0.003206588); h_dimuon_1_p133->SetBinContent(14,0.00413577); h_dimuon_1_p133->SetBinContent(15,0.004700567); h_dimuon_1_p133->SetBinContent(16,0.005283582); h_dimuon_1_p133->SetBinContent(17,0.006832219); h_dimuon_1_p133->SetBinContent(18,0.007816059); h_dimuon_1_p133->SetBinContent(19,0.008052909); h_dimuon_1_p133->SetBinContent(20,0.009437571); h_dimuon_1_p133->SetBinContent(21,0.01118662); h_dimuon_1_p133->SetBinContent(22,0.01244375); h_dimuon_1_p133->SetBinContent(23,0.01186073); h_dimuon_1_p133->SetBinContent(24,0.01373732); h_dimuon_1_p133->SetBinContent(25,0.01473937); h_dimuon_1_p133->SetBinContent(26,0.01512198); h_dimuon_1_p133->SetBinContent(27,0.01619691); h_dimuon_1_p133->SetBinContent(28,0.01687103); h_dimuon_1_p133->SetBinContent(29,0.01738117); h_dimuon_1_p133->SetBinContent(30,0.01690746); h_dimuon_1_p133->SetBinContent(31,0.01783665); h_dimuon_1_p133->SetBinContent(32,0.01896624); h_dimuon_1_p133->SetBinContent(33,0.01947638); h_dimuon_1_p133->SetBinContent(34,0.02062419); h_dimuon_1_p133->SetBinContent(35,0.01967679); h_dimuon_1_p133->SetBinContent(36,0.0210068); h_dimuon_1_p133->SetBinContent(37,0.02217283); h_dimuon_1_p133->SetBinContent(38,0.02055131); h_dimuon_1_p133->SetBinContent(39,0.0208246); h_dimuon_1_p133->SetBinContent(40,0.02208173); h_dimuon_1_p133->SetBinContent(41,0.02321132); h_dimuon_1_p133->SetBinContent(42,0.02208173); h_dimuon_1_p133->SetBinContent(43,0.02133474); h_dimuon_1_p133->SetBinContent(44,0.02189954); h_dimuon_1_p133->SetBinContent(45,0.02020515); h_dimuon_1_p133->SetBinContent(46,0.01984076); h_dimuon_1_p133->SetBinContent(47,0.01860186); h_dimuon_1_p133->SetBinContent(48,0.01734473); h_dimuon_1_p133->SetBinContent(49,0.01747226); h_dimuon_1_p133->SetBinContent(50,0.01475759); h_dimuon_1_p133->SetBinContent(51,0.01444787); h_dimuon_1_p133->SetBinContent(52,0.01415636); h_dimuon_1_p133->SetBinContent(53,0.01381019); h_dimuon_1_p133->SetBinContent(54,0.0126806); h_dimuon_1_p133->SetBinContent(55,0.01191539); h_dimuon_1_p133->SetBinContent(56,0.01129594); h_dimuon_1_p133->SetBinContent(57,0.01191539); h_dimuon_1_p133->SetBinContent(58,0.011551); h_dimuon_1_p133->SetBinContent(59,0.01036675); h_dimuon_1_p133->SetBinContent(60,0.0110773); h_dimuon_1_p133->SetBinContent(61,0.01056716); h_dimuon_1_p133->SetBinContent(62,0.009947711); h_dimuon_1_p133->SetBinContent(63,0.009893053); h_dimuon_1_p133->SetBinContent(64,0.009018529); h_dimuon_1_p133->SetBinContent(65,0.008144005); h_dimuon_1_p133->SetBinContent(66,0.008799898); h_dimuon_1_p133->SetBinContent(67,0.00849017); h_dimuon_1_p133->SetBinContent(68,0.008216882); h_dimuon_1_p133->SetBinContent(69,0.008526609); h_dimuon_1_p133->SetBinContent(70,0.008799898); h_dimuon_1_p133->SetBinContent(71,0.008581267); h_dimuon_1_p133->SetBinContent(72,0.008089347); h_dimuon_1_p133->SetBinContent(73,0.007360577); h_dimuon_1_p133->SetBinContent(74,0.007196604); h_dimuon_1_p133->SetBinContent(75,0.007233042); h_dimuon_1_p133->SetBinContent(76,0.007160165); h_dimuon_1_p133->SetBinContent(77,0.00703263); h_dimuon_1_p133->SetBinContent(78,0.006704684); h_dimuon_1_p133->SetBinContent(79,0.006686465); h_dimuon_1_p133->SetBinContent(80,0.007160165); h_dimuon_1_p133->SetBinContent(81,0.00632208); h_dimuon_1_p133->SetBinContent(82,0.006121668); h_dimuon_1_p133->SetBinContent(83,0.005957695); h_dimuon_1_p133->SetBinContent(84,0.006522492); h_dimuon_1_p133->SetBinContent(85,0.006048791); h_dimuon_1_p133->SetBinContent(86,0.005283582); h_dimuon_1_p133->SetBinContent(87,0.006358518); h_dimuon_1_p133->SetBinContent(88,0.005739064); h_dimuon_1_p133->SetBinContent(89,0.005538652); h_dimuon_1_p133->SetBinContent(90,0.005283582); h_dimuon_1_p133->SetBinContent(91,0.005083171); h_dimuon_1_p133->SetBinContent(92,0.005629749); h_dimuon_1_p133->SetBinContent(93,0.005411117); h_dimuon_1_p133->SetBinContent(94,0.004828101); h_dimuon_1_p133->SetBinContent(95,0.004791663); h_dimuon_1_p133->SetBinContent(96,0.005083171); h_dimuon_1_p133->SetBinContent(97,0.004700567); h_dimuon_1_p133->SetBinContent(98,0.004573032); h_dimuon_1_p133->SetBinContent(99,0.004900978); h_dimuon_1_p133->SetBinContent(100,0.004664128); h_dimuon_1_p133->SetBinError(4,3.64385e-05); h_dimuon_1_p133->SetBinError(5,0.000145754); h_dimuon_1_p133->SetBinError(6,0.0002004118); h_dimuon_1_p133->SetBinError(7,0.0004008235); h_dimuon_1_p133->SetBinError(8,0.0006012353); h_dimuon_1_p133->SetBinError(9,0.0009656203); h_dimuon_1_p133->SetBinError(10,0.001657952); h_dimuon_1_p133->SetBinError(11,0.001967679); h_dimuon_1_p133->SetBinError(12,0.002477818); h_dimuon_1_p133->SetBinError(13,0.003206588); h_dimuon_1_p133->SetBinError(14,0.00413577); h_dimuon_1_p133->SetBinError(15,0.004700567); h_dimuon_1_p133->SetBinError(16,0.005283583); h_dimuon_1_p133->SetBinError(17,0.006832219); h_dimuon_1_p133->SetBinError(18,0.007816058); h_dimuon_1_p133->SetBinError(19,0.008052909); h_dimuon_1_p133->SetBinError(20,0.009437572); h_dimuon_1_p133->SetBinError(21,0.01118662); h_dimuon_1_p133->SetBinError(22,0.01244375); h_dimuon_1_p133->SetBinError(23,0.01186073); h_dimuon_1_p133->SetBinError(24,0.01373731); h_dimuon_1_p133->SetBinError(25,0.01473937); h_dimuon_1_p133->SetBinError(26,0.01512198); h_dimuon_1_p133->SetBinError(27,0.01619691); h_dimuon_1_p133->SetBinError(28,0.01687103); h_dimuon_1_p133->SetBinError(29,0.01738116); h_dimuon_1_p133->SetBinError(30,0.01690746); h_dimuon_1_p133->SetBinError(31,0.01783665); h_dimuon_1_p133->SetBinError(32,0.01896624); h_dimuon_1_p133->SetBinError(33,0.01947638); h_dimuon_1_p133->SetBinError(34,0.02062419); h_dimuon_1_p133->SetBinError(35,0.01967679); h_dimuon_1_p133->SetBinError(36,0.0210068); h_dimuon_1_p133->SetBinError(37,0.02217283); h_dimuon_1_p133->SetBinError(38,0.02055131); h_dimuon_1_p133->SetBinError(39,0.0208246); h_dimuon_1_p133->SetBinError(40,0.02208173); h_dimuon_1_p133->SetBinError(41,0.02321133); h_dimuon_1_p133->SetBinError(42,0.02208173); h_dimuon_1_p133->SetBinError(43,0.02133474); h_dimuon_1_p133->SetBinError(44,0.02189954); h_dimuon_1_p133->SetBinError(45,0.02020515); h_dimuon_1_p133->SetBinError(46,0.01984076); h_dimuon_1_p133->SetBinError(47,0.01860185); h_dimuon_1_p133->SetBinError(48,0.01734473); h_dimuon_1_p133->SetBinError(49,0.01747226); h_dimuon_1_p133->SetBinError(50,0.01475759); h_dimuon_1_p133->SetBinError(51,0.01444787); h_dimuon_1_p133->SetBinError(52,0.01415636); h_dimuon_1_p133->SetBinError(53,0.01381019); h_dimuon_1_p133->SetBinError(54,0.0126806); h_dimuon_1_p133->SetBinError(55,0.01191539); h_dimuon_1_p133->SetBinError(56,0.01129594); h_dimuon_1_p133->SetBinError(57,0.01191539); h_dimuon_1_p133->SetBinError(58,0.011551); h_dimuon_1_p133->SetBinError(59,0.01036675); h_dimuon_1_p133->SetBinError(60,0.0110773); h_dimuon_1_p133->SetBinError(61,0.01056717); h_dimuon_1_p133->SetBinError(62,0.009947711); h_dimuon_1_p133->SetBinError(63,0.009893053); h_dimuon_1_p133->SetBinError(64,0.009018529); h_dimuon_1_p133->SetBinError(65,0.008144005); h_dimuon_1_p133->SetBinError(66,0.008799898); h_dimuon_1_p133->SetBinError(67,0.008490171); h_dimuon_1_p133->SetBinError(68,0.008216882); h_dimuon_1_p133->SetBinError(69,0.008526609); h_dimuon_1_p133->SetBinError(70,0.008799898); h_dimuon_1_p133->SetBinError(71,0.008581267); h_dimuon_1_p133->SetBinError(72,0.008089347); h_dimuon_1_p133->SetBinError(73,0.007360577); h_dimuon_1_p133->SetBinError(74,0.007196604); h_dimuon_1_p133->SetBinError(75,0.007233042); h_dimuon_1_p133->SetBinError(76,0.007160165); h_dimuon_1_p133->SetBinError(77,0.007032631); h_dimuon_1_p133->SetBinError(78,0.006704684); h_dimuon_1_p133->SetBinError(79,0.006686465); h_dimuon_1_p133->SetBinError(80,0.007160165); h_dimuon_1_p133->SetBinError(81,0.00632208); h_dimuon_1_p133->SetBinError(82,0.006121668); h_dimuon_1_p133->SetBinError(83,0.005957695); h_dimuon_1_p133->SetBinError(84,0.006522492); h_dimuon_1_p133->SetBinError(85,0.006048791); h_dimuon_1_p133->SetBinError(86,0.005283583); h_dimuon_1_p133->SetBinError(87,0.006358518); h_dimuon_1_p133->SetBinError(88,0.005739064); h_dimuon_1_p133->SetBinError(89,0.005538652); h_dimuon_1_p133->SetBinError(90,0.005283583); h_dimuon_1_p133->SetBinError(91,0.005083171); h_dimuon_1_p133->SetBinError(92,0.005629748); h_dimuon_1_p133->SetBinError(93,0.005411117); h_dimuon_1_p133->SetBinError(94,0.004828101); h_dimuon_1_p133->SetBinError(95,0.004791663); h_dimuon_1_p133->SetBinError(96,0.005083171); h_dimuon_1_p133->SetBinError(97,0.004700567); h_dimuon_1_p133->SetBinError(98,0.004573032); h_dimuon_1_p133->SetBinError(99,0.004900978); h_dimuon_1_p133->SetBinError(100,0.004664128); h_dimuon_1_p133->SetEntries(79999); h_dimuon_1_p133->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_dimuon_1_p133->SetLineColor(ci); h_dimuon_1_p133->SetLineWidth(2); h_dimuon_1_p133->SetMarkerStyle(20); h_dimuon_1_p133->GetXaxis()->SetLabelFont(42); h_dimuon_1_p133->GetXaxis()->SetLabelOffset(0.007); h_dimuon_1_p133->GetXaxis()->SetTitleSize(0.06); h_dimuon_1_p133->GetXaxis()->SetTitleOffset(0.95); h_dimuon_1_p133->GetXaxis()->SetTitleFont(42); h_dimuon_1_p133->GetYaxis()->SetLabelFont(42); h_dimuon_1_p133->GetYaxis()->SetLabelOffset(0.007); h_dimuon_1_p133->GetYaxis()->SetTitleSize(0.06); h_dimuon_1_p133->GetYaxis()->SetTitleOffset(1.3); h_dimuon_1_p133->GetYaxis()->SetTitleFont(42); h_dimuon_1_p133->GetZaxis()->SetLabelFont(42); h_dimuon_1_p133->GetZaxis()->SetLabelOffset(0.007); h_dimuon_1_p133->GetZaxis()->SetTitleSize(0.06); h_dimuon_1_p133->GetZaxis()->SetTitleFont(42); h_dimuon_1_p133->Draw("SAME"); TH1F *h_dimuon_2_p134 = new TH1F("h_dimuon_2_p134","h_dimuon_2_p",101,0,101); h_dimuon_2_p134->SetBinContent(2,0.0003750449); h_dimuon_2_p134->SetBinContent(3,0.001027297); h_dimuon_2_p134->SetBinContent(4,0.001989368); h_dimuon_2_p134->SetBinContent(5,0.003880899); h_dimuon_2_p134->SetBinContent(6,0.006131168); h_dimuon_2_p134->SetBinContent(7,0.00722369); h_dimuon_2_p134->SetBinContent(8,0.009522878); h_dimuon_2_p134->SetBinContent(9,0.01079477); h_dimuon_2_p134->SetBinContent(10,0.01260477); h_dimuon_2_p134->SetBinContent(11,0.01457783); h_dimuon_2_p134->SetBinContent(12,0.01599648); h_dimuon_2_p134->SetBinContent(13,0.01635522); h_dimuon_2_p134->SetBinContent(14,0.0176108); h_dimuon_2_p134->SetBinContent(15,0.0181326); h_dimuon_2_p134->SetBinContent(16,0.02015458); h_dimuon_2_p134->SetBinContent(17,0.01997522); h_dimuon_2_p134->SetBinContent(18,0.02052963); h_dimuon_2_p134->SetBinContent(19,0.02088837); h_dimuon_2_p134->SetBinContent(20,0.02114927); h_dimuon_2_p134->SetBinContent(21,0.0209862); h_dimuon_2_p134->SetBinContent(22,0.02000783); h_dimuon_2_p134->SetBinContent(23,0.02113296); h_dimuon_2_p134->SetBinContent(24,0.02124711); h_dimuon_2_p134->SetBinContent(25,0.01973062); h_dimuon_2_p134->SetBinContent(26,0.02129602); h_dimuon_2_p134->SetBinContent(27,0.02036657); h_dimuon_2_p134->SetBinContent(28,0.02074161); h_dimuon_2_p134->SetBinContent(29,0.01943711); h_dimuon_2_p134->SetBinContent(30,0.01912729); h_dimuon_2_p134->SetBinContent(31,0.01840981); h_dimuon_2_p134->SetBinContent(32,0.0183772); h_dimuon_2_p134->SetBinContent(33,0.01686071); h_dimuon_2_p134->SetBinContent(34,0.01700747); h_dimuon_2_p134->SetBinContent(35,0.01575188); h_dimuon_2_p134->SetBinContent(36,0.01643675); h_dimuon_2_p134->SetBinContent(37,0.01560513); h_dimuon_2_p134->SetBinContent(38,0.0137136); h_dimuon_2_p134->SetBinContent(39,0.01433324); h_dimuon_2_p134->SetBinContent(40,0.01338747); h_dimuon_2_p134->SetBinContent(41,0.01330594); h_dimuon_2_p134->SetBinContent(42,0.01342008); h_dimuon_2_p134->SetBinContent(43,0.01271891); h_dimuon_2_p134->SetBinContent(44,0.01134918); h_dimuon_2_p134->SetBinContent(45,0.01182207); h_dimuon_2_p134->SetBinContent(46,0.01095783); h_dimuon_2_p134->SetBinContent(47,0.01085999); h_dimuon_2_p134->SetBinContent(48,0.00986531); h_dimuon_2_p134->SetBinContent(49,0.009441346); h_dimuon_2_p134->SetBinContent(50,0.009669635); h_dimuon_2_p134->SetBinContent(51,0.009849004); h_dimuon_2_p134->SetBinContent(52,0.009310896); h_dimuon_2_p134->SetBinContent(53,0.008462968); h_dimuon_2_p134->SetBinContent(54,0.008756482); h_dimuon_2_p134->SetBinContent(55,0.008707562); h_dimuon_2_p134->SetBinContent(56,0.00867495); h_dimuon_2_p134->SetBinContent(57,0.007696572); h_dimuon_2_p134->SetBinContent(58,0.007859635); h_dimuon_2_p134->SetBinContent(59,0.007435672); h_dimuon_2_p134->SetBinContent(60,0.007598734); h_dimuon_2_p134->SetBinContent(61,0.007419365); h_dimuon_2_p134->SetBinContent(62,0.007239996); h_dimuon_2_p134->SetBinContent(63,0.006799726); h_dimuon_2_p134->SetBinContent(64,0.007011708); h_dimuon_2_p134->SetBinContent(65,0.006636663); h_dimuon_2_p134->SetBinContent(66,0.006277924); h_dimuon_2_p134->SetBinContent(67,0.006799726); h_dimuon_2_p134->SetBinContent(68,0.006359456); h_dimuon_2_p134->SetBinContent(69,0.006245312); h_dimuon_2_p134->SetBinContent(70,0.005788736); h_dimuon_2_p134->SetBinContent(71,0.00603333); h_dimuon_2_p134->SetBinContent(72,0.00502234); h_dimuon_2_p134->SetBinContent(73,0.005886573); h_dimuon_2_p134->SetBinContent(74,0.005446303); h_dimuon_2_p134->SetBinContent(75,0.005038646); h_dimuon_2_p134->SetBinContent(76,0.004842971); h_dimuon_2_p134->SetBinContent(77,0.004908196); h_dimuon_2_p134->SetBinContent(78,0.004614682); h_dimuon_2_p134->SetBinContent(79,0.005120177); h_dimuon_2_p134->SetBinContent(80,0.004598376); h_dimuon_2_p134->SetBinContent(81,0.004565763); h_dimuon_2_p134->SetBinContent(82,0.004598376); h_dimuon_2_p134->SetBinContent(83,0.004304863); h_dimuon_2_p134->SetBinContent(84,0.004533151); h_dimuon_2_p134->SetBinContent(85,0.004728826); h_dimuon_2_p134->SetBinContent(86,0.004076574); h_dimuon_2_p134->SetBinContent(87,0.004109187); h_dimuon_2_p134->SetBinContent(88,0.004255943); h_dimuon_2_p134->SetBinContent(89,0.003995043); h_dimuon_2_p134->SetBinContent(90,0.003815674); h_dimuon_2_p134->SetBinContent(91,0.004174412); h_dimuon_2_p134->SetBinContent(92,0.004467926); h_dimuon_2_p134->SetBinContent(93,0.003929818); h_dimuon_2_p134->SetBinContent(94,0.003701529); h_dimuon_2_p134->SetBinContent(95,0.004174412); h_dimuon_2_p134->SetBinContent(96,0.003766755); h_dimuon_2_p134->SetBinContent(97,0.003473241); h_dimuon_2_p134->SetBinContent(98,0.003717836); h_dimuon_2_p134->SetBinContent(99,0.003636304); h_dimuon_2_p134->SetBinContent(100,0.003244953); h_dimuon_2_p134->SetBinError(2,0.0003750448); h_dimuon_2_p134->SetBinError(3,0.001027297); h_dimuon_2_p134->SetBinError(4,0.001989368); h_dimuon_2_p134->SetBinError(5,0.003880899); h_dimuon_2_p134->SetBinError(6,0.006131168); h_dimuon_2_p134->SetBinError(7,0.00722369); h_dimuon_2_p134->SetBinError(8,0.009522878); h_dimuon_2_p134->SetBinError(9,0.01079477); h_dimuon_2_p134->SetBinError(10,0.01260477); h_dimuon_2_p134->SetBinError(11,0.01457783); h_dimuon_2_p134->SetBinError(12,0.01599648); h_dimuon_2_p134->SetBinError(13,0.01635522); h_dimuon_2_p134->SetBinError(14,0.0176108); h_dimuon_2_p134->SetBinError(15,0.0181326); h_dimuon_2_p134->SetBinError(16,0.02015458); h_dimuon_2_p134->SetBinError(17,0.01997521); h_dimuon_2_p134->SetBinError(18,0.02052963); h_dimuon_2_p134->SetBinError(19,0.02088837); h_dimuon_2_p134->SetBinError(20,0.02114927); h_dimuon_2_p134->SetBinError(21,0.0209862); h_dimuon_2_p134->SetBinError(22,0.02000783); h_dimuon_2_p134->SetBinError(23,0.02113296); h_dimuon_2_p134->SetBinError(24,0.02124711); h_dimuon_2_p134->SetBinError(25,0.01973062); h_dimuon_2_p134->SetBinError(26,0.02129602); h_dimuon_2_p134->SetBinError(27,0.02036657); h_dimuon_2_p134->SetBinError(28,0.02074161); h_dimuon_2_p134->SetBinError(29,0.01943711); h_dimuon_2_p134->SetBinError(30,0.01912729); h_dimuon_2_p134->SetBinError(31,0.01840981); h_dimuon_2_p134->SetBinError(32,0.0183772); h_dimuon_2_p134->SetBinError(33,0.01686071); h_dimuon_2_p134->SetBinError(34,0.01700747); h_dimuon_2_p134->SetBinError(35,0.01575188); h_dimuon_2_p134->SetBinError(36,0.01643675); h_dimuon_2_p134->SetBinError(37,0.01560513); h_dimuon_2_p134->SetBinError(38,0.0137136); h_dimuon_2_p134->SetBinError(39,0.01433324); h_dimuon_2_p134->SetBinError(40,0.01338747); h_dimuon_2_p134->SetBinError(41,0.01330594); h_dimuon_2_p134->SetBinError(42,0.01342008); h_dimuon_2_p134->SetBinError(43,0.01271891); h_dimuon_2_p134->SetBinError(44,0.01134918); h_dimuon_2_p134->SetBinError(45,0.01182207); h_dimuon_2_p134->SetBinError(46,0.01095783); h_dimuon_2_p134->SetBinError(47,0.01085999); h_dimuon_2_p134->SetBinError(48,0.00986531); h_dimuon_2_p134->SetBinError(49,0.009441346); h_dimuon_2_p134->SetBinError(50,0.009669634); h_dimuon_2_p134->SetBinError(51,0.009849004); h_dimuon_2_p134->SetBinError(52,0.009310896); h_dimuon_2_p134->SetBinError(53,0.008462968); h_dimuon_2_p134->SetBinError(54,0.008756482); h_dimuon_2_p134->SetBinError(55,0.008707563); h_dimuon_2_p134->SetBinError(56,0.00867495); h_dimuon_2_p134->SetBinError(57,0.007696572); h_dimuon_2_p134->SetBinError(58,0.007859635); h_dimuon_2_p134->SetBinError(59,0.007435672); h_dimuon_2_p134->SetBinError(60,0.007598735); h_dimuon_2_p134->SetBinError(61,0.007419365); h_dimuon_2_p134->SetBinError(62,0.007239996); h_dimuon_2_p134->SetBinError(63,0.006799726); h_dimuon_2_p134->SetBinError(64,0.007011708); h_dimuon_2_p134->SetBinError(65,0.006636663); h_dimuon_2_p134->SetBinError(66,0.006277925); h_dimuon_2_p134->SetBinError(67,0.006799726); h_dimuon_2_p134->SetBinError(68,0.006359456); h_dimuon_2_p134->SetBinError(69,0.006245312); h_dimuon_2_p134->SetBinError(70,0.005788736); h_dimuon_2_p134->SetBinError(71,0.00603333); h_dimuon_2_p134->SetBinError(72,0.00502234); h_dimuon_2_p134->SetBinError(73,0.005886573); h_dimuon_2_p134->SetBinError(74,0.005446303); h_dimuon_2_p134->SetBinError(75,0.005038646); h_dimuon_2_p134->SetBinError(76,0.00484297); h_dimuon_2_p134->SetBinError(77,0.004908196); h_dimuon_2_p134->SetBinError(78,0.004614682); h_dimuon_2_p134->SetBinError(79,0.005120177); h_dimuon_2_p134->SetBinError(80,0.004598376); h_dimuon_2_p134->SetBinError(81,0.004565763); h_dimuon_2_p134->SetBinError(82,0.004598376); h_dimuon_2_p134->SetBinError(83,0.004304863); h_dimuon_2_p134->SetBinError(84,0.004533151); h_dimuon_2_p134->SetBinError(85,0.004728826); h_dimuon_2_p134->SetBinError(86,0.004076574); h_dimuon_2_p134->SetBinError(87,0.004109187); h_dimuon_2_p134->SetBinError(88,0.004255944); h_dimuon_2_p134->SetBinError(89,0.003995043); h_dimuon_2_p134->SetBinError(90,0.003815674); h_dimuon_2_p134->SetBinError(91,0.004174412); h_dimuon_2_p134->SetBinError(92,0.004467926); h_dimuon_2_p134->SetBinError(93,0.003929818); h_dimuon_2_p134->SetBinError(94,0.00370153); h_dimuon_2_p134->SetBinError(95,0.004174412); h_dimuon_2_p134->SetBinError(96,0.003766755); h_dimuon_2_p134->SetBinError(97,0.003473241); h_dimuon_2_p134->SetBinError(98,0.003717836); h_dimuon_2_p134->SetBinError(99,0.003636304); h_dimuon_2_p134->SetBinError(100,0.003244953); h_dimuon_2_p134->SetEntries(79999); h_dimuon_2_p134->SetDirectory(0); ci = TColor::GetColor("#ff0000"); h_dimuon_2_p134->SetLineColor(ci); h_dimuon_2_p134->SetLineWidth(2); h_dimuon_2_p134->SetMarkerStyle(20); h_dimuon_2_p134->GetXaxis()->SetLabelFont(42); h_dimuon_2_p134->GetXaxis()->SetLabelOffset(0.007); h_dimuon_2_p134->GetXaxis()->SetTitleSize(0.06); h_dimuon_2_p134->GetXaxis()->SetTitleOffset(0.95); h_dimuon_2_p134->GetXaxis()->SetTitleFont(42); h_dimuon_2_p134->GetYaxis()->SetLabelFont(42); h_dimuon_2_p134->GetYaxis()->SetLabelOffset(0.007); h_dimuon_2_p134->GetYaxis()->SetTitleSize(0.06); h_dimuon_2_p134->GetYaxis()->SetTitleOffset(1.3); h_dimuon_2_p134->GetYaxis()->SetTitleFont(42); h_dimuon_2_p134->GetZaxis()->SetLabelFont(42); h_dimuon_2_p134->GetZaxis()->SetLabelOffset(0.007); h_dimuon_2_p134->GetZaxis()->SetTitleSize(0.06); h_dimuon_2_p134->GetZaxis()->SetTitleFont(42); h_dimuon_2_p134->Draw("SAME"); TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_dimuon_1_p","1st #mu#mu (leading p_{T})","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_dimuon_2_p","2nd #mu#mu","L"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void SegX_2016B_June22all_sameYrange_fullIntegral_10k9k() { //=========Macro generated from canvas: SegX/SegX //========= (Fri Aug 5 09:22:37 2016) by ROOT version6.06/01 TCanvas *SegX = new TCanvas("SegX", "SegX",0,0,500,500); gStyle->SetOptStat(0); SegX->SetHighLightColor(2); SegX->Range(-125,-2.848556,125,2.626708); SegX->SetFillColor(0); SegX->SetBorderMode(0); SegX->SetBorderSize(2); SegX->SetLogy(); SegX->SetFrameBorderMode(0); SegX->SetFrameBorderMode(0); TH1D *SegX_1__19 = new TH1D("SegX_1__19","SegX",100,-100,100); SegX_1__19->SetBinContent(0,399.7427); SegX_1__19->SetBinContent(39,0.0007394809); SegX_1__19->SetBinContent(40,0.01109221); SegX_1__19->SetBinContent(41,0.02366339); SegX_1__19->SetBinContent(42,0.04880574); SegX_1__19->SetBinContent(43,0.09613251); SegX_1__19->SetBinContent(44,0.5671818); SegX_1__19->SetBinContent(45,1.913037); SegX_1__19->SetBinContent(46,3.895585); SegX_1__19->SetBinContent(47,8.348); SegX_1__19->SetBinContent(48,11.60985); SegX_1__19->SetBinContent(49,11.7363); SegX_1__19->SetBinContent(50,12.04171); SegX_1__19->SetBinContent(51,12.05058); SegX_1__19->SetBinContent(52,11.89159); SegX_1__19->SetBinContent(53,11.26081); SegX_1__19->SetBinContent(54,8.149079); SegX_1__19->SetBinContent(55,3.796495); SegX_1__19->SetBinContent(56,1.839089); SegX_1__19->SetBinContent(57,0.5302078); SegX_1__19->SetBinContent(58,0.09835096); SegX_1__19->SetBinContent(59,0.05472159); SegX_1__19->SetBinContent(60,0.02292391); SegX_1__19->SetBinContent(61,0.008873771); SegX_1__19->SetBinContent(62,0.005176366); SegX_1__19->SetMinimum(0.005); SegX_1__19->SetMaximum(120); SegX_1__19->SetEntries(675802); SegX_1__19->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff00ff"); SegX_1__19->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); SegX_1__19->SetMarkerColor(ci); SegX_1__19->GetXaxis()->SetTitle("cm"); SegX_1__19->GetYaxis()->SetTitle("scaled number of entries"); SegX_1__19->Draw("H"); TLegend *leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *SegX_2__20 = new TH1D("SegX_2__20","SegX",100,-100,100); SegX_2__20->SetBinContent(0,270.1449); SegX_2__20->SetBinContent(39,0.0249815); SegX_2__20->SetBinContent(40,0.1142904); SegX_2__20->SetBinContent(41,0.3269454); SegX_2__20->SetBinContent(42,1.204733); SegX_2__20->SetBinContent(43,2.505957); SegX_2__20->SetBinContent(44,3.989545); SegX_2__20->SetBinContent(45,5.530904); SegX_2__20->SetBinContent(46,6.957972); SegX_2__20->SetBinContent(47,7.25369); SegX_2__20->SetBinContent(48,7.353304); SegX_2__20->SetBinContent(49,7.47384); SegX_2__20->SetBinContent(50,7.455104); SegX_2__20->SetBinContent(51,7.516308); SegX_2__20->SetBinContent(52,7.505691); SegX_2__20->SetBinContent(53,7.34581); SegX_2__20->SetBinContent(54,7.34862); SegX_2__20->SetBinContent(55,6.910819); SegX_2__20->SetBinContent(56,5.432227); SegX_2__20->SetBinContent(57,3.844028); SegX_2__20->SetBinContent(58,2.401034); SegX_2__20->SetBinContent(59,1.067022); SegX_2__20->SetBinContent(60,0.2994657); SegX_2__20->SetBinContent(61,0.1164762); SegX_2__20->SetBinContent(62,0.02123427); SegX_2__20->SetEntries(1185341); SegX_2__20->SetStats(0); ci = TColor::GetColor("#ff9999"); SegX_2__20->SetLineColor(ci); ci = TColor::GetColor("#ff9999"); SegX_2__20->SetMarkerColor(ci); SegX_2__20->GetXaxis()->SetTitle("cm"); SegX_2__20->GetYaxis()->SetTitle("scaled number of entries"); SegX_2__20->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *SegX_3__21 = new TH1D("SegX_3__21","SegX",100,-100,100); SegX_3__21->SetBinContent(0,80.5951); SegX_3__21->SetBinContent(28,0.0004635445); SegX_3__21->SetBinContent(29,0.001390634); SegX_3__21->SetBinContent(30,0.01344279); SegX_3__21->SetBinContent(31,0.03754711); SegX_3__21->SetBinContent(32,0.1219122); SegX_3__21->SetBinContent(33,0.3712992); SegX_3__21->SetBinContent(34,0.817229); SegX_3__21->SetBinContent(35,1.240445); SegX_3__21->SetBinContent(36,1.838418); SegX_3__21->SetBinContent(37,2.596777); SegX_3__21->SetBinContent(38,3.1229); SegX_3__21->SetBinContent(39,3.203556); SegX_3__21->SetBinContent(40,3.271697); SegX_3__21->SetBinContent(41,3.325005); SegX_3__21->SetBinContent(42,3.348646); SegX_3__21->SetBinContent(43,3.330568); SegX_3__21->SetBinContent(44,3.375068); SegX_3__21->SetBinContent(45,3.360234); SegX_3__21->SetBinContent(46,3.349109); SegX_3__21->SetBinContent(47,3.318515); SegX_3__21->SetBinContent(48,3.375531); SegX_3__21->SetBinContent(49,3.312489); SegX_3__21->SetBinContent(50,3.43162); SegX_3__21->SetBinContent(51,3.357453); SegX_3__21->SetBinContent(52,3.422813); SegX_3__21->SetBinContent(53,3.361625); SegX_3__21->SetBinContent(54,3.392682); SegX_3__21->SetBinContent(55,3.39361); SegX_3__21->SetBinContent(56,3.321297); SegX_3__21->SetBinContent(57,3.326859); SegX_3__21->SetBinContent(58,3.282822); SegX_3__21->SetBinContent(59,3.388047); SegX_3__21->SetBinContent(60,3.411224); SegX_3__21->SetBinContent(61,3.326859); SegX_3__21->SetBinContent(62,3.22627); SegX_3__21->SetBinContent(63,3.022774); SegX_3__21->SetBinContent(64,2.55274); SegX_3__21->SetBinContent(65,1.746172); SegX_3__21->SetBinContent(66,1.123632); SegX_3__21->SetBinContent(67,0.7268378); SegX_3__21->SetBinContent(68,0.3203093); SegX_3__21->SetBinContent(69,0.09409954); SegX_3__21->SetBinContent(70,0.03337521); SegX_3__21->SetBinContent(71,0.003708356); SegX_3__21->SetBinContent(72,0.0009270891); SegX_3__21->SetEntries(389596); SegX_3__21->SetStats(0); SegX_3__21->GetXaxis()->SetTitle("cm"); SegX_3__21->GetYaxis()->SetTitle("scaled number of entries"); SegX_3__21->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *SegX_4__22 = new TH1D("SegX_4__22","SegX",100,-100,100); SegX_4__22->SetBinContent(0,205.6549); SegX_4__22->SetBinContent(20,0.002748252); SegX_4__22->SetBinContent(21,0.008244756); SegX_4__22->SetBinContent(22,0.01972275); SegX_4__22->SetBinContent(23,0.06773633); SegX_4__22->SetBinContent(24,0.1547104); SegX_4__22->SetBinContent(25,0.2565574); SegX_4__22->SetBinContent(26,0.3739239); SegX_4__22->SetBinContent(27,0.4752859); SegX_4__22->SetBinContent(28,0.5855393); SegX_4__22->SetBinContent(29,0.687063); SegX_4__22->SetBinContent(30,0.84339); SegX_4__22->SetBinContent(31,1.017177); SegX_4__22->SetBinContent(32,1.278746); SegX_4__22->SetBinContent(33,1.383664); SegX_4__22->SetBinContent(34,1.584286); SegX_4__22->SetBinContent(35,1.911167); SegX_4__22->SetBinContent(36,2.183405); SegX_4__22->SetBinContent(37,2.35606); SegX_4__22->SetBinContent(38,2.533727); SegX_4__22->SetBinContent(39,2.709938); SegX_4__22->SetBinContent(40,2.69458); SegX_4__22->SetBinContent(41,2.674696); SegX_4__22->SetBinContent(42,2.683264); SegX_4__22->SetBinContent(43,2.654165); SegX_4__22->SetBinContent(44,2.712525); SegX_4__22->SetBinContent(45,2.747282); SegX_4__22->SetBinContent(46,2.711231); SegX_4__22->SetBinContent(47,2.720446); SegX_4__22->SetBinContent(48,2.75585); SegX_4__22->SetBinContent(49,2.717375); SegX_4__22->SetBinContent(50,2.758275); SegX_4__22->SetBinContent(51,2.76943); SegX_4__22->SetBinContent(52,2.74906); SegX_4__22->SetBinContent(53,2.771046); SegX_4__22->SetBinContent(54,2.740816); SegX_4__22->SetBinContent(55,2.685851); SegX_4__22->SetBinContent(56,2.669523); SegX_4__22->SetBinContent(57,2.647213); SegX_4__22->SetBinContent(58,2.597745); SegX_4__22->SetBinContent(59,2.6401); SegX_4__22->SetBinContent(60,2.63913); SegX_4__22->SetBinContent(61,2.655943); SegX_4__22->SetBinContent(62,2.623126); SegX_4__22->SetBinContent(63,2.52629); SegX_4__22->SetBinContent(64,2.347007); SegX_4__22->SetBinContent(65,2.170634); SegX_4__22->SetBinContent(66,1.884493); SegX_4__22->SetBinContent(67,1.603524); SegX_4__22->SetBinContent(68,1.388999); SegX_4__22->SetBinContent(69,1.219901); SegX_4__22->SetBinContent(70,1.018147); SegX_4__22->SetBinContent(71,0.8441984); SegX_4__22->SetBinContent(72,0.6936911); SegX_4__22->SetBinContent(73,0.5441539); SegX_4__22->SetBinContent(74,0.4651012); SegX_4__22->SetBinContent(75,0.3503213); SegX_4__22->SetBinContent(76,0.2463727); SegX_4__22->SetBinContent(77,0.1514772); SegX_4__22->SetBinContent(78,0.06708968); SegX_4__22->SetBinContent(79,0.01762115); SegX_4__22->SetBinContent(80,0.006951461); SegX_4__22->SetBinContent(81,0.001939943); SegX_4__22->SetBinContent(82,0.0003233238); SegX_4__22->SetEntries(1890705); SegX_4__22->SetStats(0); ci = TColor::GetColor("#ff0000"); SegX_4__22->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); SegX_4__22->SetMarkerColor(ci); SegX_4__22->GetXaxis()->SetTitle("cm"); SegX_4__22->GetYaxis()->SetTitle("scaled number of entries"); SegX_4__22->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *SegX_5__23 = new TH1D("SegX_5__23","SegX",100,-100,100); SegX_5__23->SetBinContent(0,157.814); SegX_5__23->SetBinContent(20,0.002033373); SegX_5__23->SetBinContent(21,0.006839528); SegX_5__23->SetBinContent(22,0.01959432); SegX_5__23->SetBinContent(23,0.07671363); SegX_5__23->SetBinContent(24,0.1695094); SegX_5__23->SetBinContent(25,0.2972422); SegX_5__23->SetBinContent(26,0.4053807); SegX_5__23->SetBinContent(27,0.513704); SegX_5__23->SetBinContent(28,0.6421762); SegX_5__23->SetBinContent(29,0.7730515); SegX_5__23->SetBinContent(30,0.9682553); SegX_5__23->SetBinContent(31,1.173626); SegX_5__23->SetBinContent(32,1.3936); SegX_5__23->SetBinContent(33,1.584737); SegX_5__23->SetBinContent(34,1.798056); SegX_5__23->SetBinContent(35,2.092526); SegX_5__23->SetBinContent(36,2.351134); SegX_5__23->SetBinContent(37,2.561681); SegX_5__23->SetBinContent(38,2.586636); SegX_5__23->SetBinContent(39,2.621203); SegX_5__23->SetBinContent(40,2.579241); SegX_5__23->SetBinContent(41,2.579057); SegX_5__23->SetBinContent(42,2.579796); SegX_5__23->SetBinContent(43,2.63784); SegX_5__23->SetBinContent(44,2.620279); SegX_5__23->SetBinContent(45,2.582569); SegX_5__23->SetBinContent(46,2.566302); SegX_5__23->SetBinContent(47,2.530441); SegX_5__23->SetBinContent(48,2.528777); SegX_5__23->SetBinContent(49,2.546338); SegX_5__23->SetBinContent(50,2.577208); SegX_5__23->SetBinContent(51,2.52545); SegX_5__23->SetBinContent(52,2.498461); SegX_5__23->SetBinContent(53,2.490882); SegX_5__23->SetBinContent(54,2.534138); SegX_5__23->SetBinContent(55,2.527113); SegX_5__23->SetBinContent(56,2.571478); SegX_5__23->SetBinContent(57,2.530071); SegX_5__23->SetBinContent(58,2.587005); SegX_5__23->SetBinContent(59,2.566117); SegX_5__23->SetBinContent(60,2.54301); SegX_5__23->SetBinContent(61,2.554102); SegX_5__23->SetBinContent(62,2.535247); SegX_5__23->SetBinContent(63,2.604012); SegX_5__23->SetBinContent(64,2.53155); SegX_5__23->SetBinContent(65,2.317861); SegX_5__23->SetBinContent(66,2.053707); SegX_5__23->SetBinContent(67,1.759977); SegX_5__23->SetBinContent(68,1.516342); SegX_5__23->SetBinContent(69,1.373451); SegX_5__23->SetBinContent(70,1.156989); SegX_5__23->SetBinContent(71,0.9863709); SegX_5__23->SetBinContent(72,0.7802608); SegX_5__23->SetBinContent(73,0.6194394); SegX_5__23->SetBinContent(74,0.5092676); SegX_5__23->SetBinContent(75,0.4011291); SegX_5__23->SetBinContent(76,0.2872602); SegX_5__23->SetBinContent(77,0.163779); SegX_5__23->SetBinContent(78,0.08170463); SegX_5__23->SetBinContent(79,0.02051858); SegX_5__23->SetBinContent(80,0.006654676); SegX_5__23->SetBinContent(81,0.001109113); SegX_5__23->SetEntries(1394704); SegX_5__23->SetStats(0); ci = TColor::GetColor("#00ff00"); SegX_5__23->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); SegX_5__23->SetMarkerColor(ci); SegX_5__23->GetXaxis()->SetTitle("cm"); SegX_5__23->GetYaxis()->SetTitle("scaled number of entries"); SegX_5__23->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *SegX_6__24 = new TH1D("SegX_6__24","SegX",100,-100,100); SegX_6__24->SetBinContent(0,127.6015); SegX_6__24->SetBinContent(20,0.001032403); SegX_6__24->SetBinContent(21,0.004336093); SegX_6__24->SetBinContent(22,0.01817029); SegX_6__24->SetBinContent(23,0.08341816); SegX_6__24->SetBinContent(24,0.1755085); SegX_6__24->SetBinContent(25,0.3111663); SegX_6__24->SetBinContent(26,0.4148195); SegX_6__24->SetBinContent(27,0.5382949); SegX_6__24->SetBinContent(28,0.6943943); SegX_6__24->SetBinContent(29,0.8948869); SegX_6__24->SetBinContent(30,1.059452); SegX_6__24->SetBinContent(31,1.265726); SegX_6__24->SetBinContent(32,1.461057); SegX_6__24->SetBinContent(33,1.634294); SegX_6__24->SetBinContent(34,1.885787); SegX_6__24->SetBinContent(35,2.235772); SegX_6__24->SetBinContent(36,2.351608); SegX_6__24->SetBinContent(37,2.469508); SegX_6__24->SetBinContent(38,2.50048); SegX_6__24->SetBinContent(39,2.516792); SegX_6__24->SetBinContent(40,2.462488); SegX_6__24->SetBinContent(41,2.513488); SegX_6__24->SetBinContent(42,2.529387); SegX_6__24->SetBinContent(43,2.509152); SegX_6__24->SetBinContent(44,2.564283); SegX_6__24->SetBinContent(45,2.531865); SegX_6__24->SetBinContent(46,2.500687); SegX_6__24->SetBinContent(47,2.495937); SegX_6__24->SetBinContent(48,2.522367); SegX_6__24->SetBinContent(49,2.535169); SegX_6__24->SetBinContent(50,2.563663); SegX_6__24->SetBinContent(51,2.495112); SegX_6__24->SetBinContent(52,2.525051); SegX_6__24->SetBinContent(53,2.496144); SegX_6__24->SetBinContent(54,2.51163); SegX_6__24->SetBinContent(55,2.514727); SegX_6__24->SetBinContent(56,2.579562); SegX_6__24->SetBinContent(57,2.585137); SegX_6__24->SetBinContent(58,2.518857); SegX_6__24->SetBinContent(59,2.536201); SegX_6__24->SetBinContent(60,2.563457); SegX_6__24->SetBinContent(61,2.528768); SegX_6__24->SetBinContent(62,2.531865); SegX_6__24->SetBinContent(63,2.472192); SegX_6__24->SetBinContent(64,2.477767); SegX_6__24->SetBinContent(65,2.363377); SegX_6__24->SetBinContent(66,2.154832); SegX_6__24->SetBinContent(67,1.816616); SegX_6__24->SetBinContent(68,1.592172); SegX_6__24->SetBinContent(69,1.388582); SegX_6__24->SetBinContent(70,1.132133); SegX_6__24->SetBinContent(71,1.010723); SegX_6__24->SetBinContent(72,0.82489); SegX_6__24->SetBinContent(73,0.6696166); SegX_6__24->SetBinContent(74,0.5168209); SegX_6__24->SetBinContent(75,0.3947909); SegX_6__24->SetBinContent(76,0.2859756); SegX_6__24->SetBinContent(77,0.1655974); SegX_6__24->SetBinContent(78,0.0755719); SegX_6__24->SetBinContent(79,0.02064806); SegX_6__24->SetBinContent(80,0.005368496); SegX_6__24->SetBinContent(81,0.0008259224); SegX_6__24->SetEntries(1102290); SegX_6__24->SetStats(0); ci = TColor::GetColor("#0000ff"); SegX_6__24->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); SegX_6__24->SetMarkerColor(ci); SegX_6__24->GetXaxis()->SetTitle("cm"); SegX_6__24->GetYaxis()->SetTitle("scaled number of entries"); SegX_6__24->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TPaveText *pt = new TPaveText(0.01,0.9390678,0.1408871,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(1); pt->SetFillColor(0); TText *AText = pt->AddText("SegX"); pt->Draw(); SegX->Modified(); SegX->cd(); SegX->SetSelected(SegX); }
void paraPull_alpha_MUON_ISO_SYS_2TeV_2Lep_plots_All() { //=========Macro generated from canvas: c1/alpha_MUON_ISO_SYS //========= (Sun Nov 22 20:21:56 2015) by ROOT version6.02/12 TCanvas *c1 = new TCanvas("c1", "alpha_MUON_ISO_SYS",0,22,1000,600); gStyle->SetOptStat(0); c1->Range(-4.125,-0.9777052,37.125,1.049159); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1F *NuisanceParameterFreed33 = new TH1F("NuisanceParameterFreed33","alpha_MUON_ISO_SYS",33,0,33); NuisanceParameterFreed33->SetMinimum(-0.7750188); NuisanceParameterFreed33->SetMaximum(0.8464727); NuisanceParameterFreed33->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); NuisanceParameterFreed33->SetLineColor(ci); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(1,"XS_ttbar"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(4,"Luminosity"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(5,"XS_st"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(7,"XS_Zc"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(8,"MUONS_ID"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(12,"XS_Zl"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(18,"MUONS_SCALE"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(23,"MUON_EFF_TrigStatUncertainty"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_1"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(26,"EG_RESOLUTION_ALL"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(27,"XS_diboson"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_4"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(29,"FT_EFF_Eigen_Light_3"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(30,"MUONS_MS"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(31,"XS_Zb"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2"); NuisanceParameterFreed33->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0"); NuisanceParameterFreed33->GetXaxis()->SetLabelFont(42); NuisanceParameterFreed33->GetXaxis()->SetLabelSize(0.035); NuisanceParameterFreed33->GetXaxis()->SetTitleSize(0.035); NuisanceParameterFreed33->GetXaxis()->SetTitleFont(42); NuisanceParameterFreed33->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta"); NuisanceParameterFreed33->GetYaxis()->SetLabelFont(42); NuisanceParameterFreed33->GetYaxis()->SetLabelSize(0.035); NuisanceParameterFreed33->GetYaxis()->SetTitleSize(0.035); NuisanceParameterFreed33->GetYaxis()->SetTitleFont(42); NuisanceParameterFreed33->GetZaxis()->SetLabelFont(42); NuisanceParameterFreed33->GetZaxis()->SetLabelSize(0.035); NuisanceParameterFreed33->GetZaxis()->SetTitleSize(0.035); NuisanceParameterFreed33->GetZaxis()->SetTitleFont(42); NuisanceParameterFreed33->Draw("hist"); Double_t _fx1033[35] = { 1.22802e-312, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 0}; Double_t _fy1033[35] = { 1.22802e-312, -0.7750188, -0.3925669, -0.2928498, -0.2070924, -0.1830524, -0.1280032, -0.1262679, -0.1096289, -0.06558224, -0.05681625, -0.05340132, -0.04752113, -0.03756, -0.03159065, -0.03113199, -0.02395544, -0.01709673, -0.001375576, 0.0001640258, 0.01017132, 0.01056379, 0.01803238, 0.01953954, 0.02015159, 0.02033505, 0.0231812, 0.04061694, 0.04275862, 0.04588616, 0.04795404, 0.05347781, 0.05730227, 0.8464727, 0}; Double_t _fex1033[35] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t _fey1033[35] = { 0, 0, 0.6105177, 1.072963, 1.274131, 0.9350411, 0.9915346, 0.9862834, 0.9243374, 0.769056, 0.9864216, 0.9937953, 0.9917567, 0.9969205, 0.9819024, 0.9371645, 0.9926625, 0.9931845, 0.9925671, 1.004991, 0.9933467, 0.9551202, 0.9932281, 0.9929675, 0.9926546, 0.9909755, 0.9913131, 1.098392, 0.9868992, 0.9931708, 0.9930622, 0.7376817, 0.7516033, 0.9909095, 0.7841002}; TGraphErrors *gre = new TGraphErrors(35,_fx1033,_fy1033,_fex1033,_fey1033); gre->SetName(""); gre->SetTitle(""); gre->SetFillColor(1); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.2); TH1F *Graph_Graph1033 = new TH1F("Graph_Graph1033","",100,0,35.75); Graph_Graph1033->SetMinimum(-1.813084); Graph_Graph1033->SetMaximum(2.169243); Graph_Graph1033->SetDirectory(0); Graph_Graph1033->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1033->SetLineColor(ci); Graph_Graph1033->GetXaxis()->SetLabelFont(42); Graph_Graph1033->GetXaxis()->SetLabelSize(0.035); Graph_Graph1033->GetXaxis()->SetTitleSize(0.035); Graph_Graph1033->GetXaxis()->SetTitleFont(42); Graph_Graph1033->GetYaxis()->SetLabelFont(42); Graph_Graph1033->GetYaxis()->SetLabelSize(0.035); Graph_Graph1033->GetYaxis()->SetTitleSize(0.035); Graph_Graph1033->GetYaxis()->SetTitleFont(42); Graph_Graph1033->GetZaxis()->SetLabelFont(42); Graph_Graph1033->GetZaxis()->SetLabelSize(0.035); Graph_Graph1033->GetZaxis()->SetTitleSize(0.035); Graph_Graph1033->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1033); gre->Draw("p"); TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(72); leg->SetTextSize(0.015); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); leg->Draw(); TPaveText *pt = new TPaveText(0.3293574,0.9341608,0.6706426,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("alpha_MUON_ISO_SYS"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }
void fit7_testbkg_withtail() { //=========Macro generated from canvas: c1/data fits //========= (Thu Mar 10 20:15:02 2016) by ROOT version6.06/00 TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(0,0,1,1); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.14); c1->SetRightMargin(0.05); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameLineWidth(2); c1->SetFrameBorderMode(0); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3); pad2->Draw(); pad2->cd(); pad2->Range(3754.321,-26.4,6223.457,8.8); pad2->SetFillColor(0); pad2->SetBorderMode(0); pad2->SetBorderSize(2); pad2->SetTickx(1); pad2->SetTicky(1); pad2->SetLeftMargin(0.14); pad2->SetRightMargin(0.05); pad2->SetTopMargin(0); pad2->SetBottomMargin(0.5); pad2->SetFrameLineWidth(2); pad2->SetFrameBorderMode(0); pad2->SetFrameLineWidth(2); pad2->SetFrameBorderMode(0); TH1D *frame_49a73f0__1 = new TH1D("frame_49a73f0__1","",100,4100,6100); frame_49a73f0__1->SetBinContent(1,1.814401); frame_49a73f0__1->SetMinimum(-8.8); frame_49a73f0__1->SetMaximum(8.8); frame_49a73f0__1->SetEntries(1); frame_49a73f0__1->SetDirectory(0); frame_49a73f0__1->SetStats(0); frame_49a73f0__1->SetLineWidth(2); frame_49a73f0__1->SetMarkerStyle(20); frame_49a73f0__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)"); frame_49a73f0__1->GetXaxis()->SetNdivisions(505); frame_49a73f0__1->GetXaxis()->SetLabelFont(132); frame_49a73f0__1->GetXaxis()->SetLabelOffset(0.01); frame_49a73f0__1->GetXaxis()->SetLabelSize(0.15); frame_49a73f0__1->GetXaxis()->SetTitleSize(0.2); frame_49a73f0__1->GetXaxis()->SetTitleOffset(1.1); frame_49a73f0__1->GetXaxis()->SetTitleFont(132); frame_49a73f0__1->GetYaxis()->SetTitle("Pull"); frame_49a73f0__1->GetYaxis()->CenterTitle(true); frame_49a73f0__1->GetYaxis()->SetNdivisions(505); frame_49a73f0__1->GetYaxis()->SetLabelFont(132); frame_49a73f0__1->GetYaxis()->SetLabelOffset(0.01); frame_49a73f0__1->GetYaxis()->SetLabelSize(0.15); frame_49a73f0__1->GetYaxis()->SetTitleSize(0.15); frame_49a73f0__1->GetYaxis()->SetTitleOffset(0.45); frame_49a73f0__1->GetYaxis()->SetTitleFont(132); frame_49a73f0__1->GetZaxis()->SetLabelFont(132); frame_49a73f0__1->GetZaxis()->SetLabelSize(0.06); frame_49a73f0__1->GetZaxis()->SetTitleSize(0.072); frame_49a73f0__1->GetZaxis()->SetTitleOffset(1.2); frame_49a73f0__1->GetZaxis()->SetTitleFont(132); frame_49a73f0__1->Draw("FUNC"); Double_t pull_Hist_curvetot_fx3001[5] = { 5950, 5970, 5990, 6010, 6030}; Double_t pull_Hist_curvetot_fy3001[5] = { -0.7070745, 0.407049, 0.6467117, -0.3394017, -0.6307982}; Double_t pull_Hist_curvetot_felx3001[5] = { 0, 0, 0, 0, 0}; Double_t pull_Hist_curvetot_fely3001[5] = { 1, 1, 1, 1, 1}; Double_t pull_Hist_curvetot_fehx3001[5] = { 0, 0, 0, 0, 0}; Double_t pull_Hist_curvetot_fehy3001[5] = { 1, 1, 1, 1, 1}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(5,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001); grae->SetName("pull_Hist_curvetot"); grae->SetTitle("Pull of Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf"); grae->SetFillColor(1); grae->SetLineWidth(2); grae->SetMarkerStyle(8); TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,5942,6038); Graph_pull_Hist_curvetot3001->SetMinimum(-2.042453); Graph_pull_Hist_curvetot3001->SetMaximum(1.98209); Graph_pull_Hist_curvetot3001->SetDirectory(0); Graph_pull_Hist_curvetot3001->SetStats(0); Graph_pull_Hist_curvetot3001->SetLineWidth(2); Graph_pull_Hist_curvetot3001->SetMarkerStyle(20); Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505); Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132); Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01); Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06); Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072); Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95); Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132); Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132); Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01); Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06); Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072); Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95); Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132); Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132); Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06); Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072); Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2); Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132); grae->SetHistogram(Graph_pull_Hist_curvetot3001); grae->Draw("p"); TH1D *frame_49a73f0__2 = new TH1D("frame_49a73f0__2","",100,4100,6100); frame_49a73f0__2->SetBinContent(1,1.814401); frame_49a73f0__2->SetMinimum(-8.8); frame_49a73f0__2->SetMaximum(8.8); frame_49a73f0__2->SetEntries(1); frame_49a73f0__2->SetDirectory(0); frame_49a73f0__2->SetStats(0); frame_49a73f0__2->SetLineWidth(2); frame_49a73f0__2->SetMarkerStyle(20); frame_49a73f0__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)"); frame_49a73f0__2->GetXaxis()->SetNdivisions(505); frame_49a73f0__2->GetXaxis()->SetLabelFont(132); frame_49a73f0__2->GetXaxis()->SetLabelOffset(0.01); frame_49a73f0__2->GetXaxis()->SetLabelSize(0.15); frame_49a73f0__2->GetXaxis()->SetTitleSize(0.2); frame_49a73f0__2->GetXaxis()->SetTitleOffset(1.1); frame_49a73f0__2->GetXaxis()->SetTitleFont(132); frame_49a73f0__2->GetYaxis()->SetTitle("Pull"); frame_49a73f0__2->GetYaxis()->CenterTitle(true); frame_49a73f0__2->GetYaxis()->SetNdivisions(505); frame_49a73f0__2->GetYaxis()->SetLabelFont(132); frame_49a73f0__2->GetYaxis()->SetLabelOffset(0.01); frame_49a73f0__2->GetYaxis()->SetLabelSize(0.15); frame_49a73f0__2->GetYaxis()->SetTitleSize(0.15); frame_49a73f0__2->GetYaxis()->SetTitleOffset(0.45); frame_49a73f0__2->GetYaxis()->SetTitleFont(132); frame_49a73f0__2->GetZaxis()->SetLabelFont(132); frame_49a73f0__2->GetZaxis()->SetLabelSize(0.06); frame_49a73f0__2->GetZaxis()->SetTitleSize(0.072); frame_49a73f0__2->GetZaxis()->SetTitleOffset(1.2); frame_49a73f0__2->GetZaxis()->SetTitleFont(132); frame_49a73f0__2->Draw("AXISSAME"); pad2->Modified(); c1->cd(); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1); pad1->Draw(); pad1->cd(); pad1->Range(3754.321,0,6223.457,3.935074); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetLogy(); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.14); pad1->SetRightMargin(0.05); pad1->SetTopMargin(0.06); pad1->SetBottomMargin(0); pad1->SetFrameLineWidth(2); pad1->SetFrameBorderMode(0); pad1->SetFrameLineWidth(2); pad1->SetFrameBorderMode(0); TH1D *frame_4a4d3a0__3 = new TH1D("frame_4a4d3a0__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100); frame_4a4d3a0__3->SetBinContent(1,2612.806); frame_4a4d3a0__3->SetMinimum(1); frame_4a4d3a0__3->SetMaximum(5000); frame_4a4d3a0__3->SetEntries(1); frame_4a4d3a0__3->SetDirectory(0); frame_4a4d3a0__3->SetStats(0); frame_4a4d3a0__3->SetLineWidth(2); frame_4a4d3a0__3->SetMarkerStyle(20); frame_4a4d3a0__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)"); frame_4a4d3a0__3->GetXaxis()->SetNdivisions(505); frame_4a4d3a0__3->GetXaxis()->SetLabelFont(132); frame_4a4d3a0__3->GetXaxis()->SetLabelOffset(0.01); frame_4a4d3a0__3->GetXaxis()->SetLabelSize(0.06); frame_4a4d3a0__3->GetXaxis()->SetTitleSize(0.072); frame_4a4d3a0__3->GetXaxis()->SetTitleOffset(0.95); frame_4a4d3a0__3->GetXaxis()->SetTitleFont(132); frame_4a4d3a0__3->GetYaxis()->SetTitle("Events/(5 MeV)"); frame_4a4d3a0__3->GetYaxis()->SetLabelFont(132); frame_4a4d3a0__3->GetYaxis()->SetLabelOffset(0.01); frame_4a4d3a0__3->GetYaxis()->SetLabelSize(0.06); frame_4a4d3a0__3->GetYaxis()->SetTitleSize(0.072); frame_4a4d3a0__3->GetYaxis()->SetTitleOffset(0.95); frame_4a4d3a0__3->GetYaxis()->SetTitleFont(132); frame_4a4d3a0__3->GetZaxis()->SetLabelFont(132); frame_4a4d3a0__3->GetZaxis()->SetLabelSize(0.06); frame_4a4d3a0__3->GetZaxis()->SetTitleSize(0.072); frame_4a4d3a0__3->GetZaxis()->SetTitleOffset(1.2); frame_4a4d3a0__3->GetZaxis()->SetTitleFont(132); frame_4a4d3a0__3->Draw("FUNC"); Double_t Hist_fx3002[100] = { 4110, 4130, 4150, 4170, 4190, 4210, 4230, 4250, 4270, 4290, 4310, 4330, 4350, 4370, 4390, 4410, 4430, 4450, 4470, 4490, 4510, 4530, 4550, 4570, 4590, 4610, 4630, 4650, 4670, 4690, 4710, 4730, 4750, 4770, 4790, 4810, 4830, 4850, 4870, 4890, 4910, 4930, 4950, 4970, 4990, 5010, 5030, 5050, 5070, 5090, 5110, 5130, 5150, 5170, 5190, 5210, 5230, 5250, 5270, 5290, 5310, 5330, 5350, 5370, 5390, 5410, 5430, 5450, 5470, 5490, 5510, 5530, 5550, 5570, 5590, 5610, 5630, 5650, 5670, 5690, 5710, 5730, 5750, 5770, 5790, 5810, 5830, 5850, 5870, 5890, 5910, 5930, 5950, 5970, 5990, 6010, 6030, 6050, 6070, 6090}; Double_t Hist_fy3002[100] = { 0, 0, 0, 0, 0, 25, 123, 153, 163, 161, 157, 176, 121, 130, 136, 136, 130, 106, 122, 105, 107, 104, 100, 107, 105, 92, 93, 88, 115, 88, 88, 108, 101, 116, 85, 109, 95, 68, 99, 102, 127, 137, 141, 166, 163, 184, 182, 166, 137, 112, 116, 87, 92, 82, 81, 118, 84, 82, 81, 83, 79, 62, 60, 30, 27, 40, 28, 31, 33, 24, 26, 36, 46, 69, 157, 1925, 2439, 191, 42, 24, 14, 16, 9, 11, 19, 9, 11, 12, 7, 12, 10, 7, 5, 7, 7, 4, 3, 0, 0, 0}; Double_t Hist_felx3002[100] = { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10}; Double_t Hist_fely3002[100] = { 0, 0, 0, 0, 0, 5, 11.09054, 12.36932, 12.76715, 12.68858, 12.52996, 13.2665, 11, 11.40175, 11.6619, 11.6619, 11.40175, 10.29563, 11.04536, 10.24695, 10.34408, 10.19804, 10, 10.34408, 10.24695, 9.591663, 9.643651, 9.380832, 10.72381, 9.380832, 9.380832, 10.3923, 10.04988, 10.77033, 9.219544, 10.44031, 9.746794, 8.246211, 9.949874, 10.0995, 11.26943, 11.7047, 11.87434, 12.8841, 12.76715, 13.56466, 13.49074, 12.8841, 11.7047, 10.58301, 10.77033, 9.327379, 9.591663, 9.055385, 9, 10.86278, 9.165151, 9.055385, 9, 9.110434, 8.888194, 7.874008, 7.745967, 5.477226, 5.196152, 6.324555, 5.291503, 5.567764, 5.744563, 4.898979, 5.09902, 6, 6.78233, 8.306624, 12.52996, 43.87482, 49.38623, 13.82027, 6.480741, 4.898979, 3.741657, 4, 3, 3.316625, 4.358899, 3, 3.316625, 3.464102, 2.645751, 3.464102, 3.162278, 2.645751, 2.236068, 2.645751, 2.645751, 2, 1.732051, 0, 0, 0}; Double_t Hist_fehx3002[100] = { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10}; Double_t Hist_fehy3002[100] = { 0, 0, 0, 0, 0, 5, 11.09054, 12.36932, 12.76715, 12.68858, 12.52996, 13.2665, 11, 11.40175, 11.6619, 11.6619, 11.40175, 10.29563, 11.04536, 10.24695, 10.34408, 10.19804, 10, 10.34408, 10.24695, 9.591663, 9.643651, 9.380832, 10.72381, 9.380832, 9.380832, 10.3923, 10.04988, 10.77033, 9.219544, 10.44031, 9.746794, 8.246211, 9.949874, 10.0995, 11.26943, 11.7047, 11.87434, 12.8841, 12.76715, 13.56466, 13.49074, 12.8841, 11.7047, 10.58301, 10.77033, 9.327379, 9.591663, 9.055385, 9, 10.86278, 9.165151, 9.055385, 9, 9.110434, 8.888194, 7.874008, 7.745967, 5.477226, 5.196152, 6.324555, 5.291503, 5.567764, 5.744563, 4.898979, 5.09902, 6, 6.78233, 8.306624, 12.52996, 43.87482, 49.38623, 13.82027, 6.480741, 4.898979, 3.741657, 4, 3, 3.316625, 4.358899, 3, 3.316625, 3.464102, 2.645751, 3.464102, 3.162278, 2.645751, 2.236068, 2.645751, 2.645751, 2, 1.732051, 0, 0, 0}; grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002); grae->SetName("Hist"); grae->SetTitle("Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr"); grae->SetFillColor(1); grae->SetLineWidth(2); grae->SetMarkerStyle(8); TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300); Graph_Hist3002->SetMinimum(2.737225); Graph_Hist3002->SetMaximum(2737.225); Graph_Hist3002->SetDirectory(0); Graph_Hist3002->SetStats(0); Graph_Hist3002->SetLineWidth(2); Graph_Hist3002->SetMarkerStyle(20); Graph_Hist3002->GetXaxis()->SetNdivisions(505); Graph_Hist3002->GetXaxis()->SetLabelFont(132); Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01); Graph_Hist3002->GetXaxis()->SetLabelSize(0.06); Graph_Hist3002->GetXaxis()->SetTitleSize(0.072); Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95); Graph_Hist3002->GetXaxis()->SetTitleFont(132); Graph_Hist3002->GetYaxis()->SetLabelFont(132); Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01); Graph_Hist3002->GetYaxis()->SetLabelSize(0.06); Graph_Hist3002->GetYaxis()->SetTitleSize(0.072); Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95); Graph_Hist3002->GetYaxis()->SetTitleFont(132); Graph_Hist3002->GetZaxis()->SetLabelFont(132); Graph_Hist3002->GetZaxis()->SetLabelSize(0.06); Graph_Hist3002->GetZaxis()->SetTitleSize(0.072); Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2); Graph_Hist3002->GetZaxis()->SetTitleFont(132); grae->SetHistogram(Graph_Hist3002); grae->Draw("p"); Double_t curvetot_fx1[102] = { 4300, 4305, 4310, 4315, 4320, 4325, 4330, 4335, 4340, 4345, 4350, 4355, 4360, 4365, 4370, 4375, 4380, 4385, 4390, 4395, 4400, 4405, 4410, 4415, 4420, 4425, 4430, 4435, 4440, 4445, 4450, 4455, 4460, 4465, 4470, 4475, 4480, 4485, 4490, 4495, 4500, 4505, 4510, 4515, 4520, 4525, 4530, 4535, 4540, 4545, 4550, 4555, 4560, 4565, 4570, 4575, 4580, 4585, 4590, 4595, 4600, 4605, 4610, 4615, 4620, 4625, 4630, 4635, 4640, 4645, 4650, 4655, 4660, 4665, 4670, 4675, 4680, 4685, 4690, 4695, 4700, 4705, 4710, 4715, 4720, 4725, 4730, 4735, 4740, 4745, 4750, 4755, 4760, 4765, 4770, 4775, 4780, 4785, 4790, 4795, 4800, 4800}; Double_t curvetot_fy1[102] = { 143.298, 142.6376, 141.9788, 141.3214, 140.6656, 140.0112, 139.3584, 138.707, 138.0571, 137.4088, 136.7619, 136.1165, 135.4726, 134.8302, 134.1893, 133.5499, 132.912, 132.2756, 131.6407, 131.0072, 130.3753, 129.7449, 129.116, 128.4885, 127.8626, 127.2381, 126.6152, 125.9937, 125.3738, 124.7553, 124.1384, 123.5229, 122.9089, 122.2964, 121.6854, 121.076, 120.468, 119.8615, 119.2565, 118.653, 118.051, 117.4504, 116.8514, 116.2539, 115.6579, 115.0633, 114.4703, 113.8788, 113.2887, 112.7002, 112.1131, 111.5276, 110.9435, 110.361, 109.7799, 109.2003, 108.6222, 108.0457, 107.4706, 106.897, 106.3249, 105.7543, 105.1852, 104.6176, 104.0515, 103.4868, 102.9237, 102.3621, 101.802, 101.2433, 100.6862, 100.1306, 99.57642, 99.02377, 98.47262, 97.92296, 97.3748, 96.82813, 96.28296, 95.73929, 95.19711, 94.65642, 94.11724, 93.57954, 93.04335, 92.50865, 91.97544, 91.44373, 90.91352, 90.3848, 89.85758, 89.33185, 88.80762, 88.28489, 87.76365, 87.2439, 86.72566, 86.20891, 85.69365, 85.17989, 84.66762, 84.66762}; TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1); graph->SetName("curvetot"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); graph->SetLineColor(ci); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,4250,4850); Graph_curvetot1->SetMinimum(78.80459); Graph_curvetot1->SetMaximum(149.161); Graph_curvetot1->SetDirectory(0); Graph_curvetot1->SetStats(0); Graph_curvetot1->SetLineWidth(2); Graph_curvetot1->SetMarkerStyle(20); Graph_curvetot1->GetXaxis()->SetNdivisions(505); Graph_curvetot1->GetXaxis()->SetLabelFont(132); Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01); Graph_curvetot1->GetXaxis()->SetLabelSize(0.06); Graph_curvetot1->GetXaxis()->SetTitleSize(0.072); Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95); Graph_curvetot1->GetXaxis()->SetTitleFont(132); Graph_curvetot1->GetYaxis()->SetLabelFont(132); Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01); Graph_curvetot1->GetYaxis()->SetLabelSize(0.06); Graph_curvetot1->GetYaxis()->SetTitleSize(0.072); Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95); Graph_curvetot1->GetYaxis()->SetTitleFont(132); Graph_curvetot1->GetZaxis()->SetLabelFont(132); Graph_curvetot1->GetZaxis()->SetLabelSize(0.06); Graph_curvetot1->GetZaxis()->SetTitleSize(0.072); Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2); Graph_curvetot1->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_curvetot1); graph->Draw("l"); Double_t curvetot_fx2[102] = { 5700, 5702.5, 5705, 5707.5, 5710, 5712.5, 5715, 5717.5, 5720, 5722.5, 5725, 5727.5, 5730, 5732.5, 5735, 5737.5, 5740, 5742.5, 5745, 5747.5, 5750, 5752.5, 5755, 5757.5, 5760, 5762.5, 5765, 5767.5, 5770, 5772.5, 5775, 5777.5, 5780, 5782.5, 5785, 5787.5, 5790, 5792.5, 5795, 5797.5, 5800, 5802.5, 5805, 5807.5, 5810, 5812.5, 5815, 5817.5, 5820, 5822.5, 5825, 5827.5, 5830, 5832.5, 5835, 5837.5, 5840, 5842.5, 5845, 5847.5, 5850, 5852.5, 5855, 5857.5, 5860, 5862.5, 5865, 5867.5, 5870, 5872.5, 5875, 5877.5, 5880, 5882.5, 5885, 5887.5, 5890, 5892.5, 5895, 5897.5, 5900, 5902.5, 5905, 5907.5, 5910, 5912.5, 5915, 5917.5, 5920, 5922.5, 5925, 5927.5, 5930, 5932.5, 5935, 5937.5, 5940, 5942.5, 5945, 5947.5, 5950, 5950}; Double_t curvetot_fy2[102] = { 16.82558, 16.70463, 16.58405, 16.46384, 16.34401, 16.22455, 16.10546, 15.98675, 15.86841, 15.75045, 15.63286, 15.51564, 15.3988, 15.28233, 15.16624, 15.05052, 14.93517, 14.8202, 14.7056, 14.59138, 14.47753, 14.36405, 14.25095, 14.13822, 14.02587, 13.91389, 13.80228, 13.69105, 13.58019, 13.46971, 13.3596, 13.24986, 13.1405, 13.03151, 12.92289, 12.81465, 12.70678, 12.59929, 12.49217, 12.38543, 12.27905, 12.17306, 12.06743, 11.96218, 11.85731, 11.75281, 11.64868, 11.54492, 11.44154, 11.33854, 11.23591, 11.13365, 11.03176, 10.93025, 10.82912, 10.72835, 10.62797, 10.52795, 10.42831, 10.32904, 10.23015, 10.13163, 10.03349, 9.935716, 9.838319, 9.741296, 9.644647, 9.548372, 9.45247, 9.356943, 9.26179, 9.16701, 9.072605, 8.978573, 8.884915, 8.791632, 8.698722, 8.606186, 8.514024, 8.422236, 8.330822, 8.239782, 8.149116, 8.058823, 7.968905, 7.879361, 7.79019, 7.701394, 7.612971, 7.524922, 7.437248, 7.349947, 7.26302, 7.176467, 7.090288, 7.004483, 6.919052, 6.833995, 6.749311, 6.665002, 6.581067, 6.581067}; graph = new TGraph(102,curvetot_fx2,curvetot_fy2); graph->SetName("curvetot"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); ci = TColor::GetColor("#0000ff"); graph->SetLineColor(ci); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_curvetot2 = new TH1F("Graph_curvetot2","Projection of totalPdf",102,5675,5975); Graph_curvetot2->SetMinimum(5.556615); Graph_curvetot2->SetMaximum(17.85003); Graph_curvetot2->SetDirectory(0); Graph_curvetot2->SetStats(0); Graph_curvetot2->SetLineWidth(2); Graph_curvetot2->SetMarkerStyle(20); Graph_curvetot2->GetXaxis()->SetNdivisions(505); Graph_curvetot2->GetXaxis()->SetLabelFont(132); Graph_curvetot2->GetXaxis()->SetLabelOffset(0.01); Graph_curvetot2->GetXaxis()->SetLabelSize(0.06); Graph_curvetot2->GetXaxis()->SetTitleSize(0.072); Graph_curvetot2->GetXaxis()->SetTitleOffset(0.95); Graph_curvetot2->GetXaxis()->SetTitleFont(132); Graph_curvetot2->GetYaxis()->SetLabelFont(132); Graph_curvetot2->GetYaxis()->SetLabelOffset(0.01); Graph_curvetot2->GetYaxis()->SetLabelSize(0.06); Graph_curvetot2->GetYaxis()->SetTitleSize(0.072); Graph_curvetot2->GetYaxis()->SetTitleOffset(0.95); Graph_curvetot2->GetYaxis()->SetTitleFont(132); Graph_curvetot2->GetZaxis()->SetLabelFont(132); Graph_curvetot2->GetZaxis()->SetLabelSize(0.06); Graph_curvetot2->GetZaxis()->SetTitleSize(0.072); Graph_curvetot2->GetZaxis()->SetTitleOffset(1.2); Graph_curvetot2->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_curvetot2); graph->Draw("l"); Double_t curvetot_fx3[102] = { 5950, 5950.9, 5951.8, 5952.7, 5953.6, 5954.5, 5955.4, 5956.3, 5957.2, 5958.1, 5959, 5959.9, 5960.8, 5961.7, 5962.6, 5963.5, 5964.4, 5965.3, 5966.2, 5967.1, 5968, 5968.9, 5969.8, 5970.7, 5971.6, 5972.5, 5973.4, 5974.3, 5975.2, 5976.1, 5977, 5977.9, 5978.8, 5979.7, 5980.6, 5981.5, 5982.4, 5983.3, 5984.2, 5985.1, 5986, 5986.9, 5987.8, 5988.7, 5989.6, 5990.5, 5991.4, 5992.3, 5993.2, 5994.1, 5995, 5995.9, 5996.8, 5997.7, 5998.6, 5999.5, 6000.4, 6001.3, 6002.2, 6003.1, 6004, 6004.9, 6005.8, 6006.7, 6007.6, 6008.5, 6009.4, 6010.3, 6011.2, 6012.1, 6013, 6013.9, 6014.8, 6015.7, 6016.6, 6017.5, 6018.4, 6019.3, 6020.2, 6021.1, 6022, 6022.9, 6023.8, 6024.7, 6025.6, 6026.5, 6027.4, 6028.3, 6029.2, 6030.1, 6031, 6031.9, 6032.8, 6033.7, 6034.6, 6035.5, 6036.4, 6037.3, 6038.2, 6039.1, 6040, 6040}; Double_t curvetot_fy3[102] = { 6.581067, 6.550942, 6.520865, 6.490837, 6.460857, 6.430925, 6.401042, 6.371208, 6.341422, 6.311685, 6.281996, 6.252355, 6.222763, 6.193219, 6.163724, 6.134277, 6.104879, 6.075529, 6.046228, 6.016975, 5.987771, 5.958615, 5.929507, 5.900448, 5.871437, 5.842475, 5.813562, 5.784697, 5.75588, 5.727112, 5.698392, 5.66972, 5.641098, 5.612523, 5.583997, 5.55552, 5.527091, 5.49871, 5.470378, 5.442094, 5.413859, 5.385672, 5.357534, 5.329444, 5.301403, 5.27341, 5.245466, 5.21757, 5.189722, 5.161923, 5.134173, 5.106471, 5.078817, 5.051212, 5.023655, 4.996147, 4.968687, 4.941276, 4.913913, 4.886598, 4.859333, 4.832115, 4.804946, 4.777825, 4.750753, 4.72373, 4.696755, 4.669828, 4.64295, 4.61612, 4.589339, 4.562606, 4.535921, 4.509285, 4.482698, 4.456159, 4.429668, 4.403226, 4.376833, 4.350487, 4.324191, 4.297942, 4.271743, 4.245591, 4.219488, 4.193434, 4.167428, 4.141471, 4.115562, 4.089701, 4.063889, 4.038125, 4.01241, 3.986744, 3.961125, 3.935556, 3.910034, 3.884561, 3.859137, 3.833761, 3.808434, 3.808434}; graph = new TGraph(102,curvetot_fx3,curvetot_fy3); graph->SetName("curvetot"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); ci = TColor::GetColor("#0000ff"); graph->SetLineColor(ci); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_curvetot3 = new TH1F("Graph_curvetot3","Projection of totalPdf",102,5941,6049); Graph_curvetot3->SetMinimum(3.53117); Graph_curvetot3->SetMaximum(6.85833); Graph_curvetot3->SetDirectory(0); Graph_curvetot3->SetStats(0); Graph_curvetot3->SetLineWidth(2); Graph_curvetot3->SetMarkerStyle(20); Graph_curvetot3->GetXaxis()->SetNdivisions(505); Graph_curvetot3->GetXaxis()->SetLabelFont(132); Graph_curvetot3->GetXaxis()->SetLabelOffset(0.01); Graph_curvetot3->GetXaxis()->SetLabelSize(0.06); Graph_curvetot3->GetXaxis()->SetTitleSize(0.072); Graph_curvetot3->GetXaxis()->SetTitleOffset(0.95); Graph_curvetot3->GetXaxis()->SetTitleFont(132); Graph_curvetot3->GetYaxis()->SetLabelFont(132); Graph_curvetot3->GetYaxis()->SetLabelOffset(0.01); Graph_curvetot3->GetYaxis()->SetLabelSize(0.06); Graph_curvetot3->GetYaxis()->SetTitleSize(0.072); Graph_curvetot3->GetYaxis()->SetTitleOffset(0.95); Graph_curvetot3->GetYaxis()->SetTitleFont(132); Graph_curvetot3->GetZaxis()->SetLabelFont(132); Graph_curvetot3->GetZaxis()->SetLabelSize(0.06); Graph_curvetot3->GetZaxis()->SetTitleSize(0.072); Graph_curvetot3->GetZaxis()->SetTitleOffset(1.2); Graph_curvetot3->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_curvetot3); graph->Draw("l"); Double_t bkg_fx4[102] = { 4300, 4305, 4310, 4315, 4320, 4325, 4330, 4335, 4340, 4345, 4350, 4355, 4360, 4365, 4370, 4375, 4380, 4385, 4390, 4395, 4400, 4405, 4410, 4415, 4420, 4425, 4430, 4435, 4440, 4445, 4450, 4455, 4460, 4465, 4470, 4475, 4480, 4485, 4490, 4495, 4500, 4505, 4510, 4515, 4520, 4525, 4530, 4535, 4540, 4545, 4550, 4555, 4560, 4565, 4570, 4575, 4580, 4585, 4590, 4595, 4600, 4605, 4610, 4615, 4620, 4625, 4630, 4635, 4640, 4645, 4650, 4655, 4660, 4665, 4670, 4675, 4680, 4685, 4690, 4695, 4700, 4705, 4710, 4715, 4720, 4725, 4730, 4735, 4740, 4745, 4750, 4755, 4760, 4765, 4770, 4775, 4780, 4785, 4790, 4795, 4800, 4800}; Double_t bkg_fy4[102] = { 143.298, 142.6376, 141.9788, 141.3214, 140.6656, 140.0112, 139.3584, 138.707, 138.0571, 137.4088, 136.7619, 136.1165, 135.4726, 134.8302, 134.1893, 133.5499, 132.912, 132.2756, 131.6407, 131.0072, 130.3753, 129.7449, 129.116, 128.4885, 127.8626, 127.2381, 126.6152, 125.9937, 125.3738, 124.7553, 124.1384, 123.5229, 122.9089, 122.2964, 121.6854, 121.076, 120.468, 119.8615, 119.2565, 118.653, 118.051, 117.4504, 116.8514, 116.2539, 115.6579, 115.0633, 114.4703, 113.8788, 113.2887, 112.7002, 112.1131, 111.5276, 110.9435, 110.361, 109.7799, 109.2003, 108.6222, 108.0457, 107.4706, 106.897, 106.3249, 105.7543, 105.1852, 104.6176, 104.0515, 103.4868, 102.9237, 102.3621, 101.802, 101.2433, 100.6862, 100.1306, 99.57642, 99.02377, 98.47262, 97.92296, 97.3748, 96.82813, 96.28296, 95.73929, 95.19711, 94.65642, 94.11724, 93.57954, 93.04335, 92.50865, 91.97544, 91.44373, 90.91352, 90.3848, 89.85758, 89.33185, 88.80762, 88.28489, 87.76365, 87.2439, 86.72566, 86.20891, 85.69365, 85.17989, 84.66762, 84.66762}; graph = new TGraph(102,bkg_fx4,bkg_fy4); graph->SetName("bkg"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); graph->SetLineColor(2); graph->SetLineStyle(2); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_bkg4 = new TH1F("Graph_bkg4","Projection of totalPdf",102,4250,4850); Graph_bkg4->SetMinimum(78.80459); Graph_bkg4->SetMaximum(149.161); Graph_bkg4->SetDirectory(0); Graph_bkg4->SetStats(0); Graph_bkg4->SetLineWidth(2); Graph_bkg4->SetMarkerStyle(20); Graph_bkg4->GetXaxis()->SetNdivisions(505); Graph_bkg4->GetXaxis()->SetLabelFont(132); Graph_bkg4->GetXaxis()->SetLabelOffset(0.01); Graph_bkg4->GetXaxis()->SetLabelSize(0.06); Graph_bkg4->GetXaxis()->SetTitleSize(0.072); Graph_bkg4->GetXaxis()->SetTitleOffset(0.95); Graph_bkg4->GetXaxis()->SetTitleFont(132); Graph_bkg4->GetYaxis()->SetLabelFont(132); Graph_bkg4->GetYaxis()->SetLabelOffset(0.01); Graph_bkg4->GetYaxis()->SetLabelSize(0.06); Graph_bkg4->GetYaxis()->SetTitleSize(0.072); Graph_bkg4->GetYaxis()->SetTitleOffset(0.95); Graph_bkg4->GetYaxis()->SetTitleFont(132); Graph_bkg4->GetZaxis()->SetLabelFont(132); Graph_bkg4->GetZaxis()->SetLabelSize(0.06); Graph_bkg4->GetZaxis()->SetTitleSize(0.072); Graph_bkg4->GetZaxis()->SetTitleOffset(1.2); Graph_bkg4->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_bkg4); graph->Draw("l"); Double_t bkg_fx5[102] = { 5700, 5702.5, 5705, 5707.5, 5710, 5712.5, 5715, 5717.5, 5720, 5722.5, 5725, 5727.5, 5730, 5732.5, 5735, 5737.5, 5740, 5742.5, 5745, 5747.5, 5750, 5752.5, 5755, 5757.5, 5760, 5762.5, 5765, 5767.5, 5770, 5772.5, 5775, 5777.5, 5780, 5782.5, 5785, 5787.5, 5790, 5792.5, 5795, 5797.5, 5800, 5802.5, 5805, 5807.5, 5810, 5812.5, 5815, 5817.5, 5820, 5822.5, 5825, 5827.5, 5830, 5832.5, 5835, 5837.5, 5840, 5842.5, 5845, 5847.5, 5850, 5852.5, 5855, 5857.5, 5860, 5862.5, 5865, 5867.5, 5870, 5872.5, 5875, 5877.5, 5880, 5882.5, 5885, 5887.5, 5890, 5892.5, 5895, 5897.5, 5900, 5902.5, 5905, 5907.5, 5910, 5912.5, 5915, 5917.5, 5920, 5922.5, 5925, 5927.5, 5930, 5932.5, 5935, 5937.5, 5940, 5942.5, 5945, 5947.5, 5950, 5950}; Double_t bkg_fy5[102] = { 16.82558, 16.70463, 16.58405, 16.46384, 16.34401, 16.22455, 16.10546, 15.98675, 15.86841, 15.75045, 15.63286, 15.51564, 15.3988, 15.28233, 15.16624, 15.05052, 14.93517, 14.8202, 14.7056, 14.59138, 14.47753, 14.36405, 14.25095, 14.13822, 14.02587, 13.91389, 13.80228, 13.69105, 13.58019, 13.46971, 13.3596, 13.24986, 13.1405, 13.03151, 12.92289, 12.81465, 12.70678, 12.59929, 12.49217, 12.38543, 12.27905, 12.17306, 12.06743, 11.96218, 11.85731, 11.75281, 11.64868, 11.54492, 11.44154, 11.33854, 11.23591, 11.13365, 11.03176, 10.93025, 10.82912, 10.72835, 10.62797, 10.52795, 10.42831, 10.32904, 10.23015, 10.13163, 10.03349, 9.935716, 9.838319, 9.741296, 9.644647, 9.548372, 9.45247, 9.356943, 9.26179, 9.16701, 9.072605, 8.978573, 8.884915, 8.791632, 8.698722, 8.606186, 8.514024, 8.422236, 8.330822, 8.239782, 8.149116, 8.058823, 7.968905, 7.879361, 7.79019, 7.701394, 7.612971, 7.524922, 7.437248, 7.349947, 7.26302, 7.176467, 7.090288, 7.004483, 6.919052, 6.833995, 6.749311, 6.665002, 6.581067, 6.581067}; graph = new TGraph(102,bkg_fx5,bkg_fy5); graph->SetName("bkg"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); graph->SetLineColor(2); graph->SetLineStyle(2); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_bkg5 = new TH1F("Graph_bkg5","Projection of totalPdf",102,5675,5975); Graph_bkg5->SetMinimum(5.556615); Graph_bkg5->SetMaximum(17.85003); Graph_bkg5->SetDirectory(0); Graph_bkg5->SetStats(0); Graph_bkg5->SetLineWidth(2); Graph_bkg5->SetMarkerStyle(20); Graph_bkg5->GetXaxis()->SetNdivisions(505); Graph_bkg5->GetXaxis()->SetLabelFont(132); Graph_bkg5->GetXaxis()->SetLabelOffset(0.01); Graph_bkg5->GetXaxis()->SetLabelSize(0.06); Graph_bkg5->GetXaxis()->SetTitleSize(0.072); Graph_bkg5->GetXaxis()->SetTitleOffset(0.95); Graph_bkg5->GetXaxis()->SetTitleFont(132); Graph_bkg5->GetYaxis()->SetLabelFont(132); Graph_bkg5->GetYaxis()->SetLabelOffset(0.01); Graph_bkg5->GetYaxis()->SetLabelSize(0.06); Graph_bkg5->GetYaxis()->SetTitleSize(0.072); Graph_bkg5->GetYaxis()->SetTitleOffset(0.95); Graph_bkg5->GetYaxis()->SetTitleFont(132); Graph_bkg5->GetZaxis()->SetLabelFont(132); Graph_bkg5->GetZaxis()->SetLabelSize(0.06); Graph_bkg5->GetZaxis()->SetTitleSize(0.072); Graph_bkg5->GetZaxis()->SetTitleOffset(1.2); Graph_bkg5->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_bkg5); graph->Draw("l"); Double_t bkg_fx6[102] = { 5950, 5950.9, 5951.8, 5952.7, 5953.6, 5954.5, 5955.4, 5956.3, 5957.2, 5958.1, 5959, 5959.9, 5960.8, 5961.7, 5962.6, 5963.5, 5964.4, 5965.3, 5966.2, 5967.1, 5968, 5968.9, 5969.8, 5970.7, 5971.6, 5972.5, 5973.4, 5974.3, 5975.2, 5976.1, 5977, 5977.9, 5978.8, 5979.7, 5980.6, 5981.5, 5982.4, 5983.3, 5984.2, 5985.1, 5986, 5986.9, 5987.8, 5988.7, 5989.6, 5990.5, 5991.4, 5992.3, 5993.2, 5994.1, 5995, 5995.9, 5996.8, 5997.7, 5998.6, 5999.5, 6000.4, 6001.3, 6002.2, 6003.1, 6004, 6004.9, 6005.8, 6006.7, 6007.6, 6008.5, 6009.4, 6010.3, 6011.2, 6012.1, 6013, 6013.9, 6014.8, 6015.7, 6016.6, 6017.5, 6018.4, 6019.3, 6020.2, 6021.1, 6022, 6022.9, 6023.8, 6024.7, 6025.6, 6026.5, 6027.4, 6028.3, 6029.2, 6030.1, 6031, 6031.9, 6032.8, 6033.7, 6034.6, 6035.5, 6036.4, 6037.3, 6038.2, 6039.1, 6040, 6040}; Double_t bkg_fy6[102] = { 6.581067, 6.550942, 6.520865, 6.490837, 6.460857, 6.430925, 6.401042, 6.371208, 6.341422, 6.311685, 6.281996, 6.252355, 6.222763, 6.193219, 6.163724, 6.134277, 6.104879, 6.075529, 6.046228, 6.016975, 5.987771, 5.958615, 5.929507, 5.900448, 5.871437, 5.842475, 5.813562, 5.784697, 5.75588, 5.727112, 5.698392, 5.66972, 5.641098, 5.612523, 5.583997, 5.55552, 5.527091, 5.49871, 5.470378, 5.442094, 5.413859, 5.385672, 5.357534, 5.329444, 5.301403, 5.27341, 5.245466, 5.21757, 5.189722, 5.161923, 5.134173, 5.106471, 5.078817, 5.051212, 5.023655, 4.996147, 4.968687, 4.941276, 4.913913, 4.886598, 4.859333, 4.832115, 4.804946, 4.777825, 4.750753, 4.72373, 4.696755, 4.669828, 4.64295, 4.61612, 4.589339, 4.562606, 4.535921, 4.509285, 4.482698, 4.456159, 4.429668, 4.403226, 4.376833, 4.350487, 4.324191, 4.297942, 4.271743, 4.245591, 4.219488, 4.193434, 4.167428, 4.141471, 4.115562, 4.089701, 4.063889, 4.038125, 4.01241, 3.986744, 3.961125, 3.935556, 3.910034, 3.884561, 3.859137, 3.833761, 3.808434, 3.808434}; graph = new TGraph(102,bkg_fx6,bkg_fy6); graph->SetName("bkg"); graph->SetTitle("Projection of totalPdf"); graph->SetFillColor(1); graph->SetLineColor(2); graph->SetLineStyle(2); graph->SetLineWidth(3); graph->SetMarkerStyle(20); TH1F *Graph_bkg6 = new TH1F("Graph_bkg6","Projection of totalPdf",102,5941,6049); Graph_bkg6->SetMinimum(3.53117); Graph_bkg6->SetMaximum(6.85833); Graph_bkg6->SetDirectory(0); Graph_bkg6->SetStats(0); Graph_bkg6->SetLineWidth(2); Graph_bkg6->SetMarkerStyle(20); Graph_bkg6->GetXaxis()->SetNdivisions(505); Graph_bkg6->GetXaxis()->SetLabelFont(132); Graph_bkg6->GetXaxis()->SetLabelOffset(0.01); Graph_bkg6->GetXaxis()->SetLabelSize(0.06); Graph_bkg6->GetXaxis()->SetTitleSize(0.072); Graph_bkg6->GetXaxis()->SetTitleOffset(0.95); Graph_bkg6->GetXaxis()->SetTitleFont(132); Graph_bkg6->GetYaxis()->SetLabelFont(132); Graph_bkg6->GetYaxis()->SetLabelOffset(0.01); Graph_bkg6->GetYaxis()->SetLabelSize(0.06); Graph_bkg6->GetYaxis()->SetTitleSize(0.072); Graph_bkg6->GetYaxis()->SetTitleOffset(0.95); Graph_bkg6->GetYaxis()->SetTitleFont(132); Graph_bkg6->GetZaxis()->SetLabelFont(132); Graph_bkg6->GetZaxis()->SetLabelSize(0.06); Graph_bkg6->GetZaxis()->SetTitleSize(0.072); Graph_bkg6->GetZaxis()->SetTitleOffset(1.2); Graph_bkg6->GetZaxis()->SetTitleFont(132); graph->SetHistogram(Graph_bkg6); graph->Draw("l"); TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(132); leg->SetTextSize(0.06); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(2); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(132); entry=leg->AddEntry("bkg","Background","l"); entry->SetLineColor(2); entry->SetLineStyle(2); entry->SetLineWidth(3); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(132); leg->Draw(); TH1D *frame_4a4d3a0__4 = new TH1D("frame_4a4d3a0__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100); frame_4a4d3a0__4->SetBinContent(1,2612.806); frame_4a4d3a0__4->SetMinimum(1); frame_4a4d3a0__4->SetMaximum(5000); frame_4a4d3a0__4->SetEntries(1); frame_4a4d3a0__4->SetDirectory(0); frame_4a4d3a0__4->SetStats(0); frame_4a4d3a0__4->SetLineWidth(2); frame_4a4d3a0__4->SetMarkerStyle(20); frame_4a4d3a0__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)"); frame_4a4d3a0__4->GetXaxis()->SetNdivisions(505); frame_4a4d3a0__4->GetXaxis()->SetLabelFont(132); frame_4a4d3a0__4->GetXaxis()->SetLabelOffset(0.01); frame_4a4d3a0__4->GetXaxis()->SetLabelSize(0.06); frame_4a4d3a0__4->GetXaxis()->SetTitleSize(0.072); frame_4a4d3a0__4->GetXaxis()->SetTitleOffset(0.95); frame_4a4d3a0__4->GetXaxis()->SetTitleFont(132); frame_4a4d3a0__4->GetYaxis()->SetTitle("Events/(5 MeV)"); frame_4a4d3a0__4->GetYaxis()->SetLabelFont(132); frame_4a4d3a0__4->GetYaxis()->SetLabelOffset(0.01); frame_4a4d3a0__4->GetYaxis()->SetLabelSize(0.06); frame_4a4d3a0__4->GetYaxis()->SetTitleSize(0.072); frame_4a4d3a0__4->GetYaxis()->SetTitleOffset(0.95); frame_4a4d3a0__4->GetYaxis()->SetTitleFont(132); frame_4a4d3a0__4->GetZaxis()->SetLabelFont(132); frame_4a4d3a0__4->GetZaxis()->SetLabelSize(0.06); frame_4a4d3a0__4->GetZaxis()->SetTitleSize(0.072); frame_4a4d3a0__4->GetZaxis()->SetTitleOffset(1.2); frame_4a4d3a0__4->GetZaxis()->SetTitleFont(132); frame_4a4d3a0__4->Draw("AXISSAME"); pad1->Modified(); c1->cd(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_gammaD_L_Z() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:17:52 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-10.625,-0.01311612,51.875,0.08777715); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_gammaD_cT_Z_lab_dummy57 = new TH1F("h_gammaD_cT_Z_lab_dummy57","h_gammaD_cT_Z_lab_dummy",5,0,50); h_gammaD_cT_Z_lab_dummy57->SetMaximum(0.08071462); h_gammaD_cT_Z_lab_dummy57->SetLineStyle(0); h_gammaD_cT_Z_lab_dummy57->SetMarkerStyle(20); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetTitle("L_{Z} of #gamma_{D} [mm]"); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetTitleSize(0.06); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetTitleOffset(0.95); h_gammaD_cT_Z_lab_dummy57->GetXaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetTitle("Normalized Fraction of events / 10.0 mm"); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetTitleSize(0.05); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetTitleOffset(1.3); h_gammaD_cT_Z_lab_dummy57->GetYaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab_dummy57->GetZaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab_dummy57->GetZaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab_dummy57->GetZaxis()->SetTitleSize(0.06); h_gammaD_cT_Z_lab_dummy57->GetZaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab_dummy57->Draw(""); TH1F *h_gammaD_cT_Z_lab58 = new TH1F("h_gammaD_cT_Z_lab58","h_gammaD_cT_Z_lab",5,0,50); h_gammaD_cT_Z_lab58->SetBinContent(1,0.04484145); h_gammaD_cT_Z_lab58->SetBinContent(2,0.02460945); h_gammaD_cT_Z_lab58->SetBinContent(3,0.01479324); h_gammaD_cT_Z_lab58->SetBinContent(4,0.009401793); h_gammaD_cT_Z_lab58->SetBinContent(5,0.006354062); h_gammaD_cT_Z_lab58->SetBinContent(6,0.03052218); h_gammaD_cT_Z_lab58->SetEntries(159998); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_gammaD_cT_Z_lab58->SetLineColor(ci); h_gammaD_cT_Z_lab58->SetLineWidth(2); h_gammaD_cT_Z_lab58->SetMarkerStyle(20); h_gammaD_cT_Z_lab58->GetXaxis()->SetTitle("L_{z} of #gamma_{D} [mm]"); h_gammaD_cT_Z_lab58->GetXaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab58->GetXaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab58->GetXaxis()->SetTitleSize(0.06); h_gammaD_cT_Z_lab58->GetXaxis()->SetTitleOffset(0.95); h_gammaD_cT_Z_lab58->GetXaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab58->GetYaxis()->SetTitle("Events"); h_gammaD_cT_Z_lab58->GetYaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab58->GetYaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab58->GetYaxis()->SetTitleSize(0.06); h_gammaD_cT_Z_lab58->GetYaxis()->SetTitleOffset(1.5); h_gammaD_cT_Z_lab58->GetYaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab58->GetZaxis()->SetLabelFont(42); h_gammaD_cT_Z_lab58->GetZaxis()->SetLabelOffset(0.007); h_gammaD_cT_Z_lab58->GetZaxis()->SetTitleSize(0.06); h_gammaD_cT_Z_lab58->GetZaxis()->SetTitleFont(42); h_gammaD_cT_Z_lab58->Draw("same"); TLegend *leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_gammaD_Sorted_cT_XY_lab() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:17:52 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-10.625,-0.01611139,51.875,0.1078224); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_gammaD_1_cT_XY_lab_dummy65 = new TH1F("h_gammaD_1_cT_XY_lab_dummy65","h_gammaD_1_cT_XY_lab_dummy",5,0,50); h_gammaD_1_cT_XY_lab_dummy65->SetMaximum(0.09914702); h_gammaD_1_cT_XY_lab_dummy65->SetLineStyle(0); h_gammaD_1_cT_XY_lab_dummy65->SetMarkerStyle(20); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetTitle("L_{XY} of #gamma_{D} [mm]"); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_cT_XY_lab_dummy65->GetXaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetTitle("Normalized Fraction of events / 10.0 mm"); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetTitleSize(0.05); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_cT_XY_lab_dummy65->GetYaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab_dummy65->GetZaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab_dummy65->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab_dummy65->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_cT_XY_lab_dummy65->GetZaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab_dummy65->Draw(""); TH1F *h_gammaD_1_cT_XY_lab66 = new TH1F("h_gammaD_1_cT_XY_lab66","h_gammaD_1_cT_XY_lab",5,0,50); h_gammaD_1_cT_XY_lab66->SetBinContent(1,0.04698479); h_gammaD_1_cT_XY_lab66->SetBinContent(2,0.02564764); h_gammaD_1_cT_XY_lab66->SetBinContent(3,0.01450027); h_gammaD_1_cT_XY_lab66->SetBinContent(4,0.008138182); h_gammaD_1_cT_XY_lab66->SetBinContent(5,0.004729106); h_gammaD_1_cT_XY_lab66->SetBinContent(6,0.006992016); h_gammaD_1_cT_XY_lab66->SetEntries(79999); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_gammaD_1_cT_XY_lab66->SetLineColor(ci); h_gammaD_1_cT_XY_lab66->SetLineWidth(2); h_gammaD_1_cT_XY_lab66->SetMarkerStyle(20); h_gammaD_1_cT_XY_lab66->GetXaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab66->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab66->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_cT_XY_lab66->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_cT_XY_lab66->GetXaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab66->GetYaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab66->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab66->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_cT_XY_lab66->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_cT_XY_lab66->GetYaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab66->GetZaxis()->SetLabelFont(42); h_gammaD_1_cT_XY_lab66->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_XY_lab66->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_cT_XY_lab66->GetZaxis()->SetTitleFont(42); h_gammaD_1_cT_XY_lab66->Draw("same"); TH1F *h_gammaD_2_cT_XY_lab67 = new TH1F("h_gammaD_2_cT_XY_lab67","h_gammaD_2_cT_XY_lab",5,0,50); h_gammaD_2_cT_XY_lab67->SetBinContent(1,0.05508168); h_gammaD_2_cT_XY_lab67->SetBinContent(2,0.02481173); h_gammaD_2_cT_XY_lab67->SetBinContent(3,0.01176736); h_gammaD_2_cT_XY_lab67->SetBinContent(4,0.00563072); h_gammaD_2_cT_XY_lab67->SetBinContent(5,0.002708513); h_gammaD_2_cT_XY_lab67->SetBinContent(6,0.002983999); h_gammaD_2_cT_XY_lab67->SetEntries(79999); ci = TColor::GetColor("#ff0000"); h_gammaD_2_cT_XY_lab67->SetLineColor(ci); h_gammaD_2_cT_XY_lab67->SetLineWidth(2); h_gammaD_2_cT_XY_lab67->SetMarkerStyle(20); h_gammaD_2_cT_XY_lab67->GetXaxis()->SetLabelFont(42); h_gammaD_2_cT_XY_lab67->GetXaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_XY_lab67->GetXaxis()->SetTitleSize(0.06); h_gammaD_2_cT_XY_lab67->GetXaxis()->SetTitleOffset(0.95); h_gammaD_2_cT_XY_lab67->GetXaxis()->SetTitleFont(42); h_gammaD_2_cT_XY_lab67->GetYaxis()->SetLabelFont(42); h_gammaD_2_cT_XY_lab67->GetYaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_XY_lab67->GetYaxis()->SetTitleSize(0.06); h_gammaD_2_cT_XY_lab67->GetYaxis()->SetTitleOffset(1.3); h_gammaD_2_cT_XY_lab67->GetYaxis()->SetTitleFont(42); h_gammaD_2_cT_XY_lab67->GetZaxis()->SetLabelFont(42); h_gammaD_2_cT_XY_lab67->GetZaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_XY_lab67->GetZaxis()->SetTitleSize(0.06); h_gammaD_2_cT_XY_lab67->GetZaxis()->SetTitleFont(42); h_gammaD_2_cT_XY_lab67->Draw("same"); TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_gammaD_1_cT_XY_lab","1st dark photon (leading p_{T})","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_gammaD_2_cT_XY_lab","2nd dark photon","L"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void TrackClusterDistanceCut_Zuds91_neutralRecoEnergy() { //=========Macro generated from canvas: c1/A Simple Graph Example //========= (Mon Mar 5 13:11:08 2018) by ROOT version6.08/00 TCanvas *c1 = new TCanvas("c1", "A Simple Graph Example",2,51,800,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->SetHighLightColor(2); c1->Range(-27.2,-141.4946,132.8,644.5865); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetPhi(150); c1->SetLeftMargin(0.17); c1->SetRightMargin(0.08); c1->SetTopMargin(0.08); c1->SetBottomMargin(0.18); c1->SetFrameLineWidth(2); c1->SetFrameBorderMode(0); c1->SetFrameLineWidth(2); c1->SetFrameBorderMode(0); TH1F *hist_pfoEnergyNeutralHadrons__3 = new TH1F("hist_pfoEnergyNeutralHadrons__3","hist_pfoEnergyNeutralHadrons",500,0,500); hist_pfoEnergyNeutralHadrons__3->SetBinContent(1,518); hist_pfoEnergyNeutralHadrons__3->SetBinContent(2,541); hist_pfoEnergyNeutralHadrons__3->SetBinContent(3,554); hist_pfoEnergyNeutralHadrons__3->SetBinContent(4,486); hist_pfoEnergyNeutralHadrons__3->SetBinContent(5,470); hist_pfoEnergyNeutralHadrons__3->SetBinContent(6,428); hist_pfoEnergyNeutralHadrons__3->SetBinContent(7,477); hist_pfoEnergyNeutralHadrons__3->SetBinContent(8,441); hist_pfoEnergyNeutralHadrons__3->SetBinContent(9,409); hist_pfoEnergyNeutralHadrons__3->SetBinContent(10,412); hist_pfoEnergyNeutralHadrons__3->SetBinContent(11,340); hist_pfoEnergyNeutralHadrons__3->SetBinContent(12,341); hist_pfoEnergyNeutralHadrons__3->SetBinContent(13,314); hist_pfoEnergyNeutralHadrons__3->SetBinContent(14,296); hist_pfoEnergyNeutralHadrons__3->SetBinContent(15,284); hist_pfoEnergyNeutralHadrons__3->SetBinContent(16,272); hist_pfoEnergyNeutralHadrons__3->SetBinContent(17,235); hist_pfoEnergyNeutralHadrons__3->SetBinContent(18,204); hist_pfoEnergyNeutralHadrons__3->SetBinContent(19,253); hist_pfoEnergyNeutralHadrons__3->SetBinContent(20,200); hist_pfoEnergyNeutralHadrons__3->SetBinContent(21,179); hist_pfoEnergyNeutralHadrons__3->SetBinContent(22,200); hist_pfoEnergyNeutralHadrons__3->SetBinContent(23,181); hist_pfoEnergyNeutralHadrons__3->SetBinContent(24,141); hist_pfoEnergyNeutralHadrons__3->SetBinContent(25,165); hist_pfoEnergyNeutralHadrons__3->SetBinContent(26,131); hist_pfoEnergyNeutralHadrons__3->SetBinContent(27,121); hist_pfoEnergyNeutralHadrons__3->SetBinContent(28,121); hist_pfoEnergyNeutralHadrons__3->SetBinContent(29,110); hist_pfoEnergyNeutralHadrons__3->SetBinContent(30,96); hist_pfoEnergyNeutralHadrons__3->SetBinContent(31,94); hist_pfoEnergyNeutralHadrons__3->SetBinContent(32,72); hist_pfoEnergyNeutralHadrons__3->SetBinContent(33,71); hist_pfoEnergyNeutralHadrons__3->SetBinContent(34,90); hist_pfoEnergyNeutralHadrons__3->SetBinContent(35,81); hist_pfoEnergyNeutralHadrons__3->SetBinContent(36,75); hist_pfoEnergyNeutralHadrons__3->SetBinContent(37,60); hist_pfoEnergyNeutralHadrons__3->SetBinContent(38,48); hist_pfoEnergyNeutralHadrons__3->SetBinContent(39,58); hist_pfoEnergyNeutralHadrons__3->SetBinContent(40,46); hist_pfoEnergyNeutralHadrons__3->SetBinContent(41,42); hist_pfoEnergyNeutralHadrons__3->SetBinContent(42,30); hist_pfoEnergyNeutralHadrons__3->SetBinContent(43,34); hist_pfoEnergyNeutralHadrons__3->SetBinContent(44,27); hist_pfoEnergyNeutralHadrons__3->SetBinContent(45,32); hist_pfoEnergyNeutralHadrons__3->SetBinContent(46,21); hist_pfoEnergyNeutralHadrons__3->SetBinContent(47,30); hist_pfoEnergyNeutralHadrons__3->SetBinContent(48,18); hist_pfoEnergyNeutralHadrons__3->SetBinContent(49,19); hist_pfoEnergyNeutralHadrons__3->SetBinContent(50,13); hist_pfoEnergyNeutralHadrons__3->SetBinContent(51,16); hist_pfoEnergyNeutralHadrons__3->SetBinContent(52,16); hist_pfoEnergyNeutralHadrons__3->SetBinContent(53,11); hist_pfoEnergyNeutralHadrons__3->SetBinContent(54,15); hist_pfoEnergyNeutralHadrons__3->SetBinContent(55,6); hist_pfoEnergyNeutralHadrons__3->SetBinContent(56,7); hist_pfoEnergyNeutralHadrons__3->SetBinContent(57,5); hist_pfoEnergyNeutralHadrons__3->SetBinContent(58,5); hist_pfoEnergyNeutralHadrons__3->SetBinContent(59,10); hist_pfoEnergyNeutralHadrons__3->SetBinContent(60,8); hist_pfoEnergyNeutralHadrons__3->SetBinContent(61,2); hist_pfoEnergyNeutralHadrons__3->SetBinContent(62,3); hist_pfoEnergyNeutralHadrons__3->SetBinContent(63,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(64,2); hist_pfoEnergyNeutralHadrons__3->SetBinContent(67,3); hist_pfoEnergyNeutralHadrons__3->SetBinContent(69,2); hist_pfoEnergyNeutralHadrons__3->SetBinContent(70,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(76,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(77,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(78,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(80,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(82,1); hist_pfoEnergyNeutralHadrons__3->SetBinContent(85,1); hist_pfoEnergyNeutralHadrons__3->SetEntries(10000); hist_pfoEnergyNeutralHadrons__3->SetStats(0); hist_pfoEnergyNeutralHadrons__3->SetLineWidth(2); hist_pfoEnergyNeutralHadrons__3->SetMarkerStyle(0); hist_pfoEnergyNeutralHadrons__3->SetMarkerSize(1.2); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetTitle("Energy [GeV]"); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetRange(1,120); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__3->GetXaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetTitle("Counts"); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__3->GetYaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__3->GetZaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__3->Draw("HIST"); TH1F *hist_pfoEnergyNeutralHadrons__4 = new TH1F("hist_pfoEnergyNeutralHadrons__4","hist_pfoEnergyNeutralHadrons",500,0,500); hist_pfoEnergyNeutralHadrons__4->SetBinContent(1,513); hist_pfoEnergyNeutralHadrons__4->SetBinContent(2,536); hist_pfoEnergyNeutralHadrons__4->SetBinContent(3,508); hist_pfoEnergyNeutralHadrons__4->SetBinContent(4,520); hist_pfoEnergyNeutralHadrons__4->SetBinContent(5,518); hist_pfoEnergyNeutralHadrons__4->SetBinContent(6,454); hist_pfoEnergyNeutralHadrons__4->SetBinContent(7,452); hist_pfoEnergyNeutralHadrons__4->SetBinContent(8,464); hist_pfoEnergyNeutralHadrons__4->SetBinContent(9,424); hist_pfoEnergyNeutralHadrons__4->SetBinContent(10,384); hist_pfoEnergyNeutralHadrons__4->SetBinContent(11,363); hist_pfoEnergyNeutralHadrons__4->SetBinContent(12,322); hist_pfoEnergyNeutralHadrons__4->SetBinContent(13,316); hist_pfoEnergyNeutralHadrons__4->SetBinContent(14,307); hist_pfoEnergyNeutralHadrons__4->SetBinContent(15,268); hist_pfoEnergyNeutralHadrons__4->SetBinContent(16,270); hist_pfoEnergyNeutralHadrons__4->SetBinContent(17,259); hist_pfoEnergyNeutralHadrons__4->SetBinContent(18,223); hist_pfoEnergyNeutralHadrons__4->SetBinContent(19,216); hist_pfoEnergyNeutralHadrons__4->SetBinContent(20,196); hist_pfoEnergyNeutralHadrons__4->SetBinContent(21,202); hist_pfoEnergyNeutralHadrons__4->SetBinContent(22,167); hist_pfoEnergyNeutralHadrons__4->SetBinContent(23,172); hist_pfoEnergyNeutralHadrons__4->SetBinContent(24,174); hist_pfoEnergyNeutralHadrons__4->SetBinContent(25,148); hist_pfoEnergyNeutralHadrons__4->SetBinContent(26,124); hist_pfoEnergyNeutralHadrons__4->SetBinContent(27,136); hist_pfoEnergyNeutralHadrons__4->SetBinContent(28,106); hist_pfoEnergyNeutralHadrons__4->SetBinContent(29,113); hist_pfoEnergyNeutralHadrons__4->SetBinContent(30,107); hist_pfoEnergyNeutralHadrons__4->SetBinContent(31,92); hist_pfoEnergyNeutralHadrons__4->SetBinContent(32,73); hist_pfoEnergyNeutralHadrons__4->SetBinContent(33,75); hist_pfoEnergyNeutralHadrons__4->SetBinContent(34,65); hist_pfoEnergyNeutralHadrons__4->SetBinContent(35,57); hist_pfoEnergyNeutralHadrons__4->SetBinContent(36,67); hist_pfoEnergyNeutralHadrons__4->SetBinContent(37,68); hist_pfoEnergyNeutralHadrons__4->SetBinContent(38,54); hist_pfoEnergyNeutralHadrons__4->SetBinContent(39,69); hist_pfoEnergyNeutralHadrons__4->SetBinContent(40,34); hist_pfoEnergyNeutralHadrons__4->SetBinContent(41,37); hist_pfoEnergyNeutralHadrons__4->SetBinContent(42,38); hist_pfoEnergyNeutralHadrons__4->SetBinContent(43,43); hist_pfoEnergyNeutralHadrons__4->SetBinContent(44,23); hist_pfoEnergyNeutralHadrons__4->SetBinContent(45,27); hist_pfoEnergyNeutralHadrons__4->SetBinContent(46,27); hist_pfoEnergyNeutralHadrons__4->SetBinContent(47,18); hist_pfoEnergyNeutralHadrons__4->SetBinContent(48,13); hist_pfoEnergyNeutralHadrons__4->SetBinContent(49,16); hist_pfoEnergyNeutralHadrons__4->SetBinContent(50,9); hist_pfoEnergyNeutralHadrons__4->SetBinContent(51,20); hist_pfoEnergyNeutralHadrons__4->SetBinContent(52,15); hist_pfoEnergyNeutralHadrons__4->SetBinContent(53,5); hist_pfoEnergyNeutralHadrons__4->SetBinContent(54,11); hist_pfoEnergyNeutralHadrons__4->SetBinContent(55,12); hist_pfoEnergyNeutralHadrons__4->SetBinContent(56,10); hist_pfoEnergyNeutralHadrons__4->SetBinContent(57,6); hist_pfoEnergyNeutralHadrons__4->SetBinContent(58,5); hist_pfoEnergyNeutralHadrons__4->SetBinContent(59,5); hist_pfoEnergyNeutralHadrons__4->SetBinContent(60,6); hist_pfoEnergyNeutralHadrons__4->SetBinContent(61,8); hist_pfoEnergyNeutralHadrons__4->SetBinContent(62,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(63,6); hist_pfoEnergyNeutralHadrons__4->SetBinContent(64,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(65,3); hist_pfoEnergyNeutralHadrons__4->SetBinContent(66,4); hist_pfoEnergyNeutralHadrons__4->SetBinContent(67,2); hist_pfoEnergyNeutralHadrons__4->SetBinContent(68,2); hist_pfoEnergyNeutralHadrons__4->SetBinContent(69,2); hist_pfoEnergyNeutralHadrons__4->SetBinContent(70,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(71,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(72,2); hist_pfoEnergyNeutralHadrons__4->SetBinContent(73,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(74,2); hist_pfoEnergyNeutralHadrons__4->SetBinContent(81,1); hist_pfoEnergyNeutralHadrons__4->SetBinContent(84,1); hist_pfoEnergyNeutralHadrons__4->SetEntries(10000); hist_pfoEnergyNeutralHadrons__4->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff6666"); hist_pfoEnergyNeutralHadrons__4->SetLineColor(ci); hist_pfoEnergyNeutralHadrons__4->SetLineWidth(2); ci = TColor::GetColor("#ff6666"); hist_pfoEnergyNeutralHadrons__4->SetMarkerColor(ci); hist_pfoEnergyNeutralHadrons__4->SetMarkerStyle(0); hist_pfoEnergyNeutralHadrons__4->SetMarkerSize(1.2); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetRange(1,1000); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__4->GetXaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__4->GetYaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__4->GetZaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__4->Draw("HISTsame"); TH1F *hist_pfoEnergyNeutralHadrons__5 = new TH1F("hist_pfoEnergyNeutralHadrons__5","hist_pfoEnergyNeutralHadrons",500,0,500); hist_pfoEnergyNeutralHadrons__5->SetBinContent(1,488); hist_pfoEnergyNeutralHadrons__5->SetBinContent(2,517); hist_pfoEnergyNeutralHadrons__5->SetBinContent(3,578); hist_pfoEnergyNeutralHadrons__5->SetBinContent(4,491); hist_pfoEnergyNeutralHadrons__5->SetBinContent(5,471); hist_pfoEnergyNeutralHadrons__5->SetBinContent(6,492); hist_pfoEnergyNeutralHadrons__5->SetBinContent(7,445); hist_pfoEnergyNeutralHadrons__5->SetBinContent(8,420); hist_pfoEnergyNeutralHadrons__5->SetBinContent(9,398); hist_pfoEnergyNeutralHadrons__5->SetBinContent(10,375); hist_pfoEnergyNeutralHadrons__5->SetBinContent(11,364); hist_pfoEnergyNeutralHadrons__5->SetBinContent(12,324); hist_pfoEnergyNeutralHadrons__5->SetBinContent(13,299); hist_pfoEnergyNeutralHadrons__5->SetBinContent(14,312); hist_pfoEnergyNeutralHadrons__5->SetBinContent(15,298); hist_pfoEnergyNeutralHadrons__5->SetBinContent(16,241); hist_pfoEnergyNeutralHadrons__5->SetBinContent(17,259); hist_pfoEnergyNeutralHadrons__5->SetBinContent(18,226); hist_pfoEnergyNeutralHadrons__5->SetBinContent(19,236); hist_pfoEnergyNeutralHadrons__5->SetBinContent(20,204); hist_pfoEnergyNeutralHadrons__5->SetBinContent(21,200); hist_pfoEnergyNeutralHadrons__5->SetBinContent(22,193); hist_pfoEnergyNeutralHadrons__5->SetBinContent(23,161); hist_pfoEnergyNeutralHadrons__5->SetBinContent(24,144); hist_pfoEnergyNeutralHadrons__5->SetBinContent(25,166); hist_pfoEnergyNeutralHadrons__5->SetBinContent(26,137); hist_pfoEnergyNeutralHadrons__5->SetBinContent(27,127); hist_pfoEnergyNeutralHadrons__5->SetBinContent(28,102); hist_pfoEnergyNeutralHadrons__5->SetBinContent(29,119); hist_pfoEnergyNeutralHadrons__5->SetBinContent(30,99); hist_pfoEnergyNeutralHadrons__5->SetBinContent(31,99); hist_pfoEnergyNeutralHadrons__5->SetBinContent(32,93); hist_pfoEnergyNeutralHadrons__5->SetBinContent(33,96); hist_pfoEnergyNeutralHadrons__5->SetBinContent(34,73); hist_pfoEnergyNeutralHadrons__5->SetBinContent(35,71); hist_pfoEnergyNeutralHadrons__5->SetBinContent(36,60); hist_pfoEnergyNeutralHadrons__5->SetBinContent(37,76); hist_pfoEnergyNeutralHadrons__5->SetBinContent(38,44); hist_pfoEnergyNeutralHadrons__5->SetBinContent(39,58); hist_pfoEnergyNeutralHadrons__5->SetBinContent(40,44); hist_pfoEnergyNeutralHadrons__5->SetBinContent(41,45); hist_pfoEnergyNeutralHadrons__5->SetBinContent(42,38); hist_pfoEnergyNeutralHadrons__5->SetBinContent(43,44); hist_pfoEnergyNeutralHadrons__5->SetBinContent(44,36); hist_pfoEnergyNeutralHadrons__5->SetBinContent(45,21); hist_pfoEnergyNeutralHadrons__5->SetBinContent(46,20); hist_pfoEnergyNeutralHadrons__5->SetBinContent(47,24); hist_pfoEnergyNeutralHadrons__5->SetBinContent(48,22); hist_pfoEnergyNeutralHadrons__5->SetBinContent(49,18); hist_pfoEnergyNeutralHadrons__5->SetBinContent(50,12); hist_pfoEnergyNeutralHadrons__5->SetBinContent(51,17); hist_pfoEnergyNeutralHadrons__5->SetBinContent(52,12); hist_pfoEnergyNeutralHadrons__5->SetBinContent(53,12); hist_pfoEnergyNeutralHadrons__5->SetBinContent(54,10); hist_pfoEnergyNeutralHadrons__5->SetBinContent(55,11); hist_pfoEnergyNeutralHadrons__5->SetBinContent(56,5); hist_pfoEnergyNeutralHadrons__5->SetBinContent(57,4); hist_pfoEnergyNeutralHadrons__5->SetBinContent(58,8); hist_pfoEnergyNeutralHadrons__5->SetBinContent(59,4); hist_pfoEnergyNeutralHadrons__5->SetBinContent(60,8); hist_pfoEnergyNeutralHadrons__5->SetBinContent(61,4); hist_pfoEnergyNeutralHadrons__5->SetBinContent(62,3); hist_pfoEnergyNeutralHadrons__5->SetBinContent(63,5); hist_pfoEnergyNeutralHadrons__5->SetBinContent(64,2); hist_pfoEnergyNeutralHadrons__5->SetBinContent(65,3); hist_pfoEnergyNeutralHadrons__5->SetBinContent(66,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(67,3); hist_pfoEnergyNeutralHadrons__5->SetBinContent(68,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(69,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(71,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(72,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(73,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(75,1); hist_pfoEnergyNeutralHadrons__5->SetBinContent(79,2); hist_pfoEnergyNeutralHadrons__5->SetEntries(10000); hist_pfoEnergyNeutralHadrons__5->SetStats(0); ci = TColor::GetColor("#0000ff"); hist_pfoEnergyNeutralHadrons__5->SetLineColor(ci); hist_pfoEnergyNeutralHadrons__5->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); hist_pfoEnergyNeutralHadrons__5->SetMarkerColor(ci); hist_pfoEnergyNeutralHadrons__5->SetMarkerStyle(0); hist_pfoEnergyNeutralHadrons__5->SetMarkerSize(1.2); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetRange(1,1000); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__5->GetXaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetNdivisions(506); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__5->GetYaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetLabelFont(42); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetLabelOffset(0.015); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetLabelSize(0.06); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetTitleSize(0.07); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetTitleOffset(1.2); hist_pfoEnergyNeutralHadrons__5->GetZaxis()->SetTitleFont(42); hist_pfoEnergyNeutralHadrons__5->Draw("HISTsame"); TLegend *leg = new TLegend(0.45,0.6,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(2); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("hist_pfoEnergyNeutralHadrons","Nominal (13.98 GeV)","lp"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerSize(1.2); entry->SetTextFont(62); entry=leg->AddEntry("hist_pfoEnergyNeutralHadrons","20mm cut (13.88 GeV)","lp"); ci = TColor::GetColor("#ff6666"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#ff6666"); entry->SetMarkerColor(ci); entry->SetMarkerSize(1.2); entry->SetTextFont(62); entry=leg->AddEntry("hist_pfoEnergyNeutralHadrons","50mm cut (14.10 GeV)","lp"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerSize(1.2); entry->SetTextFont(62); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_gammaD_Sorted_cT_Z_lab() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:17:53 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-10.625,-0.01342717,51.875,0.08985876); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_gammaD_1_cT_Z_lab_dummy68 = new TH1F("h_gammaD_1_cT_Z_lab_dummy68","h_gammaD_1_cT_Z_lab_dummy",5,0,50); h_gammaD_1_cT_Z_lab_dummy68->SetMaximum(0.08262875); h_gammaD_1_cT_Z_lab_dummy68->SetLineStyle(0); h_gammaD_1_cT_Z_lab_dummy68->SetMarkerStyle(20); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitle("L_{Z} of #gamma_{D} [mm]"); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitle("Normalized Fraction of events / 10.0 mm"); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleSize(0.05); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab_dummy68->Draw(""); TH1F *h_gammaD_1_cT_Z_lab69 = new TH1F("h_gammaD_1_cT_Z_lab69","h_gammaD_1_cT_Z_lab",5,0,50); h_gammaD_1_cT_Z_lab69->SetBinContent(1,0.04371162); h_gammaD_1_cT_Z_lab69->SetBinContent(2,0.02445529); h_gammaD_1_cT_Z_lab69->SetBinContent(3,0.01502482); h_gammaD_1_cT_Z_lab69->SetBinContent(4,0.01002103); h_gammaD_1_cT_Z_lab69->SetBinContent(5,0.006787247); h_gammaD_1_cT_Z_lab69->SetBinContent(6,0.03459914); h_gammaD_1_cT_Z_lab69->SetEntries(79999); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_gammaD_1_cT_Z_lab69->SetLineColor(ci); h_gammaD_1_cT_Z_lab69->SetLineWidth(2); h_gammaD_1_cT_Z_lab69->SetMarkerStyle(20); h_gammaD_1_cT_Z_lab69->GetXaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab69->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab69->GetYaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab69->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab69->GetZaxis()->SetLabelFont(42); h_gammaD_1_cT_Z_lab69->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_cT_Z_lab69->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_cT_Z_lab69->GetZaxis()->SetTitleFont(42); h_gammaD_1_cT_Z_lab69->Draw("same"); TH1F *h_gammaD_2_cT_Z_lab70 = new TH1F("h_gammaD_2_cT_Z_lab70","h_gammaD_2_cT_Z_lab",5,0,50); h_gammaD_2_cT_Z_lab70->SetBinContent(1,0.04590486); h_gammaD_2_cT_Z_lab70->SetBinContent(2,0.02475454); h_gammaD_2_cT_Z_lab70->SetBinContent(3,0.01457528); h_gammaD_2_cT_Z_lab70->SetBinContent(4,0.008818965); h_gammaD_2_cT_Z_lab70->SetBinContent(5,0.005946348); h_gammaD_2_cT_Z_lab70->SetBinContent(6,0.02668493); h_gammaD_2_cT_Z_lab70->SetEntries(79999); ci = TColor::GetColor("#ff0000"); h_gammaD_2_cT_Z_lab70->SetLineColor(ci); h_gammaD_2_cT_Z_lab70->SetLineWidth(2); h_gammaD_2_cT_Z_lab70->SetMarkerStyle(20); h_gammaD_2_cT_Z_lab70->GetXaxis()->SetLabelFont(42); h_gammaD_2_cT_Z_lab70->GetXaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleSize(0.06); h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleOffset(0.95); h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleFont(42); h_gammaD_2_cT_Z_lab70->GetYaxis()->SetLabelFont(42); h_gammaD_2_cT_Z_lab70->GetYaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleSize(0.06); h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleOffset(1.3); h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleFont(42); h_gammaD_2_cT_Z_lab70->GetZaxis()->SetLabelFont(42); h_gammaD_2_cT_Z_lab70->GetZaxis()->SetLabelOffset(0.007); h_gammaD_2_cT_Z_lab70->GetZaxis()->SetTitleSize(0.06); h_gammaD_2_cT_Z_lab70->GetZaxis()->SetTitleFont(42); h_gammaD_2_cT_Z_lab70->Draw("same"); TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_gammaD_1_cT_Z_lab","1st dark photon (leading p_{T})","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_gammaD_2_cT_Z_lab","2nd dark photon","L"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void TracktoLCTXY_2015all_sameYrange_fullIntegral() { //=========Macro generated from canvas: TracktoLCTXY/TracktoLCTXY //========= (Fri Aug 5 09:06:01 2016) by ROOT version6.06/01 TCanvas *TracktoLCTXY = new TCanvas("TracktoLCTXY", "TracktoLCTXY",0,0,500,500); gStyle->SetOptStat(0); TracktoLCTXY->SetHighLightColor(2); TracktoLCTXY->Range(-5,-2.123713,45,2.123713); TracktoLCTXY->SetFillColor(0); TracktoLCTXY->SetBorderMode(0); TracktoLCTXY->SetBorderSize(2); TracktoLCTXY->SetLogy(); TracktoLCTXY->SetFrameBorderMode(0); TracktoLCTXY->SetFrameBorderMode(0); TH1D *TracktoLCTXY_1__31 = new TH1D("TracktoLCTXY_1__31","TracktoLCTXY",100,0,40); TracktoLCTXY_1__31->SetBinContent(0,409.6136); TracktoLCTXY_1__31->SetBinContent(1,11.40611); TracktoLCTXY_1__31->SetBinContent(2,17.55562); TracktoLCTXY_1__31->SetBinContent(3,16.61672); TracktoLCTXY_1__31->SetBinContent(4,12.72111); TracktoLCTXY_1__31->SetBinContent(5,5.882313); TracktoLCTXY_1__31->SetBinContent(6,2.469679); TracktoLCTXY_1__31->SetBinContent(7,1.726272); TracktoLCTXY_1__31->SetBinContent(8,1.478696); TracktoLCTXY_1__31->SetBinContent(9,1.298086); TracktoLCTXY_1__31->SetBinContent(10,1.192562); TracktoLCTXY_1__31->SetBinContent(11,1.101243); TracktoLCTXY_1__31->SetBinContent(12,0.9334858); TracktoLCTXY_1__31->SetBinContent(13,0.9253685); TracktoLCTXY_1__31->SetBinContent(14,0.892223); TracktoLCTXY_1__31->SetBinContent(15,0.7292012); TracktoLCTXY_1__31->SetBinContent(16,0.6365291); TracktoLCTXY_1__31->SetBinContent(17,0.6541165); TracktoLCTXY_1__31->SetBinContent(18,0.6744096); TracktoLCTXY_1__31->SetBinContent(19,0.6547929); TracktoLCTXY_1__31->SetBinContent(20,0.6236767); TracktoLCTXY_1__31->SetBinContent(21,0.6175888); TracktoLCTXY_1__31->SetBinContent(22,0.6121773); TracktoLCTXY_1__31->SetBinContent(23,0.6060893); TracktoLCTXY_1__31->SetBinContent(24,0.5864726); TracktoLCTXY_1__31->SetBinContent(25,0.548592); TracktoLCTXY_1__31->SetBinContent(26,0.5404747); TracktoLCTXY_1__31->SetBinContent(27,0.5052999); TracktoLCTXY_1__31->SetBinContent(28,0.5107114); TracktoLCTXY_1__31->SetBinContent(29,0.5262695); TracktoLCTXY_1__31->SetBinContent(30,0.476213); TracktoLCTXY_1__31->SetBinContent(31,0.4816245); TracktoLCTXY_1__31->SetBinContent(32,0.4958298); TracktoLCTXY_1__31->SetBinContent(33,0.4565963); TracktoLCTXY_1__31->SetBinContent(34,0.4938004); TracktoLCTXY_1__31->SetBinContent(35,0.4471261); TracktoLCTXY_1__31->SetBinContent(36,0.4281859); TracktoLCTXY_1__31->SetBinContent(37,0.3936875); TracktoLCTXY_1__31->SetBinContent(38,0.3463367); TracktoLCTXY_1__31->SetBinContent(39,0.4038341); TracktoLCTXY_1__31->SetBinContent(40,0.3848938); TracktoLCTXY_1__31->SetBinContent(41,0.3591891); TracktoLCTXY_1__31->SetBinContent(42,0.3463367); TracktoLCTXY_1__31->SetBinContent(43,0.298986); TracktoLCTXY_1__31->SetBinContent(44,0.3470132); TracktoLCTXY_1__31->SetBinContent(45,0.3071033); TracktoLCTXY_1__31->SetBinContent(46,0.2827515); TracktoLCTXY_1__31->SetBinContent(47,0.2807222); TracktoLCTXY_1__31->SetBinContent(48,0.2678698); TracktoLCTXY_1__31->SetBinContent(49,0.2482531); TracktoLCTXY_1__31->SetBinContent(50,0.2408123); TracktoLCTXY_1__31->SetBinContent(51,0.2360772); TracktoLCTXY_1__31->SetBinContent(52,0.2516353); TracktoLCTXY_1__31->SetBinContent(53,0.2516353); TracktoLCTXY_1__31->SetBinContent(54,0.2117254); TracktoLCTXY_1__31->SetBinContent(55,0.2137547); TracktoLCTXY_1__31->SetBinContent(56,0.2137547); TracktoLCTXY_1__31->SetBinContent(57,0.1866972); TracktoLCTXY_1__31->SetBinContent(58,0.1853443); TracktoLCTXY_1__31->SetBinContent(59,0.1954909); TracktoLCTXY_1__31->SetBinContent(60,0.18805); TracktoLCTXY_1__31->SetBinContent(61,0.1900793); TracktoLCTXY_1__31->SetBinContent(62,0.1657275); TracktoLCTXY_1__31->SetBinContent(63,0.1657275); TracktoLCTXY_1__31->SetBinContent(64,0.1298763); TracktoLCTXY_1__31->SetBinContent(65,0.1697862); TracktoLCTXY_1__31->SetBinContent(66,0.1569338); TracktoLCTXY_1__31->SetBinContent(67,0.1589632); TracktoLCTXY_1__31->SetBinContent(68,0.1569338); TracktoLCTXY_1__31->SetBinContent(69,0.1339349); TracktoLCTXY_1__31->SetBinContent(70,0.1542281); TracktoLCTXY_1__31->SetBinContent(71,0.1447579); TracktoLCTXY_1__31->SetBinContent(72,0.1379935); TracktoLCTXY_1__31->SetBinContent(73,0.1258176); TracktoLCTXY_1__31->SetBinContent(74,0.1244648); TracktoLCTXY_1__31->SetBinContent(75,0.1434051); TracktoLCTXY_1__31->SetBinContent(76,0.1258176); TracktoLCTXY_1__31->SetBinContent(77,0.1136417); TracktoLCTXY_1__31->SetBinContent(78,0.1298763); TracktoLCTXY_1__31->SetBinContent(79,0.1488166); TracktoLCTXY_1__31->SetBinContent(80,0.1055245); TracktoLCTXY_1__31->SetBinContent(81,0.1210826); TracktoLCTXY_1__31->SetBinContent(82,0.1102595); TracktoLCTXY_1__31->SetBinContent(83,0.1258176); TracktoLCTXY_1__31->SetBinContent(84,0.1258176); TracktoLCTXY_1__31->SetBinContent(85,0.1082302); TracktoLCTXY_1__31->SetBinContent(86,0.08793706); TracktoLCTXY_1__31->SetBinContent(87,0.104848); TracktoLCTXY_1__31->SetBinContent(88,0.1095831); TracktoLCTXY_1__31->SetBinContent(89,0.09470145); TracktoLCTXY_1__31->SetBinContent(90,0.0919957); TracktoLCTXY_1__31->SetBinContent(91,0.1149946); TracktoLCTXY_1__31->SetBinContent(92,0.09334858); TracktoLCTXY_1__31->SetBinContent(93,0.09673077); TracktoLCTXY_1__31->SetBinContent(94,0.09334858); TracktoLCTXY_1__31->SetBinContent(95,0.08117267); TracktoLCTXY_1__31->SetBinContent(96,0.08387843); TracktoLCTXY_1__31->SetBinContent(97,0.09470145); TracktoLCTXY_1__31->SetBinContent(98,0.0798198); TracktoLCTXY_1__31->SetBinContent(99,0.08049624); TracktoLCTXY_1__31->SetBinContent(100,0.07170253); TracktoLCTXY_1__31->SetBinContent(101,10.3529); TracktoLCTXY_1__31->SetMinimum(0.02); TracktoLCTXY_1__31->SetMaximum(50); TracktoLCTXY_1__31->SetEntries(768682); TracktoLCTXY_1__31->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff00ff"); TracktoLCTXY_1__31->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); TracktoLCTXY_1__31->SetMarkerColor(ci); TracktoLCTXY_1__31->GetXaxis()->SetTitle("cm"); TracktoLCTXY_1__31->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_1__31->Draw("H"); TLegend *leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTXY_2__32 = new TH1D("TracktoLCTXY_2__32","TracktoLCTXY",100,0,40); TracktoLCTXY_2__32->SetBinContent(0,276.7665); TracktoLCTXY_2__32->SetBinContent(1,11.52093); TracktoLCTXY_2__32->SetBinContent(2,20.6555); TracktoLCTXY_2__32->SetBinContent(3,19.30483); TracktoLCTXY_2__32->SetBinContent(4,14.79244); TracktoLCTXY_2__32->SetBinContent(5,7.642031); TracktoLCTXY_2__32->SetBinContent(6,3.450872); TracktoLCTXY_2__32->SetBinContent(7,2.14178); TracktoLCTXY_2__32->SetBinContent(8,1.598793); TracktoLCTXY_2__32->SetBinContent(9,1.359368); TracktoLCTXY_2__32->SetBinContent(10,1.15174); TracktoLCTXY_2__32->SetBinContent(11,0.9867786); TracktoLCTXY_2__32->SetBinContent(12,0.8112185); TracktoLCTXY_2__32->SetBinContent(13,0.6647371); TracktoLCTXY_2__32->SetBinContent(14,0.5582053); TracktoLCTXY_2__32->SetBinContent(15,0.5402688); TracktoLCTXY_2__32->SetBinContent(16,0.4187898); TracktoLCTXY_2__32->SetBinContent(17,0.4068322); TracktoLCTXY_2__32->SetBinContent(18,0.3807427); TracktoLCTXY_2__32->SetBinContent(19,0.3532945); TracktoLCTXY_2__32->SetBinContent(20,0.3187803); TracktoLCTXY_2__32->SetBinContent(21,0.2924191); TracktoLCTXY_2__32->SetBinContent(22,0.3163344); TracktoLCTXY_2__32->SetBinContent(23,0.2704062); TracktoLCTXY_2__32->SetBinContent(24,0.253285); TracktoLCTXY_2__32->SetBinContent(25,0.2655144); TracktoLCTXY_2__32->SetBinContent(26,0.2396967); TracktoLCTXY_2__32->SetBinContent(27,0.2562744); TracktoLCTXY_2__32->SetBinContent(28,0.2369791); TracktoLCTXY_2__32->SetBinContent(29,0.2421426); TracktoLCTXY_2__32->SetBinContent(30,0.2261085); TracktoLCTXY_2__32->SetBinContent(31,0.2315438); TracktoLCTXY_2__32->SetBinContent(32,0.2125202); TracktoLCTXY_2__32->SetBinContent(33,0.2323591); TracktoLCTXY_2__32->SetBinContent(34,0.2163249); TracktoLCTXY_2__32->SetBinContent(35,0.2212167); TracktoLCTXY_2__32->SetBinContent(36,0.2117049); TracktoLCTXY_2__32->SetBinContent(37,0.2016496); TracktoLCTXY_2__32->SetBinContent(38,0.2242061); TracktoLCTXY_2__32->SetBinContent(39,0.1986602); TracktoLCTXY_2__32->SetBinContent(40,0.1926814); TracktoLCTXY_2__32->SetBinContent(41,0.2019214); TracktoLCTXY_2__32->SetBinContent(42,0.1644178); TracktoLCTXY_2__32->SetBinContent(43,0.2049108); TracktoLCTXY_2__32->SetBinContent(44,0.1877896); TracktoLCTXY_2__32->SetBinContent(45,0.1693096); TracktoLCTXY_2__32->SetBinContent(46,0.1684943); TracktoLCTXY_2__32->SetBinContent(47,0.1695813); TracktoLCTXY_2__32->SetBinContent(48,0.1663202); TracktoLCTXY_2__32->SetBinContent(49,0.1820825); TracktoLCTXY_2__32->SetBinContent(50,0.1565366); TracktoLCTXY_2__32->SetBinContent(51,0.1535472); TracktoLCTXY_2__32->SetBinContent(52,0.1434919); TracktoLCTXY_2__32->SetBinContent(53,0.1342519); TracktoLCTXY_2__32->SetBinContent(54,0.1424048); TracktoLCTXY_2__32->SetBinContent(55,0.1483837); TracktoLCTXY_2__32->SetBinContent(56,0.1429484); TracktoLCTXY_2__32->SetBinContent(57,0.1217507); TracktoLCTXY_2__32->SetBinContent(58,0.1168589); TracktoLCTXY_2__32->SetBinContent(59,0.1236531); TracktoLCTXY_2__32->SetBinContent(60,0.1266425); TracktoLCTXY_2__32->SetBinContent(61,0.1155001); TracktoLCTXY_2__32->SetBinContent(62,0.1260989); TracktoLCTXY_2__32->SetBinContent(63,0.1032707); TracktoLCTXY_2__32->SetBinContent(64,0.1108801); TracktoLCTXY_2__32->SetBinContent(65,0.1008248); TracktoLCTXY_2__32->SetBinContent(66,0.1084342); TracktoLCTXY_2__32->SetBinContent(67,0.09104127); TracktoLCTXY_2__32->SetBinContent(68,0.09729186); TracktoLCTXY_2__32->SetBinContent(69,0.1013683); TracktoLCTXY_2__32->SetBinContent(70,0.1027272); TracktoLCTXY_2__32->SetBinContent(71,0.09022597); TracktoLCTXY_2__32->SetBinContent(72,0.08451891); TracktoLCTXY_2__32->SetBinContent(73,0.07392007); TracktoLCTXY_2__32->SetBinContent(74,0.08261655); TracktoLCTXY_2__32->SetBinContent(75,0.07908361); TracktoLCTXY_2__32->SetBinContent(76,0.06576712); TracktoLCTXY_2__32->SetBinContent(77,0.08696479); TracktoLCTXY_2__32->SetBinContent(78,0.06033183); TracktoLCTXY_2__32->SetBinContent(79,0.07337654); TracktoLCTXY_2__32->SetBinContent(80,0.07337654); TracktoLCTXY_2__32->SetBinContent(81,0.07826831); TracktoLCTXY_2__32->SetBinContent(82,0.07663772); TracktoLCTXY_2__32->SetBinContent(83,0.07364831); TracktoLCTXY_2__32->SetBinContent(84,0.05951653); TracktoLCTXY_2__32->SetBinContent(85,0.05761418); TracktoLCTXY_2__32->SetBinContent(86,0.06603889); TracktoLCTXY_2__32->SetBinContent(87,0.07174595); TracktoLCTXY_2__32->SetBinContent(88,0.063593); TracktoLCTXY_2__32->SetBinContent(89,0.05815771); TracktoLCTXY_2__32->SetBinContent(90,0.06848477); TracktoLCTXY_2__32->SetBinContent(91,0.0690283); TracktoLCTXY_2__32->SetBinContent(92,0.05380947); TracktoLCTXY_2__32->SetBinContent(93,0.06033183); TracktoLCTXY_2__32->SetBinContent(94,0.04946123); TracktoLCTXY_2__32->SetBinContent(95,0.05707065); TracktoLCTXY_2__32->SetBinContent(96,0.05217888); TracktoLCTXY_2__32->SetBinContent(97,0.05870124); TracktoLCTXY_2__32->SetBinContent(98,0.05054829); TracktoLCTXY_2__32->SetBinContent(99,0.06196241); TracktoLCTXY_2__32->SetBinContent(100,0.06033183); TracktoLCTXY_2__32->SetBinContent(101,4.113435); TracktoLCTXY_2__32->SetEntries(1401505); TracktoLCTXY_2__32->SetStats(0); ci = TColor::GetColor("#ff9999"); TracktoLCTXY_2__32->SetLineColor(ci); ci = TColor::GetColor("#ff9999"); TracktoLCTXY_2__32->SetMarkerColor(ci); TracktoLCTXY_2__32->GetXaxis()->SetTitle("cm"); TracktoLCTXY_2__32->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_2__32->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTXY_3__33 = new TH1D("TracktoLCTXY_3__33","TracktoLCTXY",100,0,40); TracktoLCTXY_3__33->SetBinContent(0,88.51608); TracktoLCTXY_3__33->SetBinContent(1,5.09867); TracktoLCTXY_3__33->SetBinContent(2,12.92636); TracktoLCTXY_3__33->SetBinContent(3,15.66491); TracktoLCTXY_3__33->SetBinContent(4,14.76753); TracktoLCTXY_3__33->SetBinContent(5,12.20265); TracktoLCTXY_3__33->SetBinContent(6,8.960495); TracktoLCTXY_3__33->SetBinContent(7,6.632291); TracktoLCTXY_3__33->SetBinContent(8,4.920438); TracktoLCTXY_3__33->SetBinContent(9,3.70266); TracktoLCTXY_3__33->SetBinContent(10,2.78); TracktoLCTXY_3__33->SetBinContent(11,2.157847); TracktoLCTXY_3__33->SetBinContent(12,1.640975); TracktoLCTXY_3__33->SetBinContent(13,1.288242); TracktoLCTXY_3__33->SetBinContent(14,1.066903); TracktoLCTXY_3__33->SetBinContent(15,0.7867064); TracktoLCTXY_3__33->SetBinContent(16,0.6151066); TracktoLCTXY_3__33->SetBinContent(17,0.5073386); TracktoLCTXY_3__33->SetBinContent(18,0.4505531); TracktoLCTXY_3__33->SetBinContent(19,0.3394692); TracktoLCTXY_3__33->SetBinContent(20,0.2731504); TracktoLCTXY_3__33->SetBinContent(21,0.2362606); TracktoLCTXY_3__33->SetBinContent(22,0.1749158); TracktoLCTXY_3__33->SetBinContent(23,0.1649679); TracktoLCTXY_3__33->SetBinContent(24,0.1463158); TracktoLCTXY_3__33->SetBinContent(25,0.1206173); TracktoLCTXY_3__33->SetBinContent(26,0.1011361); TracktoLCTXY_3__33->SetBinContent(27,0.1081825); TracktoLCTXY_3__33->SetBinContent(28,0.07792455); TracktoLCTXY_3__33->SetBinContent(29,0.06963471); TracktoLCTXY_3__33->SetBinContent(30,0.07419412); TracktoLCTXY_3__33->SetBinContent(31,0.05968689); TracktoLCTXY_3__33->SetBinContent(32,0.053884); TracktoLCTXY_3__33->SetBinContent(33,0.04725212); TracktoLCTXY_3__33->SetBinContent(34,0.05802892); TracktoLCTXY_3__33->SetBinContent(35,0.053884); TracktoLCTXY_3__33->SetBinContent(36,0.04227822); TracktoLCTXY_3__33->SetBinContent(37,0.04062025); TracktoLCTXY_3__33->SetBinContent(38,0.0431072); TracktoLCTXY_3__33->SetBinContent(39,0.03730431); TracktoLCTXY_3__33->SetBinContent(40,0.03730431); TracktoLCTXY_3__33->SetBinContent(41,0.03481735); TracktoLCTXY_3__33->SetBinContent(42,0.03979126); TracktoLCTXY_3__33->SetBinContent(43,0.02652751); TracktoLCTXY_3__33->SetBinContent(44,0.02901446); TracktoLCTXY_3__33->SetBinContent(45,0.03730431); TracktoLCTXY_3__33->SetBinContent(46,0.0323304); TracktoLCTXY_3__33->SetBinContent(47,0.03357388); TracktoLCTXY_3__33->SetBinContent(48,0.03896228); TracktoLCTXY_3__33->SetBinContent(49,0.02569852); TracktoLCTXY_3__33->SetBinContent(50,0.02404055); TracktoLCTXY_3__33->SetBinContent(51,0.03315938); TracktoLCTXY_3__33->SetBinContent(52,0.01906665); TracktoLCTXY_3__33->SetBinContent(53,0.02445505); TracktoLCTXY_3__33->SetBinContent(54,0.02569852); TracktoLCTXY_3__33->SetBinContent(55,0.03067243); TracktoLCTXY_3__33->SetBinContent(56,0.02818548); TracktoLCTXY_3__33->SetBinContent(57,0.0323304); TracktoLCTXY_3__33->SetBinContent(58,0.02238258); TracktoLCTXY_3__33->SetBinContent(59,0.03025794); TracktoLCTXY_3__33->SetBinContent(60,0.02735649); TracktoLCTXY_3__33->SetBinContent(61,0.03150142); TracktoLCTXY_3__33->SetBinContent(62,0.01823766); TracktoLCTXY_3__33->SetBinContent(63,0.02777098); TracktoLCTXY_3__33->SetBinContent(64,0.02238258); TracktoLCTXY_3__33->SetBinContent(65,0.02901446); TracktoLCTXY_3__33->SetBinContent(66,0.02569852); TracktoLCTXY_3__33->SetBinContent(67,0.02238258); TracktoLCTXY_3__33->SetBinContent(68,0.03647532); TracktoLCTXY_3__33->SetBinContent(69,0.02072462); TracktoLCTXY_3__33->SetBinContent(70,0.01989563); TracktoLCTXY_3__33->SetBinContent(71,0.03067243); TracktoLCTXY_3__33->SetBinContent(72,0.02486954); TracktoLCTXY_3__33->SetBinContent(73,0.01906665); TracktoLCTXY_3__33->SetBinContent(74,0.02238258); TracktoLCTXY_3__33->SetBinContent(75,0.02735649); TracktoLCTXY_3__33->SetBinContent(76,0.02486954); TracktoLCTXY_3__33->SetBinContent(77,0.02404055); TracktoLCTXY_3__33->SetBinContent(78,0.02072462); TracktoLCTXY_3__33->SetBinContent(79,0.02238258); TracktoLCTXY_3__33->SetBinContent(80,0.02569852); TracktoLCTXY_3__33->SetBinContent(81,0.01575071); TracktoLCTXY_3__33->SetBinContent(82,0.02072462); TracktoLCTXY_3__33->SetBinContent(83,0.01989563); TracktoLCTXY_3__33->SetBinContent(84,0.02321157); TracktoLCTXY_3__33->SetBinContent(85,0.02238258); TracktoLCTXY_3__33->SetBinContent(86,0.0215536); TracktoLCTXY_3__33->SetBinContent(87,0.02321157); TracktoLCTXY_3__33->SetBinContent(88,0.01823766); TracktoLCTXY_3__33->SetBinContent(89,0.02569852); TracktoLCTXY_3__33->SetBinContent(90,0.02652751); TracktoLCTXY_3__33->SetBinContent(91,0.01906665); TracktoLCTXY_3__33->SetBinContent(92,0.01740868); TracktoLCTXY_3__33->SetBinContent(93,0.01823766); TracktoLCTXY_3__33->SetBinContent(94,0.01989563); TracktoLCTXY_3__33->SetBinContent(95,0.01409274); TracktoLCTXY_3__33->SetBinContent(96,0.01699418); TracktoLCTXY_3__33->SetBinContent(97,0.01823766); TracktoLCTXY_3__33->SetBinContent(98,0.01492172); TracktoLCTXY_3__33->SetBinContent(99,0.0107768); TracktoLCTXY_3__33->SetBinContent(100,0.01160578); TracktoLCTXY_3__33->SetBinContent(101,1.28161); TracktoLCTXY_3__33->SetEntries(457904); TracktoLCTXY_3__33->SetStats(0); TracktoLCTXY_3__33->GetXaxis()->SetTitle("cm"); TracktoLCTXY_3__33->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_3__33->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTXY_4__34 = new TH1D("TracktoLCTXY_4__34","TracktoLCTXY",100,0,40); TracktoLCTXY_4__34->SetBinContent(0,203.5372); TracktoLCTXY_4__34->SetBinContent(1,8.025974); TracktoLCTXY_4__34->SetBinContent(2,17.74727); TracktoLCTXY_4__34->SetBinContent(3,17.46572); TracktoLCTXY_4__34->SetBinContent(4,13.20721); TracktoLCTXY_4__34->SetBinContent(5,9.513171); TracktoLCTXY_4__34->SetBinContent(6,7.11212); TracktoLCTXY_4__34->SetBinContent(7,5.388818); TracktoLCTXY_4__34->SetBinContent(8,4.156971); TracktoLCTXY_4__34->SetBinContent(9,3.201082); TracktoLCTXY_4__34->SetBinContent(10,2.504091); TracktoLCTXY_4__34->SetBinContent(11,1.918193); TracktoLCTXY_4__34->SetBinContent(12,1.501936); TracktoLCTXY_4__34->SetBinContent(13,1.159923); TracktoLCTXY_4__34->SetBinContent(14,0.9238168); TracktoLCTXY_4__34->SetBinContent(15,0.746396); TracktoLCTXY_4__34->SetBinContent(16,0.6267051); TracktoLCTXY_4__34->SetBinContent(17,0.4977338); TracktoLCTXY_4__34->SetBinContent(18,0.4103881); TracktoLCTXY_4__34->SetBinContent(19,0.356616); TracktoLCTXY_4__34->SetBinContent(20,0.2935633); TracktoLCTXY_4__34->SetBinContent(21,0.2363792); TracktoLCTXY_4__34->SetBinContent(22,0.1962548); TracktoLCTXY_4__34->SetBinContent(23,0.1824705); TracktoLCTXY_4__34->SetBinContent(24,0.1604977); TracktoLCTXY_4__34->SetBinContent(25,0.1303361); TracktoLCTXY_4__34->SetBinContent(26,0.112594); TracktoLCTXY_4__34->SetBinContent(27,0.0999016); TracktoLCTXY_4__34->SetBinContent(28,0.1044054); TracktoLCTXY_4__34->SetBinContent(29,0.08106769); TracktoLCTXY_4__34->SetBinContent(30,0.0682388); TracktoLCTXY_4__34->SetBinContent(31,0.07219665); TracktoLCTXY_4__34->SetBinContent(32,0.05813946); TracktoLCTXY_4__34->SetBinContent(33,0.05704763); TracktoLCTXY_4__34->SetBinContent(34,0.05418161); TracktoLCTXY_4__34->SetBinContent(35,0.04940489); TracktoLCTXY_4__34->SetBinContent(36,0.04708477); TracktoLCTXY_4__34->SetBinContent(37,0.04544704); TracktoLCTXY_4__34->SetBinContent(38,0.03794077); TracktoLCTXY_4__34->SetBinContent(39,0.03712191); TracktoLCTXY_4__34->SetBinContent(40,0.03452883); TracktoLCTXY_4__34->SetBinContent(41,0.03643952); TracktoLCTXY_4__34->SetBinContent(42,0.03630304); TracktoLCTXY_4__34->SetBinContent(43,0.03753134); TracktoLCTXY_4__34->SetBinContent(44,0.03384644); TracktoLCTXY_4__34->SetBinContent(45,0.03152632); TracktoLCTXY_4__34->SetBinContent(46,0.02879677); TracktoLCTXY_4__34->SetBinContent(47,0.02320119); TracktoLCTXY_4__34->SetBinContent(48,0.02947916); TracktoLCTXY_4__34->SetBinContent(49,0.02292824); TracktoLCTXY_4__34->SetBinContent(50,0.02674961); TracktoLCTXY_4__34->SetBinContent(51,0.02565779); TracktoLCTXY_4__34->SetBinContent(52,0.02729552); TracktoLCTXY_4__34->SetBinContent(53,0.02292824); TracktoLCTXY_4__34->SetBinContent(54,0.02388358); TracktoLCTXY_4__34->SetBinContent(55,0.02797791); TracktoLCTXY_4__34->SetBinContent(56,0.02347415); TracktoLCTXY_4__34->SetBinContent(57,0.02088107); TracktoLCTXY_4__34->SetBinContent(58,0.02156346); TracktoLCTXY_4__34->SetBinContent(59,0.02320119); TracktoLCTXY_4__34->SetBinContent(60,0.01774209); TracktoLCTXY_4__34->SetBinContent(61,0.01965277); TracktoLCTXY_4__34->SetBinContent(62,0.02306471); TracktoLCTXY_4__34->SetBinContent(63,0.02674961); TracktoLCTXY_4__34->SetBinContent(64,0.01856095); TracktoLCTXY_4__34->SetBinContent(65,0.02402006); TracktoLCTXY_4__34->SetBinContent(66,0.02674961); TracktoLCTXY_4__34->SetBinContent(67,0.02019868); TracktoLCTXY_4__34->SetBinContent(68,0.02674961); TracktoLCTXY_4__34->SetBinContent(69,0.02538483); TracktoLCTXY_4__34->SetBinContent(70,0.01910686); TracktoLCTXY_4__34->SetBinContent(71,0.02156346); TracktoLCTXY_4__34->SetBinContent(72,0.02047164); TracktoLCTXY_4__34->SetBinContent(73,0.02456597); TracktoLCTXY_4__34->SetBinContent(74,0.02047164); TracktoLCTXY_4__34->SetBinContent(75,0.0225188); TracktoLCTXY_4__34->SetBinContent(76,0.02033516); TracktoLCTXY_4__34->SetBinContent(77,0.01856095); TracktoLCTXY_4__34->SetBinContent(78,0.02115403); TracktoLCTXY_4__34->SetBinContent(79,0.02224585); TracktoLCTXY_4__34->SetBinContent(80,0.02320119); TracktoLCTXY_4__34->SetBinContent(81,0.01555845); TracktoLCTXY_4__34->SetBinContent(82,0.01992573); TracktoLCTXY_4__34->SetBinContent(83,0.01992573); TracktoLCTXY_4__34->SetBinContent(84,0.02210937); TracktoLCTXY_4__34->SetBinContent(85,0.01473958); TracktoLCTXY_4__34->SetBinContent(86,0.01992573); TracktoLCTXY_4__34->SetBinContent(87,0.02402006); TracktoLCTXY_4__34->SetBinContent(88,0.02142698); TracktoLCTXY_4__34->SetBinContent(89,0.02142698); TracktoLCTXY_4__34->SetBinContent(90,0.01473958); TracktoLCTXY_4__34->SetBinContent(91,0.01856095); TracktoLCTXY_4__34->SetBinContent(92,0.01965277); TracktoLCTXY_4__34->SetBinContent(93,0.01992573); TracktoLCTXY_4__34->SetBinContent(94,0.02074459); TracktoLCTXY_4__34->SetBinContent(95,0.01883391); TracktoLCTXY_4__34->SetBinContent(96,0.01692322); TracktoLCTXY_4__34->SetBinContent(97,0.02033516); TracktoLCTXY_4__34->SetBinContent(98,0.02047164); TracktoLCTXY_4__34->SetBinContent(99,0.0170597); TracktoLCTXY_4__34->SetBinContent(100,0.02402006); TracktoLCTXY_4__34->SetBinContent(101,2.459599); TracktoLCTXY_4__34->SetEntries(2242103); TracktoLCTXY_4__34->SetStats(0); ci = TColor::GetColor("#ff0000"); TracktoLCTXY_4__34->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); TracktoLCTXY_4__34->SetMarkerColor(ci); TracktoLCTXY_4__34->GetXaxis()->SetTitle("cm"); TracktoLCTXY_4__34->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_4__34->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTXY_5__35 = new TH1D("TracktoLCTXY_5__35","TracktoLCTXY",100,0,40); TracktoLCTXY_5__35->SetBinContent(0,159.1284); TracktoLCTXY_5__35->SetBinContent(1,6.015494); TracktoLCTXY_5__35->SetBinContent(2,14.56136); TracktoLCTXY_5__35->SetBinContent(3,16.27146); TracktoLCTXY_5__35->SetBinContent(4,13.98079); TracktoLCTXY_5__35->SetBinContent(5,10.67292); TracktoLCTXY_5__35->SetBinContent(6,8.289123); TracktoLCTXY_5__35->SetBinContent(7,6.407344); TracktoLCTXY_5__35->SetBinContent(8,4.981097); TracktoLCTXY_5__35->SetBinContent(9,3.819647); TracktoLCTXY_5__35->SetBinContent(10,2.972575); TracktoLCTXY_5__35->SetBinContent(11,2.225132); TracktoLCTXY_5__35->SetBinContent(12,1.795631); TracktoLCTXY_5__35->SetBinContent(13,1.365355); TracktoLCTXY_5__35->SetBinContent(14,1.062442); TracktoLCTXY_5__35->SetBinContent(15,0.8275488); TracktoLCTXY_5__35->SetBinContent(16,0.6769445); TracktoLCTXY_5__35->SetBinContent(17,0.5399752); TracktoLCTXY_5__35->SetBinContent(18,0.429811); TracktoLCTXY_5__35->SetBinContent(19,0.3672141); TracktoLCTXY_5__35->SetBinContent(20,0.2846297); TracktoLCTXY_5__35->SetBinContent(21,0.2519368); TracktoLCTXY_5__35->SetBinContent(22,0.194608); TracktoLCTXY_5__35->SetBinContent(23,0.1871707); TracktoLCTXY_5__35->SetBinContent(24,0.1492098); TracktoLCTXY_5__35->SetBinContent(25,0.1414627); TracktoLCTXY_5__35->SetBinContent(26,0.1208553); TracktoLCTXY_5__35->SetBinContent(27,0.09978308); TracktoLCTXY_5__35->SetBinContent(28,0.0929656); TracktoLCTXY_5__35->SetBinContent(29,0.07592191); TracktoLCTXY_5__35->SetBinContent(30,0.06941432); TracktoLCTXY_5__35->SetBinContent(31,0.05934304); TracktoLCTXY_5__35->SetBinContent(32,0.05376511); TracktoLCTXY_5__35->SetBinContent(33,0.05113108); TracktoLCTXY_5__35->SetBinContent(34,0.04307406); TracktoLCTXY_5__35->SetBinContent(35,0.03749613); TracktoLCTXY_5__35->SetBinContent(36,0.03129842); TracktoLCTXY_5__35->SetBinContent(37,0.03222808); TracktoLCTXY_5__35->SetBinContent(38,0.02479083); TracktoLCTXY_5__35->SetBinContent(39,0.02200186); TracktoLCTXY_5__35->SetBinContent(40,0.02355129); TracktoLCTXY_5__35->SetBinContent(41,0.0210722); TracktoLCTXY_5__35->SetBinContent(42,0.01983266); TracktoLCTXY_5__35->SetBinContent(43,0.01673381); TracktoLCTXY_5__35->SetBinContent(44,0.02076232); TracktoLCTXY_5__35->SetBinContent(45,0.02076232); TracktoLCTXY_5__35->SetBinContent(46,0.02076232); TracktoLCTXY_5__35->SetBinContent(47,0.02076232); TracktoLCTXY_5__35->SetBinContent(48,0.01611404); TracktoLCTXY_5__35->SetBinContent(49,0.01518438); TracktoLCTXY_5__35->SetBinContent(50,0.01239541); TracktoLCTXY_5__35->SetBinContent(51,0.01332507); TracktoLCTXY_5__35->SetBinContent(52,0.009606446); TracktoLCTXY_5__35->SetBinContent(53,0.01208553); TracktoLCTXY_5__35->SetBinContent(54,0.01673381); TracktoLCTXY_5__35->SetBinContent(55,0.0127053); TracktoLCTXY_5__35->SetBinContent(56,0.01409978); TracktoLCTXY_5__35->SetBinContent(57,0.009606446); TracktoLCTXY_5__35->SetBinContent(58,0.01022622); TracktoLCTXY_5__35->SetBinContent(59,0.01440967); TracktoLCTXY_5__35->SetBinContent(60,0.01022622); TracktoLCTXY_5__35->SetBinContent(61,0.01084599); TracktoLCTXY_5__35->SetBinContent(62,0.01115587); TracktoLCTXY_5__35->SetBinContent(63,0.01146576); TracktoLCTXY_5__35->SetBinContent(64,0.009606446); TracktoLCTXY_5__35->SetBinContent(65,0.01239541); TracktoLCTXY_5__35->SetBinContent(66,0.01363496); TracktoLCTXY_5__35->SetBinContent(67,0.009141618); TracktoLCTXY_5__35->SetBinContent(68,0.008986675); TracktoLCTXY_5__35->SetBinContent(69,0.0148745); TracktoLCTXY_5__35->SetBinContent(70,0.007437248); TracktoLCTXY_5__35->SetBinContent(71,0.008211962); TracktoLCTXY_5__35->SetBinContent(72,0.0105361); TracktoLCTXY_5__35->SetBinContent(73,0.009606446); TracktoLCTXY_5__35->SetBinContent(74,0.01286024); TracktoLCTXY_5__35->SetBinContent(75,0.01022622); TracktoLCTXY_5__35->SetBinContent(76,0.01146576); TracktoLCTXY_5__35->SetBinContent(77,0.01146576); TracktoLCTXY_5__35->SetBinContent(78,0.006507592); TracktoLCTXY_5__35->SetBinContent(79,0.006197707); TracktoLCTXY_5__35->SetBinContent(80,0.01146576); TracktoLCTXY_5__35->SetBinContent(81,0.009916331); TracktoLCTXY_5__35->SetBinContent(82,0.009916331); TracktoLCTXY_5__35->SetBinContent(83,0.006507592); TracktoLCTXY_5__35->SetBinContent(84,0.009916331); TracktoLCTXY_5__35->SetBinContent(85,0.01146576); TracktoLCTXY_5__35->SetBinContent(86,0.008366904); TracktoLCTXY_5__35->SetBinContent(87,0.006507592); TracktoLCTXY_5__35->SetBinContent(88,0.00929656); TracktoLCTXY_5__35->SetBinContent(89,0.006817478); TracktoLCTXY_5__35->SetBinContent(90,0.008366904); TracktoLCTXY_5__35->SetBinContent(91,0.008986675); TracktoLCTXY_5__35->SetBinContent(92,0.01022622); TracktoLCTXY_5__35->SetBinContent(93,0.007127363); TracktoLCTXY_5__35->SetBinContent(94,0.0127053); TracktoLCTXY_5__35->SetBinContent(95,0.007747134); TracktoLCTXY_5__35->SetBinContent(96,0.00867679); TracktoLCTXY_5__35->SetBinContent(97,0.008366904); TracktoLCTXY_5__35->SetBinContent(98,0.00867679); TracktoLCTXY_5__35->SetBinContent(99,0.008366904); TracktoLCTXY_5__35->SetBinContent(100,0.008057019); TracktoLCTXY_5__35->SetBinContent(101,0.8879764); TracktoLCTXY_5__35->SetEntries(1678146); TracktoLCTXY_5__35->SetStats(0); ci = TColor::GetColor("#00ff00"); TracktoLCTXY_5__35->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); TracktoLCTXY_5__35->SetMarkerColor(ci); TracktoLCTXY_5__35->GetXaxis()->SetTitle("cm"); TracktoLCTXY_5__35->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_5__35->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTXY_6__36 = new TH1D("TracktoLCTXY_6__36","TracktoLCTXY",100,0,40); TracktoLCTXY_6__36->SetBinContent(0,132.4689); TracktoLCTXY_6__36->SetBinContent(1,5.09816); TracktoLCTXY_6__36->SetBinContent(2,12.67502); TracktoLCTXY_6__36->SetBinContent(3,15.20123); TracktoLCTXY_6__36->SetBinContent(4,13.83961); TracktoLCTXY_6__36->SetBinContent(5,11.47257); TracktoLCTXY_6__36->SetBinContent(6,9.031551); TracktoLCTXY_6__36->SetBinContent(7,7.111131); TracktoLCTXY_6__36->SetBinContent(8,5.534443); TracktoLCTXY_6__36->SetBinContent(9,4.370377); TracktoLCTXY_6__36->SetBinContent(10,3.271341); TracktoLCTXY_6__36->SetBinContent(11,2.471691); TracktoLCTXY_6__36->SetBinContent(12,1.930412); TracktoLCTXY_6__36->SetBinContent(13,1.454689); TracktoLCTXY_6__36->SetBinContent(14,1.177213); TracktoLCTXY_6__36->SetBinContent(15,0.8992112); TracktoLCTXY_6__36->SetBinContent(16,0.7062226); TracktoLCTXY_6__36->SetBinContent(17,0.5475898); TracktoLCTXY_6__36->SetBinContent(18,0.4699387); TracktoLCTXY_6__36->SetBinContent(19,0.3761613); TracktoLCTXY_6__36->SetBinContent(20,0.2964067); TracktoLCTXY_6__36->SetBinContent(21,0.2587204); TracktoLCTXY_6__36->SetBinContent(22,0.2134969); TracktoLCTXY_6__36->SetBinContent(23,0.1787905); TracktoLCTXY_6__36->SetBinContent(24,0.1412796); TracktoLCTXY_6__36->SetBinContent(25,0.1202454); TracktoLCTXY_6__36->SetBinContent(26,0.107099); TracktoLCTXY_6__36->SetBinContent(27,0.08185802); TracktoLCTXY_6__36->SetBinContent(28,0.07467134); TracktoLCTXY_6__36->SetBinContent(29,0.06625767); TracktoLCTXY_6__36->SetBinContent(30,0.05135846); TracktoLCTXY_6__36->SetBinContent(31,0.04802805); TracktoLCTXY_6__36->SetBinContent(32,0.0462752); TracktoLCTXY_6__36->SetBinContent(33,0.04417178); TracktoLCTXY_6__36->SetBinContent(34,0.03418054); TracktoLCTXY_6__36->SetBinContent(35,0.0334794); TracktoLCTXY_6__36->SetBinContent(36,0.03207713); TracktoLCTXY_6__36->SetBinContent(37,0.02489045); TracktoLCTXY_6__36->SetBinContent(38,0.02804557); TracktoLCTXY_6__36->SetBinContent(39,0.02453988); TracktoLCTXY_6__36->SetBinContent(40,0.02068361); TracktoLCTXY_6__36->SetBinContent(41,0.0173532); TracktoLCTXY_6__36->SetBinContent(42,0.01682734); TracktoLCTXY_6__36->SetBinContent(43,0.01542507); TracktoLCTXY_6__36->SetBinContent(44,0.0115688); TracktoLCTXY_6__36->SetBinContent(45,0.01226994); TracktoLCTXY_6__36->SetBinContent(46,0.01262051); TracktoLCTXY_6__36->SetBinContent(47,0.01332165); TracktoLCTXY_6__36->SetBinContent(48,0.01226994); TracktoLCTXY_6__36->SetBinContent(49,0.01191937); TracktoLCTXY_6__36->SetBinContent(50,0.01191937); TracktoLCTXY_6__36->SetBinContent(51,0.008764242); TracktoLCTXY_6__36->SetBinContent(52,0.008764242); TracktoLCTXY_6__36->SetBinContent(53,0.01051709); TracktoLCTXY_6__36->SetBinContent(54,0.009465381); TracktoLCTXY_6__36->SetBinContent(55,0.007011394); TracktoLCTXY_6__36->SetBinContent(56,0.01367222); TracktoLCTXY_6__36->SetBinContent(57,0.007011394); TracktoLCTXY_6__36->SetBinContent(58,0.006310254); TracktoLCTXY_6__36->SetBinContent(59,0.008413672); TracktoLCTXY_6__36->SetBinContent(60,0.009114812); TracktoLCTXY_6__36->SetBinContent(61,0.008764242); TracktoLCTXY_6__36->SetBinContent(62,0.007186678); TracktoLCTXY_6__36->SetBinContent(63,0.005258545); TracktoLCTXY_6__36->SetBinContent(64,0.003856266); TracktoLCTXY_6__36->SetBinContent(65,0.005959684); TracktoLCTXY_6__36->SetBinContent(66,0.007361963); TracktoLCTXY_6__36->SetBinContent(67,0.007361963); TracktoLCTXY_6__36->SetBinContent(68,0.002103418); TracktoLCTXY_6__36->SetBinContent(69,0.004557406); TracktoLCTXY_6__36->SetBinContent(70,0.005609115); TracktoLCTXY_6__36->SetBinContent(71,0.003505697); TracktoLCTXY_6__36->SetBinContent(72,0.0057844); TracktoLCTXY_6__36->SetBinContent(73,0.005959684); TracktoLCTXY_6__36->SetBinContent(74,0.006310254); TracktoLCTXY_6__36->SetBinContent(75,0.005258545); TracktoLCTXY_6__36->SetBinContent(76,0.004907975); TracktoLCTXY_6__36->SetBinContent(77,0.007361963); TracktoLCTXY_6__36->SetBinContent(78,0.006660824); TracktoLCTXY_6__36->SetBinContent(79,0.005609115); TracktoLCTXY_6__36->SetBinContent(80,0.005609115); TracktoLCTXY_6__36->SetBinContent(81,0.005609115); TracktoLCTXY_6__36->SetBinContent(82,0.00543383); TracktoLCTXY_6__36->SetBinContent(83,0.002453988); TracktoLCTXY_6__36->SetBinContent(84,0.004732691); TracktoLCTXY_6__36->SetBinContent(85,0.004907975); TracktoLCTXY_6__36->SetBinContent(86,0.005258545); TracktoLCTXY_6__36->SetBinContent(87,0.003505697); TracktoLCTXY_6__36->SetBinContent(88,0.004557406); TracktoLCTXY_6__36->SetBinContent(89,0.005609115); TracktoLCTXY_6__36->SetBinContent(90,0.005959684); TracktoLCTXY_6__36->SetBinContent(91,0.005959684); TracktoLCTXY_6__36->SetBinContent(92,0.006310254); TracktoLCTXY_6__36->SetBinContent(93,0.002804557); TracktoLCTXY_6__36->SetBinContent(94,0.006660824); TracktoLCTXY_6__36->SetBinContent(95,0.003505697); TracktoLCTXY_6__36->SetBinContent(96,0.006660824); TracktoLCTXY_6__36->SetBinContent(97,0.003155127); TracktoLCTXY_6__36->SetBinContent(98,0.006310254); TracktoLCTXY_6__36->SetBinContent(99,0.003505697); TracktoLCTXY_6__36->SetBinContent(100,0.002453988); TracktoLCTXY_6__36->SetBinContent(101,0.3968449); TracktoLCTXY_6__36->SetEntries(1328499); TracktoLCTXY_6__36->SetStats(0); ci = TColor::GetColor("#0000ff"); TracktoLCTXY_6__36->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); TracktoLCTXY_6__36->SetMarkerColor(ci); TracktoLCTXY_6__36->GetXaxis()->SetTitle("cm"); TracktoLCTXY_6__36->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTXY_6__36->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTXY_1","ME11A: mean:4.9cm;RMS:7.8cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_2","ME11B: mean:3.4cm;RMS:6.4cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_3","ME12+13: mean:2.5cm;RMS:3.6cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_4","ME2: mean:2.3cm;RMS:3.6cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_5","ME3: mean:2.3cm;RMS:2.8cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTXY_6","ME4: mean:2.3cm;RMS:2.4cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TPaveText *pt = new TPaveText(0.01,0.945,0.3364516,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(1); pt->SetFillColor(0); TText *AText = pt->AddText("TracktoLCTXY"); pt->Draw(); TracktoLCTXY->Modified(); TracktoLCTXY->cd(); TracktoLCTXY->SetSelected(TracktoLCTXY); }
void DarkSusy_mH_125_mGammaD_2000_cT_1000_LHE_nD_Eta() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:18:59 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(-7.125,-0.006704923,5.375,0.04487141); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_nD_1_Eta_dummy40 = new TH1F("h_nD_1_Eta_dummy40","h_nD_1_Eta_dummy",100,-5,5); h_nD_1_Eta_dummy40->SetMaximum(0.04126107); h_nD_1_Eta_dummy40->SetLineStyle(0); h_nD_1_Eta_dummy40->SetMarkerStyle(20); h_nD_1_Eta_dummy40->GetXaxis()->SetTitle("#eta of n_{D}"); h_nD_1_Eta_dummy40->GetXaxis()->SetLabelFont(42); h_nD_1_Eta_dummy40->GetXaxis()->SetLabelOffset(0.007); h_nD_1_Eta_dummy40->GetXaxis()->SetTitleSize(0.06); h_nD_1_Eta_dummy40->GetXaxis()->SetTitleOffset(0.95); h_nD_1_Eta_dummy40->GetXaxis()->SetTitleFont(42); h_nD_1_Eta_dummy40->GetYaxis()->SetTitle("Fraction of events / 0.1"); h_nD_1_Eta_dummy40->GetYaxis()->SetLabelFont(42); h_nD_1_Eta_dummy40->GetYaxis()->SetLabelOffset(0.007); h_nD_1_Eta_dummy40->GetYaxis()->SetTitleSize(0.06); h_nD_1_Eta_dummy40->GetYaxis()->SetTitleOffset(1.35); h_nD_1_Eta_dummy40->GetYaxis()->SetTitleFont(42); h_nD_1_Eta_dummy40->GetZaxis()->SetLabelFont(42); h_nD_1_Eta_dummy40->GetZaxis()->SetLabelOffset(0.007); h_nD_1_Eta_dummy40->GetZaxis()->SetTitleSize(0.06); h_nD_1_Eta_dummy40->GetZaxis()->SetTitleFont(42); h_nD_1_Eta_dummy40->Draw(""); TH1F *h_nD_1_Eta41 = new TH1F("h_nD_1_Eta41","h_nD_1_Eta",100,-5,5); h_nD_1_Eta41->SetBinContent(0,0.0003126407); h_nD_1_Eta41->SetBinContent(1,2.501126e-05); h_nD_1_Eta41->SetBinContent(2,7.503376e-05); h_nD_1_Eta41->SetBinContent(3,0.0001125506); h_nD_1_Eta41->SetBinContent(4,0.0001875844); h_nD_1_Eta41->SetBinContent(5,0.0003251463); h_nD_1_Eta41->SetBinContent(6,0.0002376069); h_nD_1_Eta41->SetBinContent(7,0.0003251463); h_nD_1_Eta41->SetBinContent(8,0.0006002701); h_nD_1_Eta41->SetBinContent(9,0.0006753039); h_nD_1_Eta41->SetBinContent(10,0.0007128208); h_nD_1_Eta41->SetBinContent(11,0.001012956); h_nD_1_Eta41->SetBinContent(12,0.001250563); h_nD_1_Eta41->SetBinContent(13,0.001525687); h_nD_1_Eta41->SetBinContent(14,0.002038417); h_nD_1_Eta41->SetBinContent(15,0.002588665); h_nD_1_Eta41->SetBinContent(16,0.002876294); h_nD_1_Eta41->SetBinContent(17,0.003339003); h_nD_1_Eta41->SetBinContent(18,0.00337652); h_nD_1_Eta41->SetBinContent(19,0.004477015); h_nD_1_Eta41->SetBinContent(20,0.004789656); h_nD_1_Eta41->SetBinContent(21,0.005327397); h_nD_1_Eta41->SetBinContent(22,0.006277825); h_nD_1_Eta41->SetBinContent(23,0.006928117); h_nD_1_Eta41->SetBinContent(24,0.00766595); h_nD_1_Eta41->SetBinContent(25,0.008403782); h_nD_1_Eta41->SetBinContent(26,0.00946676); h_nD_1_Eta41->SetBinContent(27,0.0104422); h_nD_1_Eta41->SetBinContent(28,0.01049222); h_nD_1_Eta41->SetBinContent(29,0.01164274); h_nD_1_Eta41->SetBinContent(30,0.01228053); h_nD_1_Eta41->SetBinContent(31,0.01398129); h_nD_1_Eta41->SetBinContent(32,0.01323095); h_nD_1_Eta41->SetBinContent(33,0.01480666); h_nD_1_Eta41->SetBinContent(34,0.01516933); h_nD_1_Eta41->SetBinContent(35,0.01584463); h_nD_1_Eta41->SetBinContent(36,0.01779551); h_nD_1_Eta41->SetBinContent(37,0.0177705); h_nD_1_Eta41->SetBinContent(38,0.01783302); h_nD_1_Eta41->SetBinContent(39,0.01923366); h_nD_1_Eta41->SetBinContent(40,0.01908359); h_nD_1_Eta41->SetBinContent(41,0.02024661); h_nD_1_Eta41->SetBinContent(42,0.0204342); h_nD_1_Eta41->SetBinContent(43,0.02080936); h_nD_1_Eta41->SetBinContent(44,0.02142214); h_nD_1_Eta41->SetBinContent(45,0.02122205); h_nD_1_Eta41->SetBinContent(46,0.0220099); h_nD_1_Eta41->SetBinContent(47,0.02263519); h_nD_1_Eta41->SetBinContent(48,0.02238507); h_nD_1_Eta41->SetBinContent(49,0.02150968); h_nD_1_Eta41->SetBinContent(50,0.02217248); h_nD_1_Eta41->SetBinContent(51,0.02292282); h_nD_1_Eta41->SetBinContent(52,0.02263519); h_nD_1_Eta41->SetBinContent(53,0.02140963); h_nD_1_Eta41->SetBinContent(54,0.02134711); h_nD_1_Eta41->SetBinContent(55,0.02228503); h_nD_1_Eta41->SetBinContent(56,0.02170977); h_nD_1_Eta41->SetBinContent(57,0.02117203); h_nD_1_Eta41->SetBinContent(58,0.01983393); h_nD_1_Eta41->SetBinContent(59,0.02105948); h_nD_1_Eta41->SetBinContent(60,0.02004652); h_nD_1_Eta41->SetBinContent(61,0.0193337); h_nD_1_Eta41->SetBinContent(62,0.01818318); h_nD_1_Eta41->SetBinContent(63,0.01834576); h_nD_1_Eta41->SetBinContent(64,0.01798309); h_nD_1_Eta41->SetBinContent(65,0.01704517); h_nD_1_Eta41->SetBinContent(66,0.0166575); h_nD_1_Eta41->SetBinContent(67,0.0160072); h_nD_1_Eta41->SetBinContent(68,0.0148817); h_nD_1_Eta41->SetBinContent(69,0.01471912); h_nD_1_Eta41->SetBinContent(70,0.01324346); h_nD_1_Eta41->SetBinContent(71,0.01286829); h_nD_1_Eta41->SetBinContent(72,0.01219299); h_nD_1_Eta41->SetBinContent(73,0.01106748); h_nD_1_Eta41->SetBinContent(74,0.01011705); h_nD_1_Eta41->SetBinContent(75,0.009616828); h_nD_1_Eta41->SetBinContent(76,0.007966084); h_nD_1_Eta41->SetBinContent(77,0.007428343); h_nD_1_Eta41->SetBinContent(78,0.00657796); h_nD_1_Eta41->SetBinContent(79,0.006678005); h_nD_1_Eta41->SetBinContent(80,0.005627532); h_nD_1_Eta41->SetBinContent(81,0.004739633); h_nD_1_Eta41->SetBinContent(82,0.004339453); h_nD_1_Eta41->SetBinContent(83,0.003839228); h_nD_1_Eta41->SetBinContent(84,0.003063879); h_nD_1_Eta41->SetBinContent(85,0.002738732); h_nD_1_Eta41->SetBinContent(86,0.002276024); h_nD_1_Eta41->SetBinContent(87,0.001663248); h_nD_1_Eta41->SetBinContent(88,0.001750788); h_nD_1_Eta41->SetBinContent(89,0.001325596); h_nD_1_Eta41->SetBinContent(90,0.0009504277); h_nD_1_Eta41->SetBinContent(91,0.0008628883); h_nD_1_Eta41->SetBinContent(92,0.0005752589); h_nD_1_Eta41->SetBinContent(93,0.0004627082); h_nD_1_Eta41->SetBinContent(94,0.0004126857); h_nD_1_Eta41->SetBinContent(95,0.0003501576); h_nD_1_Eta41->SetBinContent(96,0.0002125957); h_nD_1_Eta41->SetBinContent(97,0.0001750788); h_nD_1_Eta41->SetBinContent(98,8.75394e-05); h_nD_1_Eta41->SetBinContent(99,6.252814e-05); h_nD_1_Eta41->SetBinContent(100,7.503376e-05); h_nD_1_Eta41->SetBinContent(101,0.0001250563); h_nD_1_Eta41->SetBinError(0,6.252814e-05); h_nD_1_Eta41->SetBinError(1,1.768563e-05); h_nD_1_Eta41->SetBinError(2,3.063241e-05); h_nD_1_Eta41->SetBinError(3,3.751688e-05); h_nD_1_Eta41->SetBinError(4,4.843409e-05); h_nD_1_Eta41->SetBinError(5,6.376644e-05); h_nD_1_Eta41->SetBinError(6,5.451077e-05); h_nD_1_Eta41->SetBinError(7,6.376644e-05); h_nD_1_Eta41->SetBinError(8,8.664153e-05); h_nD_1_Eta41->SetBinError(9,9.189722e-05); h_nD_1_Eta41->SetBinError(10,9.441542e-05); h_nD_1_Eta41->SetBinError(11,0.0001125506); h_nD_1_Eta41->SetBinError(12,0.0001250563); h_nD_1_Eta41->SetBinError(13,0.0001381292); h_nD_1_Eta41->SetBinError(14,0.0001596612); h_nD_1_Eta41->SetBinError(15,0.0001799246); h_nD_1_Eta41->SetBinError(16,0.0001896572); h_nD_1_Eta41->SetBinError(17,0.0002043436); h_nD_1_Eta41->SetBinError(18,0.0002054884); h_nD_1_Eta41->SetBinError(19,0.0002366176); h_nD_1_Eta41->SetBinError(20,0.00024474); h_nD_1_Eta41->SetBinError(21,0.0002581132); h_nD_1_Eta41->SetBinError(22,0.000280193); h_nD_1_Eta41->SetBinError(23,0.0002943475); h_nD_1_Eta41->SetBinError(24,0.0003096248); h_nD_1_Eta41->SetBinError(25,0.0003241829); h_nD_1_Eta41->SetBinError(26,0.0003440752); h_nD_1_Eta41->SetBinError(27,0.0003613672); h_nD_1_Eta41->SetBinError(28,0.0003622317); h_nD_1_Eta41->SetBinError(29,0.0003815754); h_nD_1_Eta41->SetBinError(30,0.0003918873); h_nD_1_Eta41->SetBinError(31,0.0004181445); h_nD_1_Eta41->SetBinError(32,0.0004067694); h_nD_1_Eta41->SetBinError(33,0.0004303099); h_nD_1_Eta41->SetBinError(34,0.0004355479); h_nD_1_Eta41->SetBinError(35,0.0004451371); h_nD_1_Eta41->SetBinError(36,0.0004717457); h_nD_1_Eta41->SetBinError(37,0.0004714141); h_nD_1_Eta41->SetBinError(38,0.0004722427); h_nD_1_Eta41->SetBinError(39,0.0004904375); h_nD_1_Eta41->SetBinError(40,0.0004885205); h_nD_1_Eta41->SetBinError(41,0.0005031864); h_nD_1_Eta41->SetBinError(42,0.0005055121); h_nD_1_Eta41->SetBinError(43,0.0005101315); h_nD_1_Eta41->SetBinError(44,0.000517588); h_nD_1_Eta41->SetBinError(45,0.0005151651); h_nD_1_Eta41->SetBinError(46,0.0005246405); h_nD_1_Eta41->SetBinError(47,0.0005320406); h_nD_1_Eta41->SetBinError(48,0.000529093); h_nD_1_Eta41->SetBinError(49,0.0005186444); h_nD_1_Eta41->SetBinError(50,0.0005265745); h_nD_1_Eta41->SetBinError(51,0.0005354103); h_nD_1_Eta41->SetBinError(52,0.0005320406); h_nD_1_Eta41->SetBinError(53,0.0005174369); h_nD_1_Eta41->SetBinError(54,0.0005166807); h_nD_1_Eta41->SetBinError(55,0.0005279093); h_nD_1_Eta41->SetBinError(56,0.0005210511); h_nD_1_Eta41->SetBinError(57,0.0005145576); h_nD_1_Eta41->SetBinError(58,0.0004980318); h_nD_1_Eta41->SetBinError(59,0.000513188); h_nD_1_Eta41->SetBinError(60,0.0005006938); h_nD_1_Eta41->SetBinError(61,0.0004917114); h_nD_1_Eta41->SetBinError(62,0.0004768565); h_nD_1_Eta41->SetBinError(63,0.0004789835); h_nD_1_Eta41->SetBinError(64,0.0004742255); h_nD_1_Eta41->SetBinError(65,0.0004616931); h_nD_1_Eta41->SetBinError(66,0.0004564126); h_nD_1_Eta41->SetBinError(67,0.0004474149); h_nD_1_Eta41->SetBinError(68,0.0004313988); h_nD_1_Eta41->SetBinError(69,0.000429036); h_nD_1_Eta41->SetBinError(70,0.0004069616); h_nD_1_Eta41->SetBinError(71,0.0004011559); h_nD_1_Eta41->SetBinError(72,0.0003904881); h_nD_1_Eta41->SetBinError(73,0.0003720293); h_nD_1_Eta41->SetBinError(74,0.0003556966); h_nD_1_Eta41->SetBinError(75,0.0003467917); h_nD_1_Eta41->SetBinError(76,0.0003156278); h_nD_1_Eta41->SetBinError(77,0.0003047886); h_nD_1_Eta41->SetBinError(78,0.0002868127); h_nD_1_Eta41->SetBinError(79,0.0002889855); h_nD_1_Eta41->SetBinError(80,0.0002652844); h_nD_1_Eta41->SetBinError(81,0.0002434586); h_nD_1_Eta41->SetBinError(82,0.000232954); h_nD_1_Eta41->SetBinError(83,0.0002191163); h_nD_1_Eta41->SetBinError(84,0.000195744); h_nD_1_Eta41->SetBinError(85,0.0001850664); h_nD_1_Eta41->SetBinError(86,0.0001687101); h_nD_1_Eta41->SetBinError(87,0.0001442219); h_nD_1_Eta41->SetBinError(88,0.0001479686); h_nD_1_Eta41->SetBinError(89,0.0001287533); h_nD_1_Eta41->SetBinError(90,0.0001090215); h_nD_1_Eta41->SetBinError(91,0.0001038795); h_nD_1_Eta41->SetBinError(92,8.481729e-05); h_nD_1_Eta41->SetBinError(93,7.606876e-05); h_nD_1_Eta41->SetBinError(94,7.183936e-05); h_nD_1_Eta41->SetBinError(95,6.617356e-05); h_nD_1_Eta41->SetBinError(96,5.156202e-05); h_nD_1_Eta41->SetBinError(97,4.679177e-05); h_nD_1_Eta41->SetBinError(98,3.308678e-05); h_nD_1_Eta41->SetBinError(99,2.796343e-05); h_nD_1_Eta41->SetBinError(100,3.063241e-05); h_nD_1_Eta41->SetBinError(101,3.954627e-05); h_nD_1_Eta41->SetEntries(79999); h_nD_1_Eta41->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_nD_1_Eta41->SetLineColor(ci); h_nD_1_Eta41->SetLineWidth(2); h_nD_1_Eta41->SetMarkerStyle(20); h_nD_1_Eta41->GetXaxis()->SetLabelFont(42); h_nD_1_Eta41->GetXaxis()->SetLabelOffset(0.007); h_nD_1_Eta41->GetXaxis()->SetTitleSize(0.06); h_nD_1_Eta41->GetXaxis()->SetTitleOffset(0.95); h_nD_1_Eta41->GetXaxis()->SetTitleFont(42); h_nD_1_Eta41->GetYaxis()->SetLabelFont(42); h_nD_1_Eta41->GetYaxis()->SetLabelOffset(0.007); h_nD_1_Eta41->GetYaxis()->SetTitleSize(0.06); h_nD_1_Eta41->GetYaxis()->SetTitleOffset(1.3); h_nD_1_Eta41->GetYaxis()->SetTitleFont(42); h_nD_1_Eta41->GetZaxis()->SetLabelFont(42); h_nD_1_Eta41->GetZaxis()->SetLabelOffset(0.007); h_nD_1_Eta41->GetZaxis()->SetTitleSize(0.06); h_nD_1_Eta41->GetZaxis()->SetTitleFont(42); h_nD_1_Eta41->Draw("SAMEHIST"); TH1F *h_nD_2_Eta42 = new TH1F("h_nD_2_Eta42","h_nD_2_Eta",100,-5,5); h_nD_2_Eta42->SetBinContent(0,0.003041768); h_nD_2_Eta42->SetBinContent(1,0.0004524944); h_nD_2_Eta42->SetBinContent(2,0.0007038802); h_nD_2_Eta42->SetBinContent(3,0.0008924195); h_nD_2_Eta42->SetBinContent(4,0.0008170037); h_nD_2_Eta42->SetBinContent(5,0.001282067); h_nD_2_Eta42->SetBinContent(6,0.001382622); h_nD_2_Eta42->SetBinContent(7,0.001520884); h_nD_2_Eta42->SetBinContent(8,0.001897963); h_nD_2_Eta42->SetBinContent(9,0.002136779); h_nD_2_Eta42->SetBinContent(10,0.001960809); h_nD_2_Eta42->SetBinContent(11,0.002501288); h_nD_2_Eta42->SetBinContent(12,0.00263955); h_nD_2_Eta42->SetBinContent(13,0.003154891); h_nD_2_Eta42->SetBinContent(14,0.003205169); h_nD_2_Eta42->SetBinContent(15,0.004047311); h_nD_2_Eta42->SetBinContent(16,0.003858771); h_nD_2_Eta42->SetBinContent(17,0.004675775); h_nD_2_Eta42->SetBinContent(18,0.005241393); h_nD_2_Eta42->SetBinContent(19,0.005970412); h_nD_2_Eta42->SetBinContent(20,0.006096105); h_nD_2_Eta42->SetBinContent(21,0.00723991); h_nD_2_Eta42->SetBinContent(22,0.007076509); h_nD_2_Eta42->SetBinContent(23,0.007453588); h_nD_2_Eta42->SetBinContent(24,0.008685378); h_nD_2_Eta42->SetBinContent(25,0.008949333); h_nD_2_Eta42->SetBinContent(26,0.009980015); h_nD_2_Eta42->SetBinContent(27,0.009954876); h_nD_2_Eta42->SetBinContent(28,0.01126208); h_nD_2_Eta42->SetBinContent(29,0.01131236); h_nD_2_Eta42->SetBinContent(30,0.01194082); h_nD_2_Eta42->SetBinContent(31,0.01265727); h_nD_2_Eta42->SetBinContent(32,0.01349942); h_nD_2_Eta42->SetBinContent(33,0.01419073); h_nD_2_Eta42->SetBinContent(34,0.01454267); h_nD_2_Eta42->SetBinContent(35,0.0155105); h_nD_2_Eta42->SetBinContent(36,0.01563619); h_nD_2_Eta42->SetBinContent(37,0.01654118); h_nD_2_Eta42->SetBinContent(38,0.01732048); h_nD_2_Eta42->SetBinContent(39,0.01831345); h_nD_2_Eta42->SetBinContent(40,0.01809978); h_nD_2_Eta42->SetBinContent(41,0.01857741); h_nD_2_Eta42->SetBinContent(42,0.01881623); h_nD_2_Eta42->SetBinContent(43,0.01941955); h_nD_2_Eta42->SetBinContent(44,0.0191556); h_nD_2_Eta42->SetBinContent(45,0.01938184); h_nD_2_Eta42->SetBinContent(46,0.01901733); h_nD_2_Eta42->SetBinContent(47,0.02086502); h_nD_2_Eta42->SetBinContent(48,0.01940698); h_nD_2_Eta42->SetBinContent(49,0.02007315); h_nD_2_Eta42->SetBinContent(50,0.02038739); h_nD_2_Eta42->SetBinContent(51,0.02047537); h_nD_2_Eta42->SetBinContent(52,0.01944469); h_nD_2_Eta42->SetBinContent(53,0.01934413); h_nD_2_Eta42->SetBinContent(54,0.02050051); h_nD_2_Eta42->SetBinContent(55,0.01914303); h_nD_2_Eta42->SetBinContent(56,0.01950753); h_nD_2_Eta42->SetBinContent(57,0.01955781); h_nD_2_Eta42->SetBinContent(58,0.01946983); h_nD_2_Eta42->SetBinContent(59,0.01909275); h_nD_2_Eta42->SetBinContent(60,0.01799922); h_nD_2_Eta42->SetBinContent(61,0.01791123); h_nD_2_Eta42->SetBinContent(62,0.01812491); h_nD_2_Eta42->SetBinContent(63,0.0171068); h_nD_2_Eta42->SetBinContent(64,0.01593786); h_nD_2_Eta42->SetBinContent(65,0.01664174); h_nD_2_Eta42->SetBinContent(66,0.01622695); h_nD_2_Eta42->SetBinContent(67,0.01473121); h_nD_2_Eta42->SetBinContent(68,0.0139142); h_nD_2_Eta42->SetBinContent(69,0.01386392); h_nD_2_Eta42->SetBinContent(70,0.01298407); h_nD_2_Eta42->SetBinContent(71,0.01240589); h_nD_2_Eta42->SetBinContent(72,0.01197853); h_nD_2_Eta42->SetBinContent(73,0.01152604); h_nD_2_Eta42->SetBinContent(74,0.01014342); h_nD_2_Eta42->SetBinContent(75,0.010068); h_nD_2_Eta42->SetBinContent(76,0.008584823); h_nD_2_Eta42->SetBinContent(77,0.008182607); h_nD_2_Eta42->SetBinContent(78,0.008094622); h_nD_2_Eta42->SetBinContent(79,0.007252479); h_nD_2_Eta42->SetBinContent(80,0.006334921); h_nD_2_Eta42->SetBinContent(81,0.006133812); h_nD_2_Eta42->SetBinContent(82,0.005844719); h_nD_2_Eta42->SetBinContent(83,0.005228824); h_nD_2_Eta42->SetBinContent(84,0.004386682); h_nD_2_Eta42->SetBinContent(85,0.004097588); h_nD_2_Eta42->SetBinContent(86,0.003758217); h_nD_2_Eta42->SetBinContent(87,0.003733078); h_nD_2_Eta42->SetBinContent(88,0.003142322); h_nD_2_Eta42->SetBinContent(89,0.002752674); h_nD_2_Eta42->SetBinContent(90,0.002526427); h_nD_2_Eta42->SetBinContent(91,0.002099071); h_nD_2_Eta42->SetBinContent(92,0.001621438); h_nD_2_Eta42->SetBinContent(93,0.001558592); h_nD_2_Eta42->SetBinContent(94,0.001332345); h_nD_2_Eta42->SetBinContent(95,0.00140776); h_nD_2_Eta42->SetBinContent(96,0.001080959); h_nD_2_Eta42->SetBinContent(97,0.001043251); h_nD_2_Eta42->SetBinContent(98,0.0008547116); h_nD_2_Eta42->SetBinContent(99,0.0006661723); h_nD_2_Eta42->SetBinContent(100,0.0004776329); h_nD_2_Eta42->SetBinContent(101,0.002488719); h_nD_2_Eta42->SetBinError(0,0.0001955322); h_nD_2_Eta42->SetBinError(1,7.541573e-05); h_nD_2_Eta42->SetBinError(2,9.405994e-05); h_nD_2_Eta42->SetBinError(3,0.0001059107); h_nD_2_Eta42->SetBinError(4,0.0001013368); h_nD_2_Eta42->SetBinError(5,0.0001269436); h_nD_2_Eta42->SetBinError(6,0.0001318278); h_nD_2_Eta42->SetBinError(7,0.0001382622); h_nD_2_Eta42->SetBinError(8,0.000154454); h_nD_2_Eta42->SetBinError(9,0.0001638835); h_nD_2_Eta42->SetBinError(10,0.0001569904); h_nD_2_Eta42->SetBinError(11,0.0001773116); h_nD_2_Eta42->SetBinError(12,0.0001821463); h_nD_2_Eta42->SetBinError(13,0.000199135); h_nD_2_Eta42->SetBinError(14,0.0002007154); h_nD_2_Eta42->SetBinError(15,0.0002255478); h_nD_2_Eta42->SetBinError(16,0.0002202317); h_nD_2_Eta42->SetBinError(17,0.0002424277); h_nD_2_Eta42->SetBinError(18,0.0002566721); h_nD_2_Eta42->SetBinError(19,0.0002739413); h_nD_2_Eta42->SetBinError(20,0.0002768099); h_nD_2_Eta42->SetBinError(21,0.0003016629); h_nD_2_Eta42->SetBinError(22,0.0002982393); h_nD_2_Eta42->SetBinError(23,0.0003060822); h_nD_2_Eta42->SetBinError(24,0.0003304074); h_nD_2_Eta42->SetBinError(25,0.0003353904); h_nD_2_Eta42->SetBinError(26,0.0003541775); h_nD_2_Eta42->SetBinError(27,0.0003537311); h_nD_2_Eta42->SetBinError(28,0.0003762398); h_nD_2_Eta42->SetBinError(29,0.0003770786); h_nD_2_Eta42->SetBinError(30,0.0003874115); h_nD_2_Eta42->SetBinError(31,0.0003988645); h_nD_2_Eta42->SetBinError(32,0.0004119199); h_nD_2_Eta42->SetBinError(33,0.0004223356); h_nD_2_Eta42->SetBinError(34,0.0004275406); h_nD_2_Eta42->SetBinError(35,0.0004415382); h_nD_2_Eta42->SetBinError(36,0.0004433236); h_nD_2_Eta42->SetBinError(37,0.0004559725); h_nD_2_Eta42->SetBinError(38,0.0004665899); h_nD_2_Eta42->SetBinError(39,0.0004797781); h_nD_2_Eta42->SetBinError(40,0.000476971); h_nD_2_Eta42->SetBinError(41,0.0004832233); h_nD_2_Eta42->SetBinError(42,0.0004863194); h_nD_2_Eta42->SetBinError(43,0.0004940546); h_nD_2_Eta42->SetBinError(44,0.0004906854); h_nD_2_Eta42->SetBinError(45,0.0004935747); h_nD_2_Eta42->SetBinError(46,0.0004889114); h_nD_2_Eta42->SetBinError(47,0.0005121117); h_nD_2_Eta42->SetBinError(48,0.0004938947); h_nD_2_Eta42->SetBinError(49,0.0005023); h_nD_2_Eta42->SetBinError(50,0.0005062163); h_nD_2_Eta42->SetBinError(51,0.0005073074); h_nD_2_Eta42->SetBinError(52,0.0004943742); h_nD_2_Eta42->SetBinError(53,0.0004930943); h_nD_2_Eta42->SetBinError(54,0.0005076188); h_nD_2_Eta42->SetBinError(55,0.0004905244); h_nD_2_Eta42->SetBinError(56,0.0004951725); h_nD_2_Eta42->SetBinError(57,0.0004958102); h_nD_2_Eta42->SetBinError(58,0.0004946937); h_nD_2_Eta42->SetBinError(59,0.0004898798); h_nD_2_Eta42->SetBinError(60,0.0004756442); h_nD_2_Eta42->SetBinError(61,0.0004744802); h_nD_2_Eta42->SetBinError(62,0.0004773021); h_nD_2_Eta42->SetBinError(63,0.0004637028); h_nD_2_Eta42->SetBinError(64,0.0004475796); h_nD_2_Eta42->SetBinError(65,0.0004573563); h_nD_2_Eta42->SetBinError(66,0.0004516207); h_nD_2_Eta42->SetBinError(67,0.0004303031); h_nD_2_Eta42->SetBinError(68,0.0004182004); h_nD_2_Eta42->SetBinError(69,0.0004174442); h_nD_2_Eta42->SetBinError(70,0.0004039809); h_nD_2_Eta42->SetBinError(71,0.0003948837); h_nD_2_Eta42->SetBinError(72,0.0003880227); h_nD_2_Eta42->SetBinError(73,0.0003806233); h_nD_2_Eta42->SetBinError(74,0.0003570651); h_nD_2_Eta42->SetBinError(75,0.0003557353); h_nD_2_Eta42->SetBinError(76,0.0003284892); h_nD_2_Eta42->SetBinError(77,0.0003207016); h_nD_2_Eta42->SetBinError(78,0.0003189728); h_nD_2_Eta42->SetBinError(79,0.0003019247); h_nD_2_Eta42->SetBinError(80,0.0002821798); h_nD_2_Eta42->SetBinError(81,0.0002776647); h_nD_2_Eta42->SetBinError(82,0.0002710424); h_nD_2_Eta42->SetBinError(83,0.0002563642); h_nD_2_Eta42->SetBinError(84,0.0002348137); h_nD_2_Eta42->SetBinError(85,0.0002269444); h_nD_2_Eta42->SetBinError(86,0.0002173433); h_nD_2_Eta42->SetBinError(87,0.0002166152); h_nD_2_Eta42->SetBinError(88,0.0001987379); h_nD_2_Eta42->SetBinError(89,0.0001860085); h_nD_2_Eta42->SetBinError(90,0.0001782004); h_nD_2_Eta42->SetBinError(91,0.000162431); h_nD_2_Eta42->SetBinError(92,0.0001427597); h_nD_2_Eta42->SetBinError(93,0.0001399657); h_nD_2_Eta42->SetBinError(94,0.0001294087); h_nD_2_Eta42->SetBinError(95,0.0001330208); h_nD_2_Eta42->SetBinError(96,0.0001165628); h_nD_2_Eta42->SetBinError(97,0.0001145117); h_nD_2_Eta42->SetBinError(98,0.000103649); h_nD_2_Eta42->SetBinError(99,9.15058e-05); h_nD_2_Eta42->SetBinError(100,7.74823e-05); h_nD_2_Eta42->SetBinError(101,0.0001768656); h_nD_2_Eta42->SetEntries(79999); h_nD_2_Eta42->SetDirectory(0); ci = TColor::GetColor("#ff0000"); h_nD_2_Eta42->SetLineColor(ci); h_nD_2_Eta42->SetLineWidth(2); h_nD_2_Eta42->SetMarkerStyle(20); h_nD_2_Eta42->GetXaxis()->SetLabelFont(42); h_nD_2_Eta42->GetXaxis()->SetLabelOffset(0.007); h_nD_2_Eta42->GetXaxis()->SetTitleSize(0.06); h_nD_2_Eta42->GetXaxis()->SetTitleOffset(0.95); h_nD_2_Eta42->GetXaxis()->SetTitleFont(42); h_nD_2_Eta42->GetYaxis()->SetLabelFont(42); h_nD_2_Eta42->GetYaxis()->SetLabelOffset(0.007); h_nD_2_Eta42->GetYaxis()->SetTitleSize(0.06); h_nD_2_Eta42->GetYaxis()->SetTitleOffset(1.3); h_nD_2_Eta42->GetYaxis()->SetTitleFont(42); h_nD_2_Eta42->GetZaxis()->SetLabelFont(42); h_nD_2_Eta42->GetZaxis()->SetLabelOffset(0.007); h_nD_2_Eta42->GetZaxis()->SetTitleSize(0.06); h_nD_2_Eta42->GetZaxis()->SetTitleFont(42); h_nD_2_Eta42->Draw("SAMEHIST"); TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_nD_1_Eta","1st n_{D} (leading p_{T})","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_nD_2_Eta","2nd n_{D}","L"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 1000 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void TracktoLCTYfull_2016B_June22all_sameYrange_fullIntegral_10k9k_lin() { //=========Macro generated from canvas: TracktoLCTYfull/TracktoLCTYfull //========= (Sat Aug 6 07:01:22 2016) by ROOT version6.06/01 TCanvas *TracktoLCTYfull = new TCanvas("TracktoLCTYfull", "TracktoLCTYfull",0,0,500,500); gStyle->SetOptStat(0); TracktoLCTYfull->SetHighLightColor(2); TracktoLCTYfull->Range(-10000.5,-14.99438,-9995.5,134.9994); TracktoLCTYfull->SetFillColor(0); TracktoLCTYfull->SetBorderMode(0); TracktoLCTYfull->SetBorderSize(2); TracktoLCTYfull->SetFrameBorderMode(0); TracktoLCTYfull->SetFrameBorderMode(0); TH1D *TracktoLCTYfull_1__73 = new TH1D("TracktoLCTYfull_1__73","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_1__73->SetBinContent(26,100); TracktoLCTYfull_1__73->SetBinContent(101,26.00723); TracktoLCTYfull_1__73->SetMinimum(0.005); TracktoLCTYfull_1__73->SetMaximum(120); TracktoLCTYfull_1__73->SetEntries(675802); TracktoLCTYfull_1__73->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff00ff"); TracktoLCTYfull_1__73->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); TracktoLCTYfull_1__73->SetMarkerColor(ci); TracktoLCTYfull_1__73->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_1__73->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_1__73->Draw("H"); TLegend *leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTYfull_2__74 = new TH1D("TracktoLCTYfull_2__74","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_2__74->SetBinContent(26,100); TracktoLCTYfull_2__74->SetBinContent(101,35.88015); TracktoLCTYfull_2__74->SetEntries(1185341); TracktoLCTYfull_2__74->SetStats(0); ci = TColor::GetColor("#ff9999"); TracktoLCTYfull_2__74->SetLineColor(ci); ci = TColor::GetColor("#ff9999"); TracktoLCTYfull_2__74->SetMarkerColor(ci); TracktoLCTYfull_2__74->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_2__74->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_2__74->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTYfull_3__75 = new TH1D("TracktoLCTYfull_3__75","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_3__75->SetBinContent(26,100); TracktoLCTYfull_3__75->SetBinContent(101,122.3848); TracktoLCTYfull_3__75->SetEntries(389596); TracktoLCTYfull_3__75->SetStats(0); TracktoLCTYfull_3__75->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_3__75->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_3__75->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTYfull_4__76 = new TH1D("TracktoLCTYfull_4__76","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_4__76->SetBinContent(26,100); TracktoLCTYfull_4__76->SetBinContent(101,49.76866); TracktoLCTYfull_4__76->SetEntries(1890705); TracktoLCTYfull_4__76->SetStats(0); ci = TColor::GetColor("#ff0000"); TracktoLCTYfull_4__76->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); TracktoLCTYfull_4__76->SetMarkerColor(ci); TracktoLCTYfull_4__76->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_4__76->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_4__76->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTYfull_5__77 = new TH1D("TracktoLCTYfull_5__77","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_5__77->SetBinContent(26,100); TracktoLCTYfull_5__77->SetBinContent(101,63.70034); TracktoLCTYfull_5__77->SetEntries(1394704); TracktoLCTYfull_5__77->SetStats(0); ci = TColor::GetColor("#00ff00"); TracktoLCTYfull_5__77->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); TracktoLCTYfull_5__77->SetMarkerColor(ci); TracktoLCTYfull_5__77->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_5__77->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_5__77->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TH1D *TracktoLCTYfull_6__78 = new TH1D("TracktoLCTYfull_6__78","TracktoLCTYfull",100,-10000,-9996); TracktoLCTYfull_6__78->SetBinContent(26,100); TracktoLCTYfull_6__78->SetBinContent(101,78.02474); TracktoLCTYfull_6__78->SetEntries(1102290); TracktoLCTYfull_6__78->SetStats(0); ci = TColor::GetColor("#0000ff"); TracktoLCTYfull_6__78->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); TracktoLCTYfull_6__78->SetMarkerColor(ci); TracktoLCTYfull_6__78->GetXaxis()->SetTitle("cm"); TracktoLCTYfull_6__78->GetYaxis()->SetTitle("scaled number of entries"); TracktoLCTYfull_6__78->Draw("H,same"); leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextFont(62); leg->SetTextSize(0.02); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff9999"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(62); leg->Draw(); TPaveText *pt = new TPaveText(0.01,0.945,0.3707258,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(1); pt->SetFillColor(0); TText *AText = pt->AddText("TracktoLCTYfull"); pt->Draw(); TracktoLCTYfull->Modified(); TracktoLCTYfull->cd(); TracktoLCTYfull->SetSelected(TracktoLCTYfull); }
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_Higgs_m() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:17:47 2015) by ROOT version6.02/05 TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cnv->SetHighLightColor(2); cnv->Range(1.784236,-0.24375,2.499296,1.63125); cnv->SetFillColor(0); cnv->SetBorderMode(0); cnv->SetBorderSize(2); cnv->SetLogx(); cnv->SetTickx(1); cnv->SetTicky(1); cnv->SetLeftMargin(0.17); cnv->SetRightMargin(0.03); cnv->SetTopMargin(0.07); cnv->SetBottomMargin(0.13); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); cnv->SetFrameFillStyle(0); cnv->SetFrameBorderMode(0); TH1F *h_higgs_M_dummy9 = new TH1F("h_higgs_M_dummy9","h_higgs_M_dummy",220,80.5,300.5); h_higgs_M_dummy9->SetMaximum(1.5); h_higgs_M_dummy9->SetLineStyle(0); h_higgs_M_dummy9->SetMarkerStyle(20); h_higgs_M_dummy9->GetXaxis()->SetTitle("Mass of h [GeV]"); h_higgs_M_dummy9->GetXaxis()->SetMoreLogLabels(); h_higgs_M_dummy9->GetXaxis()->SetNdivisions(10); h_higgs_M_dummy9->GetXaxis()->SetLabelFont(42); h_higgs_M_dummy9->GetXaxis()->SetLabelOffset(0.007); h_higgs_M_dummy9->GetXaxis()->SetLabelSize(0.03); h_higgs_M_dummy9->GetXaxis()->SetTitleSize(0.06); h_higgs_M_dummy9->GetXaxis()->SetTitleOffset(0.95); h_higgs_M_dummy9->GetXaxis()->SetTitleFont(42); h_higgs_M_dummy9->GetYaxis()->SetTitle("Fraction of events / 1 GeV"); h_higgs_M_dummy9->GetYaxis()->SetLabelFont(42); h_higgs_M_dummy9->GetYaxis()->SetLabelOffset(0.007); h_higgs_M_dummy9->GetYaxis()->SetTitleSize(0.06); h_higgs_M_dummy9->GetYaxis()->SetTitleOffset(1.35); h_higgs_M_dummy9->GetYaxis()->SetTitleFont(42); h_higgs_M_dummy9->GetZaxis()->SetLabelFont(42); h_higgs_M_dummy9->GetZaxis()->SetLabelOffset(0.007); h_higgs_M_dummy9->GetZaxis()->SetTitleSize(0.06); h_higgs_M_dummy9->GetZaxis()->SetTitleFont(42); h_higgs_M_dummy9->Draw(""); TH1F *h_higgs_M_dummy10 = new TH1F("h_higgs_M_dummy10","h_higgs_M_dummy",220,80.5,300.5); h_higgs_M_dummy10->SetMaximum(1.5); h_higgs_M_dummy10->SetLineStyle(0); h_higgs_M_dummy10->SetMarkerStyle(20); h_higgs_M_dummy10->GetXaxis()->SetTitle("Mass of h [GeV]"); h_higgs_M_dummy10->GetXaxis()->SetMoreLogLabels(); h_higgs_M_dummy10->GetXaxis()->SetNdivisions(10); h_higgs_M_dummy10->GetXaxis()->SetLabelFont(42); h_higgs_M_dummy10->GetXaxis()->SetLabelOffset(0.007); h_higgs_M_dummy10->GetXaxis()->SetLabelSize(0.03); h_higgs_M_dummy10->GetXaxis()->SetTitleSize(0.06); h_higgs_M_dummy10->GetXaxis()->SetTitleOffset(0.95); h_higgs_M_dummy10->GetXaxis()->SetTitleFont(42); h_higgs_M_dummy10->GetYaxis()->SetTitle("Fraction of events / 1 GeV"); h_higgs_M_dummy10->GetYaxis()->SetLabelFont(42); h_higgs_M_dummy10->GetYaxis()->SetLabelOffset(0.007); h_higgs_M_dummy10->GetYaxis()->SetTitleSize(0.06); h_higgs_M_dummy10->GetYaxis()->SetTitleOffset(1.35); h_higgs_M_dummy10->GetYaxis()->SetTitleFont(42); h_higgs_M_dummy10->GetZaxis()->SetLabelFont(42); h_higgs_M_dummy10->GetZaxis()->SetLabelOffset(0.007); h_higgs_M_dummy10->GetZaxis()->SetTitleSize(0.06); h_higgs_M_dummy10->GetZaxis()->SetTitleFont(42); h_higgs_M_dummy10->Draw("same"); TH1F *h_higgs_M11 = new TH1F("h_higgs_M11","h_higgs_M",10,120.5,130.5); h_higgs_M11->SetBinContent(5,1); h_higgs_M11->SetBinError(5,0.003535556); h_higgs_M11->SetEntries(79999); h_higgs_M11->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_higgs_M11->SetLineColor(ci); h_higgs_M11->SetLineWidth(2); h_higgs_M11->SetMarkerStyle(20); h_higgs_M11->GetXaxis()->SetLabelFont(42); h_higgs_M11->GetXaxis()->SetLabelOffset(0.007); h_higgs_M11->GetXaxis()->SetTitleSize(0.06); h_higgs_M11->GetXaxis()->SetTitleOffset(0.95); h_higgs_M11->GetXaxis()->SetTitleFont(42); h_higgs_M11->GetYaxis()->SetLabelFont(42); h_higgs_M11->GetYaxis()->SetLabelOffset(0.007); h_higgs_M11->GetYaxis()->SetTitleSize(0.06); h_higgs_M11->GetYaxis()->SetTitleOffset(1.3); h_higgs_M11->GetYaxis()->SetTitleFont(42); h_higgs_M11->GetZaxis()->SetLabelFont(42); h_higgs_M11->GetZaxis()->SetLabelOffset(0.007); h_higgs_M11->GetZaxis()->SetTitleSize(0.06); h_higgs_M11->GetZaxis()->SetTitleFont(42); h_higgs_M11->Draw("SAMEHIST"); TH1F *h_higgs_M12 = new TH1F("h_higgs_M12","h_higgs_M",10,120.5,130.5); h_higgs_M12->SetBinContent(5,1); h_higgs_M12->SetBinError(5,0.003535556); h_higgs_M12->SetEntries(79999); h_higgs_M12->SetDirectory(0); ci = TColor::GetColor("#0000ff"); h_higgs_M12->SetLineColor(ci); h_higgs_M12->SetLineWidth(2); h_higgs_M12->SetMarkerStyle(20); h_higgs_M12->GetXaxis()->SetMoreLogLabels(); h_higgs_M12->GetXaxis()->SetLabelFont(42); h_higgs_M12->GetXaxis()->SetLabelOffset(0.007); h_higgs_M12->GetXaxis()->SetTitleSize(0.06); h_higgs_M12->GetXaxis()->SetTitleOffset(0.95); h_higgs_M12->GetXaxis()->SetTitleFont(42); h_higgs_M12->GetYaxis()->SetLabelFont(42); h_higgs_M12->GetYaxis()->SetLabelOffset(0.007); h_higgs_M12->GetYaxis()->SetTitleSize(0.06); h_higgs_M12->GetYaxis()->SetTitleOffset(1.3); h_higgs_M12->GetYaxis()->SetTitleFont(42); h_higgs_M12->GetZaxis()->SetLabelFont(42); h_higgs_M12->GetZaxis()->SetLabelOffset(0.007); h_higgs_M12->GetZaxis()->SetTitleSize(0.06); h_higgs_M12->GetZaxis()->SetTitleFont(42); h_higgs_M12->Draw("SAMEHIST"); TLegend *leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.02777778); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextAlign(22); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TH1F *h_higgs_M_dummy13 = new TH1F("h_higgs_M_dummy13","h_higgs_M_dummy",220,80.5,300.5); h_higgs_M_dummy13->SetMaximum(1.5); h_higgs_M_dummy13->SetLineStyle(0); h_higgs_M_dummy13->SetMarkerStyle(20); h_higgs_M_dummy13->GetXaxis()->SetTitle("Mass of h [GeV]"); h_higgs_M_dummy13->GetXaxis()->SetMoreLogLabels(); h_higgs_M_dummy13->GetXaxis()->SetNdivisions(10); h_higgs_M_dummy13->GetXaxis()->SetLabelFont(42); h_higgs_M_dummy13->GetXaxis()->SetLabelOffset(0.007); h_higgs_M_dummy13->GetXaxis()->SetLabelSize(0.03); h_higgs_M_dummy13->GetXaxis()->SetTitleSize(0.06); h_higgs_M_dummy13->GetXaxis()->SetTitleOffset(0.95); h_higgs_M_dummy13->GetXaxis()->SetTitleFont(42); h_higgs_M_dummy13->GetYaxis()->SetTitle("Fraction of events / 1 GeV"); h_higgs_M_dummy13->GetYaxis()->SetLabelFont(42); h_higgs_M_dummy13->GetYaxis()->SetLabelOffset(0.007); h_higgs_M_dummy13->GetYaxis()->SetTitleSize(0.06); h_higgs_M_dummy13->GetYaxis()->SetTitleOffset(1.35); h_higgs_M_dummy13->GetYaxis()->SetTitleFont(42); h_higgs_M_dummy13->GetZaxis()->SetLabelFont(42); h_higgs_M_dummy13->GetZaxis()->SetLabelOffset(0.007); h_higgs_M_dummy13->GetZaxis()->SetTitleSize(0.06); h_higgs_M_dummy13->GetZaxis()->SetTitleFont(42); h_higgs_M_dummy13->Draw("same"); TH1F *h_higgs_M14 = new TH1F("h_higgs_M14","h_higgs_M",10,120.5,130.5); h_higgs_M14->SetBinContent(5,1); h_higgs_M14->SetBinError(5,0.003535556); h_higgs_M14->SetEntries(79999); h_higgs_M14->SetDirectory(0); ci = TColor::GetColor("#0000ff"); h_higgs_M14->SetLineColor(ci); h_higgs_M14->SetLineWidth(2); h_higgs_M14->SetMarkerStyle(20); h_higgs_M14->GetXaxis()->SetMoreLogLabels(); h_higgs_M14->GetXaxis()->SetLabelFont(42); h_higgs_M14->GetXaxis()->SetLabelOffset(0.007); h_higgs_M14->GetXaxis()->SetTitleSize(0.06); h_higgs_M14->GetXaxis()->SetTitleOffset(0.95); h_higgs_M14->GetXaxis()->SetTitleFont(42); h_higgs_M14->GetYaxis()->SetLabelFont(42); h_higgs_M14->GetYaxis()->SetLabelOffset(0.007); h_higgs_M14->GetYaxis()->SetTitleSize(0.06); h_higgs_M14->GetYaxis()->SetTitleOffset(1.3); h_higgs_M14->GetYaxis()->SetTitleFont(42); h_higgs_M14->GetZaxis()->SetLabelFont(42); h_higgs_M14->GetZaxis()->SetLabelOffset(0.007); h_higgs_M14->GetZaxis()->SetTitleSize(0.06); h_higgs_M14->GetZaxis()->SetTitleFont(42); h_higgs_M14->Draw("SAMEHIST"); cnv->Modified(); cnv->cd(); cnv->SetSelected(cnv); }
void phimetphijet2() { //=========Macro generated from canvas: phimetphijet2/phimetphijet2 //========= (Mon Nov 23 11:05:11 2015) by ROOT version6.02/05 TCanvas *phimetphijet2 = new TCanvas("phimetphijet2", "phimetphijet2",300,322,700,700); phimetphijet2->Range(-3.926991,-6.296078,3.926991,4.627329); phimetphijet2->SetFillColor(0); phimetphijet2->SetBorderMode(0); phimetphijet2->SetBorderSize(2); phimetphijet2->SetLogy(); phimetphijet2->SetFrameBorderMode(0); phimetphijet2->SetFrameBorderMode(0); THStack *phimetphijet2 = new THStack(); phimetphijet2->SetName("phimetphijet2"); phimetphijet2->SetTitle("phimetphijet2"); TH1F *phimetphijet2_stack_20 = new TH1F("phimetphijet2_stack_20","phimetphijet2",20,-3.141593,3.141593); phimetphijet2_stack_20->SetMinimum(6.255515e-06); phimetphijet2_stack_20->SetMaximum(3427.587); phimetphijet2_stack_20->SetDirectory(0); phimetphijet2_stack_20->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); phimetphijet2_stack_20->SetLineColor(ci); phimetphijet2_stack_20->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet2_stack_20->GetXaxis()->SetLabelFont(42); phimetphijet2_stack_20->GetXaxis()->SetLabelSize(0.035); phimetphijet2_stack_20->GetXaxis()->SetTitleSize(0.035); phimetphijet2_stack_20->GetXaxis()->SetTitleFont(42); phimetphijet2_stack_20->GetYaxis()->SetTitle("Events/pb"); phimetphijet2_stack_20->GetYaxis()->SetLabelFont(42); phimetphijet2_stack_20->GetYaxis()->SetLabelSize(0.035); phimetphijet2_stack_20->GetYaxis()->SetTitleSize(0.035); phimetphijet2_stack_20->GetYaxis()->SetTitleFont(42); phimetphijet2_stack_20->GetZaxis()->SetLabelFont(42); phimetphijet2_stack_20->GetZaxis()->SetLabelSize(0.035); phimetphijet2_stack_20->GetZaxis()->SetTitleSize(0.035); phimetphijet2_stack_20->GetZaxis()->SetTitleFont(42); phimetphijet2->SetHistogram(phimetphijet2_stack_20); TH1D *phimetphijet296 = new TH1D("phimetphijet296"," #Delta_{#phi}[MET,jet_{2}]",20,-3.141593,3.141593); phimetphijet296->SetBinContent(1,599.5565); phimetphijet296->SetBinContent(2,601.8699); phimetphijet296->SetBinContent(3,574.6103); phimetphijet296->SetBinContent(4,505.7655); phimetphijet296->SetBinContent(5,574.5997); phimetphijet296->SetBinContent(6,596.3209); phimetphijet296->SetBinContent(7,665.2723); phimetphijet296->SetBinContent(8,850.025); phimetphijet296->SetBinContent(9,1039.648); phimetphijet296->SetBinContent(10,1354.568); phimetphijet296->SetBinContent(11,1313.67); phimetphijet296->SetBinContent(12,1079.464); phimetphijet296->SetBinContent(13,839.0052); phimetphijet296->SetBinContent(14,679.6341); phimetphijet296->SetBinContent(15,578.1462); phimetphijet296->SetBinContent(16,532.6048); phimetphijet296->SetBinContent(17,559.8399); phimetphijet296->SetBinContent(18,538.712); phimetphijet296->SetBinContent(19,558.2774); phimetphijet296->SetBinContent(20,576.3311); phimetphijet296->SetBinError(1,14.01782); phimetphijet296->SetBinError(2,14.06125); phimetphijet296->SetBinError(3,13.75496); phimetphijet296->SetBinError(4,12.88979); phimetphijet296->SetBinError(5,13.75495); phimetphijet296->SetBinError(6,14.00518); phimetphijet296->SetBinError(7,14.76104); phimetphijet296->SetBinError(8,16.69368); phimetphijet296->SetBinError(9,18.3991); phimetphijet296->SetBinError(10,20.96339); phimetphijet296->SetBinError(11,20.62724); phimetphijet296->SetBinError(12,18.76332); phimetphijet296->SetBinError(13,16.57613); phimetphijet296->SetBinError(14,14.92679); phimetphijet296->SetBinError(15,13.77979); phimetphijet296->SetBinError(16,13.24077); phimetphijet296->SetBinError(17,13.5788); phimetphijet296->SetBinError(18,13.30024); phimetphijet296->SetBinError(19,13.5421); phimetphijet296->SetBinError(20,13.74356); phimetphijet296->SetEntries(88534); ci = TColor::GetColor("#00cc00"); phimetphijet296->SetFillColor(ci); ci = TColor::GetColor("#00cc00"); phimetphijet296->SetLineColor(ci); ci = TColor::GetColor("#00cc00"); phimetphijet296->SetMarkerColor(ci); phimetphijet296->SetMarkerStyle(22); phimetphijet296->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet296->GetXaxis()->SetLabelFont(42); phimetphijet296->GetXaxis()->SetLabelSize(0.035); phimetphijet296->GetXaxis()->SetTitleSize(0.035); phimetphijet296->GetXaxis()->SetTitleFont(42); phimetphijet296->GetYaxis()->SetTitle("Events/pb"); phimetphijet296->GetYaxis()->SetLabelFont(42); phimetphijet296->GetYaxis()->SetLabelSize(0.035); phimetphijet296->GetYaxis()->SetTitleSize(0.035); phimetphijet296->GetYaxis()->SetTitleFont(42); phimetphijet296->GetZaxis()->SetLabelFont(42); phimetphijet296->GetZaxis()->SetLabelSize(0.035); phimetphijet296->GetZaxis()->SetTitleSize(0.035); phimetphijet296->GetZaxis()->SetTitleFont(42); phimetphijet2->Add(phimetphijet2,""); TH1D *phimetphijet297 = new TH1D("phimetphijet297"," #Delta_{#phi}[MET,jet_{2}]",20,-3.141593,3.141593); phimetphijet297->SetBinContent(1,3.833102); phimetphijet297->SetBinContent(2,4.030573); phimetphijet297->SetBinContent(3,4.099132); phimetphijet297->SetBinContent(4,4.272269); phimetphijet297->SetBinContent(5,4.209427); phimetphijet297->SetBinContent(6,4.370433); phimetphijet297->SetBinContent(7,4.06457); phimetphijet297->SetBinContent(8,3.764594); phimetphijet297->SetBinContent(9,3.518276); phimetphijet297->SetBinContent(10,3.486163); phimetphijet297->SetBinContent(11,3.551275); phimetphijet297->SetBinContent(12,3.544476); phimetphijet297->SetBinContent(13,3.844214); phimetphijet297->SetBinContent(14,3.933075); phimetphijet297->SetBinContent(15,4.224541); phimetphijet297->SetBinContent(16,4.33643); phimetphijet297->SetBinContent(17,4.349964); phimetphijet297->SetBinContent(18,4.199265); phimetphijet297->SetBinContent(19,4.023059); phimetphijet297->SetBinContent(20,3.888278); phimetphijet297->SetBinError(1,0.05590373); phimetphijet297->SetBinError(2,0.05732162); phimetphijet297->SetBinError(3,0.0572273); phimetphijet297->SetBinError(4,0.05746171); phimetphijet297->SetBinError(5,0.05623738); phimetphijet297->SetBinError(6,0.0572591); phimetphijet297->SetBinError(7,0.05438423); phimetphijet297->SetBinError(8,0.05158963); phimetphijet297->SetBinError(9,0.04876562); phimetphijet297->SetBinError(10,0.04882319); phimetphijet297->SetBinError(11,0.04943321); phimetphijet297->SetBinError(12,0.04933328); phimetphijet297->SetBinError(13,0.0524752); phimetphijet297->SetBinError(14,0.05317107); phimetphijet297->SetBinError(15,0.05552655); phimetphijet297->SetBinError(16,0.0574827); phimetphijet297->SetBinError(17,0.05824327); phimetphijet297->SetBinError(18,0.05807843); phimetphijet297->SetBinError(19,0.05712001); phimetphijet297->SetBinError(20,0.05627091); phimetphijet297->SetEntries(324582); ci = TColor::GetColor("#00ffff"); phimetphijet297->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); phimetphijet297->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); phimetphijet297->SetMarkerColor(ci); phimetphijet297->SetMarkerStyle(20); phimetphijet297->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet297->GetXaxis()->SetLabelFont(42); phimetphijet297->GetXaxis()->SetLabelSize(0.035); phimetphijet297->GetXaxis()->SetTitleSize(0.035); phimetphijet297->GetXaxis()->SetTitleFont(42); phimetphijet297->GetYaxis()->SetTitle("Events/pb"); phimetphijet297->GetYaxis()->SetLabelFont(42); phimetphijet297->GetYaxis()->SetLabelSize(0.035); phimetphijet297->GetYaxis()->SetTitleSize(0.035); phimetphijet297->GetYaxis()->SetTitleFont(42); phimetphijet297->GetZaxis()->SetLabelFont(42); phimetphijet297->GetZaxis()->SetLabelSize(0.035); phimetphijet297->GetZaxis()->SetTitleSize(0.035); phimetphijet297->GetZaxis()->SetTitleFont(42); phimetphijet2->Add(phimetphijet2,""); TH1D *phimetphijet298 = new TH1D("phimetphijet298"," #Delta_{#phi}[MET,jet_{2}]",20,-3.141593,3.141593); phimetphijet298->SetBinContent(1,0.562526); phimetphijet298->SetBinContent(2,0.5785768); phimetphijet298->SetBinContent(3,0.5795457); phimetphijet298->SetBinContent(4,0.5955618); phimetphijet298->SetBinContent(5,0.5771722); phimetphijet298->SetBinContent(6,0.5592627); phimetphijet298->SetBinContent(7,0.508213); phimetphijet298->SetBinContent(8,0.4729086); phimetphijet298->SetBinContent(9,0.4529622); phimetphijet298->SetBinContent(10,0.452754); phimetphijet298->SetBinContent(11,0.4560625); phimetphijet298->SetBinContent(12,0.4478396); phimetphijet298->SetBinContent(13,0.481398); phimetphijet298->SetBinContent(14,0.5057427); phimetphijet298->SetBinContent(15,0.5478765); phimetphijet298->SetBinContent(16,0.5759238); phimetphijet298->SetBinContent(17,0.588108); phimetphijet298->SetBinContent(18,0.6099644); phimetphijet298->SetBinContent(19,0.6091882); phimetphijet298->SetBinContent(20,0.5592744); phimetphijet298->SetBinError(1,0.006701172); phimetphijet298->SetBinError(2,0.006782582); phimetphijet298->SetBinError(3,0.006778253); phimetphijet298->SetBinError(4,0.006758593); phimetphijet298->SetBinError(5,0.006577098); phimetphijet298->SetBinError(6,0.006435378); phimetphijet298->SetBinError(7,0.005984446); phimetphijet298->SetBinError(8,0.005703029); phimetphijet298->SetBinError(9,0.00552641); phimetphijet298->SetBinError(10,0.005538473); phimetphijet298->SetBinError(11,0.00554042); phimetphijet298->SetBinError(12,0.00553433); phimetphijet298->SetBinError(13,0.00578102); phimetphijet298->SetBinError(14,0.005996152); phimetphijet298->SetBinError(15,0.006336019); phimetphijet298->SetBinError(16,0.006562733); phimetphijet298->SetBinError(17,0.00671901); phimetphijet298->SetBinError(18,0.006958606); phimetphijet298->SetBinError(19,0.006977009); phimetphijet298->SetBinError(20,0.006670566); phimetphijet298->SetEntries(300679); ci = TColor::GetColor("#ffcc00"); phimetphijet298->SetFillColor(ci); ci = TColor::GetColor("#ffcc00"); phimetphijet298->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); phimetphijet298->SetMarkerColor(ci); phimetphijet298->SetMarkerStyle(21); phimetphijet298->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet298->GetXaxis()->SetLabelFont(42); phimetphijet298->GetXaxis()->SetLabelSize(0.035); phimetphijet298->GetXaxis()->SetTitleSize(0.035); phimetphijet298->GetXaxis()->SetTitleFont(42); phimetphijet298->GetYaxis()->SetTitle("Events/pb"); phimetphijet298->GetYaxis()->SetLabelFont(42); phimetphijet298->GetYaxis()->SetLabelSize(0.035); phimetphijet298->GetYaxis()->SetTitleSize(0.035); phimetphijet298->GetYaxis()->SetTitleFont(42); phimetphijet298->GetZaxis()->SetLabelFont(42); phimetphijet298->GetZaxis()->SetLabelSize(0.035); phimetphijet298->GetZaxis()->SetTitleSize(0.035); phimetphijet298->GetZaxis()->SetTitleFont(42); phimetphijet2->Add(phimetphijet2,""); TH1D *phimetphijet299 = new TH1D("phimetphijet299"," #Delta_{#phi}[MET,jet_{2}]",20,-3.141593,3.141593); phimetphijet299->SetBinContent(1,0.01442198); phimetphijet299->SetBinContent(2,0.01314174); phimetphijet299->SetBinContent(3,0.01025734); phimetphijet299->SetBinContent(4,0.008221299); phimetphijet299->SetBinContent(5,0.006293227); phimetphijet299->SetBinContent(6,0.006031009); phimetphijet299->SetBinContent(7,0.004565674); phimetphijet299->SetBinContent(8,0.003886993); phimetphijet299->SetBinContent(9,0.004241758); phimetphijet299->SetBinContent(10,0.004334306); phimetphijet299->SetBinContent(11,0.003686474); phimetphijet299->SetBinContent(12,0.00418006); phimetphijet299->SetBinContent(13,0.00434973); phimetphijet299->SetBinContent(14,0.004951289); phimetphijet299->SetBinContent(15,0.005429451); phimetphijet299->SetBinContent(16,0.006277802); phimetphijet299->SetBinContent(17,0.009578662); phimetphijet299->SetBinContent(18,0.01055041); phimetphijet299->SetBinContent(19,0.01200032); phimetphijet299->SetBinContent(20,0.01436028); phimetphijet299->SetBinError(1,0.0004716491); phimetphijet299->SetBinError(2,0.0004502285); phimetphijet299->SetBinError(3,0.0003977627); phimetphijet299->SetBinError(4,0.000356104); phimetphijet299->SetBinError(5,0.0003115612); phimetphijet299->SetBinError(6,0.0003050012); phimetphijet299->SetBinError(7,0.0002653744); phimetphijet299->SetBinError(8,0.0002448576); phimetphijet299->SetBinError(9,0.0002557877); phimetphijet299->SetBinError(10,0.000258563); phimetphijet299->SetBinError(11,0.0002384582); phimetphijet299->SetBinError(12,0.0002539206); phimetphijet299->SetBinError(13,0.0002590227); phimetphijet299->SetBinError(14,0.000276354); phimetphijet299->SetBinError(15,0.0002893907); phimetphijet299->SetBinError(16,0.0003111791); phimetphijet299->SetBinError(17,0.0003843785); phimetphijet299->SetBinError(18,0.000403405); phimetphijet299->SetBinError(19,0.0004302323); phimetphijet299->SetBinError(20,0.0004706392); phimetphijet299->SetEntries(9774); ci = TColor::GetColor("#ff0000"); phimetphijet299->SetFillColor(ci); ci = TColor::GetColor("#ff0000"); phimetphijet299->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); phimetphijet299->SetMarkerColor(ci); phimetphijet299->SetMarkerStyle(20); phimetphijet299->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet299->GetXaxis()->SetLabelFont(42); phimetphijet299->GetXaxis()->SetLabelSize(0.035); phimetphijet299->GetXaxis()->SetTitleSize(0.035); phimetphijet299->GetXaxis()->SetTitleFont(42); phimetphijet299->GetYaxis()->SetTitle("Events/pb"); phimetphijet299->GetYaxis()->SetLabelFont(42); phimetphijet299->GetYaxis()->SetLabelSize(0.035); phimetphijet299->GetYaxis()->SetTitleSize(0.035); phimetphijet299->GetYaxis()->SetTitleFont(42); phimetphijet299->GetZaxis()->SetLabelFont(42); phimetphijet299->GetZaxis()->SetLabelSize(0.035); phimetphijet299->GetZaxis()->SetTitleSize(0.035); phimetphijet299->GetZaxis()->SetTitleFont(42); phimetphijet2->Add(phimetphijet2,""); TH1D *phimetphijet2100 = new TH1D("phimetphijet2100"," #Delta_{#phi}[MET,jet_{2}]",20,-3.141593,3.141593); phimetphijet2100->SetBinContent(1,0.0001677165); phimetphijet2100->SetBinContent(2,0.0002012598); phimetphijet2100->SetBinContent(3,0.0002180314); phimetphijet2100->SetBinContent(4,0.0002348031); phimetphijet2100->SetBinContent(5,0.0001509448); phimetphijet2100->SetBinContent(6,0.0001174015); phimetphijet2100->SetBinContent(7,0.0001341732); phimetphijet2100->SetBinContent(8,8.385824e-05); phimetphijet2100->SetBinContent(9,0.0001006299); phimetphijet2100->SetBinContent(10,0.0001509448); phimetphijet2100->SetBinContent(11,6.708659e-05); phimetphijet2100->SetBinContent(12,3.35433e-05); phimetphijet2100->SetBinContent(13,0.0002180314); phimetphijet2100->SetBinContent(14,0.0002180314); phimetphijet2100->SetBinContent(15,0.0002012598); phimetphijet2100->SetBinContent(16,0.0001174015); phimetphijet2100->SetBinContent(17,0.0003186613); phimetphijet2100->SetBinContent(18,0.0003689762); phimetphijet2100->SetBinContent(19,8.385824e-05); phimetphijet2100->SetBinContent(20,8.385824e-05); phimetphijet2100->SetBinError(1,5.303661e-05); phimetphijet2100->SetBinError(2,5.809869e-05); phimetphijet2100->SetBinError(3,6.047104e-05); phimetphijet2100->SetBinError(4,6.275376e-05); phimetphijet2100->SetBinError(5,5.031494e-05); phimetphijet2100->SetBinError(6,4.437361e-05); phimetphijet2100->SetBinError(7,4.743738e-05); phimetphijet2100->SetBinError(8,3.750254e-05); phimetphijet2100->SetBinError(9,4.108198e-05); phimetphijet2100->SetBinError(10,5.031494e-05); phimetphijet2100->SetBinError(11,3.35433e-05); phimetphijet2100->SetBinError(12,2.371869e-05); phimetphijet2100->SetBinError(13,6.047104e-05); phimetphijet2100->SetBinError(14,6.047104e-05); phimetphijet2100->SetBinError(15,5.809869e-05); phimetphijet2100->SetBinError(16,4.437361e-05); phimetphijet2100->SetBinError(17,7.310592e-05); phimetphijet2100->SetBinError(18,7.8666e-05); phimetphijet2100->SetBinError(19,3.750254e-05); phimetphijet2100->SetBinError(20,3.750254e-05); phimetphijet2100->SetEntries(195); ci = TColor::GetColor("#0000ff"); phimetphijet2100->SetFillColor(ci); ci = TColor::GetColor("#0000ff"); phimetphijet2100->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); phimetphijet2100->SetMarkerColor(ci); phimetphijet2100->SetMarkerStyle(21); phimetphijet2100->GetXaxis()->SetTitle("phimetphijet2"); phimetphijet2100->GetXaxis()->SetLabelFont(42); phimetphijet2100->GetXaxis()->SetLabelSize(0.035); phimetphijet2100->GetXaxis()->SetTitleSize(0.035); phimetphijet2100->GetXaxis()->SetTitleFont(42); phimetphijet2100->GetYaxis()->SetTitle("Events/pb"); phimetphijet2100->GetYaxis()->SetLabelFont(42); phimetphijet2100->GetYaxis()->SetLabelSize(0.035); phimetphijet2100->GetYaxis()->SetTitleSize(0.035); phimetphijet2100->GetYaxis()->SetTitleFont(42); phimetphijet2100->GetZaxis()->SetLabelFont(42); phimetphijet2100->GetZaxis()->SetLabelSize(0.035); phimetphijet2100->GetZaxis()->SetTitleSize(0.035); phimetphijet2100->GetZaxis()->SetTitleFont(42); phimetphijet2->Add(phimetphijet2,""); phimetphijet2->Draw("nostack"); TPaveText *pt = new TPaveText(0.3269253,0.9342857,0.6730747,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("phimetphijet2"); pt->Draw(); TLegend *leg = new TLegend(0.54023,0.639881,0.938218,0.924107,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetTextSize(0.034965); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("phimetphijet2","phimetphijet2_QCD","lp"); ci = TColor::GetColor("#00cc00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#00cc00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("phimetphijet2","phimetphijet2_WJetsToLNu","lp"); ci = TColor::GetColor("#00ffff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#00ffff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("phimetphijet2","phimetphijet2_ZJetsToNuNu","lp"); ci = TColor::GetColor("#ffcc00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ffcc00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("phimetphijet2","phimetphijet2_signal","lp"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("phimetphijet2","phimetphijet2_ttbar","lp"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); phimetphijet2->Modified(); phimetphijet2->cd(); phimetphijet2->SetSelected(phimetphijet2); }
void InclusiveJets_2010_mcdataRatio(){ //general root settings gROOT->SetStyle("Plain"); gStyle->SetOptStat(0); //get rid of statistics box // to set the errors of the histograms to sqrt(sum of squares of weights) TH1::SetDefaultSumw2() ; //Ranges for plots Float_t xmin=17.5 , ymin = 0.00001, xmax = 1684.0, ymax = 10000000000000000.; //for the linecolor and linestyle Int_t icol[8]={8,kViolet,7,4,12,46,6,7}; Int_t isty[8]={1,1,1,1,1,1,1,1}; Int_t imark[5] = {21,22,25,26,3}; //get the root files TFile *f[3]; f[0] = new TFile("out_aida_40times900kevents_errorcut50/Z2MPIHADONbornkt5ktsupp250_errorcut.root"); f[1] = new TFile("out_aida_40times900kevents_errorcut50/Z2MPIHADOFFbornkt5ktsupp250_errorcut.root"); f[2] = new TFile("out_aida_40times900kevents_errorcut50/NOTUNEbornkt5ktsupp250_errorcut.root"); //get the Tgraph and convert into histo TH1F _histotmp[6][3]; Int_t n = 3; //number of files Int_t nh = 6; // number of histograms = number of y bins for(const int ifile = 0; ifile < n; ifile++){ _histotmp[0][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d01_x01_y01;1")); // |y| <0.5 _histotmp[1][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d02_x01_y01;2")); // 0.5 < |y| < 1.0 _histotmp[2][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d03_x01_y01;2")); // 1.0 < |y| < 1.5 _histotmp[3][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d04_x01_y01;2")); // 1.5 < |y| < 2.0 _histotmp[4][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d05_x01_y01;1")); // 2.0 < |y| < 2.5 _histotmp[5][ifile] = Gr2Hi((TGraph*) f[ifile]->Get("d06_x01_y01;1")); // 2.5 < |y| < 3.0 for(const int ihisto = 0; ihisto < nh; ihisto++){ _histotmp[ihisto][ifile].SetName(""); } } //change the histo so that I can plot it and do the ratio TH1F *_histo[6][3]; for(const int ifile = 0; ifile < n; ifile++){ for(const int ihisto = 0; ihisto < nh; ihisto++){ TH1F *_histo[ihisto][ifile]= (TH1F*)_histotmp[ihisto][ifile].Clone(""); /* _histo[ihisto][ifile]->Divide((TH1*)_histo[ihisto][1]); //histo 0 / hsito 1 TH1F *_ratio1[ihisto]= (TH1F*)_ratiotmp1[ihisto]->Clone(""); _ratiotmp2[ihisto]->Divide((TH1*)_histo[ihisto][2]); //histo 0 / hsito 2 TH1F *_ratio2[ihisto]= (TH1F*)_ratiotmp2[ihisto]->Clone(""); */ _histo[ihisto][ifile]->SetLineWidth(2); _histo[ihisto][ifile]->SetLineColor(icol[ihisto]); _histo[ihisto][ifile]->SetMarkerStyle(2); _histo[ihisto][ifile]->SetMarkerColor(icol[ihisto]); } //scale the histos that it fits in one histogram _histo[0][ifile]->Scale(10000); _histo[1][ifile]->Scale(1000); _histo[2][ifile]->Scale(100); _histo[3][ifile]->Scale(10); _histo[4][ifile]->Scale(1); } //get the data 2010 //data = new TFile("out_aida/CMS_2011_S9086218.root"); //TH1F _histodata1 = Gr2Hi((TGraph*)data->Get("d01_x01_y01;1")); // |y| <0.5 //TH1F _histodata2 = Gr2Hi((TGraph*)data->Get("d02_x01_y01;1")); // 0.5 < |y| < 1.0 //TH1F _histodata3 = Gr2Hi((TGraph*)data->Get("d03_x01_y01;1")); // 1.0 < |y| < 1.5 //TH1F _histodata4 = Gr2Hi((TGraph*)data->Get("d04_x01_y01;1")); // 1.5 < |y| < 2.0 //TH1F _histodata5 = Gr2Hi((TGraph*)data->Get("d05_x01_y01;1")); // 2.0 < |y| < 2.5 //TH1F _histodata6 = Gr2Hi((TGraph*)data->Get("d06_x01_y01;1")); // 2.5 < |y| < 3.0 Double_t xAxis1[35] = {18, 21, 24, 28, 32, 37, 43, 49, 56, 64, 74, 84, 97, 114, 133, 153, 174, 196, 220, 245, 272, 300, 330, 362, 395, 430, 468, 507, 548, 592, 638, 686, 737, 846, 1684}; TH1F *d01_x01_y01_histo = new TH1F("d01_x01_y01_histo","d01_x01_y01_histo",34, xAxis1); d01_x01_y01_histo->SetBinContent(1,1.97e+11); d01_x01_y01_histo->SetBinContent(2,1.02e+11); d01_x01_y01_histo->SetBinContent(3,5.14e+10); d01_x01_y01_histo->SetBinContent(4,2.66e+10); d01_x01_y01_histo->SetBinContent(5,1.38e+10); d01_x01_y01_histo->SetBinContent(6,6.53e+09); d01_x01_y01_histo->SetBinContent(7,3.35e+09); d01_x01_y01_histo->SetBinContent(8,1.8e+09); d01_x01_y01_histo->SetBinContent(9,9.2e+08); d01_x01_y01_histo->SetBinContent(10,4.66e+08); d01_x01_y01_histo->SetBinContent(11,2.37e+08); d01_x01_y01_histo->SetBinContent(12,1.18e+08); d01_x01_y01_histo->SetBinContent(13,5.43e+07); d01_x01_y01_histo->SetBinContent(14,2.39e+07); d01_x01_y01_histo->SetBinContent(15,1.08e+07); d01_x01_y01_histo->SetBinContent(16,5240000); d01_x01_y01_histo->SetBinContent(17,2610000); d01_x01_y01_histo->SetBinContent(18,1360000); d01_x01_y01_histo->SetBinContent(19,716000); d01_x01_y01_histo->SetBinContent(20,381000); d01_x01_y01_histo->SetBinContent(21,207000); d01_x01_y01_histo->SetBinContent(22,117000); d01_x01_y01_histo->SetBinContent(23,66800); d01_x01_y01_histo->SetBinContent(24,37900); d01_x01_y01_histo->SetBinContent(25,22000); d01_x01_y01_histo->SetBinContent(26,12900); d01_x01_y01_histo->SetBinContent(27,7540); d01_x01_y01_histo->SetBinContent(28,4410); d01_x01_y01_histo->SetBinContent(29,2770); d01_x01_y01_histo->SetBinContent(30,1450); d01_x01_y01_histo->SetBinContent(31,846); d01_x01_y01_histo->SetBinContent(32,499); d01_x01_y01_histo->SetBinContent(33,205); d01_x01_y01_histo->SetBinContent(34,20.2); d01_x01_y01_histo->SetBinError(1,2.547782e+10); d01_x01_y01_histo->SetBinError(2,1.24325e+10); d01_x01_y01_histo->SetBinError(3,6.016764e+09); d01_x01_y01_histo->SetBinError(4,3.005329e+09); d01_x01_y01_histo->SetBinError(5,1.530463e+09); d01_x01_y01_histo->SetBinError(6,7.056178e+08); d01_x01_y01_histo->SetBinError(7,3.617535e+08); d01_x01_y01_histo->SetBinError(8,1.96072e+08); d01_x01_y01_histo->SetBinError(9,9.919588e+07); d01_x01_y01_histo->SetBinError(10,5.102008e+07); d01_x01_y01_histo->SetBinError(11,2.639067e+07); d01_x01_y01_histo->SetBinError(12,1.335539e+07); d01_x01_y01_histo->SetBinError(13,6258885); d01_x01_y01_histo->SetBinError(14,2836105); d01_x01_y01_histo->SetBinError(15,1319900); d01_x01_y01_histo->SetBinError(16,663920.6); d01_x01_y01_histo->SetBinError(17,342646.4); d01_x01_y01_histo->SetBinError(18,184642.2); d01_x01_y01_histo->SetBinError(19,100845.5); d01_x01_y01_histo->SetBinError(20,55764.14); d01_x01_y01_histo->SetBinError(21,31565.29); d01_x01_y01_histo->SetBinError(22,18614.95); d01_x01_y01_histo->SetBinError(23,11075.51); d01_x01_y01_histo->SetBinError(24,6579.499); d01_x01_y01_histo->SetBinError(25,4015.708); d01_x01_y01_histo->SetBinError(26,2479.083); d01_x01_y01_histo->SetBinError(27,1527.99); d01_x01_y01_histo->SetBinError(28,943.6936); d01_x01_y01_histo->SetBinError(29,627.92); d01_x01_y01_histo->SetBinError(30,350.3168); d01_x01_y01_histo->SetBinError(31,219.1467); d01_x01_y01_histo->SetBinError(32,139.7467); d01_x01_y01_histo->SetBinError(33,62.02427); d01_x01_y01_histo->SetBinError(34,7.233998); d01_x01_y01_histo->SetEntries(34); d01_x01_y01_histo->SetStats(0); //d01_x01_y01_histo->Scale(10000); d01_x01_y01_histo->SetLineWidth(2); d01_x01_y01_histo->SetMarkerStyle(21); d01_x01_y01_histo->SetMarkerSize(0.7); d01_x01_y01_histo->SetFillColor(kGray); Double_t xAxis2[34] = {18, 21, 24, 28, 32, 37, 43, 49, 56, 64, 74, 84, 97, 114, 133, 153, 174, 196, 220, 245, 272, 300, 330, 362, 395, 430, 468, 507, 548, 592, 638, 686, 790, 1684}; TH1F *d02_x01_y01_histo = new TH1F("d02_x01_y01_histo","d02_x01_y01_histo",33, xAxis2); d02_x01_y01_histo->SetBinContent(1,1.89e+10); d02_x01_y01_histo->SetBinContent(2,9.74e+09); d02_x01_y01_histo->SetBinContent(3,4.99e+09); d02_x01_y01_histo->SetBinContent(4,2.49e+09); d02_x01_y01_histo->SetBinContent(5,1.31e+09); d02_x01_y01_histo->SetBinContent(6,6.28e+08); d02_x01_y01_histo->SetBinContent(7,3.23e+08); d02_x01_y01_histo->SetBinContent(8,1.71e+08); d02_x01_y01_histo->SetBinContent(9,8.84e+07); d02_x01_y01_histo->SetBinContent(10,4.42e+07); d02_x01_y01_histo->SetBinContent(11,2.22e+07); d02_x01_y01_histo->SetBinContent(12,1.13e+07); d02_x01_y01_histo->SetBinContent(13,5130000); d02_x01_y01_histo->SetBinContent(14,2230000); d02_x01_y01_histo->SetBinContent(15,1010000); d02_x01_y01_histo->SetBinContent(16,482000); d02_x01_y01_histo->SetBinContent(17,238000); d02_x01_y01_histo->SetBinContent(18,122000); d02_x01_y01_histo->SetBinContent(19,64200); d02_x01_y01_histo->SetBinContent(20,34100); d02_x01_y01_histo->SetBinContent(21,18700); d02_x01_y01_histo->SetBinContent(22,10100); d02_x01_y01_histo->SetBinContent(23,5720); d02_x01_y01_histo->SetBinContent(24,3420); d02_x01_y01_histo->SetBinContent(25,1890); d02_x01_y01_histo->SetBinContent(26,1130); d02_x01_y01_histo->SetBinContent(27,590); d02_x01_y01_histo->SetBinContent(28,376); d02_x01_y01_histo->SetBinContent(29,196); d02_x01_y01_histo->SetBinContent(30,130); d02_x01_y01_histo->SetBinContent(31,62.4); d02_x01_y01_histo->SetBinContent(32,30.1); d02_x01_y01_histo->SetBinContent(33,2.14); d02_x01_y01_histo->SetBinError(1,2.47211e+09); d02_x01_y01_histo->SetBinError(2,1.196891e+09); d02_x01_y01_histo->SetBinError(3,5.890842e+08); d02_x01_y01_histo->SetBinError(4,2.837945e+08); d02_x01_y01_histo->SetBinError(5,1.465766e+08); d02_x01_y01_histo->SetBinError(6,6.848512e+07); d02_x01_y01_histo->SetBinError(7,3.536592e+07); d02_x01_y01_histo->SetBinError(8,1.879562e+07); d02_x01_y01_histo->SetBinError(9,9619569); d02_x01_y01_histo->SetBinError(10,4860292); d02_x01_y01_histo->SetBinError(11,2483524); d02_x01_y01_histo->SetBinError(12,1278948); d02_x01_y01_histo->SetBinError(13,596427.3); d02_x01_y01_histo->SetBinError(14,266851); d02_x01_y01_histo->SetBinError(15,124973); d02_x01_y01_histo->SetBinError(16,61551.8); d02_x01_y01_histo->SetBinError(17,31482.64); d02_x01_y01_histo->SetBinError(18,16749.58); d02_x01_y01_histo->SetBinError(19,9172.852); d02_x01_y01_histo->SetBinError(20,5077.065); d02_x01_y01_histo->SetBinError(21,2898.771); d02_x01_y01_histo->SetBinError(22,1633.017); d02_x01_y01_histo->SetBinError(23,965.8504); d02_x01_y01_histo->SetBinError(24,606.0352); d02_x01_y01_histo->SetBinError(25,351.8168); d02_x01_y01_histo->SetBinError(26,221.2594); d02_x01_y01_histo->SetBinError(27,122.0002); d02_x01_y01_histo->SetBinError(28,82.34314); d02_x01_y01_histo->SetBinError(29,45.69701); d02_x01_y01_histo->SetBinError(30,32.27314); d02_x01_y01_histo->SetBinError(31,16.82748); d02_x01_y01_histo->SetBinError(32,8.687436); d02_x01_y01_histo->SetBinError(33,0.745178); d02_x01_y01_histo->SetEntries(33); d02_x01_y01_histo->SetStats(0); d02_x01_y01_histo->SetLineStyle(0); d02_x01_y01_histo->SetLineWidth(2); d02_x01_y01_histo->SetMarkerStyle(22); d02_x01_y01_histo->SetMarkerSize(0.7); d02_x01_y01_histo->SetFillColor(kGray); Double_t xAxis3[33] = {18, 21, 24, 28, 32, 37, 43, 49, 56, 64, 74, 84, 97, 114, 133, 153, 174, 196, 220, 245, 272, 300, 330, 362, 395, 430, 468, 507, 548, 592, 638, 686, 1410}; TH1F *d03_x01_y01_histo = new TH1F("d03_x01_y01_histo","d03_x01_y01_histo",32, xAxis3); d03_x01_y01_histo->SetBinContent(1,1.84e+09); d03_x01_y01_histo->SetBinContent(2,9.24e+08); d03_x01_y01_histo->SetBinContent(3,4.64e+08); d03_x01_y01_histo->SetBinContent(4,2.34e+08); d03_x01_y01_histo->SetBinContent(5,1.19e+08); d03_x01_y01_histo->SetBinContent(6,5.88e+07); d03_x01_y01_histo->SetBinContent(7,2.92e+07); d03_x01_y01_histo->SetBinContent(8,1.57e+07); d03_x01_y01_histo->SetBinContent(9,8090000); d03_x01_y01_histo->SetBinContent(10,4090000); d03_x01_y01_histo->SetBinContent(11,2050000); d03_x01_y01_histo->SetBinContent(12,994000); d03_x01_y01_histo->SetBinContent(13,452000); d03_x01_y01_histo->SetBinContent(14,192000); d03_x01_y01_histo->SetBinContent(15,86200); d03_x01_y01_histo->SetBinContent(16,40500); d03_x01_y01_histo->SetBinContent(17,20100); d03_x01_y01_histo->SetBinContent(18,10000); d03_x01_y01_histo->SetBinContent(19,5210); d03_x01_y01_histo->SetBinContent(20,2720); d03_x01_y01_histo->SetBinContent(21,1470); d03_x01_y01_histo->SetBinContent(22,803); d03_x01_y01_histo->SetBinContent(23,435); d03_x01_y01_histo->SetBinContent(24,252); d03_x01_y01_histo->SetBinContent(25,138); d03_x01_y01_histo->SetBinContent(26,75.7); d03_x01_y01_histo->SetBinContent(27,43.1); d03_x01_y01_histo->SetBinContent(28,23.5); d03_x01_y01_histo->SetBinContent(29,13.1); d03_x01_y01_histo->SetBinContent(30,6.96); d03_x01_y01_histo->SetBinContent(31,3.31); d03_x01_y01_histo->SetBinContent(32,0.263); d03_x01_y01_histo->SetBinError(1,3.267438e+08); d03_x01_y01_histo->SetBinError(2,1.460402e+08); d03_x01_y01_histo->SetBinError(3,6.756898e+07); d03_x01_y01_histo->SetBinError(4,3.169167e+07); d03_x01_y01_histo->SetBinError(5,1.534246e+07); d03_x01_y01_histo->SetBinError(6,7206299); d03_x01_y01_histo->SetBinError(7,3487964); d03_x01_y01_histo->SetBinError(8,1852766); d03_x01_y01_histo->SetBinError(9,937690); d03_x01_y01_histo->SetBinError(10,474695.6); d03_x01_y01_histo->SetBinError(11,239744.8); d03_x01_y01_histo->SetBinError(12,117028.5); d03_x01_y01_histo->SetBinError(13,54375.43); d03_x01_y01_histo->SetBinError(14,23751.81); d03_x01_y01_histo->SetBinError(15,11010.17); d03_x01_y01_histo->SetBinError(16,5355.962); d03_x01_y01_histo->SetBinError(17,2760.221); d03_x01_y01_histo->SetBinError(18,1428.408); d03_x01_y01_histo->SetBinError(19,775.8965); d03_x01_y01_histo->SetBinError(20,422.7916); d03_x01_y01_histo->SetBinError(21,238.9779); d03_x01_y01_histo->SetBinError(22,137.1344); d03_x01_y01_histo->SetBinError(23,78.10703); d03_x01_y01_histo->SetBinError(24,47.62767); d03_x01_y01_histo->SetBinError(25,27.54976); d03_x01_y01_histo->SetBinError(26,16.01829); d03_x01_y01_histo->SetBinError(27,9.722084); d03_x01_y01_histo->SetBinError(28,5.653863); d03_x01_y01_histo->SetBinError(29,3.37332); d03_x01_y01_histo->SetBinError(30,1.948179); d03_x01_y01_histo->SetBinError(31,1.026618); d03_x01_y01_histo->SetBinError(32,0.09205037); d03_x01_y01_histo->SetEntries(32); d03_x01_y01_histo->SetStats(0); d03_x01_y01_histo->SetLineStyle(0); d03_x01_y01_histo->SetLineWidth(2); d03_x01_y01_histo->SetMarkerStyle(25); d03_x01_y01_histo->SetMarkerSize(0.7); d03_x01_y01_histo->SetFillColor(kGray); Double_t xAxis4[30] = {18, 21, 24, 28, 32, 37, 43, 49, 56, 64, 74, 84, 97, 114, 133, 153, 174, 196, 220, 245, 272, 300, 330, 362, 395, 430, 468, 507, 548, 1032}; TH1F *d04_x01_y01_histo = new TH1F("d04_x01_y01_histo","d04_x01_y01_histo",29, xAxis4); d04_x01_y01_histo->SetBinContent(1,1.44e+08); d04_x01_y01_histo->SetBinContent(2,7.35e+07); d04_x01_y01_histo->SetBinContent(3,3.8e+07); d04_x01_y01_histo->SetBinContent(4,1.89e+07); d04_x01_y01_histo->SetBinContent(5,9700000); d04_x01_y01_histo->SetBinContent(6,4670000); d04_x01_y01_histo->SetBinContent(7,2280000); d04_x01_y01_histo->SetBinContent(8,1220000); d04_x01_y01_histo->SetBinContent(9,629000); d04_x01_y01_histo->SetBinContent(10,305000); d04_x01_y01_histo->SetBinContent(11,151000); d04_x01_y01_histo->SetBinContent(12,73400); d04_x01_y01_histo->SetBinContent(13,32900); d04_x01_y01_histo->SetBinContent(14,13900); d04_x01_y01_histo->SetBinContent(15,6160); d04_x01_y01_histo->SetBinContent(16,2860); d04_x01_y01_histo->SetBinContent(17,1400); d04_x01_y01_histo->SetBinContent(18,711); d04_x01_y01_histo->SetBinContent(19,356); d04_x01_y01_histo->SetBinContent(20,186); d04_x01_y01_histo->SetBinContent(21,94.5); d04_x01_y01_histo->SetBinContent(22,50.9); d04_x01_y01_histo->SetBinContent(23,25.6); d04_x01_y01_histo->SetBinContent(24,13.3); d04_x01_y01_histo->SetBinContent(25,7); d04_x01_y01_histo->SetBinContent(26,3.45); d04_x01_y01_histo->SetBinContent(27,1.73); d04_x01_y01_histo->SetBinContent(28,0.796); d04_x01_y01_histo->SetBinContent(29,0.066); d04_x01_y01_histo->SetBinError(1,3.637846e+07); d04_x01_y01_histo->SetBinError(2,1.67099e+07); d04_x01_y01_histo->SetBinError(3,7851714); d04_x01_y01_histo->SetBinError(4,3568673); d04_x01_y01_histo->SetBinError(5,1703586); d04_x01_y01_histo->SetBinError(6,750723.4); d04_x01_y01_histo->SetBinError(7,343490.2); d04_x01_y01_histo->SetBinError(8,173448.2); d04_x01_y01_histo->SetBinError(9,84294.21); d04_x01_y01_histo->SetBinError(10,39082.27); d04_x01_y01_histo->SetBinError(11,18979.5); d04_x01_y01_histo->SetBinError(12,9119.636); d04_x01_y01_histo->SetBinError(13,4140.893); d04_x01_y01_histo->SetBinError(14,1810.098); d04_x01_y01_histo->SetBinError(15,830.3785); d04_x01_y01_histo->SetBinError(16,399.9657); d04_x01_y01_histo->SetBinError(17,204.9602); d04_x01_y01_histo->SetBinError(18,109.8075); d04_x01_y01_histo->SetBinError(19,59.1287); d04_x01_y01_histo->SetBinError(20,33.42105); d04_x01_y01_histo->SetBinError(21,18.47046); d04_x01_y01_histo->SetBinError(22,10.88183); d04_x01_y01_histo->SetBinError(23,6.000047); d04_x01_y01_histo->SetBinError(24,3.41489); d04_x01_y01_histo->SetBinError(25,1.994767); d04_x01_y01_histo->SetBinError(26,1.086542); d04_x01_y01_histo->SetBinError(27,0.610451); d04_x01_y01_histo->SetBinError(28,0.3130872); d04_x01_y01_histo->SetBinError(29,0.03211142); d04_x01_y01_histo->SetEntries(29); d04_x01_y01_histo->SetStats(0); d04_x01_y01_histo->SetLineStyle(0); d04_x01_y01_histo->SetLineWidth(2); d04_x01_y01_histo->SetMarkerStyle(26); d04_x01_y01_histo->SetMarkerSize(0.7); d04_x01_y01_histo->SetFillColor(kGray); Double_t xAxis5[27] = {18, 21, 24, 28, 32, 37, 43, 49, 56, 64, 74, 84, 97, 114, 133, 153, 174, 196, 220, 245, 272, 300, 330, 362, 395, 430, 737}; TH1F *d05_x01_y01_histo = new TH1F("d05_x01_y01_histo","d05_x01_y01_histo",26, xAxis5); d05_x01_y01_histo->SetBinContent(1,1.05e+07); d05_x01_y01_histo->SetBinContent(2,5520000); d05_x01_y01_histo->SetBinContent(3,2720000); d05_x01_y01_histo->SetBinContent(4,1440000); d05_x01_y01_histo->SetBinContent(5,738000); d05_x01_y01_histo->SetBinContent(6,348000); d05_x01_y01_histo->SetBinContent(7,168000); d05_x01_y01_histo->SetBinContent(8,89800); d05_x01_y01_histo->SetBinContent(9,43800); d05_x01_y01_histo->SetBinContent(10,21800); d05_x01_y01_histo->SetBinContent(11,10300); d05_x01_y01_histo->SetBinContent(12,5030); d05_x01_y01_histo->SetBinContent(13,2180); d05_x01_y01_histo->SetBinContent(14,896); d05_x01_y01_histo->SetBinContent(15,384); d05_x01_y01_histo->SetBinContent(16,170); d05_x01_y01_histo->SetBinContent(17,78.5); d05_x01_y01_histo->SetBinContent(18,35.8); d05_x01_y01_histo->SetBinContent(19,16.5); d05_x01_y01_histo->SetBinContent(20,7.25); d05_x01_y01_histo->SetBinContent(21,3.27); d05_x01_y01_histo->SetBinContent(22,1.38); d05_x01_y01_histo->SetBinContent(23,0.579); d05_x01_y01_histo->SetBinContent(24,0.22); d05_x01_y01_histo->SetBinContent(25,0.0808); d05_x01_y01_histo->SetBinContent(26,0.00548); d05_x01_y01_histo->SetBinError(1,1978672); d05_x01_y01_histo->SetBinError(2,935188); d05_x01_y01_histo->SetBinError(3,421635.1); d05_x01_y01_histo->SetBinError(4,206618.7); d05_x01_y01_histo->SetBinError(5,100557.7); d05_x01_y01_histo->SetBinError(6,44514.08); d05_x01_y01_histo->SetBinError(7,20942.13); d05_x01_y01_histo->SetBinError(8,11048.87); d05_x01_y01_histo->SetBinError(9,5260.105); d05_x01_y01_histo->SetBinError(10,2634.555); d05_x01_y01_histo->SetBinError(11,1278.591); d05_x01_y01_histo->SetBinError(12,627.8137); d05_x01_y01_histo->SetBinError(13,282.1732); d05_x01_y01_histo->SetBinError(14,121.6466); d05_x01_y01_histo->SetBinError(15,55.24865); d05_x01_y01_histo->SetBinError(16,25.82574); d05_x01_y01_histo->SetBinError(17,12.76174); d05_x01_y01_histo->SetBinError(18,6.253124); d05_x01_y01_histo->SetBinError(19,3.142438); d05_x01_y01_histo->SetBinError(20,1.508923); d05_x01_y01_histo->SetBinError(21,0.7510828); d05_x01_y01_histo->SetBinError(22,0.3514478); d05_x01_y01_histo->SetBinError(23,0.1646418); d05_x01_y01_histo->SetBinError(24,0.071108); d05_x01_y01_histo->SetBinError(25,0.02988224); d05_x01_y01_histo->SetBinError(26,0.002567773); d05_x01_y01_histo->SetEntries(26); d05_x01_y01_histo->SetStats(0); d05_x01_y01_histo->SetLineStyle(0); d05_x01_y01_histo->SetLineWidth(2); d05_x01_y01_histo->SetMarkerStyle(3); d05_x01_y01_histo->SetMarkerSize(0.7); d05_x01_y01_histo->SetFillColor(kGray); // MC / Data TH1F *_ratio[6][3]; for(const int ifile = 0; ifile < n; ifile++){ for(const int ihisto = 0; ihisto < nh; ihisto++){ TH1F *_ratio[ihisto][ifile]= (TH1F*)_histo[ihisto][ifile]->Clone(""); _ratio[ihisto][ifile]->SetLineWidth(1); _ratio[ihisto][ifile]->SetLineColor(icol[ihisto]); _ratio[ihisto][ifile]->SetMarkerStyle(imark[ihisto]); _ratio[ihisto][ifile]->SetMarkerSize(0.5); _ratio[ihisto][ifile]->SetMarkerColor(icol[ihisto]); } _ratio[0][ifile]->Divide((TH1*)d01_x01_y01_histo); _ratio[1][ifile]->Divide((TH1*)d02_x01_y01_histo); _ratio[2][ifile]->Divide((TH1*)d03_x01_y01_histo); _ratio[3][ifile]->Divide((TH1*)d04_x01_y01_histo); _ratio[4][ifile]->Divide((TH1*)d05_x01_y01_histo); // TH1F *_ratio[ihisto]= (TH1F*)_ratiotmp1[ihisto]->Clone(""); // _ratiotmp2[ihisto]->Divide((TH1*)_histo[ihisto][2]); //histo 0 / hsito 2 // TH1F *_ratio2[ihisto]= (TH1F*)_ratiotmp2[ihisto]->Clone(""); } //create a canvas to draw TGraph and TH1F TCanvas *c1 = new TCanvas("c1", "c1",369,0,680,750); //pads (inclusive jet cross section, MC / data ) Pad_inclJet = new TPad("Pad_inclJet","xs",0.01,0.51,1.0,1.0); Pad_inclJet->Draw(); Pad_MCdata1 = new TPad("Pad_MCdata1","ratio",0.01,0.40,1.0,0.50); Pad_MCdata1->Draw(); Pad_MCdata2 = new TPad("Pad_MCdata2","ratio",0.01,0.30,1.0,0.40); Pad_MCdata2->Draw(); Pad_MCdata3 = new TPad("Pad_MCdata3","ratio",0.01,0.20,1.0,0.30); Pad_MCdata3->Draw(); Pad_MCdata4 = new TPad("Pad_MCdata4","ratio",0.01,0.10,1.0,0.20); Pad_MCdata4->Draw(); Pad_MCdata5 = new TPad("Pad_MCdata5","ratio",0.01,0.0,1.0,0.10); Pad_MCdata5->Draw(); // first pad style Pad_inclJet->cd(); gStyle->SetOptStat(0); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLogy(); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.03); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); //empty histo for border and style TH1F *shape = new TH1F("","",1, xmin, xmax); shape->SetMinimum(ymin); shape->SetMaximum(ymax); shape->GetXaxis()->SetTitle("Jet p_{T} (GeV/c)"); shape->GetXaxis()->SetLabelSize(0.03); shape->GetXaxis()->SetTitleSize(0.03); shape->GetXaxis()->SetNdivisions(508); shape->GetXaxis()->SetTitleOffset(1.3); shape->GetYaxis()->SetTitle("#frac{d^{2}#sigma}{dp_{T}d|y|} (pb/GeV)"); shape->GetYaxis()->SetLabelSize(0.03); shape->GetYaxis()->SetTitleSize(0.03); shape->GetYaxis()->SetTitleOffset(1.6); shape->Draw("e"); //data d01_x01_y01_histo->Draw("E2same"); d02_x01_y01_histo->Draw("E2same"); d03_x01_y01_histo->Draw("E2same"); d04_x01_y01_histo->Draw("E2same"); d05_x01_y01_histo->Draw("E2same"); _histo[0][0]->Draw("E1same"); _histo[1][0]->Draw("E1same"); _histo[2][0]->Draw("E1same"); _histo[3][0]->Draw("E1same"); _histo[4][0]->Draw("E1same"); gPad->SetLogy(); gPad->SetLogx(); TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.17,0.79,0.37,0.95,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.03); text = pt->AddText("CMS 2010"); text = pt->AddText("#sqrt{s} = 7 TeV"); text = pt->AddText("anti-k_{T} R = 0.5"); pt->Draw(); TLegend *leg = new TLegend(0.68,0.77,0.83,0.928); leg->SetBorderSize(1); leg->SetTextSize(0.025); leg->SetLineColor(0); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); leg->AddEntry((TH1F*)_histo[0][0],"POWHEG & Pythia6 Z2","pfl"); leg->AddEntry((TH1F*) d01_x01_y01_histo, "|y| <0.5 (x 10^{4})","pfl"); leg->AddEntry((TH1F*) d02_x01_y01_histo, "0.5 < |y| < 1.0 (x 10^{3})","pfl"); leg->AddEntry((TH1F*) d03_x01_y01_histo, "1.0 < |y| < 1.5 (x 10^{2})","pfl"); leg->AddEntry((TH1F*) d04_x01_y01_histo, "1.5 < |y| < 2.0 (x 10^{1})","pfl"); leg->AddEntry((TH1F*) d05_x01_y01_histo, "2.0 < |y| < 2.5 (x 10^{0})","pfl"); leg->Draw(); //second pad MC / Data Pad_MCdata1->cd(); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.0); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); gPad->SetLogx(); //AK Empty histo for style and borders TH1F *shape_MCdata = new TH1F("","",1, xmin, xmax); shape_MCdata->SetMinimum(0.5); shape_MCdata->SetMaximum(2.0); shape_MCdata->GetXaxis()->SetTitle("Jet p_{T} (GeV/c)"); shape_MCdata->GetXaxis()->SetLabelSize(0.0); shape_MCdata->GetXaxis()->SetTitleSize(0.0); shape_MCdata->GetXaxis()->SetTitleOffset(0.6); shape_MCdata->GetYaxis()->SetTitle("MC/Data"); shape_MCdata->GetYaxis()->SetLabelSize(0.15); shape_MCdata->GetYaxis()->SetTitleSize(0.15); shape_MCdata->GetYaxis()->SetTitleOffset(0.2); shape_MCdata->GetYaxis()->SetNdivisions(108, kTRUE); shape_MCdata->Draw("e"); // horizontal line at y = 1 TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.89,0.7,0.94,0.8,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.2); text = pt->AddText("|y| <0.5"); pt->Draw(); _ratio[0][0]->Draw("EhistSame"); Pad_MCdata2->cd(); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.0); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); gPad->SetLogx(); shape_MCdata->Draw("e"); // horizontal line at y = 1 TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.84,0.7,0.89,0.8,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.2); text = pt->AddText("0.5 < |y| < 1.0"); pt->Draw(); _ratio[1][0]->Draw("EhistSame"); Pad_MCdata3->cd(); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.0); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); gPad->SetLogx(); shape_MCdata->Draw("e"); // horizontal line at y = 1 TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.84,0.7,0.89,0.8,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.2); text = pt->AddText("1.0 < |y| < 1.5"); pt->Draw(); _ratio[2][0]->Draw("EhistSame"); Pad_MCdata4->cd(); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.0); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); gPad->SetLogx(); shape_MCdata->Draw("e"); // horizontal line at y = 1 TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.84,0.7,0.89,0.8,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.2); text = pt->AddText("1.5 < |y| < 2.0"); pt->Draw(); _ratio[3][0]->Draw("EhistSame"); Pad_MCdata5->cd(); gPad->SetFillColor(0); gPad->SetBorderMode(0); gPad->SetBorderSize(2); gPad->SetLeftMargin(0.14); gPad->SetRightMargin(0.03); gPad->SetTopMargin(0.0); gPad->SetFrameBorderMode(0); gPad->SetFrameBorderMode(0); gPad->SetLogx(); shape_MCdata->Draw("e"); // horizontal line at y = 1 TLine *line = new TLine(xmin,1,xmax,1); line->SetLineStyle(2); line->Draw(); TPaveText *pt = new TPaveText(0.84,0.7,0.89,0.8,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextSize(0.2); text = pt->AddText("2.0 < |y| < 2.5"); pt->Draw(); _ratio[4][0]->Draw("EhistSame"); //write in png file mysubpad1 =(TPad*)c1->GetPad(0); mysubpad1->Print("pics/InclusiveJets_10_mcdataRatio.png"); }
void cmsRAA(int version = 6) { double mymarkersize = 1.; bool bDo2PadZoo = true; //----------------------------------------- charged hadrons double ptBins_h[27]={0}; double ptError_h[27]={0}; double raa_h[27]; double raaStat_h[27]; double raaSyst_h[27]; double ptSystXlow_h[27]; double ptSystXhigh_h[27]; // reading numbers ifstream inData_h; TString inFile("raa_h05.dat"); inData_h.open(inFile); if(inData_h.fail()) { cerr << "unable to open file raa_h05.dat for reading" << endl; exit(1); } Int_t j=0; Double_t xx_low, xx_high,raa,raa_syst, raa_stat; while(!inData_h.eof()) { inData_h >> xx_low >> xx_high >> raa >> raa_syst >> raa_stat; ptBins_h[j] = xx_low+ (xx_high-xx_low)/2; raa_h[j] = raa; raaStat_h[j] = raa_syst; raaSyst_h[j] = raa_stat; ptSystXlow_h[j] = (xx_high-xx_low)/2; ptSystXhigh_h[j]= (xx_high-xx_low)/2; // cout<<"pT"<<ptBins_h[j]<<"\t raa= "<<raa_h[j]<<"\t syst= "<<raaStat_h[j]<<"\t stat ="<<raaSyst_h[j]<<"\t x_low= "<<ptSystXlow_h[j]<<"\t high= "<<ptSystXhigh_h[j]<<endl; j++; } inData_h.close(); // done reading numebrs TGraphErrors *pgRaa_h = new TGraphErrors(27, ptBins_h, raa_h, ptError_h, raaStat_h); TGraphAsymmErrors *pgRaaSyst_h = new TGraphAsymmErrors(27, ptBins_h, raa_h, ptSystXlow_h,ptSystXhigh_h,raaSyst_h,raaSyst_h); pgRaa_h->SetName("pgRaa_h"); pgRaa_h->SetMarkerStyle(kFullCircle); pgRaa_h->SetMarkerSize(1.); //systm error pgRaaSyst_h->SetName("pgRaaSyst_h"); pgRaaSyst_h->SetFillColor(TColor::GetColor("#33ccff")); //----------------------------------------- jet RAA double ptBins_jet[] = {105,115,125,135,145,155,165,175,190,220,270}; double ptError_jet[] = {0.0, 0.0, 0.0, 0.0, 0.0,0,0,0,0,0,0}; double raa_jet[] = {0.47, 0.47, 0.46, 0.44, 0.43, 0.47, 0.52, 0.51, 0.44, 0.42, 0.58}; double raaStat_jet[] = {0.0076, 0.0098, 0.013, 0.016, 0.021, 0.028, 0.038, 0.045, 0.035, 0.039, 0.098}; double raaSyst_jet[] = {0.07, 0.07, 0.08, 0.09, 0.08, 0.08, 0.08, 0.08, 0.07, 0.07, 0.10 }; double ptSystXlow_jet[] = {5, 5, 5, 5, 5,5,5,5,10,20,30}; double ptSystXhigh_jet[] = {5, 5, 5, 5, 5,5,5,5,10,20,30}; TGraphErrors *pgRaa_jet = new TGraphErrors(11, ptBins_jet, raa_jet, ptError_jet, raaStat_jet); TGraphAsymmErrors *pgRaaSyst_jet = new TGraphAsymmErrors(11, ptBins_jet, raa_jet, ptSystXlow_jet,ptSystXhigh_jet,raaSyst_jet,raaSyst_jet); pgRaa_jet->SetName("pgRaa_jet"); pgRaa_jet->SetMarkerStyle(22); pgRaa_jet->SetMarkerSize(1.); //systm error pgRaaSyst_jet->SetName("pgRaaSyst_jet"); pgRaaSyst_jet->SetFillColor(TColor::GetColor("#00FF60")); //----------------------------------------- b-jet RAA double ptBins_bjet[5] = {85,100,120,150,210}; double ptError_bjet[5] = {0,0,0,0,0}; double raa_bjet[5] = {0.3927,0.3277,0.4598,0.4034,0.4214}; double raaStat_bjet[5] = {0.0179,0.0178,0.0374,0.0625,0.1589}; double raaSyst_bjet[5] = {0.0917,0.0923,0.1272,0.1529,0.2771}; double ptSystXlow_bjet[5] = {5,10,10,20,40}; double ptSystXhigh_bjet[5] = {5,10,10,20,40}; TGraphErrors *pgRaa_bjet = new TGraphErrors(5, ptBins_bjet, raa_bjet, ptError_bjet, raaStat_bjet); TGraphAsymmErrors *pgRaaSyst_bjet = new TGraphAsymmErrors(5, ptBins_bjet, raa_bjet, ptSystXlow_bjet,ptSystXhigh_bjet,raaSyst_bjet,raaSyst_bjet); pgRaa_bjet->SetName("pgRaa_bjet"); pgRaa_bjet->SetMarkerStyle(21); pgRaa_bjet->SetMarkerColor(kRed); pgRaa_bjet->SetMarkerSize(1.); //systm error pgRaaSyst_bjet->SetName("pgRaaSyst_bjet"); pgRaaSyst_bjet->SetFillColor(TColor::GetColor("#FFBF00")); //----------------------------------------- photon double ptBins_photon[] = {22.26, 27.30, 34.35, 44.45, 61.72}; double ptError_photon[] = {0.0, 0.0, 0.0, 0.0, 0.0}; double raa_photon[] = {1.03, 0.84, 1.37, 0.98, 0.99}; double raaStat_photon[] = {0.12 ,0.14, 0.22, 0.24, 0.31 }; double raaSyst_photon[] = {0.29, 0.27, 0.25, 0.22, 0.21}; double ptSystXlow_photon[] = {2.5, 2.5, 5, 5, 15}; double ptSystXhigh_photon[] = {2.5, 2.5, 5, 5, 15}; TGraphErrors *pgRaa_photon = new TGraphErrors(5, ptBins_photon, raa_photon, ptError_photon, raaStat_photon); TGraphAsymmErrors *pgRaaSyst_photon = new TGraphAsymmErrors(5, ptBins_photon, raa_photon, ptSystXlow_photon,ptSystXhigh_photon,raaSyst_photon,raaSyst_photon); pgRaa_photon->SetName("pgRaa_photon"); pgRaa_photon->SetMarkerStyle(23); pgRaa_photon->SetMarkerSize(1.); //systm error pgRaaSyst_photon->SetName("pgRaaSyst_photon"); pgRaaSyst_photon->SetFillColor(TColor::GetColor("#ffff00")); //----------------------------------------- Z double ptBins_z[] = {91.19}; //double ptBins_z[7] = {2.5,7.5,15,25,35,45,75}; double ptError_z[] = {0.0}; //double ptError_z[7] = {0.0}; double raa_z[] = {1.06}; double raaStat_z[] = {0.05}; double raaSyst_z[] = {0.08}; double ptSystXlow_z[] = {4}; double ptSystXhigh_z[] = {4}; //double raa_z[7] = {0.88,1.20,1.00,1.35,1.11,1.35,0.78}; //double raaStat_z[7] = {0.09,0.13,0.11,0.22,0.27,0.42,0.20}; //double raaSyst_z[7] = {0.06,0.08,0.07,0.09,0.08,0.09,0.05}; //double ptSystXlow_z[7] = {2.5,2.5,5,5,5,5,25}; //double ptSystXhigh_z[7] = {2.5,2.5,5,5,5,5,25}; TGraphErrors *pgRaa_z = new TGraphErrors(1, ptBins_z, raa_z, ptError_z, raaStat_z); TGraphAsymmErrors *pgRaaSyst_z = new TGraphAsymmErrors(1, ptBins_z, raa_z, ptSystXlow_z,ptSystXhigh_z,raaSyst_z,raaSyst_z); pgRaa_z->SetName("pgRaa_z"); pgRaa_z->SetMarkerStyle(kFullCircle); pgRaa_z->SetMarkerSize(1.); pgRaa_z->SetMarkerStyle(22); //systm error pgRaaSyst_z->SetName("pgRaaSyst_z"); pgRaaSyst_z->SetFillColor(TColor::GetColor("#ff8888")); // ----------------------------------------- W raa double ptBins_w[] = {80.38}; double ptError_w[] = {0.0}; double raa_w[] = {1.04}; double raaStat_w[] = {0.07}; double raaSyst_w[] = {0.12}; double ptSystXlow_w[] = {4}; double ptSystXhigh_w[] = {4}; TGraphErrors *pgRaa_w = new TGraphErrors(1, ptBins_w, raa_w, ptError_w, raaStat_w); TGraphAsymmErrors *pgRaaSyst_w = new TGraphAsymmErrors(1, ptBins_w, raa_w, ptSystXlow_w,ptSystXhigh_w,raaSyst_w,raaSyst_w); pgRaa_w->SetName("pgRaa_w"); pgRaa_w->SetMarkerStyle(kFullCircle); pgRaa_w->SetMarkerSize(1.); pgRaa_w->SetMarkerStyle(21); //systm error pgRaaSyst_w->SetName("pgRaaSyst_w"); pgRaaSyst_w->SetFillColor(TColor::GetColor("#ff88ff")); // ----------------------------------------- 2012 non-prompt Jpsi double ptBins_npjpsi[] = {7.31,8.97,11.32,16.52}; double ptError_npjpsi[] = {0.0,0.0,0.0,0.0}; double raa_npjpsi[] = {0.52,0.43,0.43,0.34}; double raaStat_npjpsi[] = {0.12,0.08,0.09,0.07}; double raaSyst_npjpsi[] = {0.06,0.05,0.05,0.04}; double ptSystXlow_npjpsi[] = {0.81, 0.97, 1.32, 3.52}; double ptSystXhigh_npjpsi[] = {0.69, 1.03, 1.68, 13.48}; TGraphErrors *pgRaa_npjpsi = new TGraphErrors(4, ptBins_npjpsi, raa_npjpsi, ptError_npjpsi, raaStat_npjpsi); TGraphAsymmErrors *pgRaaSyst_npjpsi = new TGraphAsymmErrors(4, ptBins_npjpsi, raa_npjpsi, ptSystXlow_npjpsi,ptSystXhigh_npjpsi,raaSyst_npjpsi,raaSyst_npjpsi); pgRaa_npjpsi->SetName("pgRaa_npjpsi"); pgRaa_npjpsi->SetMarkerStyle(29); pgRaa_npjpsi->SetMarkerSize(1.2); pgRaa_npjpsi->SetMarkerColor(kRed); //systm error pgRaaSyst_npjpsi->SetName("pgRaaSyst_npjpsi"); // pgRaaSyst_npjpsi->SetFillColor(TColor::GetColor("#ee7711")); pgRaaSyst_npjpsi->SetFillColor(TColor::GetColor("#ba8a98")); //--------------------------------------------------------- // lumi uncert. TBox *box = new TBox(0.9,0.9568966,2,1.043103); box->SetFillColor(kGray+1); box->SetFillStyle(1001); TBox *box_lin = new TBox(0.9,0.9568966,10,1.043103); box_lin->SetFillColor(kGray+1); box_lin->SetFillStyle(1001); //------------------------ single pannel: TCanvas *pc = new TCanvas("pc","pc"); TH1 *phAxis = new TH1D("phAxis",";p_{T} (m_{T}) [GeV];R_{AA}",1,0.9,300); phAxis->GetYaxis()->CenterTitle(true); phAxis->SetMinimum(0.); phAxis->SetMaximum(2.5); gPad->SetLogx(); phAxis->Draw(""); // drawing order: // A) stat boxes: pgRaaSyst_photon->Draw("2"); pgRaaSyst_npjpsi->Draw("2"); pgRaaSyst_h->Draw("2"); pgRaaSyst_z->Draw("2"); pgRaaSyst_w->Draw("2"); pgRaaSyst_bjet->Draw("2"); pgRaaSyst_jet->Draw("2"); //nominal+stat // photon pgRaa_photon->Draw("P z"); pgRaa_z->Draw("P z"); pgRaa_w->Draw("P z"); pgRaa_h->Draw("P z"); pgRaa_npjpsi->Draw("P z"); pgRaa_bjet->Draw("P z"); pgRaa_jet->Draw("P z"); TLine *line = new TLine(0.9,1,300,1); line->SetLineStyle(7); line->Draw(); //box->Draw(); // // legends and writings: TLegend *leg = new TLegend(0.05,0.87,0.39,0.95,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetTextSize(0.029); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(19); leg->SetFillStyle(0); // TLegendEntry *entry=leg->AddEntry("hEtSIEIECorrected","CMS PRELIMINARY",""); // entry->SetLineWidth(1); // entry=leg->AddEntry("hEtSIEIECorrected","PbPb #sqrt{s_{NN}} = 2.76 TeV",""); // entry=leg->AddEntry("hEtSIEIECorrected","",""); // entry=leg->AddEntry("hEtSIEIECorrected","#int L dt = 7-150 #mub^{-1}",""); TLegendEntry *entry=leg->AddEntry("hEtSIEIECorrected","CMS *PRELIMINARY PbPb #sqrt{s_{NN}} = 2.76 TeV #int L dt = 7-150 #mub^{-1}",""); entry->SetLineWidth(1); // TAA // TAA only TLegend *leg_taa = new TLegend(0.15,0.5,0.5,0.55,NULL,"brNDC"); leg_taa->SetBorderSize(0); leg_taa->SetTextFont(62); leg_taa->SetTextSize(0.028); leg_taa->SetLineColor(1); leg_taa->SetLineStyle(1); leg_taa->SetLineWidth(1); leg_taa->SetFillColor(19); leg_taa->SetFillStyle(0); TLegendEntry *entry_taa= leg_taa->AddEntry("general","T_{AA} uncertainty","f"); entry_taa->SetFillColor(kGray+1); entry_taa->SetFillStyle(1001); entry_taa->SetLineColor(0); entry_taa->SetLineWidth(1); entry_taa->SetMarkerStyle(21); entry_taa->SetMarkerSize(1); // EWQ legend TLegend *leg_ewq = new TLegend(0.14,0.79,0.6,0.89,NULL,"brNDC"); leg_ewq->SetBorderSize(0); leg_ewq->SetTextFont(62); leg_ewq->SetTextSize(0.028); leg_ewq->SetLineColor(1); leg_ewq->SetLineStyle(1); leg_ewq->SetLineWidth(1); leg_ewq->SetFillColor(19); leg_ewq->SetFillStyle(0); TLegendEntry *entry_ewq=leg_ewq->AddEntry("raaz","*Z (0-100%) |y| < 2","lpf"); entry_ewq->SetFillColor(TColor::GetColor("#ff8888")); entry_ewq->SetFillStyle(1001); entry_ewq->SetLineColor(1); entry_ewq->SetLineWidth(1); entry_ewq->SetMarkerStyle(22); entry_ewq->SetMarkerSize(1.); entry_ewq=leg_ewq->AddEntry("raaw","W (0-100%) p_{T}^{#mu} > 25 GeV/c^{^{ }}, |#eta^{#mu}| < 2.1","lpf"); entry_ewq->SetFillColor(TColor::GetColor("#ff88ff")); entry_ewq->SetFillStyle(1001); entry_ewq->SetLineColor(1); entry_ewq->SetLineWidth(1); entry_ewq->SetMarkerStyle(21); entry_ewq->SetMarkerSize(1.); entry_ewq=leg_ewq->AddEntry("raaphoton","Isolated photon (0-10%) |#eta| < 1.44","lpf"); entry_ewq->SetFillColor(TColor::GetColor("#ffff00")); entry_ewq->SetFillStyle(1001); entry_ewq->SetLineColor(1); entry_ewq->SetLineWidth(1); entry_ewq->SetMarkerStyle(23); entry_ewq->SetMarkerSize(1); // b and h TLegend *leg_q = new TLegend(0.14,0.72,0.6,0.79,NULL,"brNDC"); leg_q->SetBorderSize(0); leg_q->SetTextFont(62); leg_q->SetTextSize(0.028); leg_q->SetLineColor(1); leg_q->SetLineStyle(1); leg_q->SetLineWidth(1); leg_q->SetFillColor(19); leg_q->SetFillStyle(0); TLegendEntry *entry_q=leg_q->AddEntry("raah","Charged particles (0-5%) |#eta| < 1","lpf"); entry_q->SetFillColor(TColor::GetColor("#33ccff")); entry_q->SetFillStyle(1001); entry_q->SetLineColor(1); entry_q->SetLineStyle(1); entry_q->SetLineWidth(1); entry_q->SetMarkerStyle(kFullCircle); entry_q->SetMarkerSize(1); entry_q=leg_q->AddEntry("raab","*B #rightarrow J/#psi (0-100%) |#eta| < 2.4","lpf"); entry_q->SetFillColor(TColor::GetColor("#ba8a98")); entry_q->SetFillStyle(1001); entry_q->SetLineColor(1); entry_q->SetLineStyle(1); entry_q->SetLineWidth(1); entry_q->SetMarkerStyle(29); entry_q->SetMarkerColor(kRed); entry_q->SetMarkerSize(1.2); //entry_q=leg_q->AddEntry("raabjpsi", "(via secondary J/#psi)",""); // jet legend TLegend *leg_jet = new TLegend(0.14,0.65,0.6,0.72,NULL,"brNDC"); leg_jet->SetBorderSize(0); leg_jet->SetTextFont(62); leg_jet->SetTextSize(0.028); leg_jet->SetLineColor(1); leg_jet->SetLineStyle(1); leg_jet->SetLineWidth(1); leg_jet->SetFillColor(19); leg_jet->SetFillStyle(0); TLegendEntry *entry_jet=leg_jet->AddEntry("raaq","*q/g-jet (0-5%) |#eta| < 2","lpf"); entry_jet->SetFillColor(TColor::GetColor("#00FF60")); entry_jet->SetFillStyle(1001); entry_jet->SetLineColor(1); entry_jet->SetLineStyle(1); entry_jet->SetLineWidth(1); entry_jet->SetMarkerStyle(22); entry_jet->SetMarkerSize(1); entry_jet=leg_jet->AddEntry("raaheavy","*b-jet (0-10%) |#eta| < 2","lpf"); entry_jet->SetFillColor(TColor::GetColor("#FFBF00")); entry_jet->SetFillStyle(1001); entry_jet->SetLineColor(1); entry_jet->SetLineStyle(1); entry_jet->SetLineWidth(1); entry_jet->SetMarkerStyle(21); entry_jet->SetMarkerColor(kRed); entry_jet->SetMarkerSize(1); leg->Draw(); //leg_taa->Draw(); leg_ewq->Draw(); leg_q->Draw(); leg_jet->Draw(); gPad->RedrawAxis(); // save the work // pc->SaveAs("raaZoo_cms_log.pdf"); // pc->SaveAs("raaZoo_cms_log.png"); //-------------------------------------------------------------------------------- //-------------------------- 2TPad //double sizeincrease = 1.2; TH1 *phAxis_single = new TH1D("phAxis_single",";p_{T} (m_{T}) [GeV];R_{AA}",1,0,105); phAxis_single->GetYaxis()->CenterTitle(true); //phAxis_single->GetXaxis()->CenterTitle(true); //double defaxissize = phAxis_single->GetYaxis()->GetTitleSize(); //double defaxislabel = phAxis_single->GetYaxis()->GetLabelSize(); //phAxis_single->GetYaxis()->SetTitleSize(defaxissize*sizeincrease); //phAxis_single->GetXaxis()->SetTitleSize(defaxissize*sizeincrease); //phAxis_single->GetYaxis()->SetLabelSize(defaxislabel*sizeincrease); //phAxis_single->GetXaxis()->SetLabelSize(defaxislabel*sizeincrease); //phAxis_single->GetYaxis()->SetNdivisions(310); //phAxis_single->GetXaxis()->SetNdivisions(310); //phAxis_single->GetYaxis()->SetTitleOffset(0.85); //phAxis_single->GetXaxis()->SetTitleOffset(0.85); phAxis_single->SetMinimum(0.); phAxis_single->SetMaximum(2.5); TH1 *phAxis_jet = new TH1D("phAxis_jet",";p_{T} [GeV];",1,75,300); //phAxis_jet->GetYaxis()->CenterTitle(true); //phAxis_jet->GetXaxis()->CenterTitle(true); //phAxis_jet->GetYaxis()->SetTitleSize(defaxissize*sizeincrease); //phAxis_jet->GetXaxis()->SetTitleSize(defaxissize*sizeincrease); //phAxis_jet->GetYaxis()->SetLabelSize(defaxislabel*sizeincrease); phAxis_jet->GetYaxis()->SetLabelColor(0); //phAxis_jet->GetXaxis()->SetLabelSize(defaxislabel*sizeincrease); //phAxis_jet->GetYaxis()->SetNdivisions(310); //phAxis_jet->GetXaxis()->SetNdivisions(310); //phAxis_jet->GetYaxis()->SetTitleOffset(0.85); //phAxis_jet->GetXaxis()->SetTitleOffset(0.85); phAxis_jet->SetMinimum(0.); phAxis_jet->SetMaximum(2.5); // redefine legends: // TAA only /*TLegend *leg2_taa = new TLegend(0.15,0.85,0.5,0.9,NULL,"brNDC"); leg2_taa->SetBorderSize(0); leg2_taa->SetTextFont(62); leg2_taa->SetTextSize(0.028); leg2_taa->SetLineColor(1); leg2_taa->SetLineStyle(1); leg2_taa->SetLineWidth(1); leg2_taa->SetFillColor(19); leg2_taa->SetFillStyle(0); TLegendEntry *entry2_taa= leg2_taa->AddEntry("general","T_{AA} uncertainty (0-5%)","f"); entry2_taa->SetFillColor(kGray+1); entry2_taa->SetFillStyle(1001); entry2_taa->SetLineColor(0); entry2_taa->SetLineWidth(1); entry2_taa->SetMarkerStyle(21); entry2_taa->SetMarkerSize(1);*/ TLegend *leg2 = new TLegend(0.04,0.81,0.34,0.93,NULL,"brNDC"); leg2->SetBorderSize(0); leg2->SetTextFont(62); leg2->SetTextSize(0.03); //leg2->SetLineColor(1); //leg2->SetLineStyle(1); //leg2->SetLineWidth(1); //leg2->SetFillColor(19); leg2->SetFillStyle(0); TLegendEntry *entry2=leg2->AddEntry("general","CMS *PRELIMINARY PbPb #sqrt{s_{NN}} = 2.76 TeV",""); entry2=leg2->AddEntry("general","#int L dt = 7-150 #mub^{-1}",""); // jet leg2end TLegend *leg2_jet = new TLegend(0.08,0.73,0.64,0.81,NULL,"brNDC"); leg2_jet->SetBorderSize(0); leg2_jet->SetTextFont(62); leg2_jet->SetTextSize(0.028); leg2_jet->SetLineColor(1); leg2_jet->SetLineStyle(1); leg2_jet->SetLineWidth(1); leg2_jet->SetFillColor(19); leg2_jet->SetFillStyle(0); TLegendEntry *entry2_jet=leg2_jet->AddEntry("raaq","*q/g-jet (0-5%) |#eta| < 2","lpf"); entry2_jet->SetFillColor(TColor::GetColor("#00FF60")); entry2_jet->SetFillStyle(1001); entry2_jet->SetLineColor(1); entry2_jet->SetLineStyle(1); entry2_jet->SetLineWidth(1); entry2_jet->SetMarkerStyle(22); entry2_jet->SetMarkerSize(mymarkersize); if(version > 5) { entry2_jet=leg2_jet->AddEntry("raaheavy","*b-jet (0-10%) |#eta| < 2","lpf"); entry2_jet->SetFillColor(TColor::GetColor("#FFBF00")); entry2_jet->SetFillStyle(1001); entry2_jet->SetLineColor(1); entry2_jet->SetLineStyle(1); entry2_jet->SetLineWidth(1); entry2_jet->SetMarkerStyle(21); entry2_jet->SetMarkerColor(kRed); entry2_jet->SetMarkerSize(mymarkersize); } else entry2_jet=leg2_jet->AddEntry("raaheavy","",""); // EWQ legend TLegend *leg2_ewq = new TLegend(0.14,0.81,0.7,0.93,NULL,"brNDC"); leg2_ewq->SetBorderSize(0); leg2_ewq->SetTextFont(62); leg2_ewq->SetTextSize(0.028); leg2_ewq->SetLineColor(1); leg2_ewq->SetLineStyle(1); leg2_ewq->SetLineWidth(1); leg2_ewq->SetFillColor(19); leg2_ewq->SetFillStyle(0); TLegendEntry *entry2_ewq; if(version > 1) { entry2_ewq=leg2_ewq->AddEntry("raaz","*Z (0-100%) |y| < 2","lpf"); entry2_ewq->SetFillColor(TColor::GetColor("#ff8888")); entry2_ewq->SetFillStyle(1001); entry2_ewq->SetLineColor(1); entry2_ewq->SetLineWidth(1); entry2_ewq->SetMarkerStyle(22); entry2_ewq->SetMarkerSize(mymarkersize); } else entry2_ewq=leg2_ewq->AddEntry("raaz","",""); if(version > 2) { entry2_ewq=leg2_ewq->AddEntry("raaw","W (0-100%) p_{T}^{#mu} > 25 GeV/c^{^{ }}, |#eta^{#mu}| < 2.1","lpf"); entry2_ewq->SetFillColor(TColor::GetColor("#ff88ff")); entry2_ewq->SetFillStyle(1001); entry2_ewq->SetLineColor(1); entry2_ewq->SetLineWidth(1); entry2_ewq->SetMarkerStyle(21); entry2_ewq->SetMarkerSize(mymarkersize); } else entry2_ewq=leg2_ewq->AddEntry("raaw","",""); if(version > 0) { entry2_ewq=leg2_ewq->AddEntry("raaphoton","Isolated photon (0-10%) |#eta| < 1.44","lpf"); entry2_ewq->SetFillColor(TColor::GetColor("#ffff00")); entry2_ewq->SetFillStyle(1001); entry2_ewq->SetLineColor(1); entry2_ewq->SetLineWidth(1); entry2_ewq->SetMarkerStyle(23); entry2_ewq->SetMarkerSize(mymarkersize); } else entry2_ewq=leg2_ewq->AddEntry("raaphoton","",""); // B and h TLegend *leg2_q = new TLegend(0.14,0.74,0.7,0.81,NULL,"brNDC"); leg2_q->SetBorderSize(0); leg2_q->SetTextFont(62); leg2_q->SetTextSize(0.028); leg2_q->SetLineColor(1); leg2_q->SetLineStyle(1); leg2_q->SetLineWidth(1); leg2_q->SetFillColor(19); leg2_q->SetFillStyle(0); TLegendEntry *entry2_q; if(version > 3) { entry2_q=leg2_q->AddEntry("raah","Charged particles (0-5%) |#eta| < 1","lpf"); entry2_q->SetFillColor(TColor::GetColor("#33ccff")); entry2_q->SetFillStyle(1001); entry2_q->SetLineColor(1); entry2_q->SetLineStyle(1); entry2_q->SetLineWidth(1); entry2_q->SetMarkerStyle(kFullCircle); entry2_q->SetMarkerSize(mymarkersize); } else entry2_q=leg2_q->AddEntry("raah","",""); if(version > 5) { entry2_q=leg2_q->AddEntry("raab","*B #rightarrow J/#psi (0-100%) |y| < 2.4","lpf"); // entry2_q->SetFillColor(TColor::GetColor("#ee7711")); entry2_q->SetFillColor(TColor::GetColor("#ba8a98")); entry2_q->SetFillStyle(1001); entry2_q->SetLineColor(1); entry2_q->SetLineStyle(1); entry2_q->SetLineWidth(1); entry2_q->SetMarkerStyle(29); entry2_q->SetMarkerColor(kRed); entry2_q->SetMarkerSize(mymarkersize); //entry2_q=leg2_q->AddEntry("raabjpsi", "(via secondary J/#psi)",""); } else { entry2_q=leg2_q->AddEntry("raab","",""); entry2_q=leg2_q->AddEntry("raab","",""); } if(bDo2PadZoo) { TCanvas *pc2 = new TCanvas("pc2","pc2",1200,600); TPad *p_0 = new TPad("p_0","p_0",0,0,0.50,1); p_0->Draw(); p_0->cd(); p_0->SetRightMargin(0.03); phAxis_single->Draw(""); //box_lin->Draw(); pgRaa_photon->SetMarkerSize(mymarkersize); pgRaa_z->SetMarkerSize(mymarkersize); pgRaa_h->SetMarkerSize(mymarkersize); pgRaa_w->SetMarkerSize(mymarkersize); pgRaa_npjpsi->SetMarkerSize(mymarkersize); pgRaa_bjet->SetMarkerSize(mymarkersize); pgRaa_jet->SetMarkerSize(mymarkersize); if(version > 0) pgRaaSyst_photon->Draw("2"); if(version > 1) pgRaaSyst_z->Draw("2"); if(version > 3) pgRaaSyst_h->Draw("2"); if(version > 2) pgRaaSyst_w->Draw("2"); if(version > 5) pgRaaSyst_npjpsi->Draw("2"); if(version > 0) pgRaa_photon->Draw("P z"); if(version > 1) pgRaa_z->Draw("P z"); if(version > 3) pgRaa_h->Draw("P z"); if(version > 2) pgRaa_w->Draw("P z"); if(version > 5) pgRaa_npjpsi->Draw("P z"); TLine *line_single = new TLine(0,1,105,1); line_single->SetLineStyle(7); line_single->Draw(); // legends //leg2_taa->Draw(); leg2_q->Draw(); leg2_ewq->Draw(); TLine * midborder = new TLine(99.9,0,99.9,2); midborder->SetLineStyle(1); //if(version < 5) midborder->Draw(); pc2->cd(); // midborder->Draw(); if(version > 4) { // jet pad TPad *p_1 = new TPad("p_1","p_1",0.50,0,1,1); p_1->Draw(); p_1->cd(); p_1->SetLeftMargin(0.06); p_1->SetTickx(1); p_1->SetTicky(1); if(version > 4) phAxis_jet->Draw(""); if(version > 5) pgRaaSyst_bjet->Draw("2"); if(version > 4) pgRaaSyst_jet->Draw("2"); if(version > 5) pgRaa_bjet->Draw("P z"); if(version > 4) pgRaa_jet->Draw("P z"); TLine *line_jet = new TLine(75,1,300,1); line_jet->SetLineStyle(7); line_jet->Draw(); leg2->Draw(); leg2_jet->Draw(); } p_0->cd(); gPad->RedrawAxis(); //! adds the latex "100" joining the two pads //pc2->cd(); //TPad * blankpad = new TPad("b", "b",0.48,0.07,0.52,0.11); //blankpad->SetBorderMode(0); //blankpad->Draw(); //blankpad->cd(); //TLatex * test = new TLatex( 0.102843, 0.122822, Form("100")); //test->SetTextSize(test->GetTextSize()*26.0*sizeincrease); //test->Draw("same"); //blankpad->Update(); // pc2->SaveAs(Form("raaZoo_cms_2pads_%d.pdf",version)); //pc2->SaveAs(Form("raaZoo_cms_2pads_%d.png",version)); } }
void ttbar_isojet1CSV() { //=========Macro generated from canvas: c1/c1 //========= (Sun Dec 11 15:16:19 2016) by ROOT version6.06/01 TCanvas *c1 = new TCanvas("c1", "c1",1,1,1200,1416); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->SetHighLightColor(2); c1->Range(0,0,1,1); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.15); c1->SetRightMargin(0.05); c1->SetTopMargin(0.07); c1->SetBottomMargin(0.13); c1->SetFrameFillStyle(0); c1->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-0.1875,0,1.0625,0.6289089); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.15); pad1->SetRightMargin(0.05); pad1->SetTopMargin(0.07); pad1->SetBottomMargin(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); THStack *h = new THStack(); h->SetName("h"); h->SetTitle(""); h->SetMinimum(0); h->SetMaximum(0.5570336); TH1F *h_stack_23 = new TH1F("h_stack_23","",10,0,1); h_stack_23->SetMinimum(0); h_stack_23->SetMaximum(0.5848853); h_stack_23->SetDirectory(0); h_stack_23->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); h_stack_23->SetLineColor(ci); h_stack_23->GetXaxis()->SetLabelFont(42); h_stack_23->GetXaxis()->SetLabelOffset(0.007); h_stack_23->GetXaxis()->SetTitleSize(0.05); h_stack_23->GetXaxis()->SetTickLength(0.025); h_stack_23->GetXaxis()->SetTitleFont(42); h_stack_23->GetYaxis()->SetTitle("a.u."); h_stack_23->GetYaxis()->SetLabelFont(42); h_stack_23->GetYaxis()->SetLabelOffset(0.007); h_stack_23->GetYaxis()->SetTitleSize(0.05); h_stack_23->GetYaxis()->SetTickLength(0.025); h_stack_23->GetYaxis()->SetTitleOffset(1.5); h_stack_23->GetYaxis()->SetTitleFont(42); h_stack_23->GetZaxis()->SetLabelFont(42); h_stack_23->GetZaxis()->SetLabelOffset(0.007); h_stack_23->GetZaxis()->SetTitleSize(0.05); h_stack_23->GetZaxis()->SetTickLength(0.025); h_stack_23->GetZaxis()->SetTitleFont(42); h->SetHistogram(h_stack_23); TH1D *h_isojet1CSV_QCD__265 = new TH1D("h_isojet1CSV_QCD__265","",10,0,1); h_isojet1CSV_QCD__265->SetBinContent(1,0.002129117); h_isojet1CSV_QCD__265->SetBinContent(2,0.001248327); h_isojet1CSV_QCD__265->SetBinContent(3,0.0006205357); h_isojet1CSV_QCD__265->SetBinContent(4,0.001430306); h_isojet1CSV_QCD__265->SetBinContent(5,0.001031553); h_isojet1CSV_QCD__265->SetBinContent(6,0.0005098467); h_isojet1CSV_QCD__265->SetBinContent(7,0.0002095089); h_isojet1CSV_QCD__265->SetBinContent(8,9.216642e-05); h_isojet1CSV_QCD__265->SetBinContent(10,0.004314199); h_isojet1CSV_QCD__265->SetBinError(1,0.001510477); h_isojet1CSV_QCD__265->SetBinError(2,0.0006911766); h_isojet1CSV_QCD__265->SetBinError(3,0.0004578373); h_isojet1CSV_QCD__265->SetBinError(4,0.0008388365); h_isojet1CSV_QCD__265->SetBinError(5,0.0008715622); h_isojet1CSV_QCD__265->SetBinError(6,0.0005098467); h_isojet1CSV_QCD__265->SetBinError(7,0.0002095089); h_isojet1CSV_QCD__265->SetBinError(8,9.216642e-05); h_isojet1CSV_QCD__265->SetBinError(10,0.002213733); h_isojet1CSV_QCD__265->SetEntries(25); h_isojet1CSV_QCD__265->SetStats(0); ci = TColor::GetColor("#cccccc"); h_isojet1CSV_QCD__265->SetFillColor(ci); h_isojet1CSV_QCD__265->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_QCD__265->GetXaxis()->SetLabelFont(42); h_isojet1CSV_QCD__265->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_QCD__265->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_QCD__265->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_QCD__265->GetXaxis()->SetTitleFont(42); h_isojet1CSV_QCD__265->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_QCD__265->GetYaxis()->SetLabelFont(42); h_isojet1CSV_QCD__265->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_QCD__265->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_QCD__265->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_QCD__265->GetYaxis()->SetTitleFont(42); h_isojet1CSV_QCD__265->GetZaxis()->SetLabelFont(42); h_isojet1CSV_QCD__265->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_QCD__265->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_QCD__265->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_QCD__265->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_QCD,""); TH1D *h_isojet1CSV_Diboson__266 = new TH1D("h_isojet1CSV_Diboson__266","",10,0,1); h_isojet1CSV_Diboson__266->SetBinContent(1,0.006910874); h_isojet1CSV_Diboson__266->SetBinContent(2,0.01156259); h_isojet1CSV_Diboson__266->SetBinContent(3,0.00597142); h_isojet1CSV_Diboson__266->SetBinContent(4,0.003397186); h_isojet1CSV_Diboson__266->SetBinContent(5,0.003453268); h_isojet1CSV_Diboson__266->SetBinContent(6,0.001659304); h_isojet1CSV_Diboson__266->SetBinContent(7,0.001617052); h_isojet1CSV_Diboson__266->SetBinContent(8,0.001259235); h_isojet1CSV_Diboson__266->SetBinContent(9,0.000286628); h_isojet1CSV_Diboson__266->SetBinContent(10,0.00067562); h_isojet1CSV_Diboson__266->SetBinError(1,0.001086007); h_isojet1CSV_Diboson__266->SetBinError(2,0.001467728); h_isojet1CSV_Diboson__266->SetBinError(3,0.001077108); h_isojet1CSV_Diboson__266->SetBinError(4,0.0008370875); h_isojet1CSV_Diboson__266->SetBinError(5,0.0009085276); h_isojet1CSV_Diboson__266->SetBinError(6,0.000631351); h_isojet1CSV_Diboson__266->SetBinError(7,0.0006254813); h_isojet1CSV_Diboson__266->SetBinError(8,0.0005614698); h_isojet1CSV_Diboson__266->SetBinError(9,0.0001726014); h_isojet1CSV_Diboson__266->SetBinError(10,0.0003333104); h_isojet1CSV_Diboson__266->SetEntries(227); h_isojet1CSV_Diboson__266->SetStats(0); ci = TColor::GetColor("#9966cc"); h_isojet1CSV_Diboson__266->SetFillColor(ci); h_isojet1CSV_Diboson__266->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_Diboson__266->GetXaxis()->SetLabelFont(42); h_isojet1CSV_Diboson__266->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_Diboson__266->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_Diboson__266->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_Diboson__266->GetXaxis()->SetTitleFont(42); h_isojet1CSV_Diboson__266->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_Diboson__266->GetYaxis()->SetLabelFont(42); h_isojet1CSV_Diboson__266->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_Diboson__266->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_Diboson__266->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_Diboson__266->GetYaxis()->SetTitleFont(42); h_isojet1CSV_Diboson__266->GetZaxis()->SetLabelFont(42); h_isojet1CSV_Diboson__266->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_Diboson__266->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_Diboson__266->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_Diboson__266->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_Diboson,""); TH1D *h_isojet1CSV_ZpLjets__267 = new TH1D("h_isojet1CSV_ZpLjets__267","",10,0,1); h_isojet1CSV_ZpLjets__267->SetBinContent(1,0.00997839); h_isojet1CSV_ZpLjets__267->SetBinContent(2,0.01450317); h_isojet1CSV_ZpLjets__267->SetBinContent(3,0.006432142); h_isojet1CSV_ZpLjets__267->SetBinContent(4,0.004194575); h_isojet1CSV_ZpLjets__267->SetBinContent(5,0.003727646); h_isojet1CSV_ZpLjets__267->SetBinContent(6,0.002569373); h_isojet1CSV_ZpLjets__267->SetBinContent(7,0.001898935); h_isojet1CSV_ZpLjets__267->SetBinContent(8,0.001314676); h_isojet1CSV_ZpLjets__267->SetBinContent(9,0.001323422); h_isojet1CSV_ZpLjets__267->SetBinContent(10,0.001471477); h_isojet1CSV_ZpLjets__267->SetBinError(1,0.0002843835); h_isojet1CSV_ZpLjets__267->SetBinError(2,0.0003526741); h_isojet1CSV_ZpLjets__267->SetBinError(3,0.0002379666); h_isojet1CSV_ZpLjets__267->SetBinError(4,0.0002075278); h_isojet1CSV_ZpLjets__267->SetBinError(5,0.0001971644); h_isojet1CSV_ZpLjets__267->SetBinError(6,0.0001564817); h_isojet1CSV_ZpLjets__267->SetBinError(7,0.0001321731); h_isojet1CSV_ZpLjets__267->SetBinError(8,0.0001133749); h_isojet1CSV_ZpLjets__267->SetBinError(9,0.0001162263); h_isojet1CSV_ZpLjets__267->SetBinError(10,0.0001379738); h_isojet1CSV_ZpLjets__267->SetEntries(24915); h_isojet1CSV_ZpLjets__267->SetStats(0); ci = TColor::GetColor("#3399cc"); h_isojet1CSV_ZpLjets__267->SetFillColor(ci); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetLabelFont(42); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitleFont(42); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetLabelFont(42); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitleFont(42); h_isojet1CSV_ZpLjets__267->GetZaxis()->SetLabelFont(42); h_isojet1CSV_ZpLjets__267->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_Z+jets,""); TH1D *h_isojet1CSV_WpLjets__268 = new TH1D("h_isojet1CSV_WpLjets__268","",10,0,1); h_isojet1CSV_WpLjets__268->SetBinContent(1,0.01060448); h_isojet1CSV_WpLjets__268->SetBinContent(2,0.01194981); h_isojet1CSV_WpLjets__268->SetBinContent(3,0.007295854); h_isojet1CSV_WpLjets__268->SetBinContent(4,0.004201536); h_isojet1CSV_WpLjets__268->SetBinContent(5,0.003315037); h_isojet1CSV_WpLjets__268->SetBinContent(6,0.002154035); h_isojet1CSV_WpLjets__268->SetBinContent(7,0.001704806); h_isojet1CSV_WpLjets__268->SetBinContent(8,0.001590696); h_isojet1CSV_WpLjets__268->SetBinContent(9,0.001506952); h_isojet1CSV_WpLjets__268->SetBinContent(10,0.00135957); h_isojet1CSV_WpLjets__268->SetBinError(1,0.0007760229); h_isojet1CSV_WpLjets__268->SetBinError(2,0.0008063374); h_isojet1CSV_WpLjets__268->SetBinError(3,0.0006567409); h_isojet1CSV_WpLjets__268->SetBinError(4,0.0005519722); h_isojet1CSV_WpLjets__268->SetBinError(5,0.0004860992); h_isojet1CSV_WpLjets__268->SetBinError(6,0.0003673486); h_isojet1CSV_WpLjets__268->SetBinError(7,0.0003806515); h_isojet1CSV_WpLjets__268->SetBinError(8,0.0003677212); h_isojet1CSV_WpLjets__268->SetBinError(9,0.0003252218); h_isojet1CSV_WpLjets__268->SetBinError(10,0.0002763251); h_isojet1CSV_WpLjets__268->SetEntries(3309); h_isojet1CSV_WpLjets__268->SetStats(0); ci = TColor::GetColor("#66cc66"); h_isojet1CSV_WpLjets__268->SetFillColor(ci); h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_WpLjets__268->GetXaxis()->SetLabelFont(42); h_isojet1CSV_WpLjets__268->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_WpLjets__268->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitleFont(42); h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_WpLjets__268->GetYaxis()->SetLabelFont(42); h_isojet1CSV_WpLjets__268->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_WpLjets__268->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitleFont(42); h_isojet1CSV_WpLjets__268->GetZaxis()->SetLabelFont(42); h_isojet1CSV_WpLjets__268->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_WpLjets__268->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_WpLjets__268->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_WpLjets__268->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_W+jets,""); TH1D *h_isojet1CSV_TopsPoPLFcP__269 = new TH1D("h_isojet1CSV_TopsPoPLFcP__269","",10,0,1); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(1,0.09097508); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(2,0.09232326); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(3,0.04269338); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(4,0.02949662); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(5,0.02281892); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(6,0.01709603); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(7,0.01404044); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(8,0.009499499); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(9,0.006095059); h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(10,0.003040849); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(1,0.0009372855); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(2,0.0009857636); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(3,0.0007155424); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(4,0.0005977933); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(5,0.0005373378); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(6,0.0004781073); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(7,0.0004489056); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(8,0.0003875753); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(9,0.0003337873); h_isojet1CSV_TopsPoPLFcP__269->SetBinError(10,0.0003173281); h_isojet1CSV_TopsPoPLFcP__269->SetEntries(45754); h_isojet1CSV_TopsPoPLFcP__269->SetStats(0); ci = TColor::GetColor("#cc33cc"); h_isojet1CSV_TopsPoPLFcP__269->SetFillColor(ci); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitleFont(42); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitleFont(42); h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_Top (LF),""); TH1D *h_isojet1CSV_TopsPoPHFcP__270 = new TH1D("h_isojet1CSV_TopsPoPHFcP__270","",10,0,1); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(1,0.01878166); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(2,0.02708098); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(3,0.01896531); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(4,0.01870601); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(5,0.01924485); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(6,0.02077131); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(7,0.02899544); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(8,0.03698897); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(9,0.07325594); h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(10,0.2676551); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(1,0.0004640739); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(2,0.0005643558); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(3,0.0004957084); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(4,0.0004766015); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(5,0.0004665302); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(6,0.0005070097); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(7,0.0006476121); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(8,0.0007056579); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(9,0.0009826258); h_isojet1CSV_TopsPoPHFcP__270->SetBinError(10,0.001744809); h_isojet1CSV_TopsPoPHFcP__270->SetEntries(77950); h_isojet1CSV_TopsPoPHFcP__270->SetStats(0); ci = TColor::GetColor("#ff9900"); h_isojet1CSV_TopsPoPHFcP__270->SetFillColor(ci); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitleFont(42); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitleFont(42); h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetLabelFont(42); h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTitleFont(42); h->Add(h_isojet1CSV_Top (HF),""); h->Draw("hist"); TH1D *hsum__271 = new TH1D("hsum__271","",10,0,1); hsum__271->SetBinContent(1,0.1393796); hsum__271->SetBinContent(2,0.1586681); hsum__271->SetBinContent(3,0.08197864); hsum__271->SetBinContent(4,0.06142623); hsum__271->SetBinContent(5,0.05359128); hsum__271->SetBinContent(6,0.0447599); hsum__271->SetBinContent(7,0.04846618); hsum__271->SetBinContent(8,0.05074524); hsum__271->SetBinContent(9,0.082468); hsum__271->SetBinContent(10,0.2785168); hsum__271->SetBinError(1,0.002288647); hsum__271->SetBinError(2,0.002167196); hsum__271->SetBinError(3,0.001617233); hsum__271->SetBinError(4,0.001528597); hsum__271->SetBinError(5,0.001538373); hsum__271->SetBinError(6,0.001141764); hsum__271->SetBinError(7,0.001103813); hsum__271->SetBinError(8,0.001058293); hsum__271->SetBinError(9,0.001107265); hsum__271->SetBinError(10,0.002872657); hsum__271->SetEntries(45); hsum__271->SetStats(0); ci = 1202; color = new TColor(ci, 0, 0, 0, " ", 0.99); hsum__271->SetFillColor(ci); hsum__271->SetFillStyle(3003); hsum__271->SetLineWidth(0); hsum__271->GetXaxis()->SetTitle("isojet 1 CSV"); hsum__271->GetXaxis()->SetLabelFont(42); hsum__271->GetXaxis()->SetLabelOffset(0.007); hsum__271->GetXaxis()->SetTitleSize(0.05); hsum__271->GetXaxis()->SetTickLength(0.025); hsum__271->GetXaxis()->SetTitleFont(42); hsum__271->GetYaxis()->SetTitle("a.u."); hsum__271->GetYaxis()->SetLabelFont(42); hsum__271->GetYaxis()->SetLabelOffset(0.007); hsum__271->GetYaxis()->SetTitleSize(0.05); hsum__271->GetYaxis()->SetTickLength(0.025); hsum__271->GetYaxis()->SetTitleFont(42); hsum__271->GetZaxis()->SetLabelFont(42); hsum__271->GetZaxis()->SetLabelOffset(0.007); hsum__271->GetZaxis()->SetTitleSize(0.05); hsum__271->GetZaxis()->SetTickLength(0.025); hsum__271->GetZaxis()->SetTitleFont(42); hsum__271->Draw("e2 same"); TH1D *h_isojet1CSV_Data__272 = new TH1D("h_isojet1CSV_Data__272","",10,0,1); h_isojet1CSV_Data__272->SetBinContent(1,0.138368); h_isojet1CSV_Data__272->SetBinContent(2,0.1592858); h_isojet1CSV_Data__272->SetBinContent(3,0.08381231); h_isojet1CSV_Data__272->SetBinContent(4,0.06152831); h_isojet1CSV_Data__272->SetBinContent(5,0.05196457); h_isojet1CSV_Data__272->SetBinContent(6,0.04475643); h_isojet1CSV_Data__272->SetBinContent(7,0.04833695); h_isojet1CSV_Data__272->SetBinContent(8,0.05059832); h_isojet1CSV_Data__272->SetBinContent(9,0.08235183); h_isojet1CSV_Data__272->SetBinContent(10,0.2789975); h_isojet1CSV_Data__272->SetBinError(1,0.002553194); h_isojet1CSV_Data__272->SetBinError(2,0.002739394); h_isojet1CSV_Data__272->SetBinError(3,0.0019871); h_isojet1CSV_Data__272->SetBinError(4,0.001702564); h_isojet1CSV_Data__272->SetBinError(5,0.001564659); h_isojet1CSV_Data__272->SetBinError(6,0.00145209); h_isojet1CSV_Data__272->SetBinError(7,0.001509057); h_isojet1CSV_Data__272->SetBinError(8,0.001543953); h_isojet1CSV_Data__272->SetBinError(9,0.001969711); h_isojet1CSV_Data__272->SetBinError(10,0.003625484); h_isojet1CSV_Data__272->SetEntries(21226); h_isojet1CSV_Data__272->SetStats(0); h_isojet1CSV_Data__272->SetLineWidth(3); h_isojet1CSV_Data__272->SetMarkerStyle(20); h_isojet1CSV_Data__272->SetMarkerSize(2); h_isojet1CSV_Data__272->GetXaxis()->SetTitle("isojet 1 CSV"); h_isojet1CSV_Data__272->GetXaxis()->SetLabelFont(42); h_isojet1CSV_Data__272->GetXaxis()->SetLabelOffset(0.007); h_isojet1CSV_Data__272->GetXaxis()->SetTitleSize(0.05); h_isojet1CSV_Data__272->GetXaxis()->SetTickLength(0.025); h_isojet1CSV_Data__272->GetXaxis()->SetTitleFont(42); h_isojet1CSV_Data__272->GetYaxis()->SetTitle("a.u."); h_isojet1CSV_Data__272->GetYaxis()->SetLabelFont(42); h_isojet1CSV_Data__272->GetYaxis()->SetLabelOffset(0.007); h_isojet1CSV_Data__272->GetYaxis()->SetTitleSize(0.05); h_isojet1CSV_Data__272->GetYaxis()->SetTickLength(0.025); h_isojet1CSV_Data__272->GetYaxis()->SetTitleFont(42); h_isojet1CSV_Data__272->GetZaxis()->SetLabelFont(42); h_isojet1CSV_Data__272->GetZaxis()->SetLabelOffset(0.007); h_isojet1CSV_Data__272->GetZaxis()->SetTitleSize(0.05); h_isojet1CSV_Data__272->GetZaxis()->SetTickLength(0.025); h_isojet1CSV_Data__272->GetZaxis()->SetTitleFont(42); h_isojet1CSV_Data__272->Draw("elp same"); TLegend *leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); TLegendEntry *entry=leg->AddEntry("h_isojet1CSV_Data","Data","ELP"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(3); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Top (HF)","Top (HF)","F"); ci = TColor::GetColor("#ff9900"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Top (LF)","Top (LF)","F"); ci = TColor::GetColor("#cc33cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_W+jets","W+jets","F"); ci = TColor::GetColor("#66cc66"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Z+jets","Z+jets","F"); ci = TColor::GetColor("#3399cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Diboson","Diboson","F"); ci = TColor::GetColor("#9966cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_QCD","QCD","F"); ci = TColor::GetColor("#cccccc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); entry=leg->AddEntry("h_isojet1CSV_Data","Data","ELP"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(3); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Top (HF)","Top (HF)","F"); ci = TColor::GetColor("#ff9900"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Top (LF)","Top (LF)","F"); ci = TColor::GetColor("#cc33cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_W+jets","W+jets","F"); ci = TColor::GetColor("#66cc66"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Z+jets","Z+jets","F"); ci = TColor::GetColor("#3399cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_Diboson","Diboson","F"); ci = TColor::GetColor("#9966cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_isojet1CSV_QCD","QCD","F"); ci = TColor::GetColor("#cccccc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.18,0.85,"CMS"); tex->SetNDC(); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.28,0.85,"Preliminary"); tex->SetNDC(); tex->SetTextFont(52); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.9,0.94,"36.6 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); c1->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.3); pad2->Draw(); pad2->cd(); pad2->Range(-0.1875,-0.8914286,1.0625,0.48); pad2->SetFillColor(0); pad2->SetBorderMode(0); pad2->SetBorderSize(2); pad2->SetGridy(); pad2->SetTickx(1); pad2->SetTicky(1); pad2->SetLeftMargin(0.15); pad2->SetRightMargin(0.05); pad2->SetTopMargin(0); pad2->SetBottomMargin(0.3); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); TH1D *ratio__273 = new TH1D("ratio__273","",10,0,1); ratio__273->SetBinContent(1,-0.00725764); ratio__273->SetBinContent(2,0.003892779); ratio__273->SetBinContent(3,0.0223676); ratio__273->SetBinContent(4,0.001661897); ratio__273->SetBinContent(5,-0.0303539); ratio__273->SetBinContent(6,-7.754564e-05); ratio__273->SetBinContent(7,-0.002666473); ratio__273->SetBinContent(8,-0.002895236); ratio__273->SetBinContent(9,-0.001408637); ratio__273->SetBinContent(10,0.001725793); ratio__273->SetBinError(1,0.0001); ratio__273->SetBinError(2,0.0001); ratio__273->SetBinError(3,0.0001); ratio__273->SetBinError(4,0.0001); ratio__273->SetBinError(5,0.0001); ratio__273->SetBinError(6,0.0001); ratio__273->SetBinError(7,0.0001); ratio__273->SetBinError(8,0.0001); ratio__273->SetBinError(9,0.0001); ratio__273->SetBinError(10,0.0001); ratio__273->SetMinimum(-0.48); ratio__273->SetMaximum(0.48); ratio__273->SetEntries(21236); ratio__273->SetStats(0); ratio__273->SetLineWidth(3); ratio__273->SetMarkerStyle(20); ratio__273->SetMarkerSize(2); ratio__273->GetXaxis()->SetTitle("isojet 1 CSV"); ratio__273->GetXaxis()->SetLabelFont(43); ratio__273->GetXaxis()->SetLabelOffset(0.007); ratio__273->GetXaxis()->SetLabelSize(30); ratio__273->GetXaxis()->SetTitleSize(40); ratio__273->GetXaxis()->SetTickLength(0.025); ratio__273->GetXaxis()->SetTitleOffset(5); ratio__273->GetXaxis()->SetTitleFont(43); ratio__273->GetYaxis()->SetTitle("#frac{Data-Exp}{Exp}"); ratio__273->GetYaxis()->SetNdivisions(5); ratio__273->GetYaxis()->SetLabelFont(43); ratio__273->GetYaxis()->SetLabelOffset(0.007); ratio__273->GetYaxis()->SetLabelSize(30); ratio__273->GetYaxis()->SetTitleSize(40); ratio__273->GetYaxis()->SetTickLength(0.025); ratio__273->GetYaxis()->SetTitleOffset(2.5); ratio__273->GetYaxis()->SetTitleFont(43); ratio__273->GetZaxis()->SetLabelFont(42); ratio__273->GetZaxis()->SetLabelOffset(0.007); ratio__273->GetZaxis()->SetTitleSize(0.05); ratio__273->GetZaxis()->SetTickLength(0.025); ratio__273->GetZaxis()->SetTitleFont(42); ratio__273->Draw("elp"); TH1D *zero__274 = new TH1D("zero__274","",10,0,1); zero__274->SetBinError(1,0.002553194); zero__274->SetBinError(2,0.002739394); zero__274->SetBinError(3,0.0019871); zero__274->SetBinError(4,0.001702564); zero__274->SetBinError(5,0.001564659); zero__274->SetBinError(6,0.00145209); zero__274->SetBinError(7,0.001509057); zero__274->SetBinError(8,0.001543953); zero__274->SetBinError(9,0.001969711); zero__274->SetBinError(10,0.003625484); zero__274->SetEntries(21236); zero__274->SetStats(0); zero__274->SetLineWidth(3); zero__274->SetMarkerStyle(20); zero__274->SetMarkerSize(2); zero__274->GetXaxis()->SetTitle("isojet 1 CSV"); zero__274->GetXaxis()->SetLabelFont(42); zero__274->GetXaxis()->SetLabelOffset(0.007); zero__274->GetXaxis()->SetTitleSize(0.05); zero__274->GetXaxis()->SetTickLength(0.025); zero__274->GetXaxis()->SetTitleFont(42); zero__274->GetYaxis()->SetTitle("a.u."); zero__274->GetYaxis()->SetLabelFont(42); zero__274->GetYaxis()->SetLabelOffset(0.007); zero__274->GetYaxis()->SetTitleSize(0.05); zero__274->GetYaxis()->SetTickLength(0.025); zero__274->GetYaxis()->SetTitleFont(42); zero__274->GetZaxis()->SetLabelFont(42); zero__274->GetZaxis()->SetLabelOffset(0.007); zero__274->GetZaxis()->SetTitleSize(0.05); zero__274->GetZaxis()->SetTickLength(0.025); zero__274->GetZaxis()->SetTitleFont(42); zero__274->Draw("hist same"); TH1D *sumratioup__275 = new TH1D("sumratioup__275","",10,0,1); sumratioup__275->SetBinContent(1,0.01642024); sumratioup__275->SetBinContent(2,0.01365867); sumratioup__275->SetBinContent(3,0.01972749); sumratioup__275->SetBinContent(4,0.02488509); sumratioup__275->SetBinContent(5,0.02870566); sumratioup__275->SetBinContent(6,0.02550863); sumratioup__275->SetBinContent(7,0.02277492); sumratioup__275->SetBinContent(8,0.02085501); sumratioup__275->SetBinContent(9,0.01342661); sumratioup__275->SetBinContent(10,0.01031412); sumratioup__275->SetBinError(1,0.002288647); sumratioup__275->SetBinError(2,0.002167196); sumratioup__275->SetBinError(3,0.001617233); sumratioup__275->SetBinError(4,0.001528597); sumratioup__275->SetBinError(5,0.001538373); sumratioup__275->SetBinError(6,0.001141764); sumratioup__275->SetBinError(7,0.001103813); sumratioup__275->SetBinError(8,0.001058293); sumratioup__275->SetBinError(9,0.001107265); sumratioup__275->SetBinError(10,0.002872657); sumratioup__275->SetEntries(55); sumratioup__275->SetStats(0); ci = 1202; color = new TColor(ci, 0, 0, 0, " ", 0.99); sumratioup__275->SetFillColor(ci); sumratioup__275->SetFillStyle(3003); sumratioup__275->GetXaxis()->SetTitle("isojet 1 CSV"); sumratioup__275->GetXaxis()->SetLabelFont(42); sumratioup__275->GetXaxis()->SetLabelOffset(0.007); sumratioup__275->GetXaxis()->SetTitleSize(0.05); sumratioup__275->GetXaxis()->SetTickLength(0.025); sumratioup__275->GetXaxis()->SetTitleFont(42); sumratioup__275->GetYaxis()->SetTitle("a.u."); sumratioup__275->GetYaxis()->SetLabelFont(42); sumratioup__275->GetYaxis()->SetLabelOffset(0.007); sumratioup__275->GetYaxis()->SetTitleSize(0.05); sumratioup__275->GetYaxis()->SetTickLength(0.025); sumratioup__275->GetYaxis()->SetTitleFont(42); sumratioup__275->GetZaxis()->SetLabelFont(42); sumratioup__275->GetZaxis()->SetLabelOffset(0.007); sumratioup__275->GetZaxis()->SetTitleSize(0.05); sumratioup__275->GetZaxis()->SetTickLength(0.025); sumratioup__275->GetZaxis()->SetTitleFont(42); sumratioup__275->Draw("hist same"); TH1D *sumratiodown__276 = new TH1D("sumratiodown__276","",10,0,1); sumratiodown__276->SetBinContent(1,-0.01642024); sumratiodown__276->SetBinContent(2,-0.01365867); sumratiodown__276->SetBinContent(3,-0.01972749); sumratiodown__276->SetBinContent(4,-0.02488509); sumratiodown__276->SetBinContent(5,-0.02870566); sumratiodown__276->SetBinContent(6,-0.02550863); sumratiodown__276->SetBinContent(7,-0.02277492); sumratiodown__276->SetBinContent(8,-0.02085501); sumratiodown__276->SetBinContent(9,-0.01342661); sumratiodown__276->SetBinContent(10,-0.01031412); sumratiodown__276->SetBinError(1,0.002288647); sumratiodown__276->SetBinError(2,0.002167196); sumratiodown__276->SetBinError(3,0.001617233); sumratiodown__276->SetBinError(4,0.001528597); sumratiodown__276->SetBinError(5,0.001538373); sumratiodown__276->SetBinError(6,0.001141764); sumratiodown__276->SetBinError(7,0.001103813); sumratiodown__276->SetBinError(8,0.001058293); sumratiodown__276->SetBinError(9,0.001107265); sumratiodown__276->SetBinError(10,0.002872657); sumratiodown__276->SetEntries(55); sumratiodown__276->SetStats(0); ci = 1202; color = new TColor(ci, 0, 0, 0, " ", 0.99); sumratiodown__276->SetFillColor(ci); sumratiodown__276->SetFillStyle(3003); sumratiodown__276->GetXaxis()->SetTitle("isojet 1 CSV"); sumratiodown__276->GetXaxis()->SetLabelFont(42); sumratiodown__276->GetXaxis()->SetLabelOffset(0.007); sumratiodown__276->GetXaxis()->SetTitleSize(0.05); sumratiodown__276->GetXaxis()->SetTickLength(0.025); sumratiodown__276->GetXaxis()->SetTitleFont(42); sumratiodown__276->GetYaxis()->SetTitle("a.u."); sumratiodown__276->GetYaxis()->SetLabelFont(42); sumratiodown__276->GetYaxis()->SetLabelOffset(0.007); sumratiodown__276->GetYaxis()->SetTitleSize(0.05); sumratiodown__276->GetYaxis()->SetTickLength(0.025); sumratiodown__276->GetYaxis()->SetTitleFont(42); sumratiodown__276->GetZaxis()->SetLabelFont(42); sumratiodown__276->GetZaxis()->SetLabelOffset(0.007); sumratiodown__276->GetZaxis()->SetTitleSize(0.05); sumratiodown__276->GetZaxis()->SetTickLength(0.025); sumratiodown__276->GetZaxis()->SetTitleFont(42); sumratiodown__276->Draw("hist same"); Double_t Graph0_fx1023[10] = { 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95}; Double_t Graph0_fy1023[10] = { -0.00725764, 0.003892779, 0.0223676, 0.001661897, -0.0303539, -7.754564e-05, -0.002666473, -0.002895236, -0.001408637, 0.001725793}; Double_t Graph0_fex1023[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1023[10] = { 0.01831827, 0.01726493, 0.02423924, 0.02771721, 0.02919614, 0.03244177, 0.03113628, 0.03042557, 0.02388455, 0.01301711}; TGraphErrors *gre = new TGraphErrors(10,Graph0_fx1023,Graph0_fy1023,Graph0_fex1023,Graph0_fey1023); gre->SetName("Graph0"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineWidth(3); TH1F *Graph_Graph1023 = new TH1F("Graph_Graph1023","Graph",100,0,1.04); Graph_Graph1023->SetMinimum(-0.07016574); Graph_Graph1023->SetMaximum(0.05722253); Graph_Graph1023->SetDirectory(0); Graph_Graph1023->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1023->SetLineColor(ci); Graph_Graph1023->GetXaxis()->SetLabelFont(42); Graph_Graph1023->GetXaxis()->SetLabelOffset(0.007); Graph_Graph1023->GetXaxis()->SetTitleSize(0.05); Graph_Graph1023->GetXaxis()->SetTickLength(0.025); Graph_Graph1023->GetXaxis()->SetTitleFont(42); Graph_Graph1023->GetYaxis()->SetLabelFont(42); Graph_Graph1023->GetYaxis()->SetLabelOffset(0.007); Graph_Graph1023->GetYaxis()->SetTitleSize(0.05); Graph_Graph1023->GetYaxis()->SetTickLength(0.025); Graph_Graph1023->GetYaxis()->SetTitleFont(42); Graph_Graph1023->GetZaxis()->SetLabelFont(42); Graph_Graph1023->GetZaxis()->SetLabelOffset(0.007); Graph_Graph1023->GetZaxis()->SetTitleSize(0.05); Graph_Graph1023->GetZaxis()->SetTickLength(0.025); Graph_Graph1023->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1023); gre->Draw("pe0"); pad2->Modified(); c1->cd(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }
void v2ExpOpen_pt(bool bSavePlots = true, float rangeYAxis = 0.6, float rangeXAxis = 30, bool bDrawCh = true, const char* inputDir= "../macro_v2/outRoot", // the place where the input root files, with the histograms are const char* figNamePrefix="v2ExpOpen_pt") { gSystem->mkdir(Form("./figs/png"), kTRUE); gSystem->mkdir(Form("./figs/pdf"), kTRUE); setTDRStyle(); // gStyle->SetCanvasPreferGL(1); // read CMS graphs TFile *pfV2Cms_cent = new TFile(Form("%s/NPrp_v2_pt_plotter.root",inputDir)); TGraphAsymmErrors *pgV2Low = (TGraphAsymmErrors *)pfV2Cms_cent->Get("pgV2_low"); TGraphErrors *pgV2LowSyst = (TGraphErrors *)pfV2Cms_cent->Get("pgV2_low_sys"); TGraphErrors *pgV2LowP = (TGraphErrors *)pfV2Cms_cent->Get("pgV2_low_cont"); TGraphAsymmErrors *pgV2High = (TGraphAsymmErrors *)pfV2Cms_cent->Get("pgV2"); TGraphErrors *pgV2HighSyst = (TGraphErrors *)pfV2Cms_cent->Get("pgV2_sys"); TGraphErrors *pgV2HighP = (TGraphErrors *)pfV2Cms_cent->Get("pgV2_cont"); pgV2Low->SetName("pgV2Low"); pgV2LowSyst->SetFillColorAlpha(kViolet-9,0.5); pgV2High->SetName("pgV2High"); pgV2HighSyst->SetFillColorAlpha(kOrange-9,0.5); // ----------------------------------------------------------------------------------------- // ----- charged hadrons TGraphErrors *gChar = new TGraphErrors(19, pTChar, v2Char, chxerr, v2CharSt); TGraphErrors *gChar2 = new TGraphErrors(19, pTChar, v2Char, chxerr, v2CharSt2); TGraphErrors *gCharSys = new TGraphErrors(19, pTChar, v2Char, chxerr2, v2CharSys); gChar->SetName("gChar"); gChar->SetMarkerStyle(20); gChar->SetMarkerColor(kTeal+3); gChar->SetLineColor(kTeal+3); gChar->SetMarkerSize(1.3); gChar2->SetMarkerStyle(24); gChar2->SetMarkerColor(kTeal+4); gChar2->SetLineColor(kTeal+4); gChar2->SetMarkerSize(1.3); gCharSys->SetFillColor(kTeal-9); //----------- D from ALICE TGraphErrors *pgAlice = new TGraphErrors(6, v2AliceX_pt, v2Alice_pt, v2AliceXl, v2AliceStat_pt); TGraphErrors *pgAliceSys = new TGraphErrors(6, v2AliceX_pt, v2Alice_pt, v2AliceXl, v2AliceSyst_pt); TGraphAsymmErrors *pgAliceSysB = new TGraphAsymmErrors(6, v2AliceX_pt, v2Alice_pt, v2AliceXl2, v2AliceXl2, v2AliceSystBLow_pt, v2AliceSystBHigh_pt); pgAlice->SetName("pgAlice"); pgAlice->SetMarkerStyle(kOpenSquare); pgAlice->SetMarkerColor(kGray+2); pgAlice->SetLineColor(kGray+2); pgAlice->SetMarkerSize(1.0); pgAliceSys->SetFillStyle(0); pgAliceSys->SetMarkerStyle(27); pgAliceSys->SetMarkerColor(kGray+2); pgAliceSys->SetLineColor(kGray+2); pgAliceSys->SetMarkerSize(1.7); pgAliceSysB->SetFillColor(kGray); // drawing //------------------------------------------------------------------------ // put everything on one plot TH1D *phAxis_v2 = new TH1D("phAxis_v2",";p_{T} (GeV/c);v_{2}",1,0,rangeXAxis); phAxis_v2->SetDirectory(0); phAxis_v2->GetXaxis()->CenterTitle(true); phAxis_v2->GetXaxis()->LabelsOption("h"); phAxis_v2->GetYaxis()->SetRangeUser(-0.01,rangeYAxis); phAxis_v2->GetYaxis()->SetTitleOffset(1.25); TCanvas *pcCombi = new TCanvas("pcCombi","pcCombi"); phAxis_v2->Draw(); CMS_lumi(pcCombi,12001000,0); pgAliceSysB->Draw("2"); pgAliceSys->Draw("2"); pgAlice->Draw("pz"); if (bDrawCh) { gCharSys->Draw("2"); gChar->Draw("pz"); gChar2->Draw("p"); } pgV2LowSyst->Draw("2"); pgV2Low->Draw("PZ"); pgV2LowP->Draw("P"); pgV2HighSyst->Draw("2"); pgV2High->Draw("PZ"); pgV2HighP->Draw("P"); // --------- legends ---- TLegend *leg = new TLegend(0.2,0.77,0.7,0.89,NULL,"brNDC"); // at top center leg->SetBorderSize(0); leg->SetTextFont(132); leg->SetTextSize(ltxSetTextSize3); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(19); leg->SetFillStyle(0); TLegendEntry *entry, *entry11; entry=leg->AddEntry("cmspr","Open beauty: nonprompt J/#psi",""); entry->SetTextSize(ltxSetTextSize3); entry=leg->AddEntry("pgV2Low", "1.6 < |y| < 2.4","p"); entry->SetTextFont(42); entry->SetTextSize(entrySize); entry=leg->AddEntry("pgV2High", "|y| < 2.4","P"); entry->SetTextFont(42); entry->SetTextSize(entrySize); //--------------------------- TLegend *leg1 = new TLegend(0.2,0.685,0.7,0.765,NULL,"brNDC"); leg1->SetBorderSize(0); leg1->SetTextFont(132); leg1->SetTextSize(ltxSetTextSize3); if (bDrawCh) { TLegendEntry *entry1; entry1=leg1->AddEntry("hpm","Charged hadron",""); entry1->SetTextFont(132); entry1->SetTextSize(ltxSetTextSize3); entry1=leg1->AddEntry("gChar","|#eta| < 0.8","P"); entry1->SetTextFont(42); entry1->SetTextSize(entrySize); } TLegend *leg_alice; if (bDrawCh) { leg_alice = new TLegend(0.2,0.60,0.7,0.68,NULL,"brNDC"); } else { leg_alice = new TLegend(0.2,0.685,0.7,0.765,NULL,"brNDC"); } leg_alice->SetBorderSize(0); leg_alice->SetTextFont(132); leg_alice->SetTextSize(ltxSetTextSize3); leg_alice->SetLineColor(1); leg_alice->SetLineStyle(1); leg_alice->SetLineWidth(1); leg_alice->SetFillColor(19); leg_alice->SetFillStyle(0); TLegendEntry *entry_alice=leg_alice->AddEntry("pgAlice","Open charm: prompt D (ALICE)",""); entry_alice=leg_alice->AddEntry("pgAlice","|y| < 0.8, Cent. 30-50\%","P"); entry_alice->SetTextFont(42); entry_alice->SetTextSize(entrySize); TLatex *lat = new TLatex(); lat->SetNDC(); lat->SetTextFont(42); lat->SetTextSize(ltxSetTextSize2); if (bDrawCh) lat->DrawLatex(0.63,0.52,"Cent. 10-60%"); else lat->DrawLatex(0.63,0.58,"Cent. 10-60%"); leg->Draw(); if (bDrawCh) leg1->Draw(); leg_alice->Draw(); gPad->RedrawAxis(); pcCombi->Update(); if(bSavePlots) { pcCombi->SaveAs(Form("figs/pdf/%s_RaaCh%d.pdf",figNamePrefix,bDrawCh)); pcCombi->SaveAs(Form("figs/png/%s_RaaCh%d.png",figNamePrefix,bDrawCh)); } return; }
void effAndSmallSF_DATA_MC_Cracks_pT2() { //=========Macro generated from canvas: Canvas/Canvas //========= (Mon Feb 8 17:29:37 2016) by ROOT version6.02/05 TCanvas *Canvas = new TCanvas("Canvas", "Canvas",0,0,725,725); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); Canvas->SetHighLightColor(2); Canvas->Range(0,0,1,1); Canvas->SetFillColor(0); Canvas->SetBorderMode(0); Canvas->SetBorderSize(2); Canvas->SetTickx(1); Canvas->SetTicky(1); Canvas->SetLeftMargin(0.15); Canvas->SetRightMargin(0.05); Canvas->SetTopMargin(0.07); Canvas->SetBottomMargin(0.17); Canvas->SetFrameFillStyle(0); Canvas->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0.01,0.3,0.99,0.99); pad1->Draw(); pad1->cd(); pad1->Range(-15.32432,-0.03620689,94.13513,1.17069); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetGridx(); pad1->SetGridy(); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.14); pad1->SetRightMargin(0.12); pad1->SetBottomMargin(0.03); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); Double_t Graph0_fx3001[3] = { 13.5, 25, 55}; Double_t Graph0_fy3001[3] = { 0.9387, 0.9652, 0.9863}; Double_t Graph0_felx3001[3] = { 6.5, 5, 25}; Double_t Graph0_fely3001[3] = { 0.0034, 0.0013, 0.0003}; Double_t Graph0_fehx3001[3] = { 6.5, 5, 25}; Double_t Graph0_fehy3001[3] = { 0.0034, 0.0013, 0.0003}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(3,Graph0_fx3001,Graph0_fy3001,Graph0_felx3001,Graph0_fehx3001,Graph0_fely3001,Graph0_fehy3001); grae->SetName("Graph0"); grae->SetTitle("TGraphAsymmErrors for MC efficiencies"); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#99ccff"); grae->SetFillColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetLineColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(22); grae->SetMarkerSize(0.7); TH1F *Graph_TH1F3001 = new TH1F("Graph_TH1F3001","TH1F histogram",100,0,81); Graph_TH1F3001->SetMinimum(0); Graph_TH1F3001->SetMaximum(1.05); Graph_TH1F3001->SetFillStyle(0); Graph_TH1F3001->SetLineStyle(0); Graph_TH1F3001->SetMarkerStyle(20); Graph_TH1F3001->GetXaxis()->SetLabelFont(42); Graph_TH1F3001->GetXaxis()->SetLabelOffset(0.007); Graph_TH1F3001->GetXaxis()->SetLabelSize(0); Graph_TH1F3001->GetXaxis()->SetTitleSize(0.06); Graph_TH1F3001->GetXaxis()->SetTitleFont(42); Graph_TH1F3001->GetYaxis()->SetTitle("ID efficiency"); Graph_TH1F3001->GetYaxis()->SetLabelFont(42); Graph_TH1F3001->GetYaxis()->SetLabelOffset(0.007); Graph_TH1F3001->GetYaxis()->SetLabelSize(0.05); Graph_TH1F3001->GetYaxis()->SetTitleSize(0.06); Graph_TH1F3001->GetYaxis()->SetTitleOffset(0.85); Graph_TH1F3001->GetYaxis()->SetTitleFont(42); Graph_TH1F3001->GetZaxis()->SetLabelFont(42); Graph_TH1F3001->GetZaxis()->SetLabelOffset(0.007); Graph_TH1F3001->GetZaxis()->SetLabelSize(0.05); Graph_TH1F3001->GetZaxis()->SetTitleSize(0.06); Graph_TH1F3001->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_TH1F3001); grae->Draw("a2"); Double_t Graph0_fx3002[3] = { 13.5, 25, 55}; Double_t Graph0_fy3002[3] = { 0.9387, 0.9652, 0.9863}; Double_t Graph0_felx3002[3] = { 6.5, 5, 25}; Double_t Graph0_fely3002[3] = { 0.0034, 0.0013, 0.0003}; Double_t Graph0_fehx3002[3] = { 6.5, 5, 25}; Double_t Graph0_fehy3002[3] = { 0.0034, 0.0013, 0.0003}; grae = new TGraphAsymmErrors(3,Graph0_fx3002,Graph0_fy3002,Graph0_felx3002,Graph0_fehx3002,Graph0_fely3002,Graph0_fehy3002); grae->SetName("Graph0"); grae->SetTitle("TGraphAsymmErrors for MC efficiencies"); ci = TColor::GetColor("#99ccff"); grae->SetFillColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetLineColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(22); grae->SetMarkerSize(0.7); TH1F *Graph_Graph_TH1F30013002 = new TH1F("Graph_Graph_TH1F30013002","TH1F histogram",100,0,81); Graph_Graph_TH1F30013002->SetMinimum(0); Graph_Graph_TH1F30013002->SetMaximum(1.05); Graph_Graph_TH1F30013002->SetFillStyle(0); Graph_Graph_TH1F30013002->SetLineStyle(0); Graph_Graph_TH1F30013002->SetMarkerStyle(20); Graph_Graph_TH1F30013002->GetXaxis()->SetLabelFont(42); Graph_Graph_TH1F30013002->GetXaxis()->SetLabelOffset(0.007); Graph_Graph_TH1F30013002->GetXaxis()->SetLabelSize(0); Graph_Graph_TH1F30013002->GetXaxis()->SetTitleSize(0.06); Graph_Graph_TH1F30013002->GetXaxis()->SetTitleFont(42); Graph_Graph_TH1F30013002->GetYaxis()->SetTitle("ID efficiency"); Graph_Graph_TH1F30013002->GetYaxis()->SetLabelFont(42); Graph_Graph_TH1F30013002->GetYaxis()->SetLabelOffset(0.007); Graph_Graph_TH1F30013002->GetYaxis()->SetLabelSize(0.05); Graph_Graph_TH1F30013002->GetYaxis()->SetTitleSize(0.06); Graph_Graph_TH1F30013002->GetYaxis()->SetTitleOffset(0.85); Graph_Graph_TH1F30013002->GetYaxis()->SetTitleFont(42); Graph_Graph_TH1F30013002->GetZaxis()->SetLabelFont(42); Graph_Graph_TH1F30013002->GetZaxis()->SetLabelOffset(0.007); Graph_Graph_TH1F30013002->GetZaxis()->SetLabelSize(0.05); Graph_Graph_TH1F30013002->GetZaxis()->SetTitleSize(0.06); Graph_Graph_TH1F30013002->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_TH1F30013002); grae->Draw("p"); Double_t Graph1_fx3003[3] = { 13.5, 25, 55}; Double_t Graph1_fy3003[3] = { 0.973, 0.9563, 0.9835}; Double_t Graph1_felx3003[3] = { 6.5, 5, 25}; Double_t Graph1_fely3003[3] = { 0.004, 0.0015, 0.0009}; Double_t Graph1_fehx3003[3] = { 6.5, 5, 25}; Double_t Graph1_fehy3003[3] = { 0.004, 0.0015, 0.0009}; grae = new TGraphAsymmErrors(3,Graph1_fx3003,Graph1_fy3003,Graph1_felx3003,Graph1_fehx3003,Graph1_fely3003,Graph1_fehy3003); grae->SetName("Graph1"); grae->SetTitle("TGraphAsymmErrors for Data efficiencies"); grae->SetFillColor(1); grae->SetMarkerStyle(9); grae->SetMarkerSize(0.7); TH1F *Graph_Graph3003 = new TH1F("Graph_Graph3003","TGraphAsymmErrors for Data efficiencies",100,0,87.3); Graph_Graph3003->SetMinimum(0.95184); Graph_Graph3003->SetMaximum(0.98736); Graph_Graph3003->SetDirectory(0); Graph_Graph3003->SetStats(0); Graph_Graph3003->SetFillStyle(0); Graph_Graph3003->SetLineStyle(0); Graph_Graph3003->SetMarkerStyle(20); Graph_Graph3003->GetXaxis()->SetLabelFont(42); Graph_Graph3003->GetXaxis()->SetLabelOffset(0.007); Graph_Graph3003->GetXaxis()->SetLabelSize(0.05); Graph_Graph3003->GetXaxis()->SetTitleSize(0.06); Graph_Graph3003->GetXaxis()->SetTitleFont(42); Graph_Graph3003->GetYaxis()->SetLabelFont(42); Graph_Graph3003->GetYaxis()->SetLabelOffset(0.007); Graph_Graph3003->GetYaxis()->SetLabelSize(0.05); Graph_Graph3003->GetYaxis()->SetTitleSize(0.06); Graph_Graph3003->GetYaxis()->SetTitleOffset(0.85); Graph_Graph3003->GetYaxis()->SetTitleFont(42); Graph_Graph3003->GetZaxis()->SetLabelFont(42); Graph_Graph3003->GetZaxis()->SetLabelOffset(0.007); Graph_Graph3003->GetZaxis()->SetLabelSize(0.05); Graph_Graph3003->GetZaxis()->SetTitleSize(0.06); Graph_Graph3003->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph3003); grae->Draw("p"); TLegend *leg = new TLegend(0.63,0.2,0.87,0.33,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph1","Data","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(9); entry->SetMarkerSize(0.7); entry->SetTextFont(62); entry=leg->AddEntry("Graph0","Simulation","fp"); ci = TColor::GetColor("#99ccff"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#3399ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#3399ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(22); entry->SetMarkerSize(0.7); entry->SetTextFont(62); leg->Draw(); TPaveText *pt = new TPaveText(0.14,0.94,0.89,0.99,"brNDC"); pt->SetBorderSize(0); pt->SetFillStyle(0); pt->SetTextAlign(12); pt->SetTextSize(0.03); TText *AText = pt->AddText(0.01,0.3,"CMS Preliminary"); AText = pt->AddText(0.7,0.3,"#sqrt{s} = 13 TeV, L = 2.26 fb^{-1}"); pt->Draw(); tex = new TLatex(0.67,0.4,"Z #rightarrow e^{+} e^{-}"); tex->SetNDC(); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.63,0.35," Crack probes"); tex->SetNDC(); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); Canvas->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0.01,0.01,0.99,0.3); pad2->Draw(); pad2->cd(); pad2->Range(-15.32432,0.4915493,94.13513,1.125352); pad2->SetFillColor(0); pad2->SetBorderMode(0); pad2->SetBorderSize(2); pad2->SetGridx(); pad2->SetGridy(); pad2->SetTickx(1); pad2->SetTicky(1); pad2->SetLeftMargin(0.14); pad2->SetRightMargin(0.12); pad2->SetTopMargin(0.04); pad2->SetBottomMargin(0.25); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); Double_t Graph0_fx3004[3] = { 13.5, 25, 55}; Double_t Graph0_fy3004[3] = { 1.0365, 0.9908, 0.9971}; Double_t Graph0_felx3004[3] = { 6.5, 5, 25}; Double_t Graph0_fely3004[3] = { 0.009, 0.0082, 0.0016}; Double_t Graph0_fehx3004[3] = { 6.5, 5, 25}; Double_t Graph0_fehy3004[3] = { 0.009, 0.0082, 0.0016}; grae = new TGraphAsymmErrors(3,Graph0_fx3004,Graph0_fy3004,Graph0_felx3004,Graph0_fehx3004,Graph0_fely3004,Graph0_fehy3004); grae->SetName("Graph0"); grae->SetTitle("TGraphAsymmErrors for scale factors"); ci = TColor::GetColor("#99ccff"); grae->SetFillColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetLineColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetMarkerColor(ci); grae->SetMarkerSize(0.7); TH1F *Graph_Small TH1F3004 = new TH1F("Graph_Small TH1F3004","Small TH1F histogram",100,0,81); Graph_Small TH1F3004->SetMinimum(0.65); Graph_Small TH1F3004->SetMaximum(1.1); Graph_Small TH1F3004->SetFillStyle(0); Graph_Small TH1F3004->SetLineStyle(0); Graph_Small TH1F3004->SetMarkerStyle(20); Graph_Small TH1F3004->GetXaxis()->SetTitle("p_{T} [GeV]"); Graph_Small TH1F3004->GetXaxis()->SetLabelFont(42); Graph_Small TH1F3004->GetXaxis()->SetLabelOffset(0.007); Graph_Small TH1F3004->GetXaxis()->SetLabelSize(0.08); Graph_Small TH1F3004->GetXaxis()->SetTitleSize(0.08); Graph_Small TH1F3004->GetXaxis()->SetTitleFont(42); Graph_Small TH1F3004->GetYaxis()->SetLabelFont(42); Graph_Small TH1F3004->GetYaxis()->SetLabelOffset(0.007); Graph_Small TH1F3004->GetYaxis()->SetLabelSize(0.08); Graph_Small TH1F3004->GetYaxis()->SetTitleSize(0.08); Graph_Small TH1F3004->GetYaxis()->SetTitleOffset(0.75); Graph_Small TH1F3004->GetYaxis()->SetTitleFont(42); Graph_Small TH1F3004->GetZaxis()->SetLabelFont(42); Graph_Small TH1F3004->GetZaxis()->SetLabelOffset(0.007); Graph_Small TH1F3004->GetZaxis()->SetLabelSize(0.05); Graph_Small TH1F3004->GetZaxis()->SetTitleSize(0.06); Graph_Small TH1F3004->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Small TH1F3004); grae->Draw("a2"); Double_t Graph0_fx3005[3] = { 13.5, 25, 55}; Double_t Graph0_fy3005[3] = { 1.0365, 0.9908, 0.9971}; Double_t Graph0_felx3005[3] = { 6.5, 5, 25}; Double_t Graph0_fely3005[3] = { 0.009, 0.0082, 0.0016}; Double_t Graph0_fehx3005[3] = { 6.5, 5, 25}; Double_t Graph0_fehy3005[3] = { 0.009, 0.0082, 0.0016}; grae = new TGraphAsymmErrors(3,Graph0_fx3005,Graph0_fy3005,Graph0_felx3005,Graph0_fehx3005,Graph0_fely3005,Graph0_fehy3005); grae->SetName("Graph0"); grae->SetTitle("TGraphAsymmErrors for scale factors"); ci = TColor::GetColor("#99ccff"); grae->SetFillColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetLineColor(ci); ci = TColor::GetColor("#3399ff"); grae->SetMarkerColor(ci); grae->SetMarkerSize(0.7); TH1F *Graph_Graph_Small TH1F30043005 = new TH1F("Graph_Graph_Small TH1F30043005","Small TH1F histogram",100,0,81); Graph_Graph_Small TH1F30043005->SetMinimum(0.65); Graph_Graph_Small TH1F30043005->SetMaximum(1.1); Graph_Graph_Small TH1F30043005->SetFillStyle(0); Graph_Graph_Small TH1F30043005->SetLineStyle(0); Graph_Graph_Small TH1F30043005->SetMarkerStyle(20); Graph_Graph_Small TH1F30043005->GetXaxis()->SetTitle("p_{T} [GeV]"); Graph_Graph_Small TH1F30043005->GetXaxis()->SetLabelFont(42); Graph_Graph_Small TH1F30043005->GetXaxis()->SetLabelOffset(0.007); Graph_Graph_Small TH1F30043005->GetXaxis()->SetLabelSize(0.08); Graph_Graph_Small TH1F30043005->GetXaxis()->SetTitleSize(0.08); Graph_Graph_Small TH1F30043005->GetXaxis()->SetTitleFont(42); Graph_Graph_Small TH1F30043005->GetYaxis()->SetLabelFont(42); Graph_Graph_Small TH1F30043005->GetYaxis()->SetLabelOffset(0.007); Graph_Graph_Small TH1F30043005->GetYaxis()->SetLabelSize(0.08); Graph_Graph_Small TH1F30043005->GetYaxis()->SetTitleSize(0.08); Graph_Graph_Small TH1F30043005->GetYaxis()->SetTitleOffset(0.75); Graph_Graph_Small TH1F30043005->GetYaxis()->SetTitleFont(42); Graph_Graph_Small TH1F30043005->GetZaxis()->SetLabelFont(42); Graph_Graph_Small TH1F30043005->GetZaxis()->SetLabelOffset(0.007); Graph_Graph_Small TH1F30043005->GetZaxis()->SetLabelSize(0.05); Graph_Graph_Small TH1F30043005->GetZaxis()->SetTitleSize(0.06); Graph_Graph_Small TH1F30043005->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_Small TH1F30043005); grae->Draw("p"); pad2->Modified(); Canvas->cd(); Canvas->Modified(); Canvas->cd(); Canvas->SetSelected(Canvas); }
void paraPull_alpha_EL_EFF_Iso_TotalCorrUncertainty_2TeV_2Lep_plots_All() { //=========Macro generated from canvas: c1/alpha_EL_EFF_Iso_TotalCorrUncertainty //========= (Sun Nov 22 20:14:54 2015) by ROOT version6.02/12 TCanvas *c1 = new TCanvas("c1", "alpha_EL_EFF_Iso_TotalCorrUncertainty",0,22,1000,600); gStyle->SetOptStat(0); c1->Range(-4.125,-0.9750892,37.125,1.047955); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1F *NuisanceParameterFreed9 = new TH1F("NuisanceParameterFreed9","alpha_EL_EFF_Iso_TotalCorrUncertainty",33,0,33); NuisanceParameterFreed9->SetMinimum(-0.7727848); NuisanceParameterFreed9->SetMaximum(0.8456503); NuisanceParameterFreed9->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); NuisanceParameterFreed9->SetLineColor(ci); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(1,"XS_ttbar"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(4,"Luminosity"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(5,"XS_st"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(7,"XS_Zc"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(8,"MUONS_ID"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(12,"XS_Zl"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(16,"EL_EFF_Reco_TotalCorrUncertainty"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(17,"MUONS_SCALE"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(18,"MUON_ISO_STAT"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(19,"FT_EFF_extrapolation"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(20,"MUON_EFF_STAT"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(21,"MUON_EFF_SYS"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(22,"MUON_EFF_TrigStatUncertainty"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_1"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(25,"EG_RESOLUTION_ALL"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(26,"XS_diboson"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(30,"XS_Zb"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(31,"MUONS_MS"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2"); NuisanceParameterFreed9->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0"); NuisanceParameterFreed9->GetXaxis()->SetLabelFont(42); NuisanceParameterFreed9->GetXaxis()->SetLabelSize(0.035); NuisanceParameterFreed9->GetXaxis()->SetTitleSize(0.035); NuisanceParameterFreed9->GetXaxis()->SetTitleFont(42); NuisanceParameterFreed9->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta"); NuisanceParameterFreed9->GetYaxis()->SetLabelFont(42); NuisanceParameterFreed9->GetYaxis()->SetLabelSize(0.035); NuisanceParameterFreed9->GetYaxis()->SetTitleSize(0.035); NuisanceParameterFreed9->GetYaxis()->SetTitleFont(42); NuisanceParameterFreed9->GetZaxis()->SetLabelFont(42); NuisanceParameterFreed9->GetZaxis()->SetLabelSize(0.035); NuisanceParameterFreed9->GetZaxis()->SetTitleSize(0.035); NuisanceParameterFreed9->GetZaxis()->SetTitleFont(42); NuisanceParameterFreed9->Draw("hist"); Double_t _fx1009[35] = { 1.22802e-312, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 0 }; Double_t _fy1009[35] = { 1.22802e-312, -0.7727848, -0.3922476, -0.2907829, -0.2050988, -0.1826652, -0.1278621, -0.1246447, -0.1083822, -0.06587814, -0.05693349, -0.05334209, -0.04676047, -0.03729371, -0.03207689, -0.03107143, -0.01702517, -0.001380258, 0.0001641211, 0.01041877, 0.01060027, 0.01810894, 0.01987367, 0.02024918, 0.02038876, 0.02749887, 0.0401174, 0.04268003, 0.04584905, 0.05094516, 0.05434531, 0.05598196, 0.05756905, 0.8456503, 0 }; Double_t _fex1009[35] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; Double_t _fey1009[35] = { 0, 0, 0.6107702, 1.073131, 1.266362, 0.9365976, 0.9916527, 0.9863054, 0.9267238, 0.7691165, 0.9864524, 0.9937947, 0.9917419, 0.9970684, 0.9817834, 0.9376065, 0.9926703, 0.9925594, 1.005011, 0.9933467, 0.9551198, 0.9932276, 0.9929662, 0.9927806, 0.9913159, 0.9909915, 1.097968, 0.9870135, 0.9931711, 0.9930639, 0.9855126, 0.7540343, 0.738039, 0.9909039, 0.7858475 }; TGraphErrors *gre = new TGraphErrors(35,_fx1009,_fy1009,_fex1009,_fey1009); gre->SetName(""); gre->SetTitle(""); gre->SetFillColor(1); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.2); TH1F *Graph_Graph1009 = new TH1F("Graph_Graph1009","",100,0,35.75); Graph_Graph1009->SetMinimum(-1.802262); Graph_Graph1009->SetMaximum(2.167356); Graph_Graph1009->SetDirectory(0); Graph_Graph1009->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1009->SetLineColor(ci); Graph_Graph1009->GetXaxis()->SetLabelFont(42); Graph_Graph1009->GetXaxis()->SetLabelSize(0.035); Graph_Graph1009->GetXaxis()->SetTitleSize(0.035); Graph_Graph1009->GetXaxis()->SetTitleFont(42); Graph_Graph1009->GetYaxis()->SetLabelFont(42); Graph_Graph1009->GetYaxis()->SetLabelSize(0.035); Graph_Graph1009->GetYaxis()->SetTitleSize(0.035); Graph_Graph1009->GetYaxis()->SetTitleFont(42); Graph_Graph1009->GetZaxis()->SetLabelFont(42); Graph_Graph1009->GetZaxis()->SetLabelSize(0.035); Graph_Graph1009->GetZaxis()->SetTitleSize(0.035); Graph_Graph1009->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1009); gre->Draw("p"); TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(72); leg->SetTextSize(0.015); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(0); leg->Draw(); TPaveText *pt = new TPaveText(0.2068675,0.9341608,0.7931325,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("alpha_EL_EFF_Iso_TotalCorrUncertainty"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }