TCanvas *plotmean() { TCanvas *cWork = new TCanvas("cWork", "plots",200,10,700,750); cWork->Divide(3,6, 0.002, 0.002); cWork->SetFillColor(10); cWork->SetFillStyle(4000); cWork->SetBorderSize(1); for( int i = 0; i < 3*6; ++i ) { cWork->cd(i+1)->SetFillColor(10); cWork->cd(i+1)->SetFillStyle(4000); cWork->cd(i+1)->SetBorderSize(1); } plotmean(cWork, 1, "JP", "L"); plotmean(cWork, 2, "JP", "M"); plotmean(cWork, 3, "JP", "T"); plotmean(cWork, 4, "JBP", "L"); plotmean(cWork, 5, "JBP", "M"); plotmean(cWork, 6, "JBP", "T"); plotmean(cWork, 7, "CSV", "L"); plotmean(cWork, 8, "CSV", "M"); plotmean(cWork, 9, "CSV", "T"); plotmean(cWork, 10, "TCHE", "L"); plotmean(cWork, 11, "TCHE", "M"); plotmean(cWork, 14, "TCHP", "M"); plotmean(cWork, 15, "TCHP", "T"); plotmean(cWork, 17, "SSVHE", "M"); plotmean(cWork, 18, "SSVHP", "T"); return cWork; }
// ----------------------------------------------------------------------------- // TCanvas* getaCanvas(TString name,TDirectory* afile, bool log) { afile->cd(); TCanvas* aCanvas = new TCanvas(name); gStyle->SetOptFit(1); gStyle->SetOptStat(0); aCanvas->Range(-288.2483,-2.138147,1344.235,6.918939); aCanvas->SetFillColor(0); aCanvas->SetBorderMode(0); aCanvas->SetBorderSize(2); if ( log == true)aCanvas->SetLogy(); aCanvas->SetLeftMargin(0.1765705); aCanvas->SetRightMargin(0.05772496); aCanvas->SetTopMargin(0.04778761); aCanvas->SetBottomMargin(0.1256637); aCanvas->SetFrameFillStyle(0); aCanvas->SetFrameLineWidth(2); aCanvas->SetFrameBorderMode(0); aCanvas->SetFrameFillStyle(0); aCanvas->SetFrameLineWidth(2); aCanvas->SetFrameBorderMode(0); return aCanvas; }
TCanvas* MakeCanvas(const char* name, const char *title, int dX, int dY) { // Start with a canvas TCanvas *canvas = new TCanvas(name,title,0,0,dX,dY); // General overall stuff canvas->SetFillColor (0); canvas->SetBorderMode (0); canvas->SetBorderSize (10); // Set margins to reasonable defaults canvas->SetLeftMargin (0.20); canvas->SetRightMargin (0.05); canvas->SetTopMargin (0.08); canvas->SetBottomMargin (0.15); // Setup a frame which makes sense canvas->SetFrameFillStyle (0); canvas->SetFrameLineStyle (0); canvas->SetFrameBorderMode(0); canvas->SetFrameBorderSize(10); canvas->SetFrameFillStyle (0); canvas->SetFrameLineStyle (0); canvas->SetFrameBorderMode(0); canvas->SetFrameBorderSize(10); return canvas; }
void showGraph(double canvasSizeX, double canvasSizeY, TGraph* graph, bool useLogScaleX, double xMin, double xMax, const std::string& xAxisTitle, double xAxisOffset, bool useLogScaleY, double yMin, double yMax, const std::string& yAxisTitle, double yAxisOffset, const std::string& outputFileName) { TCanvas* canvas = new TCanvas("canvas", "canvas", canvasSizeX, canvasSizeY); canvas->SetFillColor(10); canvas->SetBorderSize(2); canvas->SetTopMargin(0.05); canvas->SetLeftMargin(0.19); canvas->SetBottomMargin(0.19); canvas->SetRightMargin(0.05); canvas->SetLogx(useLogScaleX); canvas->SetLogy(useLogScaleY); TH1* dummyHistogram = new TH1D("dummyHistogram", "dummyHistogram", 10, xMin, xMax); dummyHistogram->SetTitle(""); dummyHistogram->SetStats(false); dummyHistogram->SetMinimum(yMin); dummyHistogram->SetMaximum(yMax); dummyHistogram->Draw("axis"); TAxis* xAxis = dummyHistogram->GetXaxis(); xAxis->SetTitle(xAxisTitle.data()); xAxis->SetTitleOffset(xAxisOffset); xAxis->SetTitleSize(0.065); xAxis->SetLabelSize(0.055); xAxis->SetLabelOffset(0.01); xAxis->SetTickLength(0.055); xAxis->SetNdivisions(505); TAxis* yAxis = dummyHistogram->GetYaxis(); yAxis->SetTitle(yAxisTitle.data()); yAxis->SetTitleOffset(yAxisOffset); yAxis->SetTitleSize(0.070); yAxis->SetLabelSize(0.055); yAxis->SetLabelOffset(0.01); yAxis->SetTickLength(0.055); yAxis->SetNdivisions(505); graph->SetMarkerColor(1); graph->SetLineColor(1); graph->Draw("p"); canvas->Update(); size_t idx = outputFileName.find_last_of('.'); std::string outputFileName_plot = std::string(outputFileName, 0, idx); if ( useLogScaleY ) outputFileName_plot.append("_log"); else outputFileName_plot.append("_linear"); if ( idx != std::string::npos ) canvas->Print(std::string(outputFileName_plot).append(std::string(outputFileName, idx)).data()); canvas->Print(std::string(outputFileName_plot).append(".png").data()); //canvas->Print(std::string(outputFileName_plot).append(".pdf").data()); //canvas->Print(std::string(outputFileName_plot).append(".root").data()); delete dummyHistogram; delete canvas; }
void showHistograms(double canvasSizeX, double canvasSizeY, TH1* histogram, double xMin, double xMax, const std::string& xAxisTitle, double xAxisOffset, bool useLogScale, double yMin, double yMax, const std::string& yAxisTitle, double yAxisOffset, const std::string& outputFileName) { TCanvas* canvas = new TCanvas("canvas", "canvas", canvasSizeX, canvasSizeY); canvas->SetFillColor(10); canvas->SetBorderSize(2); canvas->SetLeftMargin(0.15); canvas->SetBottomMargin(0.15); canvas->SetLogy(useLogScale); histogram->SetTitle(""); histogram->SetStats(true); histogram->SetMinimum(yMin); histogram->SetMaximum(yMax); histogram->SetLineColor(1); histogram->SetLineWidth(2); histogram->SetMarkerColor(1); histogram->SetMarkerStyle(20); histogram->SetMarkerSize(1.5); histogram->Draw("hist"); TAxis* xAxis = histogram->GetXaxis(); xAxis->SetRangeUser(xMin, xMax); xAxis->SetTitle(xAxisTitle.data()); xAxis->SetTitleSize(0.060); xAxis->SetTitleOffset(xAxisOffset); xAxis->SetLabelSize(0.050); xAxis->SetNdivisions(505); TAxis* yAxis = histogram->GetYaxis(); yAxis->SetTitle(yAxisTitle.data()); yAxis->SetTitleSize(0.060); yAxis->SetTitleOffset(yAxisOffset); yAxis->SetLabelSize(0.050); yAxis->SetNdivisions(505); canvas->Update(); size_t idx = outputFileName.find_last_of('.'); std::string outputFileName_plot = std::string(outputFileName, 0, idx); if ( useLogScale ) outputFileName_plot.append("_log"); else outputFileName_plot.append("_linear"); if ( idx != std::string::npos ) canvas->Print(std::string(outputFileName_plot).append(std::string(outputFileName, idx)).data()); //canvas->Print(std::string(outputFileName_plot).append(".png").data()); canvas->Print(std::string(outputFileName_plot).append(".pdf").data()); //canvas->Print(std::string(outputFileName_plot).append(".root").data()); delete canvas; }
TCanvas * font() { TCanvas *Tf = new TCanvas("Tf", "Tf",0,0,500,700); Tf->Range(0,0,1,1); Tf->SetBorderSize(2); Tf->SetFrameFillColor(0); double y = 0.95; for (int f = 12; f<=152; f+=10) { if (f!=142) drawtext(0.02,y, f,"ABCDEFGH abcdefgh 0123456789 @#$"); else drawtext(0.02,y, f,"ABCD efgh 01234 @#$"); y -= 0.065; } return Tf; }
void showHistogram1d(TH1* histogram, const std::string& xAxisTitle, Float_t* genX, const std::string& outputFileName) { TCanvas* canvas = new TCanvas("canvas", "canvas", 800, 600); canvas->SetFillColor(10); canvas->SetBorderSize(2); canvas->SetTopMargin(0.10); canvas->SetLeftMargin(0.16); canvas->SetRightMargin(0.14); canvas->SetBottomMargin(0.12); TAxis* xAxis = histogram->GetXaxis(); xAxis->SetTitle(xAxisTitle.data()); xAxis->SetTitleOffset(1.15); TAxis* yAxis = histogram->GetYaxis(); yAxis->SetTitle("Sampling Points"); yAxis->SetTitleOffset(1.60); histogram->SetLineColor(1); histogram->SetLineWidth(2); histogram->SetMarkerColor(1); histogram->SetMarkerStyle(20); histogram->Draw("e1p"); TMarker* genMarker = 0; if ( genX ) { genMarker = new TMarker(*genX, 0.10, 34); genMarker->SetMarkerColor(1); genMarker->SetMarkerSize(2); genMarker->Draw(); } canvas->Update(); size_t idx = outputFileName.find_last_of('.'); std::string outputFileName_plot = std::string(outputFileName, 0, idx); if ( idx != std::string::npos ) canvas->Print(std::string(outputFileName_plot).append(std::string(outputFileName, idx)).data()); canvas->Print(std::string(outputFileName_plot).append(".png").data()); canvas->Print(std::string(outputFileName_plot).append(".pdf").data()); canvas->Print(std::string(outputFileName_plot).append(".root").data()); delete genMarker; delete canvas; }
TCanvas *OverlayAnalysis::CreateCanvas(const std::string &canvasName, const std::string &canvasTitle) const { TCanvas *pCanvas = new TCanvas(canvasName.c_str(), canvasTitle.c_str(), 200, 52, 700, 650); pCanvas->SetFillColor(0); pCanvas->SetBorderMode(0); pCanvas->SetBorderSize(2); pCanvas->SetTickx(1); pCanvas->SetTicky(1); pCanvas->SetLeftMargin(0.15); pCanvas->SetRightMargin(0.03); pCanvas->SetTopMargin(0.05); pCanvas->SetBottomMargin(0.14); pCanvas->SetFrameBorderMode(0); pCanvas->SetFrameBorderMode(0); return pCanvas; }
void first() { TCanvas *nut = new TCanvas("nut", "FirstSession",100,10,700,900); nut->Range(0,0,20,24); nut->SetFillColor(10); nut->SetBorderSize(2); TPaveLabel *pl = new TPaveLabel(3,22,17,23.7, "My first ROOT interactive session","br"); pl->SetFillColor(18); pl->Draw(); TText t(0,0,"a"); t.SetTextFont(62); t.SetTextSize(0.025); t.SetTextAlign(12); t.DrawText(2,20.3,"ROOT is based on CINT, a powerful C/C++ interpreter."); t.DrawText(2,19.3,"Blocks of lines can be entered within {...}."); t.DrawText(2,18.3,"Previous typed lines can be recalled."); t.SetTextFont(72); t.SetTextSize(0.026); t.DrawText(3,17,"Root > float x=5; float y=7;"); t.DrawText(3,16,"Root > x*sqrt(y)"); t.DrawText(3,14, "Root > for (int i=2;i<7;i++) printf(\"sqrt(%d) = %f\\n\",i,sqrt(i));"); t.DrawText(3,10,"Root > TF1 f1(\"f1\",\"sin(x)/x\",0,10)"); t.DrawText(3, 9,"Root > f1.Draw()"); t.SetTextFont(81); t.SetTextSize(0.018); t.DrawText(4,15,"(float) 13.2288f"); t.DrawText(4,13.3,"sqrt(2) = 1.414214"); t.DrawText(4,12.7,"sqrt(3) = 1.732051"); t.DrawText(4,12.1,"sqrt(4) = 2.000000"); t.DrawText(4,11.5,"sqrt(5) = 2.236068"); t.DrawText(4,10.9,"sqrt(6) = 2.449490"); TPad *pad = new TPad("pad","pad",.2,.05,.8,.35); pad->Draw(); pad->cd(); pad->SetGrid(); TF1 *f1 = new TF1("f1","sin(x)/x",0,10); f1->Draw(); }
void validateTauFakeRateKNN() { TCanvas* canvas = new TCanvas("canvas", "canvas", 1, 1, 800, 600); canvas->SetFillColor(10); canvas->SetBorderSize(2); canvas->SetLogy(); TString inputFilePath = "/data2/friis/FakeRatesHPSXCheck_V2/fakerate_ewkTauIdHPSloose_WplusJets_data_jetNoEta20FullVal/train"; //TString inputFilePath = "/data2/friis/FakeRatesHPSXCheck_V2/fakerate_ewkTauIdHPSloose_PPmuX_data_jetNoEta20FullVal/train"; TString inputFileName = "train_FakeRateMethod_output.root"; TFile* file = TFile::Open(TString(inputFilePath).Append("/").Append(inputFileName)); TString testTreeName = "TestTree"; TTree* testTree = (TTree*)file->Get(testTreeName); std::string ptName = "Pt"; std::string etaName = "AbsEta"; //--- Check if fake-rates are parametrized by jetPt or tau Pt if ( testTree->GetBranch("JetPt") ) { std::cout << "Using Jet variables" << std::endl; ptName = "JetPt"; etaName = "AbsJetEta"; } makePlot(canvas, "validateTauFakeRateKNN_WplusJets_JetPt.png", testTree, ptName, 10, 0., 100.); makePlot(canvas, "validateTauFakeRateKNN_WplusJets_JetEta.png", testTree, etaName, 10, -2.5, +2.5); makePlot(canvas, "validateTauFakeRateKNN_WplusJets_JetRadius.png", testTree, "JetWidth", 10, -0.01, 0.51); //makePlot(canvas, "validateTauFakeRateKNN_QCD_JetPt.png", testTree, ptName, 10, 0., 100.); //makePlot(canvas, "validateTauFakeRateKNN_QCD_JetEta.png", testTree, etaName, 10, -2.5, +2.5); //makePlot(canvas, "validateTauFakeRateKNN_QCD_JetRadius.png", testTree, "JetWidth", 10, -0.01, 0.51); delete file; delete canvas; }
// ----------------------------------------------------------------------------- // TCanvas* createCanvas(std::string name,TDirectory* afile, bool log) { afile->cd(); TCanvas* aCanvas = new TCanvas(name.c_str()); //gStyle->SetOptFit(1); //gStyle->SetOptStat("mr"); //aCanvas->Range(-288.2483,-2.138147,1344.235,6.918939); aCanvas->SetFillColor(0); aCanvas->SetBorderMode(0); aCanvas->SetBorderSize(2); if ( log == true)aCanvas->SetLogy(); aCanvas->SetLeftMargin(0.15); aCanvas->SetRightMargin(0.05); aCanvas->SetTopMargin(0.05); aCanvas->SetBottomMargin(0.12); aCanvas->SetFrameFillStyle(0); aCanvas->SetFrameLineWidth(2); aCanvas->SetFrameBorderMode(0); aCanvas->SetFrameFillStyle(0); aCanvas->SetFrameLineWidth(2); aCanvas->SetFrameBorderMode(0); return aCanvas; }
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 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 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); }
/** * Draw final plot for QM2011 * * @param max * * @ingroup pwglf_forward_scripts */ void dndeta_final(Double_t max=6) { gStyle->SetOptTitle(0); gStyle->SetOptFit(0); gStyle->SetTitleFont(132, "xyz"); gStyle->SetTitleSize(0.1, "xyz"); gStyle->SetTitleOffset(0.4, "y"); gStyle->SetTitleOffset(0.8, "x"); gStyle->SetLabelFont(132, "xyz"); gStyle->SetLabelSize(0.08, "xyz"); gStyle->SetNdivisions(212, "x"); gStyle->SetNdivisions(208, "y"); gStyle->SetTextFont(132); gStyle->SetPadColor(0); gStyle->SetPadBorderMode(0); // gStyle->SetFillColor(0); // gStyle->SetFillStyle(0); TCanvas* c = new TCanvas("c", "c", 900, 900); c->SetFillColor(0); c->SetFillStyle(0); c->SetBorderSize(0); c->SetBorderMode(0); c->SetRightMargin(0.02); c->SetTopMargin(0.02); c->SetBottomMargin(0.15); c->Divide(1,3,0,0); // --- INEL -------------------------------------------------------- TVirtualPad* p = c->cd(1); p->SetGridx(); p->SetRightMargin(.01); THStack* inel = new THStack("inel", "INEL"); TLatex* inelT = new TLatex(1-p->GetRightMargin()-.01, 1-p->GetTopMargin()-.01, "INEL"); inelT->SetNDC(); inelT->SetTextAlign(33); inelT->SetTextSize(0.12); TLegend* inelL = new TLegend(.3, .02, .8, .4); inelL->SetBorderSize(0); inelL->SetNColumns(2); inelL->SetFillColor(0); inelL->SetFillStyle(0); TLegendEntry* e = inelL->AddEntry("d1", "Forward", "lp"); e->SetMarkerColor(kRed+2); e->SetMarkerStyle(29); e = inelL->AddEntry("d2", "Central", "lp"); e->SetMarkerColor(kMagenta+2); e->SetMarkerStyle(29); e = inelL->AddEntry("d3", "Data", "lp"); e->SetMarkerStyle(29); e = inelL->AddEntry("d4", "Mirrored data", "lp"); e->SetMarkerStyle(30); e = inelL->AddEntry("d5", "Systematic error", "f"); e->SetFillColor(kGray); e->SetLineColor(kGray); e->SetLineWidth(0); e->SetFillStyle(3001); gROOT->LoadMacro("export_pp_0900GeV_INEL_m10p10cm_000100000ev.C"); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inel, inelL, 20); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inel, inelL, 21); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inel, inelL, 22); inel->Draw("nostack e1"); inel->GetHistogram()->SetYTitle("#frac{1}{N}#frac{dN_{ch}}{d#eta}"); inel->GetHistogram()->SetXTitle("#eta"); inel->GetHistogram()->GetYaxis()->SetDecimals(); inelL->Draw(); inelT->Draw(); // --- INEL>0 ------------------------------------------------------ p = c->cd(2); p->SetGridx(); p->SetRightMargin(.01); THStack* inelgt0 = new THStack("inelgt0", "INEL>0"); TLatex* inelgt0T = new TLatex(1-p->GetRightMargin()-.01, 1-p->GetTopMargin()-.01, "INEL>0"); inelgt0T->SetNDC(); inelgt0T->SetTextAlign(33); inelgt0T->SetTextSize(0.12); gROOT->LoadMacro("export_pp_0900GeV_INEL_m10p10cm_000100000ev.C"); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inelgt0, 0, 20); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inelgt0, 0, 21); export_pp_0900GeV_INEL_m10p10cm_000100000ev(inelgt0, 0, 22); inelgt0->Draw("nostack e1"); inelgt0->GetHistogram()->SetXTitle("#eta"); inelgt0->GetHistogram()->GetYaxis()->SetDecimals(); inelgt0T->Draw(); // --- NSD --------------------------------------------------------- p = c->cd(3); p->SetGridx(); p->SetRightMargin(.01); THStack* nsd = new THStack("nsd", "NSD"); TLatex* nsdT = new TLatex(1-p->GetRightMargin()-.01, 1-p->GetTopMargin()-.01, "NSD"); nsdT->SetNDC(); nsdT->SetTextAlign(33); nsdT->SetTextSize(0.12); gROOT->LoadMacro("export_pp_0900GeV_NSD_m10p10cm_000100000ev.C"); export_pp_0900GeV_NSD_m10p10cm_000100000ev(nsd, 0, 20); export_pp_0900GeV_NSD_m10p10cm_000100000ev(nsd, 0, 21); export_pp_0900GeV_NSD_m10p10cm_000100000ev(nsd, 0, 22); nsd->Draw("nostack e1"); nsd->GetHistogram()->SetXTitle("#eta"); nsd->GetHistogram()->GetYaxis()->SetDecimals(); nsdT->Draw(); c->cd(); c->SaveAs("dndeta_final.png"); }
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 Y_Resolution() { //=========Macro generated from canvas: c/c //========= (Thu Sep 10 11:38:01 2015) by ROOT version6.03/03 TCanvas *c = new TCanvas("c", "c",2119,55,800,700); c->SetHighLightColor(2); c->Range(-6.445783,-173.1333,5.60241,1269.644); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetLeftMargin(0.12); c->SetRightMargin(0.05); c->SetTopMargin(0.07); c->SetBottomMargin(0.12); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1F *histo__1 = new TH1F("histo__1","",40,-5,5); histo__1->SetBinContent(0,102); histo__1->SetBinContent(1,11); histo__1->SetBinContent(2,18); histo__1->SetBinContent(3,10); histo__1->SetBinContent(4,14); histo__1->SetBinContent(5,25); histo__1->SetBinContent(6,17); histo__1->SetBinContent(7,40); histo__1->SetBinContent(8,35); histo__1->SetBinContent(9,58); histo__1->SetBinContent(10,68); histo__1->SetBinContent(11,110); histo__1->SetBinContent(12,188); histo__1->SetBinContent(13,234); histo__1->SetBinContent(14,334); histo__1->SetBinContent(15,525); histo__1->SetBinContent(16,748); histo__1->SetBinContent(17,887); histo__1->SetBinContent(18,945); histo__1->SetBinContent(19,1051); histo__1->SetBinContent(20,1113); histo__1->SetBinContent(21,1062); histo__1->SetBinContent(22,979); histo__1->SetBinContent(23,820); histo__1->SetBinContent(24,744); histo__1->SetBinContent(25,583); histo__1->SetBinContent(26,437); histo__1->SetBinContent(27,342); histo__1->SetBinContent(28,238); histo__1->SetBinContent(29,177); histo__1->SetBinContent(30,100); histo__1->SetBinContent(31,93); histo__1->SetBinContent(32,62); histo__1->SetBinContent(33,34); histo__1->SetBinContent(34,35); histo__1->SetBinContent(35,48); histo__1->SetBinContent(36,26); histo__1->SetBinContent(37,30); histo__1->SetBinContent(38,24); histo__1->SetBinContent(39,24); histo__1->SetBinContent(40,17); histo__1->SetBinContent(41,175); histo__1->SetEntries(12583); histo__1->SetStats(0); TF1 *f1 = new TF1("f","[0]*(TMath::Erf((2*(x-[1])+[2])/([3]*TMath::Sqrt(8))) + TMath::Erf((2*([1]-x)+[2])/([3]*TMath::Sqrt(8))))",-2.5,2.5); f1->SetFillColor(19); f1->SetFillStyle(0); f1->SetLineColor(2); f1->SetLineWidth(2); f1->SetChisquare(44.0705); f1->SetNDF(16); f1->GetXaxis()->SetLabelFont(42); f1->GetXaxis()->SetLabelSize(0.035); f1->GetXaxis()->SetTitleSize(0.035); f1->GetXaxis()->SetTitleFont(42); f1->GetYaxis()->SetLabelFont(42); f1->GetYaxis()->SetLabelSize(0.035); f1->GetYaxis()->SetTitleSize(0.035); f1->GetYaxis()->SetTitleFont(42); f1->SetParameter(0,3532.064); f1->SetParError(0,3667.318); f1->SetParLimits(0,0,0); f1->SetParameter(1,-0.05520012); f1->SetParError(1,0.0108864); f1->SetParLimits(1,0,0); f1->SetParameter(2,0.4186987); f1->SetParError(2,0.4395014); f1->SetParLimits(2,0,0); f1->SetParameter(3,1.084631); f1->SetParError(3,0.01667116); f1->SetParLimits(3,0,0); histo__1->GetListOfFunctions()->Add(f1); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); histo__1->SetLineColor(ci); histo__1->SetLineWidth(2); histo__1->GetXaxis()->SetTitle("Y [mm]"); histo__1->GetXaxis()->SetLabelFont(42); histo__1->GetXaxis()->SetLabelSize(0.035); histo__1->GetXaxis()->SetTitleSize(0.06); histo__1->GetXaxis()->SetTitleOffset(0.8); histo__1->GetXaxis()->SetTitleFont(42); histo__1->GetYaxis()->SetTitle("entries / 0.25 mm"); histo__1->GetYaxis()->SetLabelFont(42); histo__1->GetYaxis()->SetLabelSize(0.035); histo__1->GetYaxis()->SetTitleSize(0.06); histo__1->GetYaxis()->SetTitleOffset(0.95); histo__1->GetYaxis()->SetTitleFont(42); histo__1->GetZaxis()->SetLabelFont(42); histo__1->GetZaxis()->SetLabelSize(0.035); histo__1->GetZaxis()->SetTitleSize(0.035); histo__1->GetZaxis()->SetTitleFont(42); histo__1->Draw(""); TLatex * tex = new TLatex(0.93,0.88,"#sigma = 1.08 #pm 0.02 [mm]"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }
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 DarkSusy_mH_125_mGammaD_2000_cT_0_LHE_gammaD_M() { //=========Macro generated from canvas: cnv/cnv //========= (Sun May 24 15:19: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.526695,-0.2275,1.571513,1.5225); 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_gammaD_1_M_dummy86 = new TH1F("h_gammaD_1_M_dummy86","h_gammaD_1_M_dummy",303,0.1,30.1); h_gammaD_1_M_dummy86->SetMaximum(1.4); h_gammaD_1_M_dummy86->SetLineStyle(0); h_gammaD_1_M_dummy86->SetMarkerStyle(20); h_gammaD_1_M_dummy86->GetXaxis()->SetTitle("Mass of #gamma_{D} [GeV]"); h_gammaD_1_M_dummy86->GetXaxis()->SetLabelFont(42); h_gammaD_1_M_dummy86->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_M_dummy86->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_M_dummy86->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_M_dummy86->GetXaxis()->SetTitleFont(42); h_gammaD_1_M_dummy86->GetYaxis()->SetTitle("Fraction of events / 0.1 GeV"); h_gammaD_1_M_dummy86->GetYaxis()->SetLabelFont(42); h_gammaD_1_M_dummy86->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_M_dummy86->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_M_dummy86->GetYaxis()->SetTitleOffset(1.35); h_gammaD_1_M_dummy86->GetYaxis()->SetTitleFont(42); h_gammaD_1_M_dummy86->GetZaxis()->SetLabelFont(42); h_gammaD_1_M_dummy86->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_M_dummy86->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_M_dummy86->GetZaxis()->SetTitleFont(42); h_gammaD_1_M_dummy86->Draw(""); TH1F *h_gammaD_1_M87 = new TH1F("h_gammaD_1_M87","h_gammaD_1_M",303,0.1,30.1); h_gammaD_1_M87->SetBinContent(201,1); h_gammaD_1_M87->SetBinError(201,0.002500016); h_gammaD_1_M87->SetEntries(159998); h_gammaD_1_M87->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); h_gammaD_1_M87->SetLineColor(ci); h_gammaD_1_M87->SetLineWidth(2); h_gammaD_1_M87->SetMarkerStyle(20); h_gammaD_1_M87->GetXaxis()->SetLabelFont(42); h_gammaD_1_M87->GetXaxis()->SetLabelOffset(0.007); h_gammaD_1_M87->GetXaxis()->SetTitleSize(0.06); h_gammaD_1_M87->GetXaxis()->SetTitleOffset(0.95); h_gammaD_1_M87->GetXaxis()->SetTitleFont(42); h_gammaD_1_M87->GetYaxis()->SetLabelFont(42); h_gammaD_1_M87->GetYaxis()->SetLabelOffset(0.007); h_gammaD_1_M87->GetYaxis()->SetTitleSize(0.06); h_gammaD_1_M87->GetYaxis()->SetTitleOffset(1.3); h_gammaD_1_M87->GetYaxis()->SetTitleFont(42); h_gammaD_1_M87->GetZaxis()->SetLabelFont(42); h_gammaD_1_M87->GetZaxis()->SetLabelOffset(0.007); h_gammaD_1_M87->GetZaxis()->SetTitleSize(0.06); h_gammaD_1_M87->GetZaxis()->SetTitleFont(42); h_gammaD_1_M87->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}} = 0 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 showHistograms(double canvasSizeX, double canvasSizeY, TH1* histogram_ref, const std::string& legendEntry_ref, double integral_ref, TH1* histogram2, const std::string& legendEntry2, double integral2, TH1* histogram3, const std::string& legendEntry3, double integral3, TH1* histogram4, const std::string& legendEntry4, double integral4, TH1* histogram5, const std::string& legendEntry5, double integral5, TH1* histogram6, const std::string& legendEntry6, double integral6, const std::string& xAxisTitle, double xAxisOffset, bool useLogScale, double yMin, double yMax, const std::string& yAxisTitle, double yAxisOffset, double legendX0, double legendY0, const std::string& outputFileName) { if ( !(histogram_ref && histogram2) ) return; TCanvas* canvas = new TCanvas("canvas", "canvas", canvasSizeX, canvasSizeY); canvas->SetFillColor(10); canvas->SetBorderSize(2); canvas->SetLeftMargin(0.12); canvas->SetBottomMargin(0.12); TPad* topPad = new TPad("topPad", "topPad", 0.00, 0.35, 1.00, 1.00); topPad->SetFillColor(10); topPad->SetTopMargin(0.04); topPad->SetLeftMargin(0.15); topPad->SetBottomMargin(0.03); topPad->SetRightMargin(0.05); topPad->SetLogy(useLogScale); TPad* bottomPad = new TPad("bottomPad", "bottomPad", 0.00, 0.00, 1.00, 0.35); bottomPad->SetFillColor(10); bottomPad->SetTopMargin(0.02); bottomPad->SetLeftMargin(0.15); bottomPad->SetBottomMargin(0.24); bottomPad->SetRightMargin(0.05); bottomPad->SetLogy(false); canvas->cd(); topPad->Draw(); topPad->cd(); //int colors[6] = { kBlack, kGreen - 6, kBlue - 7, kMagenta - 7, kCyan - 6, kRed - 6 }; int colors[6] = { kBlack, kRed, kBlue - 7, kMagenta - 7, kCyan - 6, kRed - 6 }; int markerStyles[6] = { 24, 25, 20, 21, 22, 23 }; int markerSizes[6] = { 1, 1, 1, 1, 1, 1 }; TLegend* legend = new TLegend(legendX0, legendY0, legendX0 + 0.61, legendY0 + 0.21, "", "brNDC"); legend->SetBorderSize(0); legend->SetFillColor(0); histogram_ref->SetTitle(""); histogram_ref->SetStats(false); histogram_ref->SetMinimum(yMin); histogram_ref->SetMaximum(yMax); histogram_ref->SetLineColor(colors[0]); histogram_ref->SetLineWidth(2); histogram_ref->SetMarkerColor(colors[0]); histogram_ref->SetMarkerStyle(markerStyles[0]); histogram_ref->SetMarkerSize(markerSizes[0]); histogram_ref->Draw("e1p"); //if ( integral_ref >= 0. ) legend->AddEntry(histogram_ref, Form("%s: %1.2f", legendEntry_ref.data(), integral_ref), "p"); //else legend->AddEntry(histogram_ref, legendEntry_ref.data(), "p"); legend->AddEntry(histogram_ref, Form("%s: %1.2f", legendEntry_ref.data(), integral_ref), "p"); TAxis* xAxis_top = histogram_ref->GetXaxis(); xAxis_top->SetTitle(xAxisTitle.data()); xAxis_top->SetTitleOffset(xAxisOffset); xAxis_top->SetLabelColor(10); xAxis_top->SetTitleColor(10); TAxis* yAxis_top = histogram_ref->GetYaxis(); yAxis_top->SetTitle(yAxisTitle.data()); yAxis_top->SetTitleOffset(yAxisOffset); if ( histogram2 ) { histogram2->SetLineColor(colors[1]); histogram2->SetLineWidth(2); histogram2->SetMarkerColor(colors[1]); histogram2->SetMarkerStyle(markerStyles[1]); histogram2->SetMarkerSize(markerSizes[1]); histogram2->Draw("e1psame"); //if ( integral2 >= 0. ) legend->AddEntry(histogram2, Form("%s: %1.2f", legendEntry2.data(), integral2), "p"); //else legend->AddEntry(histogram2, legendEntry2.data(), "p"); legend->AddEntry(histogram2, Form("%s: %1.2f", legendEntry2.data(), integral2), "p"); } if ( histogram3 ) { histogram3->SetLineColor(colors[2]); histogram3->SetLineWidth(2); histogram3->SetMarkerColor(colors[2]); histogram3->SetMarkerStyle(markerStyles[2]); histogram3->SetMarkerSize(markerSizes[2]); histogram3->Draw("e1psame"); //if ( integral3 >= 0. ) legend->AddEntry(histogram3, Form("%s: %1.2f", legendEntry3.data(), integral3), "p"); //else legend->AddEntry(histogram3, legendEntry3.data(), "p"); legend->AddEntry(histogram3, Form("%s: %1.2f", legendEntry3.data(), integral3), "p"); } if ( histogram4 ) { histogram4->SetLineColor(colors[3]); histogram4->SetLineWidth(2); histogram4->SetMarkerColor(colors[3]); histogram4->SetMarkerStyle(markerStyles[3]); histogram4->SetMarkerSize(markerSizes[3]); histogram4->Draw("e1psame"); if ( integral4 >= 0. ) legend->AddEntry(histogram4, Form("%s: %1.2f", legendEntry4.data(), integral4), "p"); else legend->AddEntry(histogram4, legendEntry4.data(), "p"); } if ( histogram5 ) { histogram5->SetLineColor(colors[4]); histogram5->SetLineWidth(2); histogram5->SetMarkerColor(colors[4]); histogram5->SetMarkerStyle(markerStyles[4]); histogram5->SetMarkerSize(markerSizes[4]); histogram5->Draw("e1psame"); if ( integral5 >= 0. ) legend->AddEntry(histogram5, Form("%s: %1.2f", legendEntry5.data(), integral5), "p"); else legend->AddEntry(histogram5, legendEntry5.data(), "p"); } if ( histogram6 ) { histogram6->SetLineColor(colors[5]); histogram6->SetLineWidth(2); histogram6->SetMarkerColor(colors[5]); histogram6->SetMarkerStyle(markerStyles[5]); histogram6->SetMarkerSize(markerSizes[5]); histogram6->Draw("e1psame"); if ( integral6 >= 0. ) legend->AddEntry(histogram6, Form("%s: %1.2f", legendEntry6.data(), integral6), "p"); else legend->AddEntry(histogram6, legendEntry6.data(), "p"); } legend->Draw(); canvas->cd(); bottomPad->Draw(); bottomPad->cd(); TH1* histogram2_div_ref = 0; if ( histogram2 ) { std::string histogramName2_div_ref = std::string(histogram2->GetName()).append("_div_").append(histogram_ref->GetName()); histogram2_div_ref = compRatioHistogram(histogramName2_div_ref, histogram2, histogram_ref); if ( histogram2_div_ref ) { histogram2_div_ref->SetTitle(""); histogram2_div_ref->SetStats(false); histogram2_div_ref->SetMinimum(-0.50); histogram2_div_ref->SetMaximum(+0.50); TAxis* xAxis_bottom = histogram2_div_ref->GetXaxis(); xAxis_bottom->SetTitle(xAxis_top->GetTitle()); xAxis_bottom->SetLabelColor(1); xAxis_bottom->SetTitleColor(1); xAxis_bottom->SetTitleOffset(1.20); xAxis_bottom->SetTitleSize(0.08); xAxis_bottom->SetLabelOffset(0.02); xAxis_bottom->SetLabelSize(0.08); xAxis_bottom->SetTickLength(0.055); TAxis* yAxis_bottom = histogram2_div_ref->GetYaxis(); yAxis_bottom->SetTitle(Form("#frac{%s - %s}{%s}", legendEntry2.data(), legendEntry_ref.data(), legendEntry_ref.data())); yAxis_bottom->SetTitleOffset(0.85); yAxis_bottom->SetNdivisions(505); yAxis_bottom->CenterTitle(); yAxis_bottom->SetTitleSize(0.08); yAxis_bottom->SetLabelSize(0.08); yAxis_bottom->SetTickLength(0.04); histogram2_div_ref->Draw("e1p"); } } TH1* histogram3_div_ref = 0; if ( histogram3 ) { std::string histogramName3_div_ref = std::string(histogram3->GetName()).append("_div_").append(histogram_ref->GetName()); histogram3_div_ref = compRatioHistogram(histogramName3_div_ref, histogram3, histogram_ref); if ( histogram3_div_ref ) { histogram3_div_ref->SetTitle(""); histogram3_div_ref->SetStats(false); histogram3_div_ref->SetMinimum(-0.50); histogram3_div_ref->SetMaximum(+0.50); TAxis* xAxis_bottom = histogram3_div_ref->GetXaxis(); xAxis_bottom->SetTitle(xAxis_top->GetTitle()); xAxis_bottom->SetLabelColor(1); xAxis_bottom->SetTitleColor(1); xAxis_bottom->SetTitleOffset(1.20); xAxis_bottom->SetTitleSize(0.08); xAxis_bottom->SetLabelOffset(0.02); xAxis_bottom->SetLabelSize(0.08); xAxis_bottom->SetTickLength(0.055); TAxis* yAxis_bottom = histogram3_div_ref->GetYaxis(); yAxis_bottom->SetTitle(Form("#frac{%s - %s}{%s}", legendEntry3.data(), legendEntry_ref.data(), legendEntry_ref.data())); yAxis_bottom->SetTitleOffset(0.85); yAxis_bottom->SetNdivisions(505); yAxis_bottom->CenterTitle(); yAxis_bottom->SetTitleSize(0.08); yAxis_bottom->SetLabelSize(0.08); yAxis_bottom->SetTickLength(0.04); if ( histogram2 ) histogram3_div_ref->Draw("e1psame"); else histogram3_div_ref->Draw("e1p"); } } TGraph* graph_line = new TGraph(2); graph_line->SetPoint(0, xAxis_top->GetXmin(), 0.); graph_line->SetPoint(1, xAxis_top->GetXmax(), 0.); graph_line->SetLineColor(8); graph_line->SetLineWidth(1); graph_line->Draw("L"); if ( histogram2_div_ref ) histogram2_div_ref->Draw("e1psame"); if ( histogram3_div_ref ) histogram3_div_ref->Draw("e1psame"); TH1* histogram4_div_ref = 0; if ( histogram4 ) { std::string histogramName4_div_ref = std::string(histogram4->GetName()).append("_div_").append(histogram_ref->GetName()); histogram4_div_ref = compRatioHistogram(histogramName4_div_ref, histogram4, histogram_ref); if ( histogram4_div_ref ) { histogram4_div_ref->Draw("e1psame"); } } TH1* histogram5_div_ref = 0; if ( histogram5 ) { std::string histogramName5_div_ref = std::string(histogram5->GetName()).append("_div_").append(histogram_ref->GetName()); histogram5_div_ref = compRatioHistogram(histogramName5_div_ref, histogram5, histogram_ref); if ( histogram5_div_ref ) { histogram5_div_ref->Draw("e1psame"); } } TH1* histogram6_div_ref = 0; if ( histogram6 ) { std::string histogramName6_div_ref = std::string(histogram6->GetName()).append("_div_").append(histogram_ref->GetName()); histogram6_div_ref = compRatioHistogram(histogramName6_div_ref, histogram6, histogram_ref); if ( histogram6_div_ref ) { histogram6_div_ref->Draw("e1psame"); } } canvas->Update(); size_t idx = outputFileName.find_last_of('.'); std::string outputFileName_plot = std::string(outputFileName, 0, idx); if ( useLogScale ) outputFileName_plot.append("_log"); else outputFileName_plot.append("_linear"); if ( idx != std::string::npos ) canvas->Print(std::string(outputFileName_plot).append(std::string(outputFileName, idx)).data()); canvas->Print(std::string(outputFileName_plot).append(".png").data()); //canvas->Print(std::string(outputFileName_plot).append(".pdf").data()); //canvas->Print(std::string(outputFileName_plot).append(".root").data()); delete legend; delete histogram2_div_ref; delete histogram3_div_ref; delete histogram4_div_ref; delete histogram5_div_ref; delete histogram6_div_ref; delete topPad; delete bottomPad; delete canvas; }
int create_plots(const char* file = "/home/wagners/acqu/acqu_user/PHYS_CB_2014-06-06_completeSet.root") { /* some initial stuff */ const char* suffix = "pdf"; // file format for saving the histograms gStyle->SetCanvasColor(0); //gStyle->SetOptStat(0); // Color used for histograms Int_t color = TColor::GetColor("#014ED0"); // enum for numbering of different cuts and cut combinations enum cut { protE, copl, balance, dAlpha, missM, invM, copl_balance, balance_missM, protE_copl, copl_missM, missM_invM, balance_dAlpha, copl_dAlpha, protE_copl_balance, copl_balance_dAlpha, all, unknown }; IntCharMap cuts; cuts.insert(ICPair(protE, "protE")); cuts.insert(ICPair(copl, "copl")); cuts.insert(ICPair(balance, "balance")); cuts.insert(ICPair(dAlpha, "dAlpha")); cuts.insert(ICPair(missM, "missM")); cuts.insert(ICPair(invM, "invM")); cuts.insert(ICPair(copl_balance, "copl_balance")); cuts.insert(ICPair(balance_missM, "balance_missM")); cuts.insert(ICPair(protE_copl, "protE_copl")); cuts.insert(ICPair(copl_missM, "copl_missM")); cuts.insert(ICPair(missM_invM, "missM_invM")); cuts.insert(ICPair(balance_dAlpha, "balance_dAlpha")); cuts.insert(ICPair(copl_dAlpha, "copl_dAlpha")); cuts.insert(ICPair(protE_copl_balance, "protE_copl_balance")); cuts.insert(ICPair(copl_balance_dAlpha, "copl_balance_dAlpha")); cuts.insert(ICPair(all, "allCuts")); std::vector<const char*> props; props.push_back("invM"); props.push_back("missM"); const char* windows[2] = {"prompt", "random"}; // connect to the file to read from TFile f(file, "READ"); if (!f.IsOpen()) { printf("Error opening file %s!\n", file); return 1; } printf("Read "); f.Print(); // load the desired folder from file (not needed in case the EndFileMacro was used) //TFolder *t = (TFolder*)f.Get("ROOT Memory"); // Get the Prompt-Random-Ratio from the analysed root file TH1F *h_ratio = (TH1F*)f.FindObjectAny("PHYS_promptRandomRatio"); const double ratio = h_ratio->GetMean(); std::cout << "[INFO] Prompt-Random-Ratio: " << ratio << std::endl; // declare some temporary used variables TH1F* h[N_WINDOWS]; char buffer[50]; // create an empty canvas for histogram drawing TCanvas *c = new TCanvas("c", "plot", 20, 10, 700, 500); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); //c->SetLogy(); c->SetFrameBorderMode(0); c->SetLeftMargin(.14); c->SetRightMargin(.1); c->SetBottomMargin(.125); c->SetTopMargin(.05); for (std::vector<const char*>::iterator it_prop = props.begin(); it_prop != props.end(); ++it_prop) { for (ICIter it_cut = cuts.begin(); it_cut != cuts.end(); ++it_cut) { // skip the current combination if the cut contains the current variable, e. g. invM with some cut involving invM if (strstr(it_cut->second, *it_prop)) continue; // get prompt and random histograms for every property cut combination for (unsigned int i = 0; i < N_WINDOWS; i++) { sprintf(buffer, "%s_%s_%s", *it_prop, it_cut->second, windows[i]); h[i] = (TH1F*)f.FindObjectAny(buffer); if (!h[i]) { std::cout << "[ERROR] Couldn't find histogram " << buffer << std::endl; exit(1); } } c->Clear(); // subtract to chosen window size normalized random-background from events inside the prompt-window h[PROMPT]->Add(h[RANDOM], -1*ratio); prepare_hist(h[PROMPT]); /* Rebin histogram */ int n = 50; h[PROMPT]->Rebin(n); // combine n bins => n MeV binning /*char* label; if (label) free(label); char* label = malloc(strlen("#Events / ") + 5 + strlen(" MeV^{2}") + 1); //sprintf(label, "%s%.2f%s", "#Events / ", n/1000., " GeV^{2}"); sprintf(label, "%s%d%s", "#Events / ", n, " MeV^{2}"); h->GetYaxis()->SetTitle(label);*/ /* set axes according to plotted values and prepare histogram for saving */ sprintf(buffer, "%s%d%s", "#Events / ", n, " MeV"); h[PROMPT]->GetYaxis()->SetTitle(buffer); h[PROMPT]->SetLineColor(color); sprintf(buffer, "%s [MeV]", *it_prop); h[PROMPT]->GetXaxis()->SetTitle(buffer); h[PROMPT]->Draw(); sprintf(buffer, "%s_%s.%s", *it_prop, it_cut->second, suffix); c->Print(buffer); } std::cout << "[INFO] Created all random-subtracted plots for " << *it_prop << std::endl; } f.Close(); return EXIT_SUCCESS; }
void proj_npe_1() { //=========Macro generated from canvas: c/ //========= (Wed Jul 15 16:16:05 2015) by ROOT version6.04/00 TCanvas *c = new TCanvas("c", "",0,45,600,500); c->SetHighLightColor(2); c->Range(-2655.754,-5.755,4350.289,51.795); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); Double_t _fx2[39] = { -1488.08, -1403.181, -1178.164, -1033.78, -849.3154, -838.8983, -788.1957, -701.2156, -654.0264, -163.6875, 1.142557, 54.07047, 256.5688, 531.8203, 632.5535, 750.8472, 835.9491, 859.9519, 970.3359, 1013.975, 1084.685, 1488.872, 1635.959, 1867.579, 1967.102, 2022.346, 2109.155, 2234.388, 2395.154, 2415.658, 2534.104, 2547.086, 2643.154, 2683.775, 2846.919, 3002.304, 3074.222, 3131.044, 3182.615}; Double_t _fy2[39] = { 2.55, 2.3, 2.55, 2.7, 2.4, 2.65, 2.75, 2.5, 2.4, 2.45, 42.05, 2.55, 2.6, 2.6, 2.85, 2.7, 2.55, 2.6, 2.6, 2.6, 2.55, 2.25, 2.65, 2.6, 2.55, 2.25, 2.55, 2.45, 2.65, 2.65, 2.65, 2.6, 2.6, 2.35, 2.55, 2.15, 2.45, 2.75, 2.3}; TGraph *graph = new TGraph(39,_fx2,_fy2); graph->SetName(""); graph->SetTitle("Event 1"); graph->SetFillColor(1); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); graph->SetMarkerColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Event 1",100,-1955.149,3649.684); Graph_Graph2->SetMinimum(0); Graph_Graph2->SetMaximum(46.04); Graph_Graph2->SetDirectory(0); Graph_Graph2->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph2->SetLineColor(ci); Graph_Graph2->GetXaxis()->SetTitle("time wrt trigger [cm]"); Graph_Graph2->GetXaxis()->SetLabelFont(42); Graph_Graph2->GetXaxis()->SetLabelSize(0.035); Graph_Graph2->GetXaxis()->SetTitleSize(0.035); Graph_Graph2->GetXaxis()->SetTitleFont(42); Graph_Graph2->GetYaxis()->SetTitle("#PE"); Graph_Graph2->GetYaxis()->SetLabelFont(42); Graph_Graph2->GetYaxis()->SetLabelSize(0.035); Graph_Graph2->GetYaxis()->SetTitleSize(0.035); Graph_Graph2->GetYaxis()->SetTitleFont(42); Graph_Graph2->GetZaxis()->SetLabelFont(42); Graph_Graph2->GetZaxis()->SetLabelSize(0.035); Graph_Graph2->GetZaxis()->SetTitleSize(0.035); Graph_Graph2->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph2); graph->Draw("ap"); TPaveText *pt = new TPaveText(0.4189298,0.94,0.5810702,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("Event 1"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }
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 makeTauIsolationPlots() { TFile* inputFile = TFile::Open("../test/patTauIsolationAnalyzer.root"); TObjArray ptThresholds; ptThresholds.Add(new TObjString("0_50GeV")); ptThresholds.Add(new TObjString("1_00GeV")); ptThresholds.Add(new TObjString("1_50GeV")); ptThresholds.Add(new TObjString("2_00GeV")); ptThresholds.Add(new TObjString("2_50GeV")); ptThresholds.Add(new TObjString("3_00GeV")); unsigned numPtThresholds = ptThresholds.GetEntries(); TObjArray sigConeSizes; sigConeSizes.Add(new TObjString("0_05dRsig")); sigConeSizes.Add(new TObjString("0_10dRsig")); sigConeSizes.Add(new TObjString("0_15dRsig")); sigConeSizes.Add(new TObjString("0_20dRsig")); sigConeSizes.Add(new TObjString("0_25dRsig")); sigConeSizes.Add(new TObjString("0_30dRsig")); unsigned numSigConeSizes = sigConeSizes.GetEntries(); TString dqmDirectory = ""; TCanvas* canvas = new TCanvas("canvas", "canvas", 800, 600); canvas->SetFillColor(10); canvas->SetBorderSize(2); //------------------------------------------------------------------------------- // show distributions of isolation Pt sums **before** tight tau id. is applied //------------------------------------------------------------------------------- TPostScript* psBeforeTauId = new TPostScript("patTauIsolationPlots_beforeTauId.ps", 112); for ( unsigned iSigConeSize = 0; iSigConeSize < numSigConeSizes; ++iSigConeSize ) { TObjString* sigConeSize = (TObjString*)sigConeSizes.At(iSigConeSize); //--- show plots for PFCandidate Pt > XX GeV // (same threshold for all types of PFCandidates) for ( unsigned iPtThreshold = 0; iPtThreshold < numPtThresholds; ++iPtThreshold ) { TObjString* ptThreshold = (TObjString*)ptThresholds.At(iPtThreshold); TString meName = TString("PFCandIso").Append(sigConeSize->GetString()).Append(ptThreshold->GetString()).Append("_matched"); showTauIsolation(inputFile, dqmDirectory, meName, "TauPFIsolationQuantities/beforeTauId", "MuonPFIsolationQuantities", "ElectronPFIsolationQuantities", canvas, psBeforeTauId, "beforeTauId", true); } //--- show plots for PFChargedHadron Pt > 1.0 GeV, PFGamma Pt > 1.5 GeV TString meName = TString("PFCandIso").Append(sigConeSize->GetString()).Append("1_00_1_50GeV").Append("_matched"); showTauIsolation(inputFile, dqmDirectory, meName, "TauPFIsolationQuantities/beforeTauId", "MuonPFIsolationQuantities", "ElectronPFIsolationQuantities", canvas, psBeforeTauId, "beforeTauId", true); } delete psBeforeTauId; //------------------------------------------------------------------------------- // show distributions of isolation Pt sums **after** tight tau id. is applied //------------------------------------------------------------------------------- TPostScript* psAfterTauId = new TPostScript("patTauIsolationPlots_afterTauId.ps", 112); for ( unsigned iSigConeSize = 0; iSigConeSize < numSigConeSizes; ++iSigConeSize ) { TObjString* sigConeSize = (TObjString*)sigConeSizes.At(iSigConeSize); //--- show plots for PFCandidate Pt > XX GeV // (same threshold for all types of PFCandidates) for ( unsigned iPtThreshold = 0; iPtThreshold < numPtThresholds; ++iPtThreshold ) { TObjString* ptThreshold = (TObjString*)ptThresholds.At(iPtThreshold); TString meName = TString("PFCandIso").Append(sigConeSize->GetString()).Append(ptThreshold->GetString()).Append("_matched"); showTauIsolation(inputFile, dqmDirectory, meName, "TauPFIsolationQuantities/afterTauId", "", "", canvas, psAfterTauId, "afterTauId", true); } //--- show plots for PFChargedHadron Pt > 1.0 GeV, PFGamma Pt > 1.5 GeV TString meName = TString("PFCandIso").Append(sigConeSize->GetString()).Append("1_00_1_50GeV").Append("_matched"); showTauIsolation(inputFile, dqmDirectory, meName, "TauPFIsolationQuantities/afterTauId", "", "", canvas, psAfterTauId, "afterTauId", true); } delete psAfterTauId; delete canvas; delete inputFile; }
void check1SLimits( const char* workDir, // workDir: usual tag where to look for files in Output const char* lFileName="cLimits_683_NominalABCD_Asym_2SPL_woSyst.csv", // file name to save limits results bool dosyst = false, int mode = 1, // mode=0 -> pass, mode=1 -> prompt, mode=2 -> nonprompt const char* workDirFail="" ) { TString slFileName(lFileName); if ( dosyst && !slFileName.Contains("wSys") ) { cout << "Comparison requires systematics but limits file does not contain them" << endl; return; } // list of files set<anabin> thebins = allbins(); const char* ppp = "../Fitter"; // systematic uncertainties for fit map<anabin, syst> syst_All; if ( dosyst ) { if (mode==0) syst_All = readSyst_all_pass("",ppp,workDir); if (mode==1) syst_All = readSyst_all_prompt("",ppp,workDir,workDirFail); if (mode==2) syst_All = readSyst_all_nonprompt("",ppp,workDir,workDirFail); } // bin edges float ptmin, ptmax, ymin, ymax, centmin, centmax; // histo for 1sigma limits checks TH1* hCL = new TH1D("hOneSigmaCLComparison","",thebins.size(),0,thebins.size()); hCL->GetYaxis()->SetTitle("CL_{1#sigma}/#sigma"); hCL->GetYaxis()->SetTitleOffset(1.15); hCL->SetStats(0); hCL->SetDirectory(0); hCL->SetMarkerColor(1); hCL->SetMarkerStyle(20); hCL->SetMarkerSize(1); hCL->SetLineColor(1); TLine* l1 = new TLine(0.,1.,hCL->GetXaxis()->GetXmax(),1.); l1->SetLineWidth(3); hCL->GetListOfFunctions()->Add(l1); map<anabin,limits> maplim = readLimits(Form("csv/%s",slFileName.Data())); int cnt=1; for (set<anabin>::const_iterator it=thebins.begin(); it!=thebins.end(); it++) { cout << "Checking 1 sigma limits for analysis bin " << cnt << endl; anabin thebin = *it; ptmin = thebin.ptbin().low(); ptmax = thebin.ptbin().high(); ymin = thebin.rapbin().low(); ymax = thebin.rapbin().high(); centmin = thebin.centbin().low(); centmax = thebin.centbin().high(); double sigmaDoubleR = 0; double doubleR = 0; if (mode==0) { doubleR = doubleratio_pass_nominal(workDir,thebin,ppp); sigmaDoubleR = doubleratio_pass_stat(workDir,thebin,ppp); } if (mode==1) { doubleR = doubleratio_prompt_nominal(workDir,workDirFail,thebin,ppp); sigmaDoubleR = doubleratio_prompt_stat(workDir,workDirFail,thebin,ppp); } if (mode==2) { doubleR = doubleratio_nonprompt_nominal(workDir,workDirFail,thebin,ppp); sigmaDoubleR = doubleratio_nonprompt_stat(workDir,workDirFail,thebin,ppp); } double systAll=0; if ( dosyst ) { systAll = syst_All[thebin].value_dR; sigmaDoubleR = sqrt(pow(sigmaDoubleR,2)+pow(systAll,2)); } limits lim = maplim[thebin]; TString binName(Form("Pt[%.1f,%.1f]-Y[%.1f,%.1f]-C[%.1f,%.1f]",ptmin,ptmax,ymin,ymax,centmin,centmax)); double comp = -1.; if ( sigmaDoubleR != 0 ) comp = (lim.val.second-lim.val.first)/(2.*sigmaDoubleR); hCL->SetBinContent(cnt,comp); hCL->GetXaxis()->SetBinLabel(cnt,binName.Data()); cnt++; } // loop on the files TFile* fSave = new TFile("oneSigmaCLComparison.root","RECREATE"); TCanvas* c = new TCanvas("cOneSigmaCLComparison","",90,116,1265,535); c->Range(-3.690909,-0.01066472,33.30606,0.01252061); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetRightMargin(0.1163896); c->SetTopMargin(0.03732809); c->SetBottomMargin(0.1630648); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); gPad->SetGridx(); gPad->SetGridy(); hCL->Draw("p"); c->Write("cOneSigmaCLComparison", TObject::kOverwrite | TObject::kSingleKey); fSave->Close(); delete fSave; }
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 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); }