Пример #1
0
void greyscale()
{
   TCanvas *c = new TCanvas("grey", "Grey Scale", 500, 500);
   c->SetBorderMode(0);

   Int_t   n = 200;   // tunable parameter
   Float_t n1 = 1./n;
   for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
         TBox *b = new TBox(n1*j, n1*(n-1-i), n1*(j+1), n1*(n-i));
         Float_t grey = Float_t(i*n+j)/(n*n);
         b->SetFillColor(TColor::GetColor(grey, grey, grey));
         b->Draw();
      }
   }
   TPad *p = new TPad("p","p",0.3, 0.3, 0.7,0.7);
   const char *guibackground = gEnv->GetValue("Gui.BackgroundColor", "");
   p->SetFillColor(TColor::GetColor(guibackground));
   p->Draw();
   p->cd();
   TText *t = new TText(0.5, 0.5, "GUI Background Color");
   t->SetTextAlign(22);
   t->SetTextSize(.09);
   t->Draw();

   c->SetEditable(kFALSE);
}
Пример #2
0
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;
}
Пример #3
0
// -----------------------------------------------------------------------------
//
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;
}
Пример #4
0
void setCanvasOptions(TCanvas& canvas)
{
  canvas.SetWindowSize(610,630);
  canvas.SetFillStyle(0);
  canvas.SetFillColor(0);
  canvas.SetGrid();
  canvas.SetBorderMode(0);
  canvas.SetFrameBorderMode(0);
  canvas.SetFrameBorderSize(1);
  canvas.SetFrameFillColor(0);
  canvas.SetFrameFillStyle(0);
  canvas.SetFrameLineColor(1);
  canvas.SetFrameLineStyle(1);
  canvas.SetFrameLineWidth(1);
  canvas.SetTopMargin(0.05);
  canvas.SetBottomMargin(0.13);
  canvas.SetLeftMargin(0.13);
  canvas.SetRightMargin(0.05);
  canvas.SetTickx(1);
  canvas.SetTicky(1);
  TH1F* frame = canvas.DrawFrame(0.0, 0.0, 5.0, 1.0);
  frame->GetXaxis()->SetTitle("#DeltaR_{tag-probe}");
  frame->GetYaxis()->SetTitle("Unit-normalized events per 0.1");
  frame->GetXaxis()->SetTitleColor(1);
  frame->GetYaxis()->SetTitleColor(1);
  frame->GetXaxis()->SetTitleFont(42);
  frame->GetYaxis()->SetTitleFont(42);
  frame->GetXaxis()->SetTitleSize(0.06);
  frame->GetYaxis()->SetTitleSize(0.06);
  frame->GetXaxis()->SetTitleOffset(0.9);
  frame->GetYaxis()->SetTitleOffset(1.05);
  frame->GetXaxis()->SetLabelColor(1);
  frame->GetYaxis()->SetLabelColor(1);
  frame->GetXaxis()->SetLabelFont(42);
  frame->GetYaxis()->SetLabelFont(42);
  frame->GetXaxis()->SetLabelSize(0.05);
  frame->GetXaxis()->SetLabelOffset(0.007);
  frame->GetYaxis()->SetLabelOffset(0.007);
  frame->GetXaxis()->SetAxisColor(1);
  frame->GetYaxis()->SetAxisColor(1);
  frame->GetXaxis()->SetDecimals(kTRUE);
  frame->GetYaxis()->SetDecimals(kTRUE);
  frame->GetXaxis()->SetTickLength(0.03);
  frame->GetYaxis()->SetTickLength(0.03);
  frame->GetXaxis()->SetNdivisions(510);
  frame->GetYaxis()->SetNdivisions(510);
}
Пример #5
0
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;
}
Пример #6
0
  TCanvas* makeNiceCanvasByFracMargins(Int_t pixelPerBin, Int_t nbinx, Int_t nbiny, Double_t top, Double_t bottom, Double_t left, Double_t right) {
  
  Int_t rubaX = 4; //determinato sperimentalmente                                                                          
  Int_t rubaY = 28; //determinato sperimentalmente                                                                                                        
  TString name = generateRandomName();

  Int_t plotBaseDimX = pixelPerBin*nbinx;
  Int_t plotBaseDimY = pixelPerBin*nbiny;
  Int_t XX = (Int_t)(plotBaseDimX/(1.-left-right));
  Int_t YY = (Int_t)(plotBaseDimY/(1.-top-bottom));
  TCanvas* can = new TCanvas(name,name,XX+rubaX,YY+rubaY);
  can->SetTopMargin(top);
  can->SetBottomMargin(bottom);
  can->SetRightMargin(right);
  can->SetLeftMargin(left);
  can->SetBorderMode(0);
  std::cout << "Nice canvas " << XX << " * " << YY << std::endl;
  return can;

}
Пример #7
0
TCanvas* makeNiceCanvas(Int_t pixelPerBin, Int_t nbinx, Int_t nbiny, Int_t top, Int_t bottom, Int_t left, Int_t right) {
  
  Int_t rubaX = 4; //determinato sperimentalmente                                                                          
  Int_t rubaY = 28; //determinato sperimentalmente                                                                                                        
  TString name = generateRandomName();

  Int_t plotBaseDimX = pixelPerBin*nbinx;
  Int_t plotBaseDimY = pixelPerBin*nbiny;
  Int_t XX = (plotBaseDimX+left+right+rubaX);
  Int_t YY = (plotBaseDimY+top+bottom+rubaY);
  TCanvas* can = new TCanvas(name,name,XX,YY);
  can->SetTopMargin(1.*top/YY);
  can->SetBottomMargin(1.*bottom/YY);
  can->SetRightMargin(1.*right/XX);
  can->SetLeftMargin(1.*left/XX);
  can->SetBorderMode(0);
  std::cout << "Nice canvas " << XX << " * " << YY << std::endl;
  return can;

}
Пример #8
0
TCanvas* makeNiceCanvasByPixMargins(Int_t pixelPerBinX, Int_t pixelPerBinY, Int_t nbinx, Int_t nbiny, Int_t top, Int_t bottom, Int_t left, Int_t right) {
  
  Int_t rubaX = 4; //determinato sperimentalmente                                                                          
  Int_t rubaY = 28; //determinato sperimentalmente                                                                                                        

  TString name = generateRandomName();

  Int_t plotBaseDimX = pixelPerBinX*nbinx;
  Int_t plotBaseDimY = pixelPerBinY*nbiny;
  Int_t XX = (Int_t)(plotBaseDimX+left+right);
  Int_t YY = (Int_t)(plotBaseDimY+top+bottom);
  TCanvas* can = new TCanvas(name,name,XX+rubaX,YY+rubaY);
  can->SetTopMargin((1.*top)/(1.*YY));
  can->SetBottomMargin((1.*bottom)/(1.*YY));
  can->SetRightMargin(right/(1.*XX));
  can->SetLeftMargin(left/(1.*XX));
  can->SetBorderMode(0);
  std::cout << "Nice canvas " << XX << " * " << YY << " Margin: t " << can->GetTopMargin() << " b " << can->GetBottomMargin() << " l " << can->GetLeftMargin() << " r " << can->GetRightMargin() << std::endl;

  return can;

}
Пример #9
0
// -----------------------------------------------------------------------------
//
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;
}
Пример #10
0
/** 
 * 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");
}
Пример #11
0
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 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 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_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_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);
}
Пример #16
0
TCanvas* tdrCanvas(const char* canvName, TH1D *h,
  int iPeriod = 2, int iPos = 11,
  bool square = kRectangular) {

  setTDRStyle();
  
  //writeExtraText = true; // if extra text
  //extraText = "Preliminary"; // default extra text is "Preliminary"
  //lumi_8TeV = "19.5 fb^{-1}"; // default is "19.7 fb^{-1}"
  //lumi_7TeV = "5.0 fb^{-1}"; // default is "5.1 fb^{-1}"
  //int iPeriod = 3; // 1=7TeV, 2=8TeV, 3=7+8TeV, 7=7+8+13TeV
  // second parameter in example_plot is iPos, which drives the position of the CMS logo in the plot
  // iPos=11 : top-left, left-aligned
  // iPos=33 : top-right, right-aligned
  // iPos=22 : center, centered
  // iPos=0 : out of frame (in exceptional cases)
  // mode generally :
  // iPos = 10*(alignement 1/2/3) + position (1/2/3 = left/center/right)
  // if( iPos==0 ) relPosX = 0.12;
  
  int W = (square ? 600 : 800);
  int H = (square ? 600 : 600);
  
  //
  // Simple example of macro: plot with CMS name and lumi text
  // (this script does not pretend to work in all configurations)
  // iPeriod = 1*(0/1 7 TeV) + 2*(0/1 8 TeV) + 4*(0/1 13 TeV)
  // For instance:
  // iPeriod = 3 means: 7 TeV + 8 TeV
  // iPeriod = 7 means: 7 TeV + 8 TeV + 13 TeV
  // Initiated by: Gautier Hamel de Monchenault (Saclay)
  //
  
  int W_ref = (square ? 600 : 800);
  int H_ref = (square ? 600 : 600);
  
  // references for T, B, L, R
  
  //float T = (square ? 0.07*H_ref : 0.08*H_ref);
  float T = (square ? 0.07*H_ref : 0.08*H_ref);
  //float B = (square ? 0.13*H_ref : 0.12*H_ref);
  float B = (square ? 0.1*H_ref : 0.12*H_ref);
  //float L = (square ? 0.15*W_ref : 0.12*W_ref);
  float L = (square ? 0.12*W_ref : 0.12*W_ref);
  //float R = (square ? 0.05*W_ref : 0.04*W_ref);
  float R = (square ? 0.17*W_ref : 0.04*W_ref);
  
  TCanvas *canv = new TCanvas(canvName,canvName,50,50,W,H);
  canv->SetFillColor(0);
  canv->SetBorderMode(0);
  canv->SetFrameFillStyle(0);
  canv->SetFrameBorderMode(0);
  canv->SetLeftMargin( L/W );
  canv->SetRightMargin( R/W );
  canv->SetTopMargin( T/H );
  canv->SetBottomMargin( B/H );
 
  // FOR JEC plots, prefer to keep ticks on both sides
  //canv->SetTickx(0);
  //canv->SetTicky(0);
  
  assert(h);
  h->GetYaxis()->SetTitleOffset(square ? 1.25 : 1);
  h->GetXaxis()->SetTitleOffset(square ? 1.0 : 0.9);
  h->Draw("AXIS");
  
  // writing the lumi information and the CMS "logo"
  CMS_lumi( canv, iPeriod, iPos );
  canv->Update();
  canv->RedrawAxis();
  canv->GetFrame()->Draw();
  return canv;
}
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);
}
Пример #18
0
void phimuphimet()
{
//=========Macro generated from canvas: phimuphimet/phimuphimet
//=========  (Fri Nov 13 11:38:57 2015) by ROOT version6.02/05
   TCanvas *phimuphimet = new TCanvas("phimuphimet", "phimuphimet",340,362,700,700);
   phimuphimet->Range(-0.3926991,-3.745915,3.534292,3.369465);
   phimuphimet->SetFillColor(0);
   phimuphimet->SetBorderMode(0);
   phimuphimet->SetBorderSize(2);
   phimuphimet->SetLogy();
   phimuphimet->SetFrameBorderMode(0);
   phimuphimet->SetFrameBorderMode(0);
   
   THStack *phimuphimet = new THStack();
   phimuphimet->SetName("phimuphimet");
   phimuphimet->SetTitle("phimuphimet");
   
   TH1F *phimuphimet_stack_18 = new TH1F("phimuphimet_stack_18","phimuphimet",10,0,3.141593);
   phimuphimet_stack_18->SetMinimum(0.0009238963);
   phimuphimet_stack_18->SetMaximum(454.9117);
   phimuphimet_stack_18->SetDirectory(0);
   phimuphimet_stack_18->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   phimuphimet_stack_18->SetLineColor(ci);
   phimuphimet_stack_18->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet_stack_18->GetXaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetXaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetXaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetXaxis()->SetTitleFont(42);
   phimuphimet_stack_18->GetYaxis()->SetTitle("Events/pb");
   phimuphimet_stack_18->GetYaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetYaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetYaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetYaxis()->SetTitleFont(42);
   phimuphimet_stack_18->GetZaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetZaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetZaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetZaxis()->SetTitleFont(42);
   phimuphimet->SetHistogram(phimuphimet_stack_18);
   
   
   TH1D *phimuphimet86 = new TH1D("phimuphimet86"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet86->SetBinContent(1,230.641);
   phimuphimet86->SetBinContent(2,216.3046);
   phimuphimet86->SetBinContent(3,223.2529);
   phimuphimet86->SetBinContent(4,205.0752);
   phimuphimet86->SetBinContent(5,177.4887);
   phimuphimet86->SetBinContent(6,185.6797);
   phimuphimet86->SetBinContent(7,165.8596);
   phimuphimet86->SetBinContent(8,166.2099);
   phimuphimet86->SetBinContent(9,159.2644);
   phimuphimet86->SetBinContent(10,174.5095);
   phimuphimet86->SetBinError(1,8.61142);
   phimuphimet86->SetBinError(2,8.327371);
   phimuphimet86->SetBinError(3,8.486581);
   phimuphimet86->SetBinError(4,8.129407);
   phimuphimet86->SetBinError(5,7.536633);
   phimuphimet86->SetBinError(6,7.726982);
   phimuphimet86->SetBinError(7,7.294678);
   phimuphimet86->SetBinError(8,7.302349);
   phimuphimet86->SetBinError(9,7.154931);
   phimuphimet86->SetBinError(10,7.4987);
   phimuphimet86->SetEntries(17572);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetMarkerColor(ci);
   phimuphimet86->SetMarkerStyle(22);
   phimuphimet86->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet86->GetXaxis()->SetLabelFont(42);
   phimuphimet86->GetXaxis()->SetLabelSize(0.035);
   phimuphimet86->GetXaxis()->SetTitleSize(0.035);
   phimuphimet86->GetXaxis()->SetTitleFont(42);
   phimuphimet86->GetYaxis()->SetTitle("Events/pb");
   phimuphimet86->GetYaxis()->SetLabelFont(42);
   phimuphimet86->GetYaxis()->SetLabelSize(0.035);
   phimuphimet86->GetYaxis()->SetTitleSize(0.035);
   phimuphimet86->GetYaxis()->SetTitleFont(42);
   phimuphimet86->GetZaxis()->SetLabelFont(42);
   phimuphimet86->GetZaxis()->SetLabelSize(0.035);
   phimuphimet86->GetZaxis()->SetTitleSize(0.035);
   phimuphimet86->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   
   TH1D *phimuphimet87 = new TH1D("phimuphimet87"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet87->SetBinContent(1,6.11516);
   phimuphimet87->SetBinContent(2,5.535954);
   phimuphimet87->SetBinContent(3,5.331195);
   phimuphimet87->SetBinContent(4,5.298494);
   phimuphimet87->SetBinContent(5,5.612855);
   phimuphimet87->SetBinContent(6,5.975299);
   phimuphimet87->SetBinContent(7,6.323196);
   phimuphimet87->SetBinContent(8,6.999136);
   phimuphimet87->SetBinContent(9,7.03292);
   phimuphimet87->SetBinContent(10,7.011011);
   phimuphimet87->SetBinError(1,0.06763086);
   phimuphimet87->SetBinError(2,0.06433893);
   phimuphimet87->SetBinError(3,0.06348647);
   phimuphimet87->SetBinError(4,0.06307663);
   phimuphimet87->SetBinError(5,0.06520844);
   phimuphimet87->SetBinError(6,0.06748244);
   phimuphimet87->SetBinError(7,0.06973671);
   phimuphimet87->SetBinError(8,0.07416886);
   phimuphimet87->SetBinError(9,0.07436969);
   phimuphimet87->SetBinError(10,0.07420837);
   phimuphimet87->SetEntries(277262);

   ci = TColor::GetColor("#00ffff");
   phimuphimet87->SetFillColor(ci);

   ci = TColor::GetColor("#00ffff");
   phimuphimet87->SetLineColor(ci);

   ci = TColor::GetColor("#00ffff");
   phimuphimet87->SetMarkerColor(ci);
   phimuphimet87->SetMarkerStyle(20);
   phimuphimet87->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet87->GetXaxis()->SetLabelFont(42);
   phimuphimet87->GetXaxis()->SetLabelSize(0.035);
   phimuphimet87->GetXaxis()->SetTitleSize(0.035);
   phimuphimet87->GetXaxis()->SetTitleFont(42);
   phimuphimet87->GetYaxis()->SetTitle("Events/pb");
   phimuphimet87->GetYaxis()->SetLabelFont(42);
   phimuphimet87->GetYaxis()->SetLabelSize(0.035);
   phimuphimet87->GetYaxis()->SetTitleSize(0.035);
   phimuphimet87->GetYaxis()->SetTitleFont(42);
   phimuphimet87->GetZaxis()->SetLabelFont(42);
   phimuphimet87->GetZaxis()->SetLabelSize(0.035);
   phimuphimet87->GetZaxis()->SetTitleSize(0.035);
   phimuphimet87->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   
   TH1D *phimuphimet88 = new TH1D("phimuphimet88"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet88->SetBinContent(1,0.1344125);
   phimuphimet88->SetBinContent(2,0.132705);
   phimuphimet88->SetBinContent(3,0.1303004);
   phimuphimet88->SetBinContent(4,0.1480002);
   phimuphimet88->SetBinContent(5,0.1484594);
   phimuphimet88->SetBinContent(6,0.1440116);
   phimuphimet88->SetBinContent(7,0.1488838);
   phimuphimet88->SetBinContent(8,0.1551468);
   phimuphimet88->SetBinContent(9,0.1613277);
   phimuphimet88->SetBinContent(10,0.1643883);
   phimuphimet88->SetBinError(1,0.003182629);
   phimuphimet88->SetBinError(2,0.003158543);
   phimuphimet88->SetBinError(3,0.003130767);
   phimuphimet88->SetBinError(4,0.003374797);
   phimuphimet88->SetBinError(5,0.003387715);
   phimuphimet88->SetBinError(6,0.003328977);
   phimuphimet88->SetBinError(7,0.003366558);
   phimuphimet88->SetBinError(8,0.003466203);
   phimuphimet88->SetBinError(9,0.003519969);
   phimuphimet88->SetBinError(10,0.003565516);
   phimuphimet88->SetEntries(46443);

   ci = TColor::GetColor("#ffcc00");
   phimuphimet88->SetFillColor(ci);

   ci = TColor::GetColor("#ffcc00");
   phimuphimet88->SetLineColor(ci);

   ci = TColor::GetColor("#ffcc00");
   phimuphimet88->SetMarkerColor(ci);
   phimuphimet88->SetMarkerStyle(21);
   phimuphimet88->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet88->GetXaxis()->SetLabelFont(42);
   phimuphimet88->GetXaxis()->SetLabelSize(0.035);
   phimuphimet88->GetXaxis()->SetTitleSize(0.035);
   phimuphimet88->GetXaxis()->SetTitleFont(42);
   phimuphimet88->GetYaxis()->SetTitle("Events/pb");
   phimuphimet88->GetYaxis()->SetLabelFont(42);
   phimuphimet88->GetYaxis()->SetLabelSize(0.035);
   phimuphimet88->GetYaxis()->SetTitleSize(0.035);
   phimuphimet88->GetYaxis()->SetTitleFont(42);
   phimuphimet88->GetZaxis()->SetLabelFont(42);
   phimuphimet88->GetZaxis()->SetLabelSize(0.035);
   phimuphimet88->GetZaxis()->SetTitleSize(0.035);
   phimuphimet88->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   
   TH1D *phimuphimet89 = new TH1D("phimuphimet89"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet89->SetBinContent(1,0.02346078);
   phimuphimet89->SetBinContent(2,0.02244276);
   phimuphimet89->SetBinContent(3,0.02157898);
   phimuphimet89->SetBinContent(4,0.01833982);
   phimuphimet89->SetBinContent(5,0.01554797);
   phimuphimet89->SetBinContent(6,0.01431401);
   phimuphimet89->SetBinContent(7,0.01304919);
   phimuphimet89->SetBinContent(8,0.0118615);
   phimuphimet89->SetBinContent(9,0.01159928);
   phimuphimet89->SetBinContent(10,0.01039616);
   phimuphimet89->SetBinError(1,0.0006015585);
   phimuphimet89->SetBinError(2,0.0005883622);
   phimuphimet89->SetBinError(3,0.0005769286);
   phimuphimet89->SetBinError(4,0.0005318684);
   phimuphimet89->SetBinError(5,0.0004897151);
   phimuphimet89->SetBinError(6,0.0004698803);
   phimuphimet89->SetBinError(7,0.0004486404);
   phimuphimet89->SetBinError(8,0.0004277366);
   phimuphimet89->SetBinError(9,0.0004229823);
   phimuphimet89->SetBinError(10,0.0004004453);
   phimuphimet89->SetEntries(10541);

   ci = TColor::GetColor("#ff0000");
   phimuphimet89->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   phimuphimet89->SetLineColor(ci);

   ci = TColor::GetColor("#ff0000");
   phimuphimet89->SetMarkerColor(ci);
   phimuphimet89->SetMarkerStyle(20);
   phimuphimet89->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet89->GetXaxis()->SetLabelFont(42);
   phimuphimet89->GetXaxis()->SetLabelSize(0.035);
   phimuphimet89->GetXaxis()->SetTitleSize(0.035);
   phimuphimet89->GetXaxis()->SetTitleFont(42);
   phimuphimet89->GetYaxis()->SetTitle("Events/pb");
   phimuphimet89->GetYaxis()->SetLabelFont(42);
   phimuphimet89->GetYaxis()->SetLabelSize(0.035);
   phimuphimet89->GetYaxis()->SetTitleSize(0.035);
   phimuphimet89->GetYaxis()->SetTitleFont(42);
   phimuphimet89->GetZaxis()->SetLabelFont(42);
   phimuphimet89->GetZaxis()->SetLabelSize(0.035);
   phimuphimet89->GetZaxis()->SetTitleSize(0.035);
   phimuphimet89->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   
   TH1D *phimuphimet90 = new TH1D("phimuphimet90"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet90->SetBinContent(1,0.005199211);
   phimuphimet90->SetBinContent(2,0.004561888);
   phimuphimet90->SetBinContent(3,0.004595431);
   phimuphimet90->SetBinContent(4,0.00447803);
   phimuphimet90->SetBinContent(5,0.004159369);
   phimuphimet90->SetBinContent(6,0.003891022);
   phimuphimet90->SetBinContent(7,0.004394172);
   phimuphimet90->SetBinContent(8,0.003907794);
   phimuphimet90->SetBinContent(9,0.00407551);
   phimuphimet90->SetBinContent(10,0.003522046);
   phimuphimet90->SetBinError(1,0.0002952953);
   phimuphimet90->SetBinError(2,0.0002766051);
   phimuphimet90->SetBinError(3,0.0002776202);
   phimuphimet90->SetBinError(4,0.000274051);
   phimuphimet90->SetBinError(5,0.0002641202);
   phimuphimet90->SetBinError(6,0.0002554581);
   phimuphimet90->SetBinError(7,0.0002714728);
   phimuphimet90->SetBinError(8,0.0002560081);
   phimuphimet90->SetBinError(9,0.0002614441);
   phimuphimet90->SetBinError(10,0.0002430443);
   phimuphimet90->SetEntries(2551);

   ci = TColor::GetColor("#0000ff");
   phimuphimet90->SetFillColor(ci);

   ci = TColor::GetColor("#0000ff");
   phimuphimet90->SetLineColor(ci);

   ci = TColor::GetColor("#0000ff");
   phimuphimet90->SetMarkerColor(ci);
   phimuphimet90->SetMarkerStyle(21);
   phimuphimet90->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet90->GetXaxis()->SetLabelFont(42);
   phimuphimet90->GetXaxis()->SetLabelSize(0.035);
   phimuphimet90->GetXaxis()->SetTitleSize(0.035);
   phimuphimet90->GetXaxis()->SetTitleFont(42);
   phimuphimet90->GetYaxis()->SetTitle("Events/pb");
   phimuphimet90->GetYaxis()->SetLabelFont(42);
   phimuphimet90->GetYaxis()->SetLabelSize(0.035);
   phimuphimet90->GetYaxis()->SetTitleSize(0.035);
   phimuphimet90->GetYaxis()->SetTitleFont(42);
   phimuphimet90->GetZaxis()->SetLabelFont(42);
   phimuphimet90->GetZaxis()->SetLabelSize(0.035);
   phimuphimet90->GetZaxis()->SetTitleSize(0.035);
   phimuphimet90->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   phimuphimet->Draw("nostack");
   
   TPaveText *pt = new TPaveText(0.3326724,0.9342857,0.6673276,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("phimuphimet");
   pt->Draw();
   
   TLegend *leg = new TLegend(0.54023,0.639881,0.938218,0.924107,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextSize(0.034965);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("phimuphimet","phimuphimet_QCD","lp");

   ci = TColor::GetColor("#00cc00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#00cc00");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(22);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("phimuphimet","phimuphimet_WJetsToLNu","lp");

   ci = TColor::GetColor("#00ffff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#00ffff");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("phimuphimet","phimuphimet_ZJetsToNuNu","lp");

   ci = TColor::GetColor("#ffcc00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#ffcc00");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("phimuphimet","phimuphimet_signal","lp");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#ff0000");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("phimuphimet","phimuphimet_ttbar","lp");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#0000ff");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   phimuphimet->Modified();
   phimuphimet->cd();
   phimuphimet->SetSelected(phimuphimet);
}
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 Final_av_Lambda_VarCoupling_40Percent()
{
//=========Macro generated from canvas: c/c
//=========  (Sat Feb 27 17:06:04 2016) by ROOT version6.04/06
   TCanvas *c = new TCanvas("c", "c",0,0,800,700);
   c->SetHighLightColor(2);
   c->Range(-0.4813593,1.36281,3.148656,6.672724);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetLogx();
   c->SetLogy();
   c->SetTickx(1);
   c->SetTicky(1);
   c->SetLeftMargin(0.12);
   c->SetRightMargin(0.04);
   c->SetTopMargin(0.07);
   c->SetBottomMargin(0.12);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("");
   
   Double_t Graph_fx1[12] = {
   1,
   10,
   100,
   400,
   700,
   1000,
   1000,
   700,
   400,
   100,
   10,
   1};
   Double_t Graph_fy1[12] = {
   881.525,
   896.549,
   871.907,
   667.806,
   471.744,
   308.777,
   382.832,
   584.437,
   826.374,
   1079.16,
   1110.85,
   1092.23};
   TGraph *graph = new TGraph(12,Graph_fx1,Graph_fy1);
   graph->SetName("Graph");
   graph->SetTitle("");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffcc00");
   graph->SetFillColor(ci);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,0.9,1099.9);
   Graph_Graph1->SetMinimum(228.5697);
   Graph_Graph1->SetMaximum(1191.057);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1->SetLineColor(ci);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph1);
   
   multigraph->Add(graph,"");
   multigraph->Draw("af");
   multigraph->GetXaxis()->SetTitle("M_{#chi} (GeV)");
   multigraph->GetXaxis()->SetRange(0,96);
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetTitleSize(0.05);
   multigraph->GetXaxis()->SetTitleOffset(1.1);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("#Lambda (GeV)");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetTitleSize(0.05);
   multigraph->GetYaxis()->SetTitleOffset(1.05);
   multigraph->GetYaxis()->SetTitleFont(42);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("");
   
   Double_t Graph_fx2[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy2[6] = {
   1092.23,
   1110.85,
   1079.16,
   826.374,
   584.437,
   382.832};
   graph = new TGraph(6,Graph_fx2,Graph_fy2);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   
   TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,0.9,1099.9);
   Graph_Graph2->SetMinimum(310.0302);
   Graph_Graph2->SetMaximum(1183.652);
   Graph_Graph2->SetDirectory(0);
   Graph_Graph2->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph2->SetLineColor(ci);
   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()->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);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx3[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy3[6] = {
   980.038,
   996.742,
   968.943,
   742.067,
   524.44,
   343.371};
   graph = new TGraph(6,Graph_fx3,Graph_fy3);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,0.9,1099.9);
   Graph_Graph3->SetMinimum(278.0339);
   Graph_Graph3->SetMaximum(1062.079);
   Graph_Graph3->SetDirectory(0);
   Graph_Graph3->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph3->SetLineColor(ci);
   Graph_Graph3->GetXaxis()->SetLabelFont(42);
   Graph_Graph3->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetXaxis()->SetTitleFont(42);
   Graph_Graph3->GetYaxis()->SetLabelFont(42);
   Graph_Graph3->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetYaxis()->SetTitleFont(42);
   Graph_Graph3->GetZaxis()->SetLabelFont(42);
   Graph_Graph3->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph3);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx4[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy4[6] = {
   881.525,
   896.549,
   871.907,
   667.806,
   471.744,
   308.777};
   graph = new TGraph(6,Graph_fx4,Graph_fy4);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   
   TH1F *Graph_Graph4 = new TH1F("Graph_Graph4","Graph",100,0.9,1099.9);
   Graph_Graph4->SetMinimum(249.9998);
   Graph_Graph4->SetMaximum(955.3262);
   Graph_Graph4->SetDirectory(0);
   Graph_Graph4->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph4->SetLineColor(ci);
   Graph_Graph4->GetXaxis()->SetLabelFont(42);
   Graph_Graph4->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetXaxis()->SetTitleFont(42);
   Graph_Graph4->GetYaxis()->SetLabelFont(42);
   Graph_Graph4->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetYaxis()->SetTitleFont(42);
   Graph_Graph4->GetZaxis()->SetLabelFont(42);
   Graph_Graph4->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph4);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx5[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy5[6] = {
   1028.6,
   1012.32,
   1016.7,
   751.989,
   524.44,
   360.443};
   graph = new TGraph(6,Graph_fx5,Graph_fy5);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph5 = new TH1F("Graph_Graph5","Graph",100,0.9,1099.9);
   Graph_Graph5->SetMinimum(293.6273);
   Graph_Graph5->SetMaximum(1095.416);
   Graph_Graph5->SetDirectory(0);
   Graph_Graph5->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph5->SetLineColor(ci);
   Graph_Graph5->GetXaxis()->SetLabelFont(42);
   Graph_Graph5->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetXaxis()->SetTitleFont(42);
   Graph_Graph5->GetYaxis()->SetLabelFont(42);
   Graph_Graph5->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetYaxis()->SetTitleFont(42);
   Graph_Graph5->GetZaxis()->SetLabelFont(42);
   Graph_Graph5->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph5);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx6[35] = {
   3.981,
   4.365,
   4.786,
   5.248,
   5.754,
   6.31,
   6.918,
   7.586,
   8.318,
   9.12,
   10,
   10.965,
   12.023,
   13.183,
   14.454,
   15.849,
   17.378,
   19.055,
   20.893,
   22.909,
   25.119,
   31.623,
   39.811,
   50.119,
   63.096,
   79.433,
   100,
   125.893,
   158.489,
   199.526,
   251.189,
   316.228,
   1000,
   3162.278,
   10000};
   Double_t Graph_fy6[35] = {
   19.76533,
   32.58338,
   47.96959,
   63.10164,
   79.00995,
   95.55754,
   111.9766,
   129.0118,
   146.2376,
   163.5577,
   179.3658,
   194.9584,
   209.5672,
   223.2999,
   236.0683,
   247.7404,
   258.366,
   268.0662,
   277.1383,
   285.1146,
   292.3901,
   306.3527,
   314.441,
   317.1059,
   314.8684,
   308.9039,
   300.2537,
   289.8022,
   278.2241,
   266.1082,
   253.7422,
   241.4337,
   184.6404,
   139.2985,
   104.656};
   graph = new TGraph(35,Graph_fx6,Graph_fy6);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#6666ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(6);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph6 = new TH1F("Graph_Graph6","Graph",100,3.5829,10999.6);
   Graph_Graph6->SetMinimum(17.78879);
   Graph_Graph6->SetMaximum(346.84);
   Graph_Graph6->SetDirectory(0);
   Graph_Graph6->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph6->SetLineColor(ci);
   Graph_Graph6->GetXaxis()->SetLabelFont(42);
   Graph_Graph6->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetXaxis()->SetTitleFont(42);
   Graph_Graph6->GetYaxis()->SetLabelFont(42);
   Graph_Graph6->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetYaxis()->SetTitleFont(42);
   Graph_Graph6->GetZaxis()->SetLabelFont(42);
   Graph_Graph6->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph6);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx7[33] = {
   5.050109,
   5.570498,
   6.092375,
   6.79836,
   7.629504,
   8.933253,
   10.64203,
   12.05014,
   13.68495,
   14.93901,
   17.1131,
   19.54765,
   22.0792,
   25.65551,
   29.39341,
   34.84152,
   41.41884,
   48.68491,
   59.2071,
   75.34994,
   97.26741,
   131.0246,
   163.9459,
   202.8261,
   243.2248,
   309.5828,
   383.0166,
   473.8718,
   622.2993,
   833.6,
   1028.448,
   1283.339,
   2026.806};
   Double_t Graph_fy7[33] = {
   71.77067,
   88.82209,
   110.1401,
   130.7052,
   154.2557,
   185.7482,
   213.1504,
   232.735,
   248.5277,
   258.1632,
   268.4587,
   280.1818,
   286.5229,
   293.3758,
   296.7995,
   299.6924,
   299.6947,
   297.0875,
   293.2892,
   285.6511,
   275.8293,
   262.4571,
   252.7364,
   243.3346,
   234.001,
   222.0121,
   212.1495,
   202.5032,
   189.9106,
   177.908,
   168.9168,
   159.7122,
   142.9221};
   graph = new TGraph(33,Graph_fx7,Graph_fy7);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff9900");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph7 = new TH1F("Graph_Graph7","Graph",100,4.545098,2228.982);
   Graph_Graph7->SetMinimum(48.97827);
   Graph_Graph7->SetMaximum(322.4871);
   Graph_Graph7->SetDirectory(0);
   Graph_Graph7->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph7->SetLineColor(ci);
   Graph_Graph7->GetXaxis()->SetLabelFont(42);
   Graph_Graph7->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetXaxis()->SetTitleFont(42);
   Graph_Graph7->GetYaxis()->SetLabelFont(42);
   Graph_Graph7->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetYaxis()->SetTitleFont(42);
   Graph_Graph7->GetZaxis()->SetLabelFont(42);
   Graph_Graph7->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph7);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx8[90] = {
   18.74425,
   19.90368,
   20.73627,
   21.82644,
   23.00752,
   24.07546,
   25.0827,
   25.71454,
   26.71212,
   27.99356,
   28.53122,
   29.59491,
   30.69819,
   31.93543,
   33.71249,
   35.53626,
   36.69926,
   39.48566,
   41.74415,
   44.52103,
   47.27444,
   49.54151,
   51.99283,
   54.56543,
   56.59926,
   59.57426,
   61.97591,
   64.94736,
   67.7638,
   72.165,
   77.52983,
   78.67276,
   79.25885,
   79.50015,
   79.8577,
   79.98559,
   80.10781,
   80.93361,
   82.97299,
   85.0636,
   87.3346,
   89.6657,
   93.68976,
   97.60831,
   101.0972,
   103.4923,
   107.3498,
   111.0254,
   114.4909,
   118.2376,
   120.3333,
   131.3772,
   140.9375,
   145.9754,
   148.1289,
   150.9739,
   154.3249,
   158.6761,
   165.3121,
   170.7206,
   172.2259,
   173.4824,
   174.2374,
   175.2489,
   175.7591,
   179.6599,
   186.3538,
   196.4347,
   207.6675,
   217.3037,
   228.0541,
   241.4457,
   256.7473,
   271.0309,
   292.4573,
   319.2919,
   352.6953,
   387.3116,
   421.6106,
   459.6163,
   505.4719,
   563.2603,
   635.9718,
   692.2802,
   745.897,
   789.6904,
   831.1771,
   886.4295,
   950.901,
   983.4362};
   Double_t Graph_fy8[90] = {
   190.042,
   192.3104,
   192.9376,
   195.179,
   197.2136,
   198.0799,
   199.3876,
   199.4802,
   201.01,
   204.4632,
   204.529,
   206.7971,
   208.8441,
   208.9712,
   209.8662,
   210.2649,
   211.3333,
   212.7612,
   214.3898,
   216.0449,
   217.1898,
   218.8107,
   219.1693,
   219.524,
   220.873,
   221.9988,
   223.3628,
   223.7069,
   225.3419,
   225.4478,
   225.5616,
   225.584,
   239.8787,
   256.2561,
   271.2293,
   293.7999,
   304.8973,
   307.0445,
   308.5203,
   309.6434,
   310.7722,
   310.8221,
   310.5429,
   310.2559,
   309.9569,
   309.996,
   311.8566,
   313.3588,
   314.1336,
   315.2763,
   316.7668,
   317.2607,
   317.3559,
   317.4016,
   319.264,
   319.2881,
   319.6855,
   319.7195,
   318.6591,
   318.3273,
   317.9688,
   309.2591,
   300.7849,
   289.5104,
   286.1793,
   286.2011,
   285.5743,
   285.6238,
   285.3433,
   284.0635,
   283.1184,
   281.2031,
   278.656,
   277.7288,
   275.8579,
   273.0541,
   270.9095,
   265.6796,
   261.7535,
   256.9895,
   253.7797,
   247.4406,
   240.1473,
   234.4071,
   229.3303,
   226.7081,
   224.3734,
   220.2731,
   215.7486,
   213.7682};
   graph = new TGraph(90,Graph_fx8,Graph_fy8);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#cc33ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(6);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph8 = new TH1F("Graph_Graph8","Graph",100,16.86982,1079.905);
   Graph_Graph8->SetMinimum(177.0742);
   Graph_Graph8->SetMaximum(332.6873);
   Graph_Graph8->SetDirectory(0);
   Graph_Graph8->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph8->SetLineColor(ci);
   Graph_Graph8->GetXaxis()->SetLabelFont(42);
   Graph_Graph8->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleFont(42);
   Graph_Graph8->GetYaxis()->SetLabelFont(42);
   Graph_Graph8->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleFont(42);
   Graph_Graph8->GetZaxis()->SetLabelFont(42);
   Graph_Graph8->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph8);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx9[5] = {
   250,
   500,
   1000,
   3000,
   5000};
   Double_t Graph_fy9[5] = {
   597.2217,
   587.5585,
   450.4588,
   245.3363,
   177.6733};
   graph = new TGraph(5,Graph_fx9,Graph_fy9);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#3399ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(4);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph9 = new TH1F("Graph_Graph9","Graph",100,225,5475);
   Graph_Graph9->SetMinimum(135.7185);
   Graph_Graph9->SetMaximum(639.1765);
   Graph_Graph9->SetDirectory(0);
   Graph_Graph9->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph9->SetLineColor(ci);
   Graph_Graph9->GetXaxis()->SetLabelFont(42);
   Graph_Graph9->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetXaxis()->SetTitleFont(42);
   Graph_Graph9->GetYaxis()->SetLabelFont(42);
   Graph_Graph9->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetYaxis()->SetTitleFont(42);
   Graph_Graph9->GetZaxis()->SetLabelFont(42);
   Graph_Graph9->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph9);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx10[518] = {
   6.04,
   6.04,
   6.04,
   6.04,
   6.05,
   6.08,
   6.11,
   6.12,
   6.12,
   6.13,
   6.16,
   6.16,
   6.16,
   6.19,
   6.2,
   6.2,
   6.2,
   6.21,
   6.24,
   6.27,
   6.28,
   6.28,
   6.28,
   6.28,
   6.28,
   6.29,
   6.34,
   6.37,
   6.37,
   6.37,
   6.37,
   6.37,
   6.38,
   6.43,
   6.45,
   6.45,
   6.45,
   6.45,
   6.45,
   6.45,
   6.46,
   6.53,
   6.54,
   6.54,
   6.54,
   6.54,
   6.54,
   6.54,
   6.62,
   6.62,
   6.62,
   6.62,
   6.62,
   6.62,
   6.64,
   6.69,
   6.71,
   6.71,
   6.71,
   6.71,
   6.71,
   6.72,
   6.78,
   6.8,
   6.8,
   6.8,
   6.8,
   6.8,
   6.81,
   6.87,
   6.89,
   6.89,
   6.89,
   6.89,
   6.89,
   6.91,
   6.94,
   6.97,
   6.98,
   6.98,
   7,
   7.05,
   7.08,
   7.09,
   7.15,
   7.17,
   7.19,
   7.24,
   7.27,
   7.28,
   7.34,
   7.37,
   7.37,
   7.45,
   7.46,
   7.47,
   7.55,
   7.56,
   7.57,
   7.65,
   7.66,
   7.67,
   7.76,
   7.77,
   7.77,
   7.86,
   7.88,
   7.95,
   7.99,
   8.05,
   8.1,
   8.15,
   8.19,
   8.24,
   8.27,
   8.31,
   8.38,
   8.43,
   8.48,
   8.52,
   8.58,
   8.61,
   8.65,
   8.71,
   8.75,
   8.81,
   8.84,
   8.88,
   8.93,
   8.97,
   9,
   9.05,
   9.12,
   9.17,
   9.24,
   9.29,
   9.36,
   9.42,
   9.49,
   9.54,
   9.62,
   9.67,
   9.74,
   9.8,
   9.87,
   9.93,
   10,
   10.2,
   10.3,
   10.5,
   10.6,
   10.8,
   10.9,
   10.9,
   11,
   11.2,
   11.2,
   11.3,
   11.5,
   11.6,
   11.8,
   11.9,
   12.1,
   12.2,
   12.4,
   12.6,
   12.7,
   12.9,
   13.1,
   13.3,
   13.5,
   13.5,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.5,
   14.5,
   14.8,
   15,
   15.2,
   15.3,
   15.3,
   15.6,
   15.8,
   15.9,
   16,
   16.2,
   16.5,
   16.6,
   16.9,
   17.2,
   17.3,
   17.6,
   17.9,
   18,
   18.3,
   18.6,
   18.7,
   19,
   19.3,
   19.4,
   19.5,
   19.8,
   20.6,
   21.4,
   21.8,
   22,
   22.2,
   22.6,
   22.9,
   23.2,
   23.5,
   23.8,
   24.1,
   24.5,
   24.8,
   25.1,
   25.5,
   25.8,
   26.1,
   26.5,
   26.8,
   27.2,
   27.6,
   28.1,
   28.7,
   29.1,
   29.4,
   29.8,
   30.8,
   31.7,
   32.4,
   32.9,
   34.2,
   35.3,
   35.8,
   36.4,
   36.9,
   37.4,
   38.3,
   38.9,
   39.4,
   40.4,
   41,
   41.6,
   42.6,
   43.2,
   43.8,
   44.4,
   45,
   45.6,
   46.2,
   46.8,
   47.5,
   48.1,
   48.7,
   49.4,
   50.1,
   50.7,
   51.4,
   52.1,
   53.3,
   54.8,
   55.7,
   56.4,
   57.2,
   57.9,
   58.7,
   59.5,
   60.3,
   61.1,
   61.9,
   62.7,
   63.5,
   64.4,
   65.3,
   66.3,
   67.6,
   68.8,
   69.7,
   70.7,
   71.6,
   72.8,
   74.2,
   75.5,
   76.5,
   77.5,
   78.8,
   80.3,
   81.8,
   82.8,
   84,
   85.1,
   86.4,
   88.2,
   89.7,
   90.9,
   92.1,
   93.6,
   95.5,
   97.1,
   98.4,
   100,
   102,
   104,
   105,
   108,
   110,
   112,
   114,
   115,
   118,
   120,
   122,
   124,
   127,
   130,
   132,
   134,
   137,
   139,
   142,
   145,
   147,
   150,
   152,
   155,
   157,
   161,
   164,
   167,
   170,
   173,
   176,
   179,
   182,
   187,
   190,
   194,
   197,
   200,
   205,
   208,
   213,
   216,
   222,
   225,
   231,
   234,
   240,
   244,
   253,
   262,
   267,
   272,
   278,
   283,
   289,
   295,
   301,
   307,
   312,
   317,
   323,
   329,
   334,
   341,
   347,
   353,
   358,
   367,
   374,
   381,
   387,
   395,
   403,
   411,
   419,
   427,
   436,
   445,
   454,
   463,
   475,
   485,
   494,
   504,
   514,
   528,
   545,
   564,
   583,
   603,
   615,
   628,
   639,
   649,
   662,
   675,
   689,
   701,
   712,
   726,
   741,
   756,
   771,
   786,
   802,
   818,
   833,
   846,
   863,
   878,
   892,
   910,
   935,
   964,
   992,
   1030,
   1050,
   1070,
   1090,
   1110,
   1150,
   1190,
   1210,
   1230,
   1260,
   1280,
   1310,
   1340,
   1370,
   1400,
   1430,
   1460,
   1490,
   1520,
   1550,
   1600,
   1650,
   1690,
   1720,
   1750,
   1790,
   1850,
   1910,
   1950,
   1990,
   2030,
   2070,
   2130,
   2170,
   2210,
   2260,
   2300,
   2370,
   2410,
   2460,
   2540,
   2630,
   2680,
   2730,
   2820,
   2920,
   3020,
   3120,
   3190,
   3240,
   3320,
   3370,
   3490,
   3610,
   3690,
   3750,
   3880,
   4020,
   4100,
   4180,
   4270,
   4350,
   4440,
   4530,
   4620,
   4690,
   4810,
   4880,
   5000,
   5080,
   5200,
   5310,
   5420,
   5520,
   5640,
   5750,
   5860,
   5980,
   6100,
   6220,
   6330,
   6440,
   6560,
   6700,
   6830,
   7050,
   7300,
   7450,
   7590,
   7840,
   8110,
   8380,
   8670,
   8850,
   8990,
   9210,
   9390,
   9610};
   Double_t Graph_fy10[518] = {
   10.38676,
   10.50231,
   10.59957,
   10.7015,
   10.89364,
   11.07546,
   11.20647,
   11.30821,
   11.41342,
   11.62109,
   11.82995,
   11.96215,
   12.07818,
   12.17911,
   12.30743,
   12.414,
   12.52534,
   12.76538,
   12.97118,
   13.12865,
   13.25128,
   13.37442,
   13.49524,
   13.62174,
   13.74534,
   13.99711,
   14.24146,
   14.40622,
   14.54013,
   14.67427,
   14.8083,
   14.94868,
   15.22224,
   15.47959,
   15.6669,
   15.80805,
   15.95581,
   16.10083,
   16.2527,
   16.40114,
   16.65049,
   17.00656,
   17.18103,
   17.34867,
   17.50979,
   17.663,
   17.82315,
   18.09534,
   18.48112,
   18.68225,
   18.85134,
   19.02836,
   19.21403,
   19.38419,
   19.72512,
   20.07365,
   20.32073,
   20.51337,
   20.68111,
   20.89181,
   21.0759,
   21.47197,
   21.82747,
   22.10836,
   22.30316,
   22.50687,
   22.72023,
   22.88709,
   23.32871,
   23.73763,
   24.00677,
   24.23435,
   24.45738,
   24.68282,
   24.91041,
   25.36578,
   25.78503,
   26.09729,
   26.34398,
   26.58842,
   27.06598,
   27.53896,
   27.86668,
   28.37133,
   28.86478,
   29.20029,
   29.71859,
   30.24769,
   30.60227,
   31.15273,
   31.68307,
   32.06927,
   32.5362,
   33.23597,
   33.60661,
   34.0793,
   34.82676,
   35.19988,
   35.69491,
   36.46783,
   36.87798,
   37.44003,
   38.20997,
   38.65276,
   39.20006,
   40.07932,
   40.8414,
   41.55343,
   42.4036,
   43.14178,
   44.02907,
   44.76045,
   45.25133,
   46.05417,
   46.59723,
   47.07559,
   47.84267,
   48.80958,
   49.64402,
   50.16063,
   51.06094,
   51.65136,
   52.17979,
   52.98822,
   53.58735,
   54.51024,
   55.15295,
   55.7454,
   56.61769,
   57.29215,
   57.83828,
   58.59123,
   59.58957,
   60.25911,
   61.2608,
   61.9507,
   63.01658,
   63.72388,
   64.8542,
   65.56339,
   66.64773,
   67.45883,
   68.57788,
   69.38042,
   70.52167,
   71.44279,
   73.10832,
   74.86664,
   76.70132,
   78.48531,
   80.39639,
   82.27539,
   83.96915,
   84.81317,
   86.19446,
   88.02168,
   88.90821,
   90.11315,
   92.12023,
   94.32802,
   96.50886,
   98.84577,
   100.8332,
   102.8086,
   104.7116,
   106.793,
   108.8109,
   110.7898,
   112.9515,
   115.1677,
   117.0762,
   118.1521,
   119.1161,
   120.7506,
   122.937,
   125.5722,
   127.4196,
   128.5312,
   129.6638,
   131.542,
   134.0308,
   136.1693,
   137.3979,
   138.4952,
   140.691,
   142.7079,
   144.0108,
   145.2215,
   146.8251,
   149.5702,
   150.7827,
   152.4733,
   155.2857,
   156.5944,
   158.387,
   161.2726,
   162.6707,
   164.4505,
   167.5191,
   168.8856,
   170.7937,
   172.6887,
   174.1507,
   175.4199,
   177.3078,
   182.9573,
   187.7626,
   189.8365,
   190.4369,
   191.0454,
   193.294,
   195.0114,
   196.8028,
   198.6746,
   200.6337,
   202.4317,
   204.8624,
   205.4538,
   206.0518,
   208.4005,
   210.5569,
   212.4997,
   214.5452,
   216.3183,
   218.547,
   220.4993,
   222.5493,
   224.7033,
   226.9325,
   229.2592,
   231.2259,
   233.3437,
   236.0739,
   236.692,
   237.8515,
   240.2765,
   242.669,
   242.8986,
   243.7,
   244.4396,
   245.1237,
   245.324,
   246.1552,
   246.9239,
   247.738,
   248.6028,
   249.34,
   250.183,
   251.0113,
   251.7779,
   252.4054,
   252.4402,
   252.4741,
   252.5072,
   252.5394,
   252.576,
   252.6065,
   251.8236,
   251.565,
   251.5977,
   251.9175,
   252.7618,
   252.7922,
   253.0667,
   254.0334,
   254.1442,
   254.1704,
   254.1995,
   254.2243,
   254.2519,
   254.2788,
   254.305,
   254.3305,
   254.3554,
   254.3796,
   254.4032,
   254.4291,
   254.4543,
   254.2526,
   253.4561,
   253.3367,
   253.3588,
   252.5675,
   252.295,
   252.1031,
   251.2675,
   251.223,
   250.3929,
   250.0624,
   249.8782,
   249.0786,
   249.0366,
   248.174,
   247.9263,
   247.944,
   247.6981,
   246.9351,
   246.8915,
   246.9084,
   246.0196,
   245.5296,
   244.7362,
   244.6935,
   243.8445,
   243.6187,
   242.4377,
   241.8683,
   241.295,
   240.1783,
   239.0772,
   238.001,
   237.4805,
   236.957,
   236.4553,
   236.9969,
   237.012,
   234.4527,
   232.994,
   232.0529,
   231.124,
   230.6725,
   229.7764,
   228.8918,
   227.5962,
   226.7575,
   226.3463,
   225.53,
   224.7235,
   224.3345,
   223.5489,
   222.4,
   221.6514,
   220.9151,
   220.5568,
   219.4781,
   218.4252,
   218.4349,
   217.4066,
   216.4078,
   215.7535,
   214.7888,
   214.4764,
   213.537,
   212.6227,
   211.7229,
   210.5545,
   209.6973,
   208.5851,
   207.767,
   206.7044,
   205.9222,
   204.9054,
   204.1581,
   202.7048,
   200.6119,
   199.4946,
   198.6241,
   197.7734,
   196.9394,
   195.9209,
   195.126,
   194.1531,
   193.393,
   192.6467,
   192.2811,
   191.5566,
   190.8456,
   190.4965,
   189.8054,
   189.1259,
   188.7928,
   187.9657,
   186.9986,
   186.3681,
   185.748,
   185.29,
   184.688,
   183.8008,
   183.0782,
   182.0883,
   181.3984,
   180.4531,
   179.6626,
   178.8891,
   178.132,
   176.4223,
   175.5989,
   174.7941,
   174.0077,
   173.2387,
   171.644,
   170.3208,
   168.5686,
   167.267,
   165.4898,
   164.7208,
   163.9695,
   163.8889,
   163.1556,
   162.5181,
   161.6606,
   160.976,
   160.9779,
   160.2332,
   159.5059,
   158.7245,
   158.0995,
   157.2843,
   156.6211,
   155.8431,
   155.2095,
   155.1483,
   154.4668,
   153.8004,
   153.7418,
   153.0319,
   152.3957,
   150.9962,
   149.8166,
   148.4291,
   146.8649,
   146.1595,
   145.5618,
   144.8424,
   144.2273,
   143.077,
   141.5716,
   140.9059,
   140.2935,
   139.6204,
   138.999,
   138.3208,
   137.7278,
   136.5779,
   135.9239,
   135.2852,
   134.6612,
   134.0513,
   133.455,
   132.8717,
   131.7421,
   130.3946,
   129.6185,
   129.1138,
   128.6188,
   127.8935,
   126.9576,
   125.6149,
   124.9697,
   124.5488,
   123.9302,
   123.3267,
   122.1621,
   121.6,
   121.0507,
   120.5136,
   119.9882,
   118.9705,
   118.3154,
   117.8359,
   116.905,
   115.7187,
   115.1476,
   114.5904,
   113.7792,
   112.4881,
   111.6267,
   110.4508,
   109.8856,
   109.4437,
   108.7971,
   108.3764,
   107.6595,
   106.4832,
   106.0117,
   105.4593,
   104.657,
   103.6329,
   103.0581,
   102.6571,
   102.1086,
   101.7257,
   101.2013,
   100.7625,
   100.2622,
   99.77413,
   99.29779,
   98.89833,
   98.37802,
   97.9966,
   97.43805,
   97.13459,
   96.65859,
   96.25151,
   95.79658,
   95.35219,
   94.91791,
   94.49337,
   94.02686,
   93.6217,
   93.27425,
   93.07861,
   92.78892,
   92.31587,
   91.94598,
   91.2278,
   90.24254,
   89.78968,
   89.42747,
   88.72436,
   87.79184,
   87.11485,
   86.19591,
   85.77034,
   85.35504,
   84.91885,
   84.61402,
   84.25532};
   graph = new TGraph(518,Graph_fx10,Graph_fy10);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#66ccff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(5);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph10 = new TH1F("Graph_Graph10","Graph",518,5.436,10570.4);
   Graph_Graph10->SetMinimum(9.348083);
   Graph_Graph10->SetMaximum(278.861);
   Graph_Graph10->SetDirectory(0);
   Graph_Graph10->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph10->SetLineColor(ci);
   Graph_Graph10->GetXaxis()->SetLabelFont(42);
   Graph_Graph10->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetXaxis()->SetTitleFont(42);
   Graph_Graph10->GetYaxis()->SetLabelFont(42);
   Graph_Graph10->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetYaxis()->SetTitleFont(42);
   Graph_Graph10->GetZaxis()->SetLabelFont(42);
   Graph_Graph10->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph10);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx11[35] = {
   3.98,
   4.37,
   4.79,
   5.25,
   5.75,
   6.31,
   6.92,
   7.59,
   8.32,
   9.12,
   10,
   10.96,
   12.02,
   13.18,
   14.45,
   15.85,
   17.38,
   19.05,
   20.89,
   22.91,
   25.12,
   31.62,
   39.81,
   50.12,
   63.1,
   79.43,
   100,
   125.89,
   158.49,
   199.53,
   251.19,
   316.23,
   1000,
   3162.3,
   10000};
   Double_t Graph_fy11[35] = {
   64.47703,
   92.96188,
   120.9916,
   144.7661,
   171.1873,
   194.8983,
   219.9867,
   244.5213,
   267.5613,
   289.6608,
   311.7509,
   330.2783,
   345.9273,
   362.605,
   376.5173,
   387.5872,
   398.0475,
   406.9399,
   414.3522,
   421.5604,
   426.3119,
   433.1181,
   435.0014,
   429.503,
   421.4079,
   411.5566,
   398.3919,
   383.7713,
   369.2768,
   352.1727,
   335.9504,
   319.8066,
   245.9105,
   185.1913,
   139.1868};
   graph = new TGraph(35,Graph_fx11,Graph_fy11);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#66cc66");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph11 = new TH1F("Graph_Graph11","Graph",100,3.582,10999.6);
   Graph_Graph11->SetMinimum(27.4246);
   Graph_Graph11->SetMaximum(472.0538);
   Graph_Graph11->SetDirectory(0);
   Graph_Graph11->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph11->SetLineColor(ci);
   Graph_Graph11->GetXaxis()->SetLabelFont(42);
   Graph_Graph11->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleFont(42);
   Graph_Graph11->GetYaxis()->SetLabelFont(42);
   Graph_Graph11->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleFont(42);
   Graph_Graph11->GetZaxis()->SetLabelFont(42);
   Graph_Graph11->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph11);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx12[35] = {
   4,
   5,
   6,
   7,
   8,
   9,
   10,
   12,
   14,
   16,
   18,
   20,
   24,
   28,
   32,
   36,
   40,
   44,
   48,
   52,
   56,
   60,
   65,
   70,
   75,
   80,
   85,
   90,
   95,
   100,
   150,
   200,
   300,
   400,
   500};
   Double_t Graph_fy12[35] = {
   91.75045,
   115.9467,
   132.4599,
   144.0692,
   152.856,
   159.9043,
   165.4462,
   172.653,
   177.2831,
   179.5654,
   180.8904,
   181.5836,
   181.5776,
   181.2419,
   178.737,
   176.8406,
   175.2212,
   173.4303,
   171.2294,
   169.3498,
   167.5194,
   165.3283,
   163.1921,
   161.2337,
   159.198,
   157.2876,
   155.7156,
   153.813,
   152.3262,
   150.9621,
   138.5165,
   129.9907,
   118.4184,
   110.7202,
   104.9163};
   graph = new TGraph(35,Graph_fx12,Graph_fy12);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#333399");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph12 = new TH1F("Graph_Graph12","Graph",100,3.6,549.6);
   Graph_Graph12->SetMinimum(82.76714);
   Graph_Graph12->SetMaximum(190.5669);
   Graph_Graph12->SetDirectory(0);
   Graph_Graph12->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph12->SetLineColor(ci);
   Graph_Graph12->GetXaxis()->SetLabelFont(42);
   Graph_Graph12->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetXaxis()->SetTitleFont(42);
   Graph_Graph12->GetYaxis()->SetLabelFont(42);
   Graph_Graph12->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetYaxis()->SetTitleFont(42);
   Graph_Graph12->GetZaxis()->SetLabelFont(42);
   Graph_Graph12->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph12);
   
   multigraph->Add(graph,"");
   multigraph->Draw("L");
   
   TLegend *leg = new TLegend(0.16,0.61,0.5,0.85,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.03);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("NULL","Razor-0#mu 90% CL limit: AV EFT operator","h");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Expected limit, with uncertainty","lf");

   ci = TColor::GetColor("#ffcc00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#ff6666");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Observed limit","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.67,0.61,0.92,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.03);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph","IceCube W^{+}W^{-}","l");

   ci = TColor::GetColor("#3399ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(4);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","COUPP 2012","l");

   ci = TColor::GetColor("#6666ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(6);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","SIMPLE 2012","l");

   ci = TColor::GetColor("#ff9900");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Super-K W^{+}W^{-}","l");

   ci = TColor::GetColor("#cc33ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(6);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","XENON 100","l");

   ci = TColor::GetColor("#66ccff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(5);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","PICO","l");

   ci = TColor::GetColor("#66cc66");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","PICASSO","l");

   ci = TColor::GetColor("#333399");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.955,0.945,"18.8 fb^{-1} (8 TeV)");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.045);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.245,0.865,"CMS");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(61);
   tex->SetTextSize(0.045);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *_copy__1 = new TH1F("_copy__1","",100,0.9,1049.95);
   _copy__1->SetMinimum(100);
   _copy__1->SetMaximum(2000000);
   _copy__1->SetDirectory(0);
   _copy__1->SetStats(0);

   ci = TColor::GetColor("#000099");
   _copy__1->SetLineColor(ci);
   _copy__1->GetXaxis()->SetTitle("M_{#chi} (GeV)");
   _copy__1->GetXaxis()->SetRange(0,96);
   _copy__1->GetXaxis()->SetLabelFont(42);
   _copy__1->GetXaxis()->SetTitleSize(0.05);
   _copy__1->GetXaxis()->SetTitleOffset(1.1);
   _copy__1->GetXaxis()->SetTitleFont(42);
   _copy__1->GetYaxis()->SetTitle("#Lambda (GeV)");
   _copy__1->GetYaxis()->SetLabelFont(42);
   _copy__1->GetYaxis()->SetTitleSize(0.05);
   _copy__1->GetYaxis()->SetTitleOffset(1.05);
   _copy__1->GetYaxis()->SetTitleFont(42);
   _copy__1->GetZaxis()->SetLabelFont(42);
   _copy__1->GetZaxis()->SetLabelSize(0.035);
   _copy__1->GetZaxis()->SetTitleSize(0.035);
   _copy__1->GetZaxis()->SetTitleFont(42);
   _copy__1->Draw("sameaxis");
   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_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);
}
Пример #23
0
TCanvas* example_plot( int iPeriod, int iPos )
{ 
  //  if( iPos==0 ) relPosX = 0.12;

  int W = 800;
  int H = 600;

  // 
  // Simple example of macro: plot with CMS name and lumi text
  //  (this script does not pretend to work in all configurations)
  // iPeriod = 1*(0/1 7 TeV) + 2*(0/1 8 TeV)  + 4*(0/1 13 TeV) 
  // For instance: 
  //               iPeriod = 3 means: 7 TeV + 8 TeV
  //               iPeriod = 7 means: 7 TeV + 8 TeV + 13 TeV 
  // Initiated by: Gautier Hamel de Monchenault (Saclay)
  // Updated by:   Dinko Ferencek (Rutgers)
  //
  int H_ref = 600; 
  int W_ref = 800; 

  // references for T, B, L, R
  float T = 0.08*H_ref;
  float B = 0.12*H_ref; 
  float L = 0.12*W_ref;
  float R = 0.04*W_ref;

  TString canvName = "FigExample_";
  canvName += W;
  canvName += "-";
  canvName += H;
  canvName += "_";  
  canvName += iPeriod;
  if( writeExtraText ) canvName += "-prelim";
  if( iPos%10==0 ) canvName += "-out";
  else if( iPos%10==1 ) canvName += "-left";
  else if( iPos%10==2 )  canvName += "-center";
  else if( iPos%10==3 )  canvName += "-right";

  TCanvas* canv = new TCanvas(canvName,canvName,50,50,W,H);
  canv->SetFillColor(0);
  canv->SetBorderMode(0);
  canv->SetFrameFillStyle(0);
  canv->SetFrameBorderMode(0);
  canv->SetLeftMargin( L/W );
  canv->SetRightMargin( R/W );
  canv->SetTopMargin( T/H );
  canv->SetBottomMargin( B/H );
  canv->SetTickx(0);
  canv->SetTicky(0);

  TH1* h = new TH1F("h","h",40,70,110);
  h->GetXaxis()->SetNdivisions(6,5,0);
  h->GetXaxis()->SetTitle("m_{e^{+}e^{-}} (GeV)");  
  h->GetYaxis()->SetNdivisions(6,5,0);
  h->GetYaxis()->SetTitleOffset(1);
  h->GetYaxis()->SetTitle("Events / 0.5 GeV");  

  h->SetMaximum( 260 );
  if( iPos==1 ) h->SetMaximum( 300 );
  h->Draw();

  int histLineColor = kOrange+7;
  int histFillColor = kOrange-2;
  float markerSize  = 1.0;

  {
    TLatex latex;
				
    int n_ = 2;

    float x1_l = 0.92;
    float y1_l = 0.60;

    float dx_l = 0.30;
    float dy_l = 0.18;
    float x0_l = x1_l-dx_l;
    float y0_l = y1_l-dy_l;

    TPad* legend = new TPad("legend_0","legend_0",x0_l,y0_l,x1_l, y1_l );
    //    legend->SetFillColor( kGray );
    legend->Draw();
    legend->cd();
		
    float ar_l = dy_l/dx_l;
		
    float x_l[1];
    float ex_l[1];
    float y_l[1];
    float ey_l[1];
		
    //    float gap_ = 0.09/ar_l;
    float gap_ = 1./(n_+1);
		
    float bwx_ = 0.12;
    float bwy_ = gap_/1.5;
		
    x_l[0] = 1.2*bwx_;
    //    y_l[0] = 1-(1-0.10)/ar_l;
    y_l[0] = 1-gap_;
    ex_l[0] = 0;
    ey_l[0] = 0.04/ar_l;
		
    TGraph* gr_l = new TGraphErrors(1, x_l, y_l, ex_l, ey_l );
		
    gStyle->SetEndErrorSize(0);
    gr_l->SetMarkerSize(0.9);
    gr_l->Draw("0P");
		
    latex.SetTextFont(42);
    latex.SetTextAngle(0);
    latex.SetTextColor(kBlack);    
    latex.SetTextSize(0.25);    
    latex.SetTextAlign(12); 
		
    TLine line_;
    TBox  box_;
    float xx_ = x_l[0];
    float yy_ = y_l[0];
    latex.DrawLatex(xx_+1.*bwx_,yy_,"Data");
		
    yy_ -= gap_;
    box_.SetLineStyle( kSolid );
    box_.SetLineWidth( 1 );
    //		box_.SetLineColor( kBlack );
    box_.SetLineColor( histLineColor );
    box_.SetFillColor( histFillColor );
    box_.DrawBox( xx_-bwx_/2, yy_-bwy_/2, xx_+bwx_/2, yy_+bwy_/2 );
    box_.SetFillStyle(0);
    box_.DrawBox( xx_-bwx_/2, yy_-bwy_/2, xx_+bwx_/2, yy_+bwy_/2 );
    latex.DrawLatex(xx_+1.*bwx_,yy_,"Z #rightarrow e^{+}e^{-} (MC)");

    canv->cd();
  }

  {
    // Observed data
    TFile file_("histo.root","READ");

    TH1F *data = static_cast<TH1F*>(file_.Get("data")->Clone());
    data->SetDirectory(0);
    data->SetMarkerStyle(20);
    data->SetMarkerSize(markerSize);

    TH1F *MC   = static_cast<TH1F*>(file_.Get("MC")->Clone());
    MC->SetDirectory(0);
    MC->SetLineColor(histLineColor);
    MC->SetFillColor(histFillColor);

    MC->Draw("histsame");
    data->Draw("esamex0");

    file_.Close();
  }

  // writing the lumi information and the CMS "logo"
  CMS_lumi( canv, iPeriod, iPos );

  canv->Update();
  canv->RedrawAxis();
  canv->GetFrame()->Draw();

  canv->Print(canvName+".pdf",".pdf");
  canv->Print(canvName+".png",".png");

  return canv;
}
Пример #24
0
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 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 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 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);
}
Пример #28
0
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);
}