Beispiel #1
0
void Drawing()
{
  frodo *fr = frodo::instance();
  fr->Y1.clear();
  fr->X1.clear();
  fr->Y2.clear();
  fr->X2.clear();
  fr->Y3.clear();
  fr->X3.clear();
  fr->Y4.clear();
  fr->X4.clear();
  fr->AllX.clear();
  fr->AllY.clear();
  
  //----------------------------------------------------------------------------------------------------

  TCanvas *HBD = new TCanvas("HBD","HBD Event Display",0,0,700,700);
  HBD->Range(-50000,-50000,50000,50000);

    
   double Qx1,Qx2,Qx3,Qx4,Qy1,Qy2,Qy3,Qy4;

   Qx1=Qx2=Qx3=Qx4=Qy1=Qy2=Qy3=Qy4=0;
  
   for(unsigned int i=0; i<60; i++)
     {
       Qx1 += fr->J1_XStrips[i].Q();
       Qx2 += fr->J2_XStrips[i].Q();
       Qx3 += fr->J3_XStrips[i].Q();
       Qx4 += fr->J4_XStrips[i].Q();
     }

   for(unsigned int i=0; i<60; i++)
     {
       Qy1 += fr->J1_YStrips[i].Q();
       Qy2 += fr->J2_YStrips[i].Q();
       Qy3 += fr->J3_YStrips[i].Q();
       Qy4 += fr->J4_YStrips[i].Q();
     }
  
   double Qtot1 = Qx1+Qy1;
   double Qtot2 = Qx2+Qy2;
  double Qtot3 = Qx3+Qy3;
   double Qtot4 = Qx4+Qy4;
  
  
  //J1 section:-------------------------------------------------------------------
  double X1 = -49100; //left
  double Y1 = -1375; //bottom
  double X2 = -1000; //right
  double Y2 = -1075; //top
  for(unsigned int i=0; i<60; i++)
    {
      double T = fr->J1_YStrips[i].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot1*100;
      if(Qfrac>0.04 && Qfrac<1)
 	{
 	  fr->J1_YStrips[i].Draw(X1,Y1,X2,Y2,1);
 	  HBD->Update();
	  fr->Y1.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
 	}
      
       else if(Qfrac>=1 && Qfrac<50)
 	{
 	  int index = int (Qfrac);
 	  fr->J1_YStrips[i].Draw(X1,Y1,X2,Y2,index);
 	  HBD->Update();
 	  fr->Y1.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
 	  fr->AllY.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
 	}
       else if(Qfrac>=50 && Qfrac<99.98)
 	{
 	  //int index = int (Qfrac) - 49;
 	  fr->J1_YStrips[i].Draw(X1,Y1,X2,Y2,2);
 	  HBD->Update();
 	  fr->Y1.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
 	  fr->AllY.push_back(Coordinates(fr->J1_YStrips[i].YCenter()));
 	}
      	  
	  Y2 = Y1 - 500;
	  Y1 = Y2 - 300; 
    }

  double x1 = -1900;
  double y1 = -48975;
  double x2 = -1200;
  double y2 = -48675;

  for(unsigned int j=0; j<60; j++)
    {
      
      double T = fr->J1_XStrips[j].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot1*100;
      if(Qfrac>0.04 && Qfrac<1)
	{
 	  fr->J1_XStrips[j].Draw(x1,y1,x2,y2,1);   
 	  HBD->Update();
	  fr->X1.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));

 	}
	
      else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J1_XStrips[j].Draw(x1,y1,x2,y2,index);   
	  HBD->Update();
	  fr->X1.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));
	}
      else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac) - 49;
	  fr->J1_XStrips[j].Draw(x1,y1,x2,y2,2);
	  HBD->Update();
	  fr->X1.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J1_XStrips[j].XCenter()));
	}
	
      
      x2 = x1 - 100;
      x1 = x2 - 700;
    }

  
  //J2 section:----------------------------------------------------------------
  //cout<<"J2: "<<endl;

  X1 = 900;
  Y1 = -1375;
  X2 = 49000;
  Y2 = -1075;
  for(unsigned int i=0; i<60; i++)
    {
      double T = fr->J2_YStrips[i].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot2*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J2_YStrips[i].Draw(X1,Y1,X2,Y2,1);
 	  HBD->Update();
	  fr->Y2.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	}
      
      else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J2_YStrips[i].Draw(X1,Y1,X2,Y2,index);
	  HBD->Update();
	  fr->Y2.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	  
	}
      else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J2_YStrips[i].Draw(X1,Y1,X2,Y2,2);
	  HBD->Update();
	  fr->Y2.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J2_YStrips[i].YCenter()));
	}
      

      Y2 = Y1 - 500;
      Y1 = Y2 - 300; 
    }

  x1 = 48100;
  y1 = -48975;
  x2 = 48800;
  y2 = -48675;

  for(unsigned int j=0; j<60; j++)
    {
      double T = fr->J2_XStrips[j].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot2*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J2_XStrips[j].Draw(x1,y1,x2,y2,1);  
 	  HBD->Update();
	  fr->X2.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
 	}
      
      else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J2_XStrips[j].Draw(x1,y1,x2,y2,index);  
	  HBD->Update();
	  fr->X2.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
	}
      else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J2_XStrips[j].Draw(x1,y1,x2,y2,2);
	  HBD->Update();
	  fr->X2.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J2_XStrips[j].XCenter()));
	}
      
      x2 = x1 - 100;
      x1 = x2 - 700;
    }
  
  //J3 section:----------------------------------------------------------------
  X1 = -49100;
  Y1 = 1125;
  X2 = -1000;
  Y2 = 1425;
  for(unsigned int i=0; i<60; i++)
    {
      double T = fr->J3_YStrips[i].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot3*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J3_YStrips[i].Draw(X1,Y1,X2,Y2,1);
 	  HBD->Update();
	  fr->Y3.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
 	}
       
       else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J3_YStrips[i].Draw(X1,Y1,X2,Y2,index);
	  HBD->Update();
	  fr->Y3.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
	}
       else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J3_YStrips[i].Draw(X1,Y1,X2,Y2,2);
	  HBD->Update();
	  fr->Y3.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J3_YStrips[i].YCenter()));
	}
       
      Y1 = Y2 + 500;
      Y2 = Y1 + 300; 
    }

  x1 = -49100;
  y1 = 1525;
  x2 = -48400;
  y2 = 1825;
  for(unsigned int j=0; j<60; j++)
    {
      double T = fr->J3_XStrips[j].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot3*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J3_XStrips[j].Draw(x1,y1,x2,y2,1);   
 	  HBD->Update();
	  fr->X3.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	}
      
       else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J3_XStrips[j].Draw(x1,y1,x2,y2,index);   
	  HBD->Update();
	  fr->X3.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	}
       else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J3_XStrips[j].Draw(x1,y1,x2,y2,2);
	  HBD->Update();
	  fr->X3.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J3_XStrips[j].XCenter()));
	}
      
      x1 = x2 + 100;
      x2 = x1 + 700;
    }

  //J4 section:-----------------------------------------------------------------
  X1 = 950;
  Y1 = 1125;
  X2 = 49050;
  Y2 = 1425;
  for(unsigned int i=0; i<60; i++)
    {
      double T = fr->J4_YStrips[i].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot4*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J4_YStrips[i].Draw(X1,Y1,X2,Y2,1);
 	  HBD->Update();
	  fr->Y4.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
 	}
       
       else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J4_YStrips[i].Draw(X1,Y1,X2,Y2,index);
	  HBD->Update();
	  fr->Y4.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
	  
	}
       else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J4_YStrips[i].Draw(X1,Y1,X2,Y2,2);
	  HBD->Update();
	  fr->Y4.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
	  fr->AllY.push_back(Coordinates(fr->J4_YStrips[i].YCenter()));
	}
       
      Y1 = Y2 + 500;
      Y2 = Y1 + 300; 
    }

  x1 = 950;
  y1 = 1525;
  x2 = 1650;
  y2 = 1825;
  for(unsigned int j=0; j<60; j++)
    {
      double T = fr->J4_XStrips[j].Q();
      //double Qfrac = exp(-T/20)*100;
      double Qfrac = T/Qtot4*100;
      if(Qfrac>0.04 && Qfrac<1)
       	{
 	  fr->J4_XStrips[j].Draw(x1,y1,x2,y2,1); 
 	  HBD->Update();
	  fr->X4.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
 	}
       
       else if(Qfrac>=1 && Qfrac<50)
	{
	  int index = int(Qfrac);
	  fr->J4_XStrips[j].Draw(x1,y1,x2,y2,index); 
	  HBD->Update();
	  fr->X4.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
	}
       else if(Qfrac>=50 && Qfrac<99.98)
	{
	  //int index = int(Qfrac)-49;
	  fr->J4_XStrips[j].Draw(x1,y1,x2,y2,2);
	  HBD->Update();
	  fr->X4.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
	  fr->AllX.push_back(Coordinates(fr->J4_XStrips[j].XCenter()));
	}
       
      x1 = x2 + 100;
      x2 = x1 + 700;
    }

  //Drawing the Central Cross:
  X1 = -49100;
  Y1 = -675;
  X2 = 49050;
  Y2 = 675;
  TBox Hori (X1,Y1, X2,Y2);
  Hori.SetFillColor(15);
  Hori.DrawBox(X1,Y1, X2,Y2);
  HBD->Update();

  X1 = -500;
  Y1 = -48975;
  X2 = 500;
  Y2 = 49025;
  TBox Vert (X1,Y1, X2,Y2);
  Vert.SetFillColor(15);
  Vert.DrawBox(X1,Y1, X2,Y2);
  HBD->Update();

  //Drawing the real positions of the photons:
  for(unsigned int a=0; a<fr->HBDParticles.size(); a++)
    {
      fr->HBDParticles[a].Draw();
      HBD->Update();
    }

  //Finding the ring:----------------------------------------------------------------------------------
  Hough = new TH3D ("Hough","Hough",500,-50000,50000,500,-50000,50000,500,0,50000);
  Houghxy = new TH2D ("Houghxy","Houghxy",100,-50000,50000,100,-50000,50000);
  Houghxr = new TH2D ("Houghxr","Houghxr",100,-50000,50000,100,0,50000);
  Houghyr = new TH2D ("Houghyr","Houghyr",100,-50000,50000,100,0,50000);
  
    
//Forming J1234 PseudoPoints:
  for(unsigned int s=0; s<fr->Y1.size(); s++)
    {
      for(unsigned int ps=0; ps<fr->X1.size(); ps++)
	{
	  fr->J1_PseudoPoints.push_back(TVector3(fr->X1[ps].Cor(),fr->Y1[s].Cor(),0));
	  
	}
    }
  //cout<<"J1 size:"<<fr->J1_PseudoPoints.size()<<endl;

  for(unsigned int s=0; s<fr->Y2.size(); s++)
    {
      for(unsigned int ps=0; ps<fr->X2.size(); ps++)
	{
	  fr->J2_PseudoPoints.push_back(TVector3(fr->X2[ps].Cor(),fr->Y2[s].Cor(),0));
	  
	}
    }
  //cout<<"J2 size:"<<fr->J2_PseudoPoints.size()<<endl;

  for(unsigned int s=0; s<fr->Y3.size(); s++)
    {
      for(unsigned int ps=0; ps<fr->X3.size(); ps++)
	{
	  fr->J3_PseudoPoints.push_back(TVector3(fr->X3[ps].Cor(),fr->Y3[s].Cor(),0));
	 
	}
    }
  //cout<<"J3 size:"<<fr->J3_PseudoPoints.size()<<endl;

  for(unsigned int s=0; s<fr->Y4.size(); s++)
    {
      for(unsigned int ps=0; ps<fr->X4.size(); ps++)
	{
	  fr->J4_PseudoPoints.push_back(TVector3(fr->X4[ps].Cor(),fr->Y4[s].Cor(),0));
	  
	}
    }
 
  //Selecting 3 PseudoPoints in three different quadrants:
  //J1,J2,J3:
  if(fr->J1_PseudoPoints.size() >= 1 && fr->J2_PseudoPoints.size() >= 1 && fr->J3_PseudoPoints.size() >= 1)
    {
      for(unsigned int i=0; i<fr->J1_PseudoPoints.size(); i++)
	{
	  for(unsigned int j=0; j<fr->J2_PseudoPoints.size(); j++)
	    {
	      for(unsigned int k=0; k<fr->J3_PseudoPoints.size(); k++)
		{
		  
		  double Rad  = FindR(fr->J1_PseudoPoints[i],fr->J2_PseudoPoints[j],fr->J3_PseudoPoints[k]);
		  double Xcen = FindX(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J2_PseudoPoints[j].X(),fr->J2_PseudoPoints[j].Y(),fr->J3_PseudoPoints[k].X(),fr->J3_PseudoPoints[k].Y());
		  double Ycen = FindY(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J2_PseudoPoints[j].X(),fr->J2_PseudoPoints[j].Y(),fr->J3_PseudoPoints[k].X(),fr->J3_PseudoPoints[k].Y());
		  Hough->Fill(Xcen,Ycen,Rad);
		  Houghxy->Fill(Xcen,Ycen);
		  Houghyr->Fill(Ycen,Rad);
		  Houghxr->Fill(Xcen,Rad);
		}
	    }
	}
    }
      
  //J1,J2,J4:
  if(fr->J1_PseudoPoints.size() >= 1 && fr->J2_PseudoPoints.size() >= 1 && fr->J4_PseudoPoints.size() >= 1)
    {
      for(unsigned int i=0; i<fr->J1_PseudoPoints.size(); i++)
	{
	  for(unsigned int j=0; j<fr->J2_PseudoPoints.size(); j++)
	    {
	      for(unsigned int k=0; k<fr->J4_PseudoPoints.size(); k++)
		{
		  double Rad  = FindR(fr->J1_PseudoPoints[i],fr->J2_PseudoPoints[j],fr->J4_PseudoPoints[k]);
		  double Xcen = FindX(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J2_PseudoPoints[j].X(),fr->J2_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  double Ycen = FindY(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J2_PseudoPoints[j].X(),fr->J2_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  Hough->Fill(Xcen,Ycen,Rad);
		  Houghxy->Fill(Xcen,Ycen);
		  Houghyr->Fill(Ycen,Rad);
		  Houghxr->Fill(Xcen,Rad);
		}
	    }
	}
    }
  
  //J1,J3,J4:
  if(fr->J1_PseudoPoints.size() >= 1 && fr->J3_PseudoPoints.size() >= 1 && fr->J4_PseudoPoints.size() >= 1)
    {
      for(unsigned int i=0; i<fr->J1_PseudoPoints.size(); i++)
	{
	  for(unsigned int j=0; j<fr->J3_PseudoPoints.size(); j++)
	    {
	      for(unsigned int k=0; k<fr->J4_PseudoPoints.size(); k++)
		{
		  double Rad  = FindR(fr->J1_PseudoPoints[i],fr->J3_PseudoPoints[j],fr->J4_PseudoPoints[k]);
		  double Xcen = FindX(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J3_PseudoPoints[j].X(),fr->J3_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  double Ycen = FindY(fr->J1_PseudoPoints[i].X(),fr->J1_PseudoPoints[i].Y(),fr->J3_PseudoPoints[j].X(),fr->J3_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  Hough->Fill(Xcen,Ycen,Rad);
		  Houghxy->Fill(Xcen,Ycen);
		  Houghyr->Fill(Ycen,Rad);
		  Houghxr->Fill(Xcen,Rad);
		}
	    }
	}
    }
  
  //J2,J3,J4;
  if(fr->J2_PseudoPoints.size() >= 1 && fr->J3_PseudoPoints.size() >= 1 && fr->J4_PseudoPoints.size() >= 1)
    {
      for(unsigned int i=0; i<fr->J2_PseudoPoints.size(); i++)
	{
	  for(unsigned int j=0; j<fr->J3_PseudoPoints.size(); j++)
	    {
	      for(unsigned int k=0; k<fr->J4_PseudoPoints.size(); k++)
		{
		  double Rad  = FindR(fr->J2_PseudoPoints[i],fr->J3_PseudoPoints[j],fr->J4_PseudoPoints[k]);
		  double Xcen = FindX(fr->J2_PseudoPoints[i].X(),fr->J2_PseudoPoints[i].Y(),fr->J3_PseudoPoints[j].X(),fr->J3_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  double Ycen = FindY(fr->J2_PseudoPoints[i].X(),fr->J2_PseudoPoints[i].Y(),fr->J3_PseudoPoints[j].X(),fr->J3_PseudoPoints[j].Y(),fr->J4_PseudoPoints[k].X(),fr->J4_PseudoPoints[k].Y());
		  Hough->Fill(Xcen,Ycen,Rad);
		  Houghxy->Fill(Xcen,Ycen);
		  Houghyr->Fill(Ycen,Rad);
		  Houghxr->Fill(Xcen,Rad);
		}
	    }
	}
    }

  /*
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!DO NOT ERASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  //Forming PseudoPoints:
  for(unsigned int ps=0; ps<fr->AllX.size(); ps++)
    {
      for(unsigned int s=0; s<fr->AllY.size(); s++)
	{
	   fr->PseudoPoints.push_back(TVector3(fr->AllX[ps].Cor(),fr->AllY[s].Cor(),0));
	}
    }
    
  //Full Combinatorial:
   for(unsigned int i=0; i<fr->PseudoPoints.size()-2; i++)
     {
       for(unsigned int j=i+1; j<fr->PseudoPoints.size()-1; j++)
 	{
 	  for(unsigned int k=j+1; k<fr->PseudoPoints.size(); k++)
 	    {
 	      double Rad = FindR(fr->PseudoPoints[i],fr->PseudoPoints[j],fr->PseudoPoints[k]);
 	      double Xcen = FindX(fr->PseudoPoints[i].X(),fr->PseudoPoints[i].Y(),fr->PseudoPoints[j].X(),fr->PseudoPoints[j].Y(),fr->PseudoPoints[k].X(),fr->PseudoPoints[k].Y());
 	      double Ycen = FindY(fr->PseudoPoints[i].X(),fr->PseudoPoints[i].Y(),fr->PseudoPoints[j].X(),fr->PseudoPoints[j].Y(),fr->PseudoPoints[k].X(),fr->PseudoPoints[k].Y());
 	      Hough->Fill(Xcen,Ycen,Rad);
 	      Houghxy->Fill(Xcen,Ycen);
 	      Houghyr->Fill(Ycen,Rad);
 	      Houghxr->Fill(Xcen,Rad);
	      }
 	}
     }
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  */      
  int xbin, ybin, zbin;
  xbin=0; ybin=0; zbin=0;
  Hough->GetMaximumBin(xbin, ybin, zbin);
  //cout << "xbin= " << xbin << " ybin= " << ybin << " zbin= " << zbin << endl;

  TAxis *xaxis = Hough->GetXaxis();  
  double Xrec=xaxis->GetBinCenter(xbin);
  cout<<"Xrec= "<< Xrec <<endl;

  TAxis *yaxis = Hough->GetYaxis();  
  double Yrec=yaxis->GetBinCenter(ybin);
  cout<<"Yrec= "<< Yrec <<endl;

  TAxis *zaxis = Hough->GetZaxis();  
  double Rrec=zaxis->GetBinCenter(zbin);
  cout<<"Rrec= "<< Rrec <<endl;

  //Drawing the founded ring and its center:
  TEllipse ring (Xrec,Yrec,Rrec,Rrec,1,360,0);
  ring.SetLineColor(2);
  ring.SetFillStyle(0);
  ring.DrawEllipse(Xrec,Yrec,Rrec,Rrec,0,360,0);
  HBD->Update();

  TMarker circumcenter (Xrec,Yrec,8);
  circumcenter.SetMarkerColor(2);
  circumcenter.SetMarkerSize(1);
  circumcenter.DrawMarker(Xrec,Yrec);
  HBD->Update();  
  
}
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 TracktoLCTYfull_2016B_June22all_sameYrange_fullIntegral_10k9k_lin()
{
//=========Macro generated from canvas: TracktoLCTYfull/TracktoLCTYfull
//=========  (Sat Aug  6 07:01:22 2016) by ROOT version6.06/01
   TCanvas *TracktoLCTYfull = new TCanvas("TracktoLCTYfull", "TracktoLCTYfull",0,0,500,500);
   gStyle->SetOptStat(0);
   TracktoLCTYfull->SetHighLightColor(2);
   TracktoLCTYfull->Range(-10000.5,-14.99438,-9995.5,134.9994);
   TracktoLCTYfull->SetFillColor(0);
   TracktoLCTYfull->SetBorderMode(0);
   TracktoLCTYfull->SetBorderSize(2);
   TracktoLCTYfull->SetFrameBorderMode(0);
   TracktoLCTYfull->SetFrameBorderMode(0);
   
   TH1D *TracktoLCTYfull_1__73 = new TH1D("TracktoLCTYfull_1__73","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_1__73->SetBinContent(26,100);
   TracktoLCTYfull_1__73->SetBinContent(101,26.00723);
   TracktoLCTYfull_1__73->SetMinimum(0.005);
   TracktoLCTYfull_1__73->SetMaximum(120);
   TracktoLCTYfull_1__73->SetEntries(675802);
   TracktoLCTYfull_1__73->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ff00ff");
   TracktoLCTYfull_1__73->SetLineColor(ci);

   ci = TColor::GetColor("#ff00ff");
   TracktoLCTYfull_1__73->SetMarkerColor(ci);
   TracktoLCTYfull_1__73->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_1__73->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_1__73->Draw("H");
   
   TLegend *leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_2__74 = new TH1D("TracktoLCTYfull_2__74","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_2__74->SetBinContent(26,100);
   TracktoLCTYfull_2__74->SetBinContent(101,35.88015);
   TracktoLCTYfull_2__74->SetEntries(1185341);
   TracktoLCTYfull_2__74->SetStats(0);

   ci = TColor::GetColor("#ff9999");
   TracktoLCTYfull_2__74->SetLineColor(ci);

   ci = TColor::GetColor("#ff9999");
   TracktoLCTYfull_2__74->SetMarkerColor(ci);
   TracktoLCTYfull_2__74->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_2__74->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_2__74->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_3__75 = new TH1D("TracktoLCTYfull_3__75","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_3__75->SetBinContent(26,100);
   TracktoLCTYfull_3__75->SetBinContent(101,122.3848);
   TracktoLCTYfull_3__75->SetEntries(389596);
   TracktoLCTYfull_3__75->SetStats(0);
   TracktoLCTYfull_3__75->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_3__75->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_3__75->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_4__76 = new TH1D("TracktoLCTYfull_4__76","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_4__76->SetBinContent(26,100);
   TracktoLCTYfull_4__76->SetBinContent(101,49.76866);
   TracktoLCTYfull_4__76->SetEntries(1890705);
   TracktoLCTYfull_4__76->SetStats(0);

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

   ci = TColor::GetColor("#ff0000");
   TracktoLCTYfull_4__76->SetMarkerColor(ci);
   TracktoLCTYfull_4__76->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_4__76->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_4__76->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_5__77 = new TH1D("TracktoLCTYfull_5__77","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_5__77->SetBinContent(26,100);
   TracktoLCTYfull_5__77->SetBinContent(101,63.70034);
   TracktoLCTYfull_5__77->SetEntries(1394704);
   TracktoLCTYfull_5__77->SetStats(0);

   ci = TColor::GetColor("#00ff00");
   TracktoLCTYfull_5__77->SetLineColor(ci);

   ci = TColor::GetColor("#00ff00");
   TracktoLCTYfull_5__77->SetMarkerColor(ci);
   TracktoLCTYfull_5__77->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_5__77->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_5__77->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_6__78 = new TH1D("TracktoLCTYfull_6__78","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_6__78->SetBinContent(26,100);
   TracktoLCTYfull_6__78->SetBinContent(101,78.02474);
   TracktoLCTYfull_6__78->SetEntries(1102290);
   TracktoLCTYfull_6__78->SetStats(0);

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

   ci = TColor::GetColor("#0000ff");
   TracktoLCTYfull_6__78->SetMarkerColor(ci);
   TracktoLCTYfull_6__78->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_6__78->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_6__78->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.01,0.945,0.3707258,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("TracktoLCTYfull");
   pt->Draw();
   TracktoLCTYfull->Modified();
   TracktoLCTYfull->cd();
   TracktoLCTYfull->SetSelected(TracktoLCTYfull);
}
void DarkSusy_mH_125_mGammaD_2000_cT_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_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_10_LHE_gammaD_Sorted_cT_Z_lab()
{
//=========Macro generated from canvas: cnv/cnv
//=========  (Sun May 24 15:17:53 2015) by ROOT version6.02/05
   TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   cnv->SetHighLightColor(2);
   cnv->Range(-10.625,-0.01342717,51.875,0.08985876);
   cnv->SetFillColor(0);
   cnv->SetBorderMode(0);
   cnv->SetBorderSize(2);
   cnv->SetTickx(1);
   cnv->SetTicky(1);
   cnv->SetLeftMargin(0.17);
   cnv->SetRightMargin(0.03);
   cnv->SetTopMargin(0.07);
   cnv->SetBottomMargin(0.13);
   cnv->SetFrameFillStyle(0);
   cnv->SetFrameBorderMode(0);
   cnv->SetFrameFillStyle(0);
   cnv->SetFrameBorderMode(0);
   
   TH1F *h_gammaD_1_cT_Z_lab_dummy68 = new TH1F("h_gammaD_1_cT_Z_lab_dummy68","h_gammaD_1_cT_Z_lab_dummy",5,0,50);
   h_gammaD_1_cT_Z_lab_dummy68->SetMaximum(0.08262875);
   h_gammaD_1_cT_Z_lab_dummy68->SetLineStyle(0);
   h_gammaD_1_cT_Z_lab_dummy68->SetMarkerStyle(20);
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitle("L_{Z} of #gamma_{D} [mm]");
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleSize(0.06);
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleOffset(0.95);
   h_gammaD_1_cT_Z_lab_dummy68->GetXaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitle("Normalized Fraction of events / 10.0 mm");
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleSize(0.05);
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleOffset(1.3);
   h_gammaD_1_cT_Z_lab_dummy68->GetYaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetTitleSize(0.06);
   h_gammaD_1_cT_Z_lab_dummy68->GetZaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab_dummy68->Draw("");
   
   TH1F *h_gammaD_1_cT_Z_lab69 = new TH1F("h_gammaD_1_cT_Z_lab69","h_gammaD_1_cT_Z_lab",5,0,50);
   h_gammaD_1_cT_Z_lab69->SetBinContent(1,0.04371162);
   h_gammaD_1_cT_Z_lab69->SetBinContent(2,0.02445529);
   h_gammaD_1_cT_Z_lab69->SetBinContent(3,0.01502482);
   h_gammaD_1_cT_Z_lab69->SetBinContent(4,0.01002103);
   h_gammaD_1_cT_Z_lab69->SetBinContent(5,0.006787247);
   h_gammaD_1_cT_Z_lab69->SetBinContent(6,0.03459914);
   h_gammaD_1_cT_Z_lab69->SetEntries(79999);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   h_gammaD_1_cT_Z_lab69->SetLineColor(ci);
   h_gammaD_1_cT_Z_lab69->SetLineWidth(2);
   h_gammaD_1_cT_Z_lab69->SetMarkerStyle(20);
   h_gammaD_1_cT_Z_lab69->GetXaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab69->GetXaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleSize(0.06);
   h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleOffset(0.95);
   h_gammaD_1_cT_Z_lab69->GetXaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab69->GetYaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab69->GetYaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleSize(0.06);
   h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleOffset(1.3);
   h_gammaD_1_cT_Z_lab69->GetYaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab69->GetZaxis()->SetLabelFont(42);
   h_gammaD_1_cT_Z_lab69->GetZaxis()->SetLabelOffset(0.007);
   h_gammaD_1_cT_Z_lab69->GetZaxis()->SetTitleSize(0.06);
   h_gammaD_1_cT_Z_lab69->GetZaxis()->SetTitleFont(42);
   h_gammaD_1_cT_Z_lab69->Draw("same");
   
   TH1F *h_gammaD_2_cT_Z_lab70 = new TH1F("h_gammaD_2_cT_Z_lab70","h_gammaD_2_cT_Z_lab",5,0,50);
   h_gammaD_2_cT_Z_lab70->SetBinContent(1,0.04590486);
   h_gammaD_2_cT_Z_lab70->SetBinContent(2,0.02475454);
   h_gammaD_2_cT_Z_lab70->SetBinContent(3,0.01457528);
   h_gammaD_2_cT_Z_lab70->SetBinContent(4,0.008818965);
   h_gammaD_2_cT_Z_lab70->SetBinContent(5,0.005946348);
   h_gammaD_2_cT_Z_lab70->SetBinContent(6,0.02668493);
   h_gammaD_2_cT_Z_lab70->SetEntries(79999);

   ci = TColor::GetColor("#ff0000");
   h_gammaD_2_cT_Z_lab70->SetLineColor(ci);
   h_gammaD_2_cT_Z_lab70->SetLineWidth(2);
   h_gammaD_2_cT_Z_lab70->SetMarkerStyle(20);
   h_gammaD_2_cT_Z_lab70->GetXaxis()->SetLabelFont(42);
   h_gammaD_2_cT_Z_lab70->GetXaxis()->SetLabelOffset(0.007);
   h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleSize(0.06);
   h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleOffset(0.95);
   h_gammaD_2_cT_Z_lab70->GetXaxis()->SetTitleFont(42);
   h_gammaD_2_cT_Z_lab70->GetYaxis()->SetLabelFont(42);
   h_gammaD_2_cT_Z_lab70->GetYaxis()->SetLabelOffset(0.007);
   h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleSize(0.06);
   h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleOffset(1.3);
   h_gammaD_2_cT_Z_lab70->GetYaxis()->SetTitleFont(42);
   h_gammaD_2_cT_Z_lab70->GetZaxis()->SetLabelFont(42);
   h_gammaD_2_cT_Z_lab70->GetZaxis()->SetLabelOffset(0.007);
   h_gammaD_2_cT_Z_lab70->GetZaxis()->SetTitleSize(0.06);
   h_gammaD_2_cT_Z_lab70->GetZaxis()->SetTitleFont(42);
   h_gammaD_2_cT_Z_lab70->Draw("same");
   
   TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.02777778);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("h_gammaD_1_cT_Z_lab","1st dark photon (leading p_{T})","L");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_gammaD_2_cT_Z_lab","2nd dark photon","L");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.02777778);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextAlign(22);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   cnv->Modified();
   cnv->cd();
   cnv->SetSelected(cnv);
}
void 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);
}
NLSimpleGuiWindow::NLSimpleGuiWindow( NLSimple *model, QWidget *parent)
    : QMainWindow(parent), ui(new Ui::NLSimpleGuiWindow), m_model(model),
      m_ownsModel(model==NULL), m_fileName(""), m_equationPt(NULL),
      m_programOptionsGui(NULL)
{
  ui->setupUi(this);
  if( !m_model ) openNewModel();
  if( !m_model ) quit();

  QMenu *fileMenu = ui->menuBar->addMenu( "&File" );
  QAction *newAction = fileMenu->addAction( "&new model" );
  QAction *openAction = fileMenu->addAction( "&open file" );
  QAction *saveAction = fileMenu->addAction( "&save" );
  QAction *saveAsAction = fileMenu->addAction( "save &as" );
  QAction *quitAction = fileMenu->addAction( "&quit" );

  connect( newAction, SIGNAL(triggered()), this, SLOT(openNewModel()) );
  connect( openAction, SIGNAL(triggered()), this, SLOT(openExistingModel()) );
  connect( saveAction, SIGNAL(triggered()), this, SLOT(saveModel()) );
  connect( saveAsAction, SIGNAL(triggered()), this, SLOT(saveModelAs()) );
  connect( quitAction, SIGNAL(triggered()), this, SLOT(quit()) );


  TCanvas *can = ui->m_mathFormulaWidget->GetCanvas();
  can->cd();
  can->SetEditable( kTRUE );
  m_equationPt = new TPaveText(0, 0, 1.0, 1.0, "NDC");
  m_equationPt->SetBorderSize(0);
  m_equationPt->SetTextAlign(12);
  m_equationPt->Draw();
  can->SetEditable( kFALSE );
  can->Update();


  //Add a button group so CLarke Error Grid buttons are mutually exclusive
  m_clarkeButtonGroup = new QButtonGroup( this );
  m_clarkeButtonGroup->addButton( ui->clarkCgmsVMeterRadioButton, 0 );
  m_clarkeButtonGroup->addButton( ui->clarkePredVCGMSRadioButton, 1 );
  ui->clarkCgmsVMeterRadioButton->setChecked(true);
  connect( m_clarkeButtonGroup, SIGNAL(buttonClicked(int)),
          this, SLOT(refreshClarkAnalysis()) );

  //Make so Clarke Grid displays nice
  can = ui->clarkeErrorGridWidget->GetCanvas();
  can->cd();
  can->Range(-45.17185,-46.4891,410.4746,410.6538);
  can->SetFillColor(0);
  can->SetBorderMode(0);
  can->SetBorderSize(2);
  can->SetRightMargin(0.031);
  can->SetTopMargin(0.024);
  can->SetFrameBorderMode(0);

  QTabWidget *tw = ui->tabWidget;
  tw->setTabText( tw->indexOf(ui->modelDisplyTab), "Display"    );
  tw->setTabText( tw->indexOf(ui->optionsTab),     "Options"    );
  tw->setTabText( tw->indexOf(ui->clarkeGridTab),  "Error Grid" );
  tw->setTabText( tw->indexOf(ui->customEventsTab),  "Custom Events" );

  ui->endDisplayTime->setCalendarPopup(true);
  ui->startDisplayTime->setCalendarPopup(true);
  // ui->endDisplayTime->setDisplayFormat("MMM dd yy hh:mm AP");
  // ui->startDisplayTime->setDisplayFormat("MMM dd yy hh:mm AP");

  ui->tabWidget->setCurrentWidget(ui->customEventsTab);
  m_customEventList = new QStandardItemModel(this/*ui->customEventLayout*/);

  ui->customEventView->setModel(m_customEventList);
  ui->customEventView->setShowGrid(false);
  ui->customEventView->setAlternatingRowColors(true);
  ui->customEventView->horizontalHeader()->setHidden(false);


  connect( ui->geneticOptimizeButton, SIGNAL(clicked()), this, SLOT(doGeneticOptimization()) );
  connect( ui->baysianFineTuneButton, SIGNAL(clicked()), this, SLOT(doMinuit2Fit())          );
  connect( ui->addCgmsButton,         SIGNAL(clicked()), this, SLOT(addCgmsData())           );
  connect( ui->addMealDataButton,     SIGNAL(clicked()), this, SLOT(addCarbData())           );
  connect( ui->addMeterDataButton,    SIGNAL(clicked()), this, SLOT(addMeterData())          );
  connect( ui->addCustonDataBustom,   SIGNAL(clicked()), this, SLOT(addCustomEventData())    );
  connect( ui->redrawButton,          SIGNAL(clicked()), this, SLOT(drawModel())             );
  connect( ui->zoomIn,                SIGNAL(clicked()), this, SLOT(zoomModelPreviewPlus())  );
  connect( ui->zoomOut,               SIGNAL(clicked()), this, SLOT(zoomModelPreviewMinus()) );
  connect( ui->zoomIn,                SIGNAL(clicked()), this, SLOT(zoomModelPreviewPlus())  );
  connect( ui->endDisplayTime,        SIGNAL(dateTimeChanged(QDateTime)), this, SLOT(checkDisplayTimeLimitsConsistency()) );
  connect( ui->startDisplayTime,      SIGNAL(dateTimeChanged(QDateTime)), this, SLOT(checkDisplayTimeLimitsConsistency()) );
  connect( ui->endDisplayTime,        SIGNAL(editingFinished()), this, SLOT(drawModel())    );
  connect( ui->startDisplayTime,      SIGNAL(editingFinished()), this, SLOT(drawModel())    );
  connect( ui->addCustomEventButton,  SIGNAL(clicked()),         this, SLOT(addCustomEventDef())    );
  connect( ui->deleteCustoEvenButton, SIGNAL(clicked()),         this, SLOT(deleteCustomEventDef()) );
  connect( ui->customEventView,       SIGNAL(clicked(QModelIndex)), this, SLOT(drawSelectedCustomEvent()) );
  init();
}//NLSimpleGuiWindow constructor
void SegtoLCTXY_2016B_June22all_sameYrange_fullIntegral_10k9k_lin()
{
//=========Macro generated from canvas: SegtoLCTXY/SegtoLCTXY
//=========  (Sat Aug  6 07:01:23 2016) by ROOT version6.06/01
   TCanvas *SegtoLCTXY = new TCanvas("SegtoLCTXY", "SegtoLCTXY",0,0,500,500);
   gStyle->SetOptStat(0);
   SegtoLCTXY->SetHighLightColor(2);
   SegtoLCTXY->Range(-6.125,-6.2275,45.125,56.2475);
   SegtoLCTXY->SetFillColor(0);
   SegtoLCTXY->SetBorderMode(0);
   SegtoLCTXY->SetBorderSize(2);
   SegtoLCTXY->SetFrameBorderMode(0);
   SegtoLCTXY->SetFrameBorderMode(0);
   
   TH1D *SegtoLCTXY_1__85 = new TH1D("SegtoLCTXY_1__85","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_1__85->SetBinContent(3,84.80773);
   SegtoLCTXY_1__85->SetBinContent(4,4.770728);
   SegtoLCTXY_1__85->SetBinContent(5,3.083512);
   SegtoLCTXY_1__85->SetBinContent(6,2.259136);
   SegtoLCTXY_1__85->SetBinContent(7,2.086507);
   SegtoLCTXY_1__85->SetBinContent(8,0.5551299);
   SegtoLCTXY_1__85->SetBinContent(9,0.2552041);
   SegtoLCTXY_1__85->SetBinContent(10,0.1825503);
   SegtoLCTXY_1__85->SetBinContent(11,0.171408);
   SegtoLCTXY_1__85->SetBinContent(12,0.1286705);
   SegtoLCTXY_1__85->SetBinContent(13,0.09341201);
   SegtoLCTXY_1__85->SetBinContent(14,0.08776455);
   SegtoLCTXY_1__85->SetBinContent(15,0.1098965);
   SegtoLCTXY_1__85->SetBinContent(16,0.08196446);
   SegtoLCTXY_1__85->SetBinContent(17,0.06944847);
   SegtoLCTXY_1__85->SetBinContent(18,0.06517472);
   SegtoLCTXY_1__85->SetBinContent(19,0.06883794);
   SegtoLCTXY_1__85->SetBinContent(20,0.05067449);
   SegtoLCTXY_1__85->SetBinContent(21,0.04685864);
   SegtoLCTXY_1__85->SetBinContent(22,0.04853761);
   SegtoLCTXY_1__85->SetBinContent(23,0.03953221);
   SegtoLCTXY_1__85->SetBinContent(24,0.03663216);
   SegtoLCTXY_1__85->SetBinContent(25,0.04319542);
   SegtoLCTXY_1__85->SetBinContent(26,0.03876904);
   SegtoLCTXY_1__85->SetBinContent(27,0.03312158);
   SegtoLCTXY_1__85->SetBinContent(28,0.03144261);
   SegtoLCTXY_1__85->SetBinContent(29,0.02991626);
   SegtoLCTXY_1__85->SetBinContent(30,0.03602163);
   SegtoLCTXY_1__85->SetBinContent(31,0.02671095);
   SegtoLCTXY_1__85->SetBinContent(32,0.02045296);
   SegtoLCTXY_1__85->SetBinContent(33,0.03037417);
   SegtoLCTXY_1__85->SetBinContent(34,0.02579515);
   SegtoLCTXY_1__85->SetBinContent(35,0.02503198);
   SegtoLCTXY_1__85->SetBinContent(36,0.02640568);
   SegtoLCTXY_1__85->SetBinContent(37,0.02167403);
   SegtoLCTXY_1__85->SetBinContent(38,0.02075822);
   SegtoLCTXY_1__85->SetBinContent(39,0.01831608);
   SegtoLCTXY_1__85->SetBinContent(40,0.01831608);
   SegtoLCTXY_1__85->SetBinContent(41,0.02045296);
   SegtoLCTXY_1__85->SetBinContent(42,0.01831608);
   SegtoLCTXY_1__85->SetBinContent(43,0.02030032);
   SegtoLCTXY_1__85->SetBinContent(44,0.01846871);
   SegtoLCTXY_1__85->SetBinContent(45,0.01587394);
   SegtoLCTXY_1__85->SetBinContent(46,0.0157213);
   SegtoLCTXY_1__85->SetBinContent(47,0.0148055);
   SegtoLCTXY_1__85->SetBinContent(48,0.01678974);
   SegtoLCTXY_1__85->SetBinContent(49,0.0148055);
   SegtoLCTXY_1__85->SetBinContent(50,0.01419496);
   SegtoLCTXY_1__85->SetBinContent(51,0.009768576);
   SegtoLCTXY_1__85->SetBinContent(52,0.01327916);
   SegtoLCTXY_1__85->SetBinContent(53,0.01083701);
   SegtoLCTXY_1__85->SetBinContent(54,0.009768576);
   SegtoLCTXY_1__85->SetBinContent(55,0.01175282);
   SegtoLCTXY_1__85->SetBinContent(56,0.009005406);
   SegtoLCTXY_1__85->SetBinContent(57,0.009615942);
   SegtoLCTXY_1__85->SetBinContent(58,0.01098965);
   SegtoLCTXY_1__85->SetBinContent(59,0.00839487);
   SegtoLCTXY_1__85->SetBinContent(60,0.0076317);
   SegtoLCTXY_1__85->SetBinContent(61,0.007173798);
   SegtoLCTXY_1__85->SetBinContent(62,0.007326432);
   SegtoLCTXY_1__85->SetBinContent(63,0.008547504);
   SegtoLCTXY_1__85->SetBinContent(64,0.0076317);
   SegtoLCTXY_1__85->SetBinContent(65,0.005800092);
   SegtoLCTXY_1__85->SetBinContent(66,0.006715896);
   SegtoLCTXY_1__85->SetBinContent(67,0.006410628);
   SegtoLCTXY_1__85->SetBinContent(68,0.006257994);
   SegtoLCTXY_1__85->SetBinContent(69,0.004884288);
   SegtoLCTXY_1__85->SetBinContent(70,0.005647458);
   SegtoLCTXY_1__85->SetBinContent(71,0.00610536);
   SegtoLCTXY_1__85->SetBinContent(72,0.005952726);
   SegtoLCTXY_1__85->SetBinContent(73,0.006257994);
   SegtoLCTXY_1__85->SetBinContent(74,0.005647458);
   SegtoLCTXY_1__85->SetBinContent(75,0.005647458);
   SegtoLCTXY_1__85->SetBinContent(76,0.004121118);
   SegtoLCTXY_1__85->SetBinContent(77,0.005800092);
   SegtoLCTXY_1__85->SetBinContent(78,0.004731654);
   SegtoLCTXY_1__85->SetBinContent(79,0.005189556);
   SegtoLCTXY_1__85->SetBinContent(80,0.00381585);
   SegtoLCTXY_1__85->SetBinContent(81,0.00381585);
   SegtoLCTXY_1__85->SetBinContent(82,0.004731654);
   SegtoLCTXY_1__85->SetBinContent(83,0.003510582);
   SegtoLCTXY_1__85->SetBinContent(84,0.00228951);
   SegtoLCTXY_1__85->SetBinContent(85,0.003663216);
   SegtoLCTXY_1__85->SetBinContent(86,0.00305268);
   SegtoLCTXY_1__85->SetBinContent(87,0.00305268);
   SegtoLCTXY_1__85->SetBinContent(88,0.003968484);
   SegtoLCTXY_1__85->SetBinContent(89,0.002594778);
   SegtoLCTXY_1__85->SetBinContent(90,0.002747412);
   SegtoLCTXY_1__85->SetBinContent(91,0.003510582);
   SegtoLCTXY_1__85->SetBinContent(92,0.00457902);
   SegtoLCTXY_1__85->SetBinContent(93,0.003968484);
   SegtoLCTXY_1__85->SetBinContent(94,0.003205314);
   SegtoLCTXY_1__85->SetBinContent(95,0.002442144);
   SegtoLCTXY_1__85->SetBinContent(96,0.00152634);
   SegtoLCTXY_1__85->SetBinContent(97,0.003510582);
   SegtoLCTXY_1__85->SetBinContent(98,0.00228951);
   SegtoLCTXY_1__85->SetBinContent(99,0.002900046);
   SegtoLCTXY_1__85->SetBinContent(100,0.002594778);
   SegtoLCTXY_1__85->SetBinContent(101,3.150366);
   SegtoLCTXY_1__85->SetMinimum(0.02);
   SegtoLCTXY_1__85->SetMaximum(50);
   SegtoLCTXY_1__85->SetEntries(675802);
   SegtoLCTXY_1__85->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ff00ff");
   SegtoLCTXY_1__85->SetLineColor(ci);

   ci = TColor::GetColor("#ff00ff");
   SegtoLCTXY_1__85->SetMarkerColor(ci);
   SegtoLCTXY_1__85->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_1__85->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_1__85->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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 *SegtoLCTXY_2__86 = new TH1D("SegtoLCTXY_2__86","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_2__86->SetBinContent(3,76.44607);
   SegtoLCTXY_2__86->SetBinContent(4,5.271144);
   SegtoLCTXY_2__86->SetBinContent(5,5.67833);
   SegtoLCTXY_2__86->SetBinContent(6,4.51483);
   SegtoLCTXY_2__86->SetBinContent(7,4.60394);
   SegtoLCTXY_2__86->SetBinContent(8,1.003945);
   SegtoLCTXY_2__86->SetBinContent(9,0.3444826);
   SegtoLCTXY_2__86->SetBinContent(10,0.2705113);
   SegtoLCTXY_2__86->SetBinContent(11,0.2361921);
   SegtoLCTXY_2__86->SetBinContent(12,0.1676396);
   SegtoLCTXY_2__86->SetBinContent(13,0.1201604);
   SegtoLCTXY_2__86->SetBinContent(14,0.09788296);
   SegtoLCTXY_2__86->SetBinContent(15,0.07551954);
   SegtoLCTXY_2__86->SetBinContent(16,0.07018673);
   SegtoLCTXY_2__86->SetBinContent(17,0.06425182);
   SegtoLCTXY_2__86->SetBinContent(18,0.06003717);
   SegtoLCTXY_2__86->SetBinContent(19,0.04833939);
   SegtoLCTXY_2__86->SetBinContent(20,0.04395272);
   SegtoLCTXY_2__86->SetBinContent(21,0.03896395);
   SegtoLCTXY_2__86->SetBinContent(22,0.03681363);
   SegtoLCTXY_2__86->SetBinContent(23,0.03715768);
   SegtoLCTXY_2__86->SetBinContent(24,0.02950251);
   SegtoLCTXY_2__86->SetBinContent(25,0.03044865);
   SegtoLCTXY_2__86->SetBinContent(26,0.02915846);
   SegtoLCTXY_2__86->SetBinContent(27,0.02718015);
   SegtoLCTXY_2__86->SetBinContent(28,0.02391165);
   SegtoLCTXY_2__86->SetBinContent(29,0.02262146);
   SegtoLCTXY_2__86->SetBinContent(30,0.02305152);
   SegtoLCTXY_2__86->SetBinContent(31,0.02236342);
   SegtoLCTXY_2__86->SetBinContent(32,0.02012708);
   SegtoLCTXY_2__86->SetBinContent(33,0.02064315);
   SegtoLCTXY_2__86->SetBinContent(34,0.01866485);
   SegtoLCTXY_2__86->SetBinContent(35,0.01754668);
   SegtoLCTXY_2__86->SetBinContent(36,0.01711662);
   SegtoLCTXY_2__86->SetBinContent(37,0.0202991);
   SegtoLCTXY_2__86->SetBinContent(38,0.01668655);
   SegtoLCTXY_2__86->SetBinContent(39,0.0150523);
   SegtoLCTXY_2__86->SetBinContent(40,0.01599844);
   SegtoLCTXY_2__86->SetBinContent(41,0.01539635);
   SegtoLCTXY_2__86->SetBinContent(42,0.01488027);
   SegtoLCTXY_2__86->SetBinContent(43,0.01496629);
   SegtoLCTXY_2__86->SetBinContent(44,0.01582642);
   SegtoLCTXY_2__86->SetBinContent(45,0.01522433);
   SegtoLCTXY_2__86->SetBinContent(46,0.01316001);
   SegtoLCTXY_2__86->SetBinContent(47,0.009891512);
   SegtoLCTXY_2__86->SetBinContent(48,0.0110957);
   SegtoLCTXY_2__86->SetBinContent(49,0.01281596);
   SegtoLCTXY_2__86->SetBinContent(50,0.01221387);
   SegtoLCTXY_2__86->SetBinContent(51,0.00903138);
   SegtoLCTXY_2__86->SetBinContent(52,0.009805498);
   SegtoLCTXY_2__86->SetBinContent(53,0.00928942);
   SegtoLCTXY_2__86->SetBinContent(54,0.009117393);
   SegtoLCTXY_2__86->SetBinContent(55,0.009891512);
   SegtoLCTXY_2__86->SetBinContent(56,0.009719485);
   SegtoLCTXY_2__86->SetBinContent(57,0.0104936);
   SegtoLCTXY_2__86->SetBinContent(58,0.007741183);
   SegtoLCTXY_2__86->SetBinContent(59,0.006967065);
   SegtoLCTXY_2__86->SetBinContent(60,0.007225104);
   SegtoLCTXY_2__86->SetBinContent(61,0.008343275);
   SegtoLCTXY_2__86->SetBinContent(62,0.007139091);
   SegtoLCTXY_2__86->SetBinContent(63,0.008429288);
   SegtoLCTXY_2__86->SetBinContent(64,0.007569157);
   SegtoLCTXY_2__86->SetBinContent(65,0.006709025);
   SegtoLCTXY_2__86->SetBinContent(66,0.005332815);
   SegtoLCTXY_2__86->SetBinContent(67,0.006709025);
   SegtoLCTXY_2__86->SetBinContent(68,0.005418828);
   SegtoLCTXY_2__86->SetBinContent(69,0.005246802);
   SegtoLCTXY_2__86->SetBinContent(70,0.005762881);
   SegtoLCTXY_2__86->SetBinContent(71,0.006106933);
   SegtoLCTXY_2__86->SetBinContent(72,0.003096473);
   SegtoLCTXY_2__86->SetBinContent(73,0.00438667);
   SegtoLCTXY_2__86->SetBinContent(74,0.005848894);
   SegtoLCTXY_2__86->SetBinContent(75,0.004558697);
   SegtoLCTXY_2__86->SetBinContent(76,0.004042618);
   SegtoLCTXY_2__86->SetBinContent(77,0.003698565);
   SegtoLCTXY_2__86->SetBinContent(78,0.003698565);
   SegtoLCTXY_2__86->SetBinContent(79,0.003698565);
   SegtoLCTXY_2__86->SetBinContent(80,0.003698565);
   SegtoLCTXY_2__86->SetBinContent(81,0.00464471);
   SegtoLCTXY_2__86->SetBinContent(82,0.003182486);
   SegtoLCTXY_2__86->SetBinContent(83,0.004988762);
   SegtoLCTXY_2__86->SetBinContent(84,0.004816736);
   SegtoLCTXY_2__86->SetBinContent(85,0.003698565);
   SegtoLCTXY_2__86->SetBinContent(86,0.003354513);
   SegtoLCTXY_2__86->SetBinContent(87,0.004042618);
   SegtoLCTXY_2__86->SetBinContent(88,0.003956605);
   SegtoLCTXY_2__86->SetBinContent(89,0.003784578);
   SegtoLCTXY_2__86->SetBinContent(90,0.003440526);
   SegtoLCTXY_2__86->SetBinContent(91,0.002838434);
   SegtoLCTXY_2__86->SetBinContent(92,0.002838434);
   SegtoLCTXY_2__86->SetBinContent(93,0.002150329);
   SegtoLCTXY_2__86->SetBinContent(94,0.002924447);
   SegtoLCTXY_2__86->SetBinContent(95,0.001548237);
   SegtoLCTXY_2__86->SetBinContent(96,0.002236342);
   SegtoLCTXY_2__86->SetBinContent(97,0.003268499);
   SegtoLCTXY_2__86->SetBinContent(98,0.002150329);
   SegtoLCTXY_2__86->SetBinContent(99,0.00301046);
   SegtoLCTXY_2__86->SetBinContent(100,0.002150329);
   SegtoLCTXY_2__86->SetBinContent(101,1.954907);
   SegtoLCTXY_2__86->SetEntries(1185341);
   SegtoLCTXY_2__86->SetStats(0);

   ci = TColor::GetColor("#ff9999");
   SegtoLCTXY_2__86->SetLineColor(ci);

   ci = TColor::GetColor("#ff9999");
   SegtoLCTXY_2__86->SetMarkerColor(ci);
   SegtoLCTXY_2__86->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_2__86->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_2__86->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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 *SegtoLCTXY_3__87 = new TH1D("SegtoLCTXY_3__87","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_3__87->SetBinContent(3,50.56854);
   SegtoLCTXY_3__87->SetBinContent(4,13.86303);
   SegtoLCTXY_3__87->SetBinContent(5,6.472335);
   SegtoLCTXY_3__87->SetBinContent(6,10.78688);
   SegtoLCTXY_3__87->SetBinContent(7,6.78122);
   SegtoLCTXY_3__87->SetBinContent(8,3.510199);
   SegtoLCTXY_3__87->SetBinContent(9,2.522907);
   SegtoLCTXY_3__87->SetBinContent(10,1.416674);
   SegtoLCTXY_3__87->SetBinContent(11,1.218179);
   SegtoLCTXY_3__87->SetBinContent(12,1.073842);
   SegtoLCTXY_3__87->SetBinContent(13,0.418757);
   SegtoLCTXY_3__87->SetBinContent(14,0.2168933);
   SegtoLCTXY_3__87->SetBinContent(15,0.1326755);
   SegtoLCTXY_3__87->SetBinContent(16,0.1005431);
   SegtoLCTXY_3__87->SetBinContent(17,0.07307517);
   SegtoLCTXY_3__87->SetBinContent(18,0.05286289);
   SegtoLCTXY_3__87->SetBinContent(19,0.05234462);
   SegtoLCTXY_3__87->SetBinContent(20,0.04301588);
   SegtoLCTXY_3__87->SetBinContent(21,0.03187321);
   SegtoLCTXY_3__87->SetBinContent(22,0.03290974);
   SegtoLCTXY_3__87->SetBinContent(23,0.02746797);
   SegtoLCTXY_3__87->SetBinContent(24,0.02461752);
   SegtoLCTXY_3__87->SetBinContent(25,0.02617231);
   SegtoLCTXY_3__87->SetBinContent(26,0.0277271);
   SegtoLCTXY_3__87->SetBinContent(27,0.02824537);
   SegtoLCTXY_3__87->SetBinContent(28,0.01684357);
   SegtoLCTXY_3__87->SetBinContent(29,0.01528878);
   SegtoLCTXY_3__87->SetBinContent(30,0.01788009);
   SegtoLCTXY_3__87->SetBinContent(31,0.01813923);
   SegtoLCTXY_3__87->SetBinContent(32,0.0171027);
   SegtoLCTXY_3__87->SetBinContent(33,0.01399312);
   SegtoLCTXY_3__87->SetBinContent(34,0.01477051);
   SegtoLCTXY_3__87->SetBinContent(35,0.01347485);
   SegtoLCTXY_3__87->SetBinContent(36,0.009587877);
   SegtoLCTXY_3__87->SetBinContent(37,0.01373399);
   SegtoLCTXY_3__87->SetBinContent(38,0.01217919);
   SegtoLCTXY_3__87->SetBinContent(39,0.01114267);
   SegtoLCTXY_3__87->SetBinContent(40,0.01010614);
   SegtoLCTXY_3__87->SetBinContent(41,0.0114018);
   SegtoLCTXY_3__87->SetBinContent(42,0.01192006);
   SegtoLCTXY_3__87->SetBinContent(43,0.01088354);
   SegtoLCTXY_3__87->SetBinContent(44,0.009847009);
   SegtoLCTXY_3__87->SetBinContent(45,0.01114267);
   SegtoLCTXY_3__87->SetBinContent(46,0.009587877);
   SegtoLCTXY_3__87->SetBinContent(47,0.007773954);
   SegtoLCTXY_3__87->SetBinContent(48,0.008810481);
   SegtoLCTXY_3__87->SetBinContent(49,0.007255691);
   SegtoLCTXY_3__87->SetBinContent(50,0.009587877);
   SegtoLCTXY_3__87->SetBinContent(51,0.0057009);
   SegtoLCTXY_3__87->SetBinContent(52,0.007773954);
   SegtoLCTXY_3__87->SetBinContent(53,0.006219163);
   SegtoLCTXY_3__87->SetBinContent(54,0.004664372);
   SegtoLCTXY_3__87->SetBinContent(55,0.006737427);
   SegtoLCTXY_3__87->SetBinContent(56,0.004146109);
   SegtoLCTXY_3__87->SetBinContent(57,0.005182636);
   SegtoLCTXY_3__87->SetBinContent(58,0.006737427);
   SegtoLCTXY_3__87->SetBinContent(59,0.005960032);
   SegtoLCTXY_3__87->SetBinContent(60,0.005182636);
   SegtoLCTXY_3__87->SetBinContent(61,0.005182636);
   SegtoLCTXY_3__87->SetBinContent(62,0.005441768);
   SegtoLCTXY_3__87->SetBinContent(63,0.006478295);
   SegtoLCTXY_3__87->SetBinContent(64,0.004146109);
   SegtoLCTXY_3__87->SetBinContent(65,0.004146109);
   SegtoLCTXY_3__87->SetBinContent(66,0.004664372);
   SegtoLCTXY_3__87->SetBinContent(67,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(68,0.005182636);
   SegtoLCTXY_3__87->SetBinContent(69,0.006478295);
   SegtoLCTXY_3__87->SetBinContent(70,0.004923504);
   SegtoLCTXY_3__87->SetBinContent(71,0.004146109);
   SegtoLCTXY_3__87->SetBinContent(72,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(73,0.003627845);
   SegtoLCTXY_3__87->SetBinContent(74,0.0057009);
   SegtoLCTXY_3__87->SetBinContent(75,0.004664372);
   SegtoLCTXY_3__87->SetBinContent(76,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(77,0.004405241);
   SegtoLCTXY_3__87->SetBinContent(78,0.004664372);
   SegtoLCTXY_3__87->SetBinContent(79,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(80,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(81,0.0057009);
   SegtoLCTXY_3__87->SetBinContent(82,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(83,0.002332186);
   SegtoLCTXY_3__87->SetBinContent(84,0.004405241);
   SegtoLCTXY_3__87->SetBinContent(85,0.003627845);
   SegtoLCTXY_3__87->SetBinContent(86,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(87,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(88,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(89,0.003886977);
   SegtoLCTXY_3__87->SetBinContent(90,0.003627845);
   SegtoLCTXY_3__87->SetBinContent(91,0.002332186);
   SegtoLCTXY_3__87->SetBinContent(92,0.003109582);
   SegtoLCTXY_3__87->SetBinContent(93,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(94,0.004664372);
   SegtoLCTXY_3__87->SetBinContent(95,0.00285045);
   SegtoLCTXY_3__87->SetBinContent(96,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(97,0.001036527);
   SegtoLCTXY_3__87->SetBinContent(98,0.002591318);
   SegtoLCTXY_3__87->SetBinContent(99,0.003109582);
   SegtoLCTXY_3__87->SetBinContent(100,0.00285045);
   SegtoLCTXY_3__87->SetBinContent(101,0.9567146);
   SegtoLCTXY_3__87->SetEntries(389596);
   SegtoLCTXY_3__87->SetStats(0);
   SegtoLCTXY_3__87->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_3__87->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_3__87->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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 *SegtoLCTXY_4__88 = new TH1D("SegtoLCTXY_4__88","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_4__88->SetBinContent(3,69.67343);
   SegtoLCTXY_4__88->SetBinContent(4,9.36773);
   SegtoLCTXY_4__88->SetBinContent(5,7.842806);
   SegtoLCTXY_4__88->SetBinContent(6,3.823261);
   SegtoLCTXY_4__88->SetBinContent(7,2.984367);
   SegtoLCTXY_4__88->SetBinContent(8,1.160144);
   SegtoLCTXY_4__88->SetBinContent(9,2.364835);
   SegtoLCTXY_4__88->SetBinContent(10,0.8711254);
   SegtoLCTXY_4__88->SetBinContent(11,0.533223);
   SegtoLCTXY_4__88->SetBinContent(12,0.3724904);
   SegtoLCTXY_4__88->SetBinContent(13,0.1784549);
   SegtoLCTXY_4__88->SetBinContent(14,0.1092789);
   SegtoLCTXY_4__88->SetBinContent(15,0.08566691);
   SegtoLCTXY_4__88->SetBinContent(16,0.06826582);
   SegtoLCTXY_4__88->SetBinContent(17,0.05375599);
   SegtoLCTXY_4__88->SetBinContent(18,0.04486804);
   SegtoLCTXY_4__88->SetBinContent(19,0.03806823);
   SegtoLCTXY_4__88->SetBinContent(20,0.03201801);
   SegtoLCTXY_4__88->SetBinContent(21,0.02950154);
   SegtoLCTXY_4__88->SetBinContent(22,0.02553945);
   SegtoLCTXY_4__88->SetBinContent(23,0.02002464);
   SegtoLCTXY_4__88->SetBinContent(24,0.01804359);
   SegtoLCTXY_4__88->SetBinContent(25,0.01761526);
   SegtoLCTXY_4__88->SetBinContent(26,0.01461692);
   SegtoLCTXY_4__88->SetBinContent(27,0.01359962);
   SegtoLCTXY_4__88->SetBinContent(28,0.01108316);
   SegtoLCTXY_4__88->SetBinContent(29,0.01322483);
   SegtoLCTXY_4__88->SetBinContent(30,0.009958778);
   SegtoLCTXY_4__88->SetBinContent(31,0.008995025);
   SegtoLCTXY_4__88->SetBinContent(32,0.009316276);
   SegtoLCTXY_4__88->SetBinContent(33,0.009048567);
   SegtoLCTXY_4__88->SetBinContent(34,0.008780858);
   SegtoLCTXY_4__88->SetBinContent(35,0.007549396);
   SegtoLCTXY_4__88->SetBinContent(36,0.007817105);
   SegtoLCTXY_4__88->SetBinContent(37,0.006639185);
   SegtoLCTXY_4__88->SetBinContent(38,0.007549396);
   SegtoLCTXY_4__88->SetBinContent(39,0.005943142);
   SegtoLCTXY_4__88->SetBinContent(40,0.0058896);
   SegtoLCTXY_4__88->SetBinContent(41,0.004872305);
   SegtoLCTXY_4__88->SetBinContent(42,0.004229804);
   SegtoLCTXY_4__88->SetBinContent(43,0.004443971);
   SegtoLCTXY_4__88->SetBinContent(44,0.004336887);
   SegtoLCTXY_4__88->SetBinContent(45,0.004604596);
   SegtoLCTXY_4__88->SetBinContent(46,0.004658138);
   SegtoLCTXY_4__88->SetBinContent(47,0.003747927);
   SegtoLCTXY_4__88->SetBinContent(48,0.003426676);
   SegtoLCTXY_4__88->SetBinContent(49,0.003801469);
   SegtoLCTXY_4__88->SetBinContent(50,0.003319593);
   SegtoLCTXY_4__88->SetBinContent(51,0.003480218);
   SegtoLCTXY_4__88->SetBinContent(52,0.003694385);
   SegtoLCTXY_4__88->SetBinContent(53,0.002891258);
   SegtoLCTXY_4__88->SetBinContent(54,0.003747927);
   SegtoLCTXY_4__88->SetBinContent(55,0.002784175);
   SegtoLCTXY_4__88->SetBinContent(56,0.00235584);
   SegtoLCTXY_4__88->SetBinContent(57,0.003587302);
   SegtoLCTXY_4__88->SetBinContent(58,0.002623549);
   SegtoLCTXY_4__88->SetBinContent(59,0.003212509);
   SegtoLCTXY_4__88->SetBinContent(60,0.002570007);
   SegtoLCTXY_4__88->SetBinContent(61,0.002409382);
   SegtoLCTXY_4__88->SetBinContent(62,0.002837716);
   SegtoLCTXY_4__88->SetBinContent(63,0.002409382);
   SegtoLCTXY_4__88->SetBinContent(64,0.002302298);
   SegtoLCTXY_4__88->SetBinContent(65,0.001927505);
   SegtoLCTXY_4__88->SetBinContent(66,0.002034589);
   SegtoLCTXY_4__88->SetBinContent(67,0.001873964);
   SegtoLCTXY_4__88->SetBinContent(68,0.001552713);
   SegtoLCTXY_4__88->SetBinContent(69,0.002837716);
   SegtoLCTXY_4__88->SetBinContent(70,0.002409382);
   SegtoLCTXY_4__88->SetBinContent(71,0.001499171);
   SegtoLCTXY_4__88->SetBinContent(72,0.001927505);
   SegtoLCTXY_4__88->SetBinContent(73,0.002088131);
   SegtoLCTXY_4__88->SetBinContent(74,0.001713338);
   SegtoLCTXY_4__88->SetBinContent(75,0.001981047);
   SegtoLCTXY_4__88->SetBinContent(76,0.002302298);
   SegtoLCTXY_4__88->SetBinContent(77,0.001606255);
   SegtoLCTXY_4__88->SetBinContent(78,0.001873964);
   SegtoLCTXY_4__88->SetBinContent(79,0.002302298);
   SegtoLCTXY_4__88->SetBinContent(80,0.001231462);
   SegtoLCTXY_4__88->SetBinContent(81,0.001927505);
   SegtoLCTXY_4__88->SetBinContent(82,0.001927505);
   SegtoLCTXY_4__88->SetBinContent(83,0.001499171);
   SegtoLCTXY_4__88->SetBinContent(84,0.002248756);
   SegtoLCTXY_4__88->SetBinContent(85,0.001338545);
   SegtoLCTXY_4__88->SetBinContent(86,0.001873964);
   SegtoLCTXY_4__88->SetBinContent(87,0.001606255);
   SegtoLCTXY_4__88->SetBinContent(88,0.001392087);
   SegtoLCTXY_4__88->SetBinContent(89,0.001017295);
   SegtoLCTXY_4__88->SetBinContent(90,0.001285004);
   SegtoLCTXY_4__88->SetBinContent(91,0.001499171);
   SegtoLCTXY_4__88->SetBinContent(92,0.001820422);
   SegtoLCTXY_4__88->SetBinContent(93,0.002034589);
   SegtoLCTXY_4__88->SetBinContent(94,0.001231462);
   SegtoLCTXY_4__88->SetBinContent(95,0.001499171);
   SegtoLCTXY_4__88->SetBinContent(96,0.00117792);
   SegtoLCTXY_4__88->SetBinContent(97,0.001873964);
   SegtoLCTXY_4__88->SetBinContent(98,0.001499171);
   SegtoLCTXY_4__88->SetBinContent(99,0.00176688);
   SegtoLCTXY_4__88->SetBinContent(100,0.001445629);
   SegtoLCTXY_4__88->SetBinContent(101,1.231783);
   SegtoLCTXY_4__88->SetEntries(1890705);
   SegtoLCTXY_4__88->SetStats(0);

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

   ci = TColor::GetColor("#ff0000");
   SegtoLCTXY_4__88->SetMarkerColor(ci);
   SegtoLCTXY_4__88->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_4__88->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_4__88->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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 *SegtoLCTXY_5__89 = new TH1D("SegtoLCTXY_5__89","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_5__89->SetBinContent(3,63.282);
   SegtoLCTXY_5__89->SetBinContent(4,11.41746);
   SegtoLCTXY_5__89->SetBinContent(5,9.348075);
   SegtoLCTXY_5__89->SetBinContent(6,4.156944);
   SegtoLCTXY_5__89->SetBinContent(7,4.457318);
   SegtoLCTXY_5__89->SetBinContent(8,2.223664);
   SegtoLCTXY_5__89->SetBinContent(9,3.338355);
   SegtoLCTXY_5__89->SetBinContent(10,0.5627393);
   SegtoLCTXY_5__89->SetBinContent(11,0.2315969);
   SegtoLCTXY_5__89->SetBinContent(12,0.1500059);
   SegtoLCTXY_5__89->SetBinContent(13,0.1137352);
   SegtoLCTXY_5__89->SetBinContent(14,0.09027865);
   SegtoLCTXY_5__89->SetBinContent(15,0.07123832);
   SegtoLCTXY_5__89->SetBinContent(16,0.0608856);
   SegtoLCTXY_5__89->SetBinContent(17,0.0478542);
   SegtoLCTXY_5__89->SetBinContent(18,0.04314842);
   SegtoLCTXY_5__89->SetBinContent(19,0.03663272);
   SegtoLCTXY_5__89->SetBinContent(20,0.02859668);
   SegtoLCTXY_5__89->SetBinContent(21,0.02671437);
   SegtoLCTXY_5__89->SetBinContent(22,0.02468726);
   SegtoLCTXY_5__89->SetBinContent(23,0.02135702);
   SegtoLCTXY_5__89->SetBinContent(24,0.02041586);
   SegtoLCTXY_5__89->SetBinContent(25,0.02005388);
   SegtoLCTXY_5__89->SetBinContent(26,0.01657884);
   SegtoLCTXY_5__89->SetBinContent(27,0.01187305);
   SegtoLCTXY_5__89->SetBinContent(28,0.01158347);
   SegtoLCTXY_5__89->SetBinContent(29,0.01006314);
   SegtoLCTXY_5__89->SetBinContent(30,0.00933917);
   SegtoLCTXY_5__89->SetBinContent(31,0.009049584);
   SegtoLCTXY_5__89->SetBinContent(32,0.007312064);
   SegtoLCTXY_5__89->SetBinContent(33,0.008542807);
   SegtoLCTXY_5__89->SetBinContent(34,0.006443304);
   SegtoLCTXY_5__89->SetBinContent(35,0.006153717);
   SegtoLCTXY_5__89->SetBinContent(36,0.00564694);
   SegtoLCTXY_5__89->SetBinContent(37,0.004633387);
   SegtoLCTXY_5__89->SetBinContent(38,0.004271404);
   SegtoLCTXY_5__89->SetBinContent(39,0.004850577);
   SegtoLCTXY_5__89->SetBinContent(40,0.004488594);
   SegtoLCTXY_5__89->SetBinContent(41,0.004850577);
   SegtoLCTXY_5__89->SetBinContent(42,0.003837024);
   SegtoLCTXY_5__89->SetBinContent(43,0.003185453);
   SegtoLCTXY_5__89->SetBinContent(44,0.002968263);
   SegtoLCTXY_5__89->SetBinContent(45,0.00412661);
   SegtoLCTXY_5__89->SetBinContent(46,0.00282347);
   SegtoLCTXY_5__89->SetBinContent(47,0.002751073);
   SegtoLCTXY_5__89->SetBinContent(48,0.00282347);
   SegtoLCTXY_5__89->SetBinContent(49,0.003837024);
   SegtoLCTXY_5__89->SetBinContent(50,0.002533883);
   SegtoLCTXY_5__89->SetBinContent(51,0.003113057);
   SegtoLCTXY_5__89->SetBinContent(52,0.002461487);
   SegtoLCTXY_5__89->SetBinContent(53,0.002461487);
   SegtoLCTXY_5__89->SetBinContent(54,0.002099503);
   SegtoLCTXY_5__89->SetBinContent(55,0.00238909);
   SegtoLCTXY_5__89->SetBinContent(56,0.002099503);
   SegtoLCTXY_5__89->SetBinContent(57,0.002316693);
   SegtoLCTXY_5__89->SetBinContent(58,0.002099503);
   SegtoLCTXY_5__89->SetBinContent(59,0.002461487);
   SegtoLCTXY_5__89->SetBinContent(60,0.001592727);
   SegtoLCTXY_5__89->SetBinContent(61,0.00195471);
   SegtoLCTXY_5__89->SetBinContent(62,0.002244297);
   SegtoLCTXY_5__89->SetBinContent(63,0.00195471);
   SegtoLCTXY_5__89->SetBinContent(64,0.00195471);
   SegtoLCTXY_5__89->SetBinContent(65,0.001375537);
   SegtoLCTXY_5__89->SetBinContent(66,0.002027107);
   SegtoLCTXY_5__89->SetBinContent(67,0.001447933);
   SegtoLCTXY_5__89->SetBinContent(68,0.001375537);
   SegtoLCTXY_5__89->SetBinContent(69,0.001882313);
   SegtoLCTXY_5__89->SetBinContent(70,0.00086876);
   SegtoLCTXY_5__89->SetBinContent(71,0.001230743);
   SegtoLCTXY_5__89->SetBinContent(72,0.00152033);
   SegtoLCTXY_5__89->SetBinContent(73,0.001013553);
   SegtoLCTXY_5__89->SetBinContent(74,0.00152033);
   SegtoLCTXY_5__89->SetBinContent(75,0.00108595);
   SegtoLCTXY_5__89->SetBinContent(76,0.001375537);
   SegtoLCTXY_5__89->SetBinContent(77,0.00130314);
   SegtoLCTXY_5__89->SetBinContent(78,0.001230743);
   SegtoLCTXY_5__89->SetBinContent(79,0.00130314);
   SegtoLCTXY_5__89->SetBinContent(80,0.001447933);
   SegtoLCTXY_5__89->SetBinContent(81,0.001013553);
   SegtoLCTXY_5__89->SetBinContent(82,0.0005791734);
   SegtoLCTXY_5__89->SetBinContent(83,0.0007963634);
   SegtoLCTXY_5__89->SetBinContent(84,0.001013553);
   SegtoLCTXY_5__89->SetBinContent(85,0.001013553);
   SegtoLCTXY_5__89->SetBinContent(86,0.00086876);
   SegtoLCTXY_5__89->SetBinContent(87,0.0009411567);
   SegtoLCTXY_5__89->SetBinContent(88,0.0007239667);
   SegtoLCTXY_5__89->SetBinContent(89,0.0009411567);
   SegtoLCTXY_5__89->SetBinContent(90,0.00086876);
   SegtoLCTXY_5__89->SetBinContent(91,0.0009411567);
   SegtoLCTXY_5__89->SetBinContent(92,0.00086876);
   SegtoLCTXY_5__89->SetBinContent(93,0.001158347);
   SegtoLCTXY_5__89->SetBinContent(94,0.001013553);
   SegtoLCTXY_5__89->SetBinContent(95,0.00086876);
   SegtoLCTXY_5__89->SetBinContent(96,0.00108595);
   SegtoLCTXY_5__89->SetBinContent(97,0.0007239667);
   SegtoLCTXY_5__89->SetBinContent(98,0.00130314);
   SegtoLCTXY_5__89->SetBinContent(99,0.0009411567);
   SegtoLCTXY_5__89->SetBinContent(100,0.0007963634);
   SegtoLCTXY_5__89->SetBinContent(101,0.9719253);
   SegtoLCTXY_5__89->SetEntries(1394704);
   SegtoLCTXY_5__89->SetStats(0);

   ci = TColor::GetColor("#00ff00");
   SegtoLCTXY_5__89->SetLineColor(ci);

   ci = TColor::GetColor("#00ff00");
   SegtoLCTXY_5__89->SetMarkerColor(ci);
   SegtoLCTXY_5__89->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_5__89->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_5__89->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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 *SegtoLCTXY_6__90 = new TH1D("SegtoLCTXY_6__90","SegtoLCTXY",100,-1,40);
   SegtoLCTXY_6__90->SetBinContent(3,58.76496);
   SegtoLCTXY_6__90->SetBinContent(4,11.83379);
   SegtoLCTXY_6__90->SetBinContent(5,10.59451);
   SegtoLCTXY_6__90->SetBinContent(6,3.901292);
   SegtoLCTXY_6__90->SetBinContent(7,5.929365);
   SegtoLCTXY_6__90->SetBinContent(8,2.829106);
   SegtoLCTXY_6__90->SetBinContent(9,4.145586);
   SegtoLCTXY_6__90->SetBinContent(10,0.6414297);
   SegtoLCTXY_6__90->SetBinContent(11,0.2611946);
   SegtoLCTXY_6__90->SetBinContent(12,0.1720285);
   SegtoLCTXY_6__90->SetBinContent(13,0.1303689);
   SegtoLCTXY_6__90->SetBinContent(14,0.1024131);
   SegtoLCTXY_6__90->SetBinContent(15,0.08249694);
   SegtoLCTXY_6__90->SetBinContent(16,0.06897585);
   SegtoLCTXY_6__90->SetBinContent(17,0.05618563);
   SegtoLCTXY_6__90->SetBinContent(18,0.04732383);
   SegtoLCTXY_6__90->SetBinContent(19,0.04129415);
   SegtoLCTXY_6__90->SetBinContent(20,0.03197556);
   SegtoLCTXY_6__90->SetBinContent(21,0.02941751);
   SegtoLCTXY_6__90->SetBinContent(22,0.02786442);
   SegtoLCTXY_6__90->SetBinContent(23,0.02494094);
   SegtoLCTXY_6__90->SetBinContent(24,0.01991621);
   SegtoLCTXY_6__90->SetBinContent(25,0.01918534);
   SegtoLCTXY_6__90->SetBinContent(26,0.01991621);
   SegtoLCTXY_6__90->SetBinContent(27,0.01342974);
   SegtoLCTXY_6__90->SetBinContent(28,0.01397789);
   SegtoLCTXY_6__90->SetBinContent(29,0.0115112);
   SegtoLCTXY_6__90->SetBinContent(30,0.01004946);
   SegtoLCTXY_6__90->SetBinContent(31,0.006577829);
   SegtoLCTXY_6__90->SetBinContent(32,0.008953157);
   SegtoLCTXY_6__90->SetBinContent(33,0.007217341);
   SegtoLCTXY_6__90->SetBinContent(34,0.007400058);
   SegtoLCTXY_6__90->SetBinContent(35,0.007765493);
   SegtoLCTXY_6__90->SetBinContent(36,0.005664242);
   SegtoLCTXY_6__90->SetBinContent(37,0.005024731);
   SegtoLCTXY_6__90->SetBinContent(38,0.005298807);
   SegtoLCTXY_6__90->SetBinContent(39,0.005298807);
   SegtoLCTXY_6__90->SetBinContent(40,0.003562991);
   SegtoLCTXY_6__90->SetBinContent(41,0.004111143);
   SegtoLCTXY_6__90->SetBinContent(42,0.005664242);
   SegtoLCTXY_6__90->SetBinContent(43,0.003288915);
   SegtoLCTXY_6__90->SetBinContent(44,0.002740762);
   SegtoLCTXY_6__90->SetBinContent(45,0.004293861);
   SegtoLCTXY_6__90->SetBinContent(46,0.005481525);
   SegtoLCTXY_6__90->SetBinContent(47,0.002466686);
   SegtoLCTXY_6__90->SetBinContent(48,0.003014838);
   SegtoLCTXY_6__90->SetBinContent(49,0.002558045);
   SegtoLCTXY_6__90->SetBinContent(50,0.002101251);
   SegtoLCTXY_6__90->SetBinContent(51,0.004019785);
   SegtoLCTXY_6__90->SetBinContent(52,0.004293861);
   SegtoLCTXY_6__90->SetBinContent(53,0.002649404);
   SegtoLCTXY_6__90->SetBinContent(54,0.002740762);
   SegtoLCTXY_6__90->SetBinContent(55,0.002009892);
   SegtoLCTXY_6__90->SetBinContent(56,0.00219261);
   SegtoLCTXY_6__90->SetBinContent(57,0.001735816);
   SegtoLCTXY_6__90->SetBinContent(58,0.00146174);
   SegtoLCTXY_6__90->SetBinContent(59,0.002101251);
   SegtoLCTXY_6__90->SetBinContent(60,0.002283969);
   SegtoLCTXY_6__90->SetBinContent(61,0.002283969);
   SegtoLCTXY_6__90->SetBinContent(62,0.001827175);
   SegtoLCTXY_6__90->SetBinContent(63,0.002101251);
   SegtoLCTXY_6__90->SetBinContent(64,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(65,0.001370381);
   SegtoLCTXY_6__90->SetBinContent(66,0.001644457);
   SegtoLCTXY_6__90->SetBinContent(67,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(68,0.00146174);
   SegtoLCTXY_6__90->SetBinContent(69,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(70,0.001644457);
   SegtoLCTXY_6__90->SetBinContent(71,0.002375327);
   SegtoLCTXY_6__90->SetBinContent(72,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(73,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(74,0.002009892);
   SegtoLCTXY_6__90->SetBinContent(75,0.001370381);
   SegtoLCTXY_6__90->SetBinContent(76,0.001735816);
   SegtoLCTXY_6__90->SetBinContent(77,0.001004946);
   SegtoLCTXY_6__90->SetBinContent(78,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(79,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(80,0.001735816);
   SegtoLCTXY_6__90->SetBinContent(81,0.00146174);
   SegtoLCTXY_6__90->SetBinContent(82,0.0006395112);
   SegtoLCTXY_6__90->SetBinContent(83,0.001004946);
   SegtoLCTXY_6__90->SetBinContent(84,0.001370381);
   SegtoLCTXY_6__90->SetBinContent(85,0.0005481525);
   SegtoLCTXY_6__90->SetBinContent(86,0.001004946);
   SegtoLCTXY_6__90->SetBinContent(87,0.001735816);
   SegtoLCTXY_6__90->SetBinContent(88,0.0007308699);
   SegtoLCTXY_6__90->SetBinContent(89,0.00146174);
   SegtoLCTXY_6__90->SetBinContent(90,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(91,0.0008222287);
   SegtoLCTXY_6__90->SetBinContent(92,0.0007308699);
   SegtoLCTXY_6__90->SetBinContent(93,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(94,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(95,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(96,0.001370381);
   SegtoLCTXY_6__90->SetBinContent(97,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(98,0.0007308699);
   SegtoLCTXY_6__90->SetBinContent(99,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(100,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(101,0.7038277);
   SegtoLCTXY_6__90->SetEntries(1102290);
   SegtoLCTXY_6__90->SetStats(0);

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

   ci = TColor::GetColor("#0000ff");
   SegtoLCTXY_6__90->SetMarkerColor(ci);
   SegtoLCTXY_6__90->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_6__90->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_6__90->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("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","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("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","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("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","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("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","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("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","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("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.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.2981452,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("SegtoLCTXY");
   pt->Draw();
   SegtoLCTXY->Modified();
   SegtoLCTXY->cd();
   SegtoLCTXY->SetSelected(SegtoLCTXY);
}
Beispiel #10
0
plot()
{
//=========Macro generated from canvas: FigExample/FigExample
//=========  (Thu Feb 11 11:37:37 2016) by ROOT version5.34/32
   TCanvas *FigExample = new TCanvas("FigExample", "FigExample",1,23,1364,719);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   FigExample->Range(-1158.419,-0.195,8561.764,1.43);
   FigExample->SetFillColor(0);
   FigExample->SetBorderMode(0);
   FigExample->SetBorderSize(2);
   FigExample->SetLeftMargin(0.12);
   FigExample->SetRightMargin(0.04);
   FigExample->SetTopMargin(0.08);
   FigExample->SetBottomMargin(0.12);
   FigExample->SetFrameFillStyle(0);
   FigExample->SetFrameBorderMode(0);
   FigExample->SetFrameFillStyle(0);
   FigExample->SetFrameBorderMode(0);
   
   TGraphErrors *gre = new TGraphErrors(11);
   gre->SetName("Graph1");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(22);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.97914);
   gre->SetPointError(0,0,0.00119056);
   gre->SetPoint(1,10.38462,0.973453);
   gre->SetPointError(1,0,0.00225169);
   gre->SetPoint(2,23.53846,0.980456);
   gre->SetPointError(2,0,0.00126418);
   gre->SetPoint(3,43.84615,0.97976);
   gre->SetPointError(3,0,0.001007);
   gre->SetPoint(4,120.3077,0.971649);
   gre->SetPointError(4,0,0.000816721);
   gre->SetPoint(5,164.6154,0.970778);
   gre->SetPointError(5,0,0.000914539);
   gre->SetPoint(6,389.2308,0.953326);
   gre->SetPointError(6,0,0.00131593);
   gre->SetPoint(7,753.8462,0.942877);
   gre->SetPointError(7,0,0.0019686);
   gre->SetPoint(8,1266.154,0.914665);
   gre->SetPointError(8,0,0.00283506);
   gre->SetPoint(9,3400,0.867066);
   gre->SetPointError(9,0,0.00370407);
   gre->SetPoint(10,7430.769,0.807229);
   gre->SetPointError(10,0,0.0060241);
   
   TH1F *Graph_Graph_Graph116 = new TH1F("Graph_Graph_Graph116","",100,8.003077,8172.957);
   Graph_Graph_Graph116->SetMinimum(0);
   Graph_Graph_Graph116->SetMaximum(1.3);
   Graph_Graph_Graph116->SetDirectory(0);
   Graph_Graph_Graph116->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph116->SetLineColor(ci);
   Graph_Graph_Graph116->SetLineStyle(0);
   Graph_Graph_Graph116->SetMarkerStyle(20);
   Graph_Graph_Graph116->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph116->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph116->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph116->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph116->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph116->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph116->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph116->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph116->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph116->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph116->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph116->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph116->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph116->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph116->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph116);
   
   gre->Draw("pa");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph3");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(23);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.945552);
   gre->SetPointError(0,0,0.00222099);
   gre->SetPoint(1,10.38462,0.937882);
   gre->SetPointError(1,0,0.00397671);
   gre->SetPoint(2,23.53846,0.945317);
   gre->SetPointError(2,0,0.0024096);
   gre->SetPoint(3,43.84615,0.950864);
   gre->SetPointError(3,0,0.00176728);
   gre->SetPoint(4,120.3077,0.94505);
   gre->SetPointError(4,0,0.00122324);
   gre->SetPoint(5,164.6154,0.942688);
   gre->SetPointError(5,0,0.00136884);
   gre->SetPoint(6,389.2308,0.921693);
   gre->SetPointError(6,0,0.00178155);
   gre->SetPoint(7,753.8462,0.905909);
   gre->SetPointError(7,0,0.002633);
   gre->SetPoint(8,1266.154,0.891392);
   gre->SetPointError(8,0,0.00331251);
   gre->SetPoint(9,3400,0.868524);
   gre->SetPointError(9,0,0.003775);
   gre->SetPoint(10,7430.769,0.847397);
   gre->SetPointError(10,0,0.00551738);
   
   TH1F *Graph_Graph_Graph327 = new TH1F("Graph_Graph_Graph327","",100,8.003077,8172.957);
   Graph_Graph_Graph327->SetMinimum(0.8308045);
   Graph_Graph_Graph327->SetMaximum(0.9637064);
   Graph_Graph_Graph327->SetDirectory(0);
   Graph_Graph_Graph327->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph327->SetLineColor(ci);
   Graph_Graph_Graph327->SetLineStyle(0);
   Graph_Graph_Graph327->SetMarkerStyle(20);
   Graph_Graph_Graph327->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph327->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph327->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph327->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph327->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph327->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph327->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph327->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph327->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph327->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph327->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph327->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph327);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(10);
   gre->SetName("Graph4");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(26);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,10.38462,0.818118);
   gre->SetPointError(0,0,0.00652498);
   gre->SetPoint(1,23.53846,0.859551);
   gre->SetPointError(1,0,0.00371018);
   gre->SetPoint(2,43.84615,0.869325);
   gre->SetPointError(2,0,0.00275425);
   gre->SetPoint(3,120.3077,0.852496);
   gre->SetPointError(3,0,0.00191306);
   gre->SetPoint(4,164.6154,0.844565);
   gre->SetPointError(4,0,0.00214338);
   gre->SetPoint(5,389.2308,0.801642);
   gre->SetPointError(5,0,0.00267808);
   gre->SetPoint(6,753.8462,0.77863);
   gre->SetPointError(6,0,0.00379423);
   gre->SetPoint(7,1266.154,0.751091);
   gre->SetPointError(7,0,0.00470814);
   gre->SetPoint(8,3400,0.700803);
   gre->SetPointError(8,0,0.00534877);
   gre->SetPoint(9,7430.769,0.681421);
   gre->SetPointError(9,0,0.00746557);
   
   TH1F *Graph_Graph_Graph438 = new TH1F("Graph_Graph_Graph438","",100,9.346154,8172.808);
   Graph_Graph_Graph438->SetMinimum(0.654143);
   Graph_Graph_Graph438->SetMaximum(0.8918916);
   Graph_Graph_Graph438->SetDirectory(0);
   Graph_Graph_Graph438->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph438->SetLineColor(ci);
   Graph_Graph_Graph438->SetLineStyle(0);
   Graph_Graph_Graph438->SetMarkerStyle(20);
   Graph_Graph_Graph438->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph438->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph438->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph438->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph438->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph438->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph438->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph438->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph438->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph438->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph438->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph438->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph438->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph438->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph438->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph438);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph5");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(32);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.964904);
   gre->SetPointError(0,0,0.00161884);
   gre->SetPoint(1,10.38462,0.968371);
   gre->SetPointError(1,0,0.00261764);
   gre->SetPoint(2,23.53846,0.966203);
   gre->SetPointError(2,0,0.00172469);
   gre->SetPoint(3,43.84615,0.966627);
   gre->SetPointError(3,0,0.00131816);
   gre->SetPoint(4,120.3077,0.952356);
   gre->SetPointError(4,0,0.00103524);
   gre->SetPoint(5,164.6154,0.947467);
   gre->SetPointError(5,0,0.00119486);
   gre->SetPoint(6,389.2308,0.920595);
   gre->SetPointError(6,0,0.00164465);
   gre->SetPoint(7,753.8462,0.899052);
   gre->SetPointError(7,0,0.00250036);
   gre->SetPoint(8,1266.154,0.871394);
   gre->SetPointError(8,0,0.00333283);
   gre->SetPoint(9,3400,0.817966);
   gre->SetPointError(9,0,0.00415542);
   gre->SetPoint(10,7430.769,0.771213);
   gre->SetPointError(10,0,0.00633324);
   
   TH1F *Graph_Graph_Graph549 = new TH1F("Graph_Graph_Graph549","",100,8.003077,8172.957);
   Graph_Graph_Graph549->SetMinimum(0.7442689);
   Graph_Graph_Graph549->SetMaximum(0.9915995);
   Graph_Graph_Graph549->SetDirectory(0);
   Graph_Graph_Graph549->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph549->SetLineColor(ci);
   Graph_Graph_Graph549->SetLineStyle(0);
   Graph_Graph_Graph549->SetMarkerStyle(20);
   Graph_Graph_Graph549->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph549->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph549->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph549->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph549->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph549->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph549->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph549->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph549->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph549->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph549->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph549->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph549->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph549->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph549->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph549);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph6");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   gre->SetMarkerStyle(31);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.937506);
   gre->SetPointError(0,0,0.00238084);
   gre->SetPoint(1,10.38462,0.932408);
   gre->SetPointError(1,0,0.00416789);
   gre->SetPoint(2,23.53846,0.852038);
   gre->SetPointError(2,0,0.00397868);
   gre->SetPoint(3,43.84615,0.707619);
   gre->SetPointError(3,0,0.00429972);
   gre->SetPoint(4,120.3077,0.38838);
   gre->SetPointError(4,0,0.00401168);
   gre->SetPoint(5,164.6154,0.348649);
   gre->SetPointError(5,0,0.00451826);
   gre->SetPoint(6,389.2308,0.254837);
   gre->SetPointError(6,0,0.00521552);
   gre->SetPoint(7,753.8462,0.245527);
   gre->SetPointError(7,0,0.00698108);
   gre->SetPoint(8,1266.154,0.250365);
   gre->SetPointError(8,0,0.00802127);
   gre->SetPoint(9,3400,0.232597);
   gre->SetPointError(9,0,0.00840615);
   gre->SetPoint(10,7430.769,0.186328);
   gre->SetPointError(10,0,0.0117775);
   
   TH1F *Graph_Graph_Graph6510 = new TH1F("Graph_Graph_Graph6510","",100,8.003077,8172.957);
   Graph_Graph_Graph6510->SetMinimum(0.09801687);
   Graph_Graph_Graph6510->SetMaximum(1.01642);
   Graph_Graph_Graph6510->SetDirectory(0);
   Graph_Graph_Graph6510->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph6510->SetLineColor(ci);
   Graph_Graph_Graph6510->SetLineStyle(0);
   Graph_Graph_Graph6510->SetMarkerStyle(20);
   Graph_Graph_Graph6510->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph6510->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleOffset(3);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph6510->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph6510->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph6510->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph6510);
   
   gre->Draw("p&");
   TLatex *   tex = new TLatex(0.96,0.936," ");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.048);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.892,"Preliminary");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0456);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.851872,"Gas mixture : 93% TFE, 5%CO_{2}, 2%SF_{6}");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0264);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.811744,"Threshold : 0.13pC");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0264);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *Graph1 = new TH1F("Graph1","",100,8.003077,8172.957);
   Graph1->SetMinimum(0.7831534);
   Graph1->SetMaximum(0.9997717);
   Graph1->SetDirectory(0);
   Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph1->SetLineColor(ci);
   Graph1->SetLineStyle(0);
   Graph1->SetMarkerStyle(20);
   Graph1->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph1->GetXaxis()->CenterTitle(true);
   Graph1->GetXaxis()->SetLabelFont(42);
   Graph1->GetXaxis()->SetLabelOffset(0.01);
   Graph1->GetXaxis()->SetLabelSize(0.05);
   Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph1->GetXaxis()->SetTitleOffset(1.4);
   Graph1->GetXaxis()->SetTitleFont(42);
   Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph1->GetYaxis()->CenterTitle(true);
   Graph1->GetYaxis()->SetLabelFont(42);
   Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph1->GetYaxis()->SetLabelSize(0.05);
   Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph1->GetYaxis()->SetTitleOffset(0.9);
   Graph1->GetYaxis()->SetTitleFont(42);
   Graph1->GetZaxis()->SetLabelFont(42);
   Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph1->GetZaxis()->SetLabelSize(0.05);
   Graph1->GetZaxis()->SetTitleSize(0.06);
   Graph1->GetZaxis()->SetTitleFont(42);
   Graph1->Draw("sameaxis");
   
   TH1F *Graph1 = new TH1F("Graph1","",100,8.003077,8172.957);
   Graph1->SetMinimum(0.7831534);
   Graph1->SetMaximum(0.9997717);
   Graph1->SetDirectory(0);
   Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph1->SetLineColor(ci);
   Graph1->SetLineStyle(0);
   Graph1->SetMarkerStyle(20);
   Graph1->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph1->GetXaxis()->CenterTitle(true);
   Graph1->GetXaxis()->SetLabelFont(42);
   Graph1->GetXaxis()->SetLabelOffset(0.01);
   Graph1->GetXaxis()->SetLabelSize(0.05);
   Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph1->GetXaxis()->SetTitleOffset(1.4);
   Graph1->GetXaxis()->SetTitleFont(42);
   Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph1->GetYaxis()->CenterTitle(true);
   Graph1->GetYaxis()->SetLabelFont(42);
   Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph1->GetYaxis()->SetLabelSize(0.05);
   Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph1->GetYaxis()->SetTitleOffset(0.9);
   Graph1->GetYaxis()->SetTitleFont(42);
   Graph1->GetZaxis()->SetLabelFont(42);
   Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph1->GetZaxis()->SetLabelSize(0.05);
   Graph1->GetZaxis()->SetTitleSize(0.06);
   Graph1->GetZaxis()->SetTitleFont(42);
   Graph1->Draw("sameaxis");
   
   TLegend *leg = new TLegend(0.5,0.8,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.025);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("NULL","SPS test beams 06.2015","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("Graph1","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(22);
   entry->SetMarkerSize(1.5);
   entry->SetTextAlign(13);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(23);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(5);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(26);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph5","Low resistive glass RPC - 10^{10} #Omega.cm : 1,2,3,4","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(32);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph6","Float glass RPC ~10^{12}-10^{13} #Omega.cm","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(7);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(31);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   leg->Draw();
   TLine *line = new TLine(0,1,8185,1);
   line->SetLineStyle(2);
   line->Draw();
   FigExample->Modified();
   FigExample->cd();
   FigExample->SetSelected(FigExample);
}
Beispiel #11
0
void limit()
{
//=========Macro generated from canvas: limit/limit
//=========  (Thu Apr 27 14:38:33 2017) by ROOT version6.02/05
   TCanvas *limit = new TCanvas("limit", "limit",0,0,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   limit->SetHighLightColor(2);
   limit->Range(0,0,1,1);
   limit->SetFillColor(0);
   limit->SetBorderMode(0);
   limit->SetBorderSize(2);
   limit->SetLeftMargin(0.16);
   limit->SetRightMargin(0.04);
   limit->SetTopMargin(0.06);
   limit->SetBottomMargin(0.12);
   limit->SetFrameFillStyle(0);
   limit->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad
   TPad *pad = new TPad("pad", "pad",0,0,1,1);
   pad->Draw();
   pad->cd();
   pad->Range(-59.99999,-2.046818,1565,15.01);
   pad->SetFillColor(0);
   pad->SetBorderMode(0);
    pad->SetLogy();
   pad->SetBorderSize(2);
   pad->SetTickx(1);
   pad->SetTicky(1);
   pad->SetLeftMargin(0.16);
   pad->SetRightMargin(0.04);
   pad->SetTopMargin(0.06);
   pad->SetBottomMargin(0.12);
   pad->SetFrameFillStyle(0);
   pad->SetFrameBorderMode(0);
   pad->SetFrameFillStyle(0);
   pad->SetFrameBorderMode(0);
   
   TH1F *tmp01 = new TH1F("tmp01","Graph",100,200,1500);
   tmp01->SetMinimum(0.);
   tmp01->SetMaximum(13.98659);
   tmp01->SetStats(0);
   tmp01->SetLineStyle(0);
   tmp01->SetMarkerStyle(20);
   tmp01->GetXaxis()->SetTitle("m_{H} (GeV)");
   tmp01->GetXaxis()->SetLabelFont(42);
   tmp01->GetXaxis()->SetLabelOffset(0.01);
   tmp01->GetXaxis()->SetTitleSize(0.05);
   tmp01->GetXaxis()->SetTickLength(0.02);
   tmp01->GetXaxis()->SetTitleOffset(1.08);
   tmp01->GetXaxis()->SetTitleFont(42);
   tmp01->GetYaxis()->SetTitle("95% CL limit on #sigma/#sigma_{SM}");
   tmp01->GetYaxis()->SetLabelFont(42);
   tmp01->GetYaxis()->SetLabelOffset(0.007);
   tmp01->GetYaxis()->SetTitleSize(0.05);
   tmp01->GetYaxis()->SetTickLength(0.02);
   tmp01->GetYaxis()->SetTitleOffset(1.56);
   tmp01->GetYaxis()->SetTitleFont(42);
   tmp01->GetZaxis()->SetLabelFont(42);
   tmp01->GetZaxis()->SetLabelOffset(0.007);
   tmp01->GetZaxis()->SetTitleSize(0.05);
   tmp01->GetZaxis()->SetTickLength(0.02);
   tmp01->GetZaxis()->SetTitleFont(42);
   tmp01->Draw("AXIS");
   
   TH1F *tmp02 = new TH1F("tmp02","Graph",100,200,1500);
   tmp02->SetMinimum(0);
   tmp02->SetMaximum(13.98659);
   tmp02->SetStats(0);
   tmp02->SetLineStyle(0);
   tmp02->SetMarkerStyle(20);
   tmp02->GetXaxis()->SetTitle("m_{H} (GeV)");
   tmp02->GetXaxis()->SetLabelFont(42);
   tmp02->GetXaxis()->SetLabelOffset(0.01);
   tmp02->GetXaxis()->SetTitleSize(0.05);
   tmp02->GetXaxis()->SetTickLength(0.02);
   tmp02->GetXaxis()->SetTitleOffset(1.08);
   tmp02->GetXaxis()->SetTitleFont(42);
   tmp02->GetYaxis()->SetTitle("95% CL limit on #sigma/#sigma_{SM}");
   tmp02->GetYaxis()->SetLabelFont(42);
   tmp02->GetYaxis()->SetLabelOffset(0.007);
   tmp02->GetYaxis()->SetTitleSize(0.05);
   tmp02->GetYaxis()->SetTickLength(0.02);
   tmp02->GetYaxis()->SetTitleOffset(1.56);
   tmp02->GetYaxis()->SetTitleFont(42);
   tmp02->GetZaxis()->SetLabelFont(42);
   tmp02->GetZaxis()->SetLabelOffset(0.007);
   tmp02->GetZaxis()->SetTitleSize(0.05);
   tmp02->GetZaxis()->SetTickLength(0.02);
   tmp02->GetZaxis()->SetTitleFont(42);
   tmp02->Draw("AXIGSAME");
   
   Double_t Graph0_fx3001[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph0_fy3001[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   Double_t Graph0_felx3001[27] = {
   4.032346e-316,
   0,
   0,
   0,
   6.906313e-310,
   4.032343e-316,
   2.121996e-314,
   4.032582e-316,
   0,
   4.032588e-316,
   4.032343e-316,
   0,
   4.032584e-316,
   1.508018e-316,
   1.508219e-316,
   4.032589e-316,
   2.124327e-314,
   4.032593e-316,
   5.582942e-322,
   6.906313e-310,
   0,
   4.032344e-316,
   4.032583e-316,
   4.032588e-316,
   1.58101e-322,
   4.032293e-316,
   5.582942e-322};
   Double_t Graph0_fely3001[27] = {
   2.370331,
   1.057434,
   0.405159,
   0.1845837,
   0.09618759,
   0.05231667,
   0.03192902,
   0.02331161,
   0.01754379,
   0.01435089,
   0.01183319,
   0.009315491,
   0.008041382,
   0.006484985,
   0.005966187,
   0.004928589,
   0.00440979,
   0.004119873,
   0.004119873,
   0.003570557,
   0.003570557,
   0.00302124,
   0.00302124,
   0.002471924,
   0.002471924,
   0.002471924,
   0.002471924};
   Double_t Graph0_fehx3001[27] = {
   4.031643e-316,
   0,
   0,
   0,
   6.906313e-310,
   4.032106e-316,
   2.121996e-314,
   4.032349e-316,
   0,
   4.032354e-316,
   4.032106e-316,
   0,
   4.032351e-316,
   1.508018e-316,
   1.508219e-316,
   4.032356e-316,
   2.124327e-314,
   4.03236e-316,
   5.582942e-322,
   6.906313e-310,
   0,
   4.032107e-316,
   4.03235e-316,
   4.032354e-316,
   1.58101e-322,
   4.032222e-316,
   5.582942e-322};
   Double_t Graph0_fehy3001[27] = {
   5.693069,
   2.47175,
   0.8989364,
   0.4081147,
   0.2108151,
   0.1170805,
   0.07362081,
   0.05438244,
   0.04146756,
   0.03243252,
   0.02825768,
   0.02361592,
   0.01990321,
   0.01752287,
   0.01712826,
   0.0153559,
   0.01456667,
   0.01341494,
   0.01192601,
   0.0124739,
   0.01149977,
   0.01055484,
   0.01051202,
   0.008670811,
   0.008670811,
   0.008635777,
   0.008635777};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(27,Graph0_fx3001,Graph0_fy3001,Graph0_felx3001,Graph0_fehx3001,Graph0_fely3001,Graph0_fehy3001);
   grae->SetName("Graph0");
   grae->SetTitle("Graph");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3001 = new TH1F("Graph_Graph3001","Graph",100,70,1630);
   Graph_Graph3001->SetMinimum(0);
   Graph_Graph3001->SetMaximum(11.53875);
   Graph_Graph3001->SetDirectory(0);
   Graph_Graph3001->SetStats(0);
   Graph_Graph3001->SetLineStyle(0);
   Graph_Graph3001->SetMarkerStyle(20);
   Graph_Graph3001->GetXaxis()->SetLabelFont(42);
   Graph_Graph3001->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetXaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph3001->GetXaxis()->SetTitleFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetYaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph3001->GetYaxis()->SetTitleFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetZaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3001);
   
   grae->Draw("3");
   
   Double_t Graph1_fx3002[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph1_fy3002[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   Double_t Graph1_felx3002[27] = {
   4.028644e-316,
   2.608667e-321,
   4.022558e-316,
   0,
   2.420922e-322,
   4.028601e-316,
   0,
   2.11372e-314,
   0,
   4.940656e-323,
   8.744962e-322,
   0,
   0,
   4.940656e-323,
   0,
   6.906314e-310,
   5.33769e+160,
   0,
   4.021573e-316,
   6.906314e-310,
   0,
   1.188318e-312,
   4.027998e-316,
   0,
   1.58101e-322,
   4.027629e-316,
   1.630417e-322};
   Double_t Graph1_fely3002[27] = {
   1.490716,
   0.6650269,
   0.2516418,
   0.1146438,
   0.05974151,
   0.03228919,
   0.01945674,
   0.01420552,
   0.01069075,
   0.009417772,
   0.007765532,
   0.006113291,
   0.005277157,
   0.003647804,
   0.00335598,
   0.002772331,
   0.002480507,
   0.002317429,
   0.002832413,
   0.002231598,
   0.002231598,
   0.001888275,
   0.001888275,
   0.001544952,
   0.001544952,
   0.001544952,
   0.002162933};
   Double_t Graph1_fehx3002[27] = {
   1.179415e-312,
   2.608667e-321,
   4.022558e-316,
   0,
   2.420922e-322,
   4.028634e-316,
   0,
   2.113722e-314,
   0,
   4.940656e-323,
   8.744962e-322,
   0,
   0,
   4.940656e-323,
   0,
   6.906314e-310,
   2.139459e+161,
   0,
   4.021573e-316,
   6.906314e-310,
   0,
   1.188318e-312,
   4.027998e-316,
   0,
   1.58101e-322,
   4.027675e-316,
   1.630417e-322};
   Double_t Graph1_fehy3002[27] = {
   2.351828,
   1.053343,
   0.3849801,
   0.1768222,
   0.09017253,
   0.05078118,
   0.03126747,
   0.02303264,
   0.01790216,
   0.012869,
   0.0113431,
   0.009505779,
   0.008205643,
   0.007395977,
   0.0068043,
   0.006212621,
   0.006088058,
   0.005138258,
   0.004204029,
   0.005262822,
   0.003643492,
   0.004453157,
   0.003768056,
   0.004204029,
   0.004204029,
   0.003643492,
   0.003643492};
   grae = new TGraphAsymmErrors(27,Graph1_fx3002,Graph1_fy3002,Graph1_felx3002,Graph1_fehx3002,Graph1_fely3002,Graph1_fehy3002);
   grae->SetName("Graph1");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#00ff00");
   grae->SetFillColor(ci);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3002 = new TH1F("Graph_Graph3002","Graph",100,-8.010917e+160,2.406781e+161);
   Graph_Graph3002->SetMinimum(0);
   Graph_Graph3002->SetMaximum(7.86335);
   Graph_Graph3002->SetDirectory(0);
   Graph_Graph3002->SetStats(0);
   Graph_Graph3002->SetLineStyle(0);
   Graph_Graph3002->SetMarkerStyle(20);
   Graph_Graph3002->GetXaxis()->SetLabelFont(42);
   Graph_Graph3002->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetXaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph3002->GetXaxis()->SetTitleFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetYaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph3002->GetYaxis()->SetTitleFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetZaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3002);
   
   grae->Draw("3");
   
   Double_t Graph2_fx1[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph2_fy1[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   TGraph *graph = new TGraph(27,Graph2_fx1,Graph2_fy1);
   graph->SetName("Graph2");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff0000");
   graph->SetLineColor(ci);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",100,70,1630);
   Graph_Graph1->SetMinimum(0);
   Graph_Graph1->SetMaximum(5.276123);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);
   Graph_Graph1->SetLineStyle(0);
   Graph_Graph1->SetMarkerStyle(20);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetXaxis()->SetTickLength(0.02);
   Graph_Graph1->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetYaxis()->SetTickLength(0.02);
   Graph_Graph1->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetZaxis()->SetTickLength(0.02);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph1);
   
   graph->Draw("l");
   
   Double_t Graph3_fx2[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph3_fy2[27] = {
   4.79203,
   2.152691,
   0.8377939,
   0.3861777,
   0.1995838,
   0.1090425,
   0.0660598,
   0.04759021,
   0.03596779,
   0.02751563,
   0.02238263,
   0.01815241,
   0.01512282,
   0.01228406,
   0.01162986,
   0.009836298,
   0.008643669,
   0.007866618,
   0.007089044,
   0.006702567,
   0.005960677,
   0.005744891,
   0.005145786,
   0.004956617,
   0.004917011,
   0.004476165,
   0.004343825};
   graph = new TGraph(27,Graph3_fx2,Graph3_fy2);
   graph->SetName("Graph3");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,70,1630);
   Graph_Graph2->SetMinimum(0);
   Graph_Graph2->SetMaximum(5.270799);
   Graph_Graph2->SetDirectory(0);
   Graph_Graph2->SetStats(0);
   Graph_Graph2->SetLineStyle(0);
   Graph_Graph2->SetMarkerStyle(20);
   Graph_Graph2->GetXaxis()->SetLabelFont(42);
   Graph_Graph2->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetXaxis()->SetTickLength(0.02);
   Graph_Graph2->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph2->GetXaxis()->SetTitleFont(42);
   Graph_Graph2->GetYaxis()->SetLabelFont(42);
   Graph_Graph2->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph2->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetYaxis()->SetTickLength(0.02);
   Graph_Graph2->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph2->GetYaxis()->SetTitleFont(42);
   Graph_Graph2->GetZaxis()->SetLabelFont(42);
   Graph_Graph2->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph2->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetZaxis()->SetTickLength(0.02);
   Graph_Graph2->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph2);
   
   graph->Draw("pl");
   
   TH1F *tmp0_copy3 = new TH1F("tmp0_copy3","Graph",100,200,1500);
   tmp0_copy3->SetMinimum(0);
   tmp0_copy3->SetMaximum(11.53875);
   tmp0_copy3->SetDirectory(0);
   tmp0_copy3->SetStats(0);
   tmp0_copy3->SetLineStyle(0);
   tmp0_copy3->SetMarkerStyle(20);
   tmp0_copy3->GetXaxis()->SetLabelFont(42);
   tmp0_copy3->GetXaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetXaxis()->SetTickLength(0.02);
   tmp0_copy3->GetXaxis()->SetTitleOffset(1.08);
   tmp0_copy3->GetXaxis()->SetTitleFont(42);
   tmp0_copy3->GetYaxis()->SetLabelFont(42);
   tmp0_copy3->GetYaxis()->SetLabelOffset(0.007);
   tmp0_copy3->GetYaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetYaxis()->SetTickLength(0.02);
   tmp0_copy3->GetYaxis()->SetTitleOffset(1.56);
   tmp0_copy3->GetYaxis()->SetTitleFont(42);
   tmp0_copy3->GetZaxis()->SetLabelFont(42);
   tmp0_copy3->GetZaxis()->SetLabelOffset(0.007);
   tmp0_copy3->GetZaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetZaxis()->SetTickLength(0.02);
   tmp0_copy3->GetZaxis()->SetTitleFont(42);
   tmp0_copy3->Draw("sameaxis");
   
   TH1F *tmp0_copy4 = new TH1F("tmp0_copy4","Graph",100,200,1500);
   tmp0_copy4->SetMinimum(0);
   tmp0_copy4->SetMaximum(11.53875);
   tmp0_copy4->SetDirectory(0);
   tmp0_copy4->SetStats(0);
   tmp0_copy4->SetLineStyle(0);
   tmp0_copy4->SetMarkerStyle(20);
   tmp0_copy4->GetXaxis()->SetLabelFont(42);
   tmp0_copy4->GetXaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetXaxis()->SetTickLength(0.02);
   tmp0_copy4->GetXaxis()->SetTitleOffset(1.08);
   tmp0_copy4->GetXaxis()->SetTitleFont(42);
   tmp0_copy4->GetYaxis()->SetLabelFont(42);
   tmp0_copy4->GetYaxis()->SetLabelOffset(0.007);
   tmp0_copy4->GetYaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetYaxis()->SetTickLength(0.02);
   tmp0_copy4->GetYaxis()->SetTitleOffset(1.56);
   tmp0_copy4->GetYaxis()->SetTitleFont(42);
   tmp0_copy4->GetZaxis()->SetLabelFont(42);
   tmp0_copy4->GetZaxis()->SetLabelOffset(0.007);
   tmp0_copy4->GetZaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetZaxis()->SetTickLength(0.02);
   tmp0_copy4->GetZaxis()->SetTitleFont(42);
   tmp0_copy4->Draw("sameaxig");
   
   TLegend *leg = new TLegend(0.495,0.825,0.945,0.925,NULL,"NBNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph3","Observed","LP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","Expected","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);
   entry=leg->AddEntry("Graph1","#pm1#sigma Expected","F");

   ci = TColor::GetColor("#00ff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","#pm2#sigma Expected","F");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TPave *pave = new TPave(0.16,0.81,0.96,0.94,1,"brNDC");
   pave->SetFillColor(0);
   pave->Draw();
   
   leg = new TLegend(0.495,0.825,0.945,0.925,NULL,"NBNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph3","Observed","LP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","Expected","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);
   entry=leg->AddEntry("Graph1","#pm1#sigma Expected","F");

   ci = TColor::GetColor("#00ff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","#pm2#sigma Expected","F");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.196,0.9113,"CMS");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextSize(0.048);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.196,0.8537,"Internal");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.03648);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.96,0.952,"");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.036);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.16,0.952,"");
tex->SetNDC();
   tex->SetTextFont(42);
   tex->SetTextSize(0.036);
   tex->SetLineWidth(2);
   tex->Draw();
   pad->Modified();
   limit->cd();
   limit->Modified();
   limit->cd();
   limit->SetSelected(limit);
}
Beispiel #12
0
void 
Unfolded  (
     bool drawRatio = 1,
     int differential = 0,
     int nsel = 0,
     int ReBin = 1,
     TString XTitle = "p_{T,max}^{l} (GeV)",
     TString units = "", 
     TString plotName = "data/XSLeadingPt_AN.root", 
     TString outputName = "WW_LeadingPt_final",
     bool isLogY = false,
     double lumi = 19.5
 )
{  
 
 gInterpreter->ExecuteMacro("GoodStyle.C");
 
 std::cout << "reading " << plotName << std::endl ;
 TFile* file = new TFile(plotName, "read");
 
 //---- prepare the object that is making the plots
 //---- ---- ---- ---- ---- ---- ---- ---- ---- ----
 
 std::cout << "setting up the plot object " << std::endl ;

 
 TH1F* xsValue = (TH1F*) xsValue->Clone();
 TH1F* xsValue_Powheg =  (TH1F*) xsValue_Powheg->Clone();
 TH1F* xsValue_Madgraph = (TH1F*) xsValue_Madgraph->Clone();
 TH1F* xsValue_MCnlo = (TH1F*) xsValue_MCnlo->Clone();
 TH1F* systHisto = (TH1F*) systHisto->Clone();
 
 
 TCanvas* canvas ;
 TPad *pad1, *pad2, *pad3, *pad4;
 
 if (drawRatio) {
  canvas = new TCanvas("wwxs", "wwxs", 600, 850);
  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.16);
  canvas->SetRightMargin(0.02);
  canvas->SetTopMargin(0.05);
  canvas->SetBottomMargin(0.13);
  canvas->SetFrameFillStyle(0);
  canvas->SetFrameBorderMode(0);
  
  
  
  pad1 = new TPad("pad1", "pad1",0.01,0.55,0.99,0.99);
  pad1->Draw();
  pad1->cd();
  pad1->Range(-147.2973,-5.811723,960.8108,2.535539);
  pad1->SetFillColor(0);
  pad1->SetBorderMode(0);
  pad1->SetBorderSize(2);
  pad1->SetLogy();
  pad1->SetTickx(1);
  pad1->SetTicky(1);
  pad1->SetLeftMargin(0.16);
  pad1->SetBottomMargin(0);
  pad1->SetFrameFillStyle(0);
  pad1->SetFrameBorderMode(0);
  pad1->SetFrameFillStyle(0);
  pad1->SetFrameBorderMode(0);
   
 }
 else { 
  canvas = new TCanvas("wwxs", "wwxs", 550, 550);
 }
 
 if (drawRatio) pad1->cd();
 
 std::cout << " now plot " << std::endl;
 
 //Plot Data
 xsValue->SetLineWidth(1);
 xsValue->SetMarkerSize(1.0);
 
 int NBins = xsValue->GetNbinsX();
 
 for(int i=1; i <NBins; i++) {
  
  float err_stat = xsValue->GetBinError(i);
  float err_syst = systHisto->GetBinError(i);
  float err_total = sqrt(err_stat*err_stat + err_syst*err_syst);
  
  xsValue->SetBinError(i, err_total);
 }
 
 
 //-- Plot Powheg
 
 TH1F *hpowError  = (TH1F*) xsValue_Powheg->Clone();
 
 xsValue_Powheg->SetMarkerColor(kGreen+2);
 xsValue_Powheg->SetLineWidth(1);
 xsValue_Powheg->SetLineColor(kGreen+2);
 xsValue_Powheg->SetMarkerStyle(22);
 xsValue_Powheg->SetMarkerSize(1.2);
 
 
 hpowError->SetLineWidth(0);
 hpowError->SetMarkerSize (      0);  
 hpowError->SetFillColor  (kGreen-7);
 
 
 //-- Plot Madgraph
 
 TH1F *hmadError  = (TH1F*) xsValue_Madgraph->Clone();
 
 xsValue_Madgraph->SetMarkerColor(kMagenta);
 xsValue_Madgraph->SetLineWidth(1);
 xsValue_Madgraph->SetLineStyle(1);
 xsValue_Madgraph->SetMarkerStyle(21);
 xsValue_Madgraph->SetMarkerSize(1.0);
 
 hmadError->SetLineWidth(0);
 hmadError->SetMarkerSize (      0); 
 hmadError->SetFillColor  (kMagenta-10);
 
 
 //-- Plot MCNLO
 
 TH1F *hmcError  = (TH1F*) xsValue_MCnlo->Clone();
 
 xsValue_MCnlo->SetMarkerColor(kRed);
 xsValue_MCnlo->SetLineColor(kRed);
 xsValue_MCnlo->SetLineWidth(1);
 xsValue_MCnlo->SetLineStyle(1);
 xsValue_MCnlo->SetMarkerStyle(24);
 xsValue_MCnlo->SetMarkerSize(1.0);
 
 hmcError->SetLineWidth(0);
 hmcError->SetMarkerSize (      0); 
 hmcError->SetFillColor  (kOrange);
 
 
 
 
 //-- Plot Data
 
 xsValue->SetMarkerStyle(kFullCircle);
 
 if (differential == 0) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} d#sigma(WW#rightarrow#mu#nue#nu + < 1 jet)/dp_{T,max}^{l}");
 if (differential == 1) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} d#sigma(WW#rightarrow#mu#nue#nu + < 1 jet)/dp_{T}(ll)}");
 if (differential == 2) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} d#sigma(WW#rightarrow#mu#nue#nu + < 1 jet)/dm_{#font[12]{ll}}");
 if (differential == 3) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} d#sigma(WW#rightarrow#mu#nue#nu + < 1 jet)/d#Delta#phi_{ll}");

 
//  if (differential == 0) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} #frac{d#sigma}{dp_{T,max}^{l}}");
//  if (differential == 1) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} #frac{d#sigma}{dp_{T}(ll)}");
//  if (differential == 2) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} #frac{d#sigma}{dm_{#font[12]{ll}}}");
//  if (differential == 3) AxisFonts (xsValue->GetYaxis(), "#frac{1}{#sigma} #frac{d#sigma}{d#Delta#phi_{ll}}");

 AxisFonts (xsValue->GetXaxis(), XTitle);
 
 
 
 xsValue->Draw("p");
 hmadError->Draw("e2,same"); 
 xsValue_Madgraph->Draw("pe1,same");
 hmcError->Draw("e2,same");
 xsValue_MCnlo->Draw("pe1,same");
 hpowError->Draw("e2,same");
 xsValue_Powheg->Draw("pe1,same");
 //systHisto->Draw("e2, same");
 xsValue->Draw("pe1,same");
 
 // Legend
 //----------------------------------------------------------------------------
 
 DrawLegend (0.65, 0.85, xsValue, "Data", "P");
 DrawLegend (0.65, 0.80, hpowError,   "", "F");
 DrawLegend (0.65, 0.80, xsValue_Madgraph,   "Madgraph", "PL");  
 DrawLegend (0.65, 0.75, hmadError,   "", "F");
 DrawLegend (0.65, 0.75, xsValue_MCnlo,   "MCNLO", "LP");
 DrawLegend (0.65, 0.70, hmcError,   "", "F");
 DrawLegend (0.65, 0.70, xsValue_Powheg,   "Powheg", "PL");
 
 canvas->GetFrame()->DrawClone();
 
 
 
 // Draw text 
 //----------------------------------------------------------------------------
 TLatex *   tex = new TLatex(0.17,0.96,"CMS             #sqrt{s} = 8 TeV             19.4 fb^{-1}");
 tex->SetNDC();
 tex->SetTextAlign(12);
 tex->SetTextFont(42);
 tex->SetTextSize(0.07);
 tex->SetLineWidth(2);
 tex->Draw();
 
//  TLatex * CMSLabel = new TLatex (0.18, 0.96, "#bf{CMS}");
//  CMSLabel->SetNDC ();
//  CMSLabel->SetTextAlign (10);
//  CMSLabel->SetTextFont (42);
//  CMSLabel->SetTextSize (_tsize);
//  CMSLabel->Draw ("same") ;
//  
//  
//  TLatex * _lumiLabel = new TLatex (0.95, 0.96, "19.4fb#lower[0.3]{^{-1}} (8 TeV)");
//  _lumiLabel->SetNDC ();
//  _lumiLabel->SetTextAlign (30);
//  _lumiLabel->SetTextFont (42);
//  _lumiLabel->SetTextSize (_tsize);
//  _lumiLabel->Draw ("same") ;
 
 
 // Draw also ratio
 //----------------------------------------------------------------------------
 if (drawRatio) {
  
  //---- prepare the distributions

  TH1F* ratio_pow       = xsValue_Powheg->Clone("ratio");
  TH1F* ratio_mad       = xsValue_Madgraph->Clone("ratio");
  TH1F* ratio_mcnlo     = xsValue_MCnlo->Clone("ratio");
  TH1F* hratio_pow      = xsValue_Powheg->Clone("ratio");
  TH1F* hratio_mad      = xsValue_Madgraph->Clone("ratio");
  TH1F* hratio_mcnlo    = xsValue_MCnlo->Clone("ratio");
  TH1F* ratioErr        = xsValue->Clone("ratio");
  
  
  for (UInt_t ibin=1; ibin<=ratio->GetNbinsX(); ibin++) {
   
   Double_t powValue = xsValue_Powheg->GetBinContent(ibin);
   Double_t powError = xsValue_Powheg->GetBinError  (ibin);
   
   Double_t madValue = xsValue_Madgraph->GetBinContent(ibin);
   Double_t madError = xsValue_Madgraph->GetBinError  (ibin);
   
   Double_t mcnloValue = xsValue_MCnlo->GetBinContent(ibin);
   Double_t mcnloError = xsValue_MCnlo->GetBinError  (ibin);
   
   Double_t dataValue = xsValue->GetBinContent(ibin);
   Double_t statError = xsValue->GetBinError  (ibin);
   Double_t systError = systHisto->GetBinError(ibin);
   
   Double_t dataError = systError;
   
   Double_t ratioValue_pow           = (powValue > 0) ? powValue/dataValue : 0.0;
   Double_t ratioError_pow           = (powValue > 0) ? powError / dataValue : 0.0;
   
   Double_t ratioValue_mad           = (madValue > 0) ? madValue/dataValue : 0.0;
   Double_t ratioError_mad           = (madValue > 0) ? madError/dataValue : 0.0;
   
   Double_t ratioValue_mcnlo         = (mcnloValue > 0) ? mcnloValue/dataValue : 0.0;
   Double_t ratioError_mcnlo         = (mcnloValue > 0) ? mcnloError/dataValue : 0.0;
   
   Double_t uncertaintyError         = (dataValue > 0) ? dataError/dataValue : 0.0;
   
   
   //dataError/dataValue 
   ratio_pow->SetBinContent(ibin, ratioValue_pow);
   hratio_pow->SetBinContent(ibin, ratioValue_pow);
   hratio_pow->SetBinError  (ibin, ratioError_pow);
   
   ratio_mad->SetBinContent(ibin, ratioValue_mad);
   hratio_mad->SetBinContent(ibin, ratioValue_mad);
   hratio_mad->SetBinError  (ibin, ratioError_mad);
   
   ratio_mcnlo->SetBinContent(ibin, ratioValue_mcnlo);
   hratio_mcnlo->SetBinContent(ibin, ratioValue_mcnlo);
   hratio_mcnlo->SetBinError  (ibin, ratioError_mcnlo);
   
   ratioErr->SetBinContent(ibin, 1.0);
   ratioErr->SetBinError  (ibin, uncertaintyError);
  }
  
  ratioErr->SetTitle("");

  ratioErr->SetFillColor  (kGray+2);
  ratioErr->SetFillStyle  (   3004);
//   ratioErr->SetFillStyle  (   3345);
  ratioErr->SetLineColor  (kGray+2);
  ratioErr->SetMarkerColor(kGray+2);
  ratioErr->SetMarkerSize (      0);
  
  
  
  //---- now draw
  
  canvas->cd();
  pad2 = new TPad("pad2", "pad2",0.01,0.39,0.99,0.55);
  pad2->Draw();
  pad2->cd();
  pad2->Range(-147.2973,0.2,960.8108,1.8);
  pad2->SetFillColor(0);
  pad2->SetBorderMode(0);
  pad2->SetBorderSize(2);
  pad2->SetTickx(1);
  pad2->SetTicky(1);
  pad2->SetLeftMargin(0.16);
  pad2->SetTopMargin(0);
  pad2->SetBottomMargin(0);
  pad2->SetFrameFillStyle(0);
  pad2->SetFrameBorderMode(0);
  pad2->SetFrameFillStyle(0);
  pad2->SetFrameBorderMode(0);
  
  
  ratioErr  ->Draw("e2");
  ratio_mad      ->SetLineColor(kMagenta);
  ratio_mad      ->SetMarkerSize(1.0);
  ratio_mad      ->SetLineWidth(1);
  ratio_mad      ->SetMarkerStyle(21);
  hratio_mad     ->SetLineWidth(0);
  hratio_mad     ->SetMarkerSize (      0);  
  hratio_mad     ->SetFillColor  (kMagenta-10);
  hratio_mad     ->SetFillStyle  (1001);
  hratio_mad     ->Draw("e2,same");
  ratio_mad      ->Draw("e1p,same");
  AxisFontsRatio (ratioErr->GetYaxis(), "y", "Theory/data");
  AxisFontsRatio (ratioErr->GetXaxis(), "x", XTitle);
  ratioErr->Draw("sameaxis");
  ratioErr->GetYaxis()->SetRangeUser(0.4, 1.6);  
  pad2->Modified();
  
  TLatex* tex_mad = new TLatex(0.2,0.1,"Madgraph+Pythia, normalized to #sigma_{NNLO}");
  tex_mad->SetNDC();
  tex_mad->SetTextAlign(12);
  tex_mad->SetTextFont(42);
  tex_mad->SetTextSize(0.1);
  tex_mad->SetLineWidth(2);
  tex_mad->Draw();
  
  
  
  canvas->cd();
  pad3 = new TPad("pad3", "pad3",0.01,0.23,0.99,0.39);
  pad3->Draw();
  pad3->cd();
  pad3->Range(-147.2973,0.2,960.8108,1.8);
  pad3->SetFillColor(0);
  pad3->SetBorderMode(0);
  pad3->SetBorderSize(2);
  pad3->SetTickx(1);
  pad3->SetTicky(1);
  pad3->SetLeftMargin(0.16);
  pad3->SetTopMargin(0);
  pad3->SetBottomMargin(0);
  pad3->SetFrameFillStyle(0);
  pad3->SetFrameBorderMode(0);
  pad3->SetFrameFillStyle(0);
  pad3->SetFrameBorderMode(0);
  
  ratioErr  ->Draw("e2");
  ratio_mcnlo     ->SetLineColor(kRed);
  ratio_mcnlo     ->SetMarkerSize(1.0);
  ratio_mcnlo      ->SetLineWidth(1);
  ratio_mcnlo     ->SetMarkerStyle(24);
  hratio_mcnlo    ->SetLineWidth(0);
  hratio_mcnlo    ->SetMarkerSize (      0);  
  hratio_mcnlo    ->SetFillColor  (kOrange);
  hratio_mcnlo     ->SetFillStyle  (1001);
  hratio_mcnlo    ->Draw("e2,same");
  ratio_mcnlo     ->Draw("ep,same");
//   AxisFontsRatio (ratioErr->GetYaxis(), "y", "Theory/data");
//   AxisFontsRatio (ratioErr->GetXaxis(), "x", XTitle);
  ratioErr->Draw("sameaxis");
  ratioErr->GetYaxis()->SetRangeUser(0.4, 1.6);  
  pad3->Modified();
  
  TLatex* tex_mcnlo = new TLatex(0.2,0.1,"MC@NLO+Herwig, normalized to #sigma_{NNLO}");
  tex_mcnlo->SetNDC();
  tex_mcnlo->SetTextAlign(12);
  tex_mcnlo->SetTextFont(42);
  tex_mcnlo->SetTextSize(0.1);
  tex_mcnlo->SetLineWidth(2);
  tex_mcnlo->Draw();
  
  
  
  
  canvas->cd();
  pad4 = new TPad("pad4", "pad4",0.01,0.01,0.99,0.23);
  pad4->Draw();
  pad4->cd();
  pad4->Range(-147.2973,-0.4857143,960.8108,1.8);
  pad4->SetFillColor(0);
  pad4->SetBorderMode(0);
  pad4->SetBorderSize(2);
  pad4->SetTickx(1);
  pad4->SetTicky(1);
  pad4->SetLeftMargin(0.16);
  pad4->SetTopMargin(0);
  pad4->SetBottomMargin(0.3);
  pad4->SetFrameFillStyle(0);
  pad4->SetFrameBorderMode(0);
  pad4->SetFrameFillStyle(0);
  pad4->SetFrameBorderMode(0);
  
  ratioErr  ->Draw("e2");
  ratio_pow      ->SetLineColor(kGreen+2);
  ratio_pow      ->SetMarkerSize(1.2);
  ratio_pow      ->SetLineWidth(1);
  ratio_pow      ->SetMarkerStyle(22);
  hratio_pow     ->SetLineWidth(0);
  hratio_pow     ->SetMarkerSize (      0);  
  hratio_pow     ->SetFillColor  (kGreen-7);
  hratio_pow     ->SetFillStyle  (1001);
  hratio_pow     ->Draw("e2,same");
  ratio_pow      ->Draw("e1p,same");
//   AxisFontsRatio (ratioErr->GetYaxis(), "y", "Theory/data", 1);
//   AxisFontsRatio (ratioErr->GetXaxis(), "x", XTitle);
  ratioErr->Draw("sameaxis");
  ratioErr->GetYaxis()->SetRangeUser(0.4, 1.6);  
  pad4->Modified();
  
  TLatex* tex_pow = new TLatex(0.2,0.39,"Powheg+Pythia, normalized to #sigma_{NNLO}");
  tex_pow->SetNDC();
  tex_pow->SetTextAlign(12);
  tex_pow->SetTextFont(42);
  tex_pow->SetTextSize(0.1);
  tex_pow->SetLineWidth(2);
  tex_pow->Draw();
  
  canvas->cd();
  
  
 }
 
 
}
Beispiel #13
0
void makePlot(TFile * f, TString name){
	TProfile * p3 = ((TH2D*)f->Get("hFinalFPos"))->ProfileX();
	p3->SetTitle("Linearity Check for F_{R}");
	p3->GetYaxis()->SetTitle("F_{R} output");
    p3->GetYaxis()->SetLabelFont(42);
    p3->GetYaxis()->SetLabelSize(0.06);
    p3->GetYaxis()->SetTitleSize(0.06);
    p3->GetYaxis()->SetTitleOffset(0.48);
    p3->GetYaxis()->SetTitleFont(42);
	p3->GetXaxis()->SetTitle("nPEX");
    p3->GetXaxis()->SetLabelFont(42);
    p3->GetXaxis()->SetLabelOffset(0.006);
    p3->GetXaxis()->SetLabelSize(0.06);
    p3->GetXaxis()->SetTitleSize(0.06);
    p3->GetXaxis()->SetTitleOffset(0.66);
    p3->GetXaxis()->SetTitleFont(42);

	TProfile * p2 = ((TH2D*)f->Get("hFinalF0"))->ProfileX();
	p2->SetTitle("Linearity Check for F_{0}");
	p2->GetYaxis()->SetTitle("F_{0} output");
    p2->GetYaxis()->SetLabelFont(42);
    p2->GetYaxis()->SetLabelSize(0.06);
    p2->GetYaxis()->SetTitleSize(0.06);
    p2->GetYaxis()->SetTitleOffset(0.48);
    p2->GetYaxis()->SetTitleFont(42);
	p2->GetXaxis()->SetTitle("F0 input");
    p2->GetXaxis()->SetLabelFont(42);
    p2->GetXaxis()->SetLabelOffset(0.006);
    p2->GetXaxis()->SetLabelSize(0.06);
    p2->GetXaxis()->SetTitleSize(0.06);
    p2->GetXaxis()->SetTitleOffset(0.66);
    p2->GetXaxis()->SetTitleFont(42);

	TProfile * p1 = ((TH2D*)f->Get("hFinalFNeg"))->ProfileX();
	p1->SetTitle("Linearity Check for F_{L}");
	p1->GetYaxis()->SetTitle("F_{L} output");
    p1->GetYaxis()->SetLabelFont(42);
    p1->GetYaxis()->SetLabelSize(0.06);
    p1->GetYaxis()->SetTitleSize(0.06);
    p1->GetYaxis()->SetTitleOffset(0.48);
    p1->GetYaxis()->SetTitleFont(42);
	p1->GetXaxis()->SetTitle("FL input");
    p1->GetXaxis()->SetLabelFont(42);
    p1->GetXaxis()->SetLabelOffset(0.006);
    p1->GetXaxis()->SetLabelSize(0.06);
    p1->GetXaxis()->SetTitleSize(0.06);
    p1->GetXaxis()->SetTitleOffset(0.66);
    p1->GetXaxis()->SetTitleFont(42);

    TCanvas *c = new TCanvas("c", "c",205,89,600,602);
    c->Range(0,0,1,1);
    c->SetFillColor(0);
    c->SetBorderMode(0);
    c->SetBorderSize(2);
    c->SetLeftMargin(0.12);
    c->SetRightMargin(0.01);
    c->SetTopMargin(0.04);
    c->SetFrameBorderMode(0);
	c->Divide(1,3);
	
	c->cd(1); p1->Draw();
	c->cd(2); p2->Draw();
	c->cd(3); p3->Draw();

	c->SaveAs(name+".C");

}
Beispiel #14
0
void picture2()
{
//=========Macro generated from canvas: c/
//=========  (Wed Jul 15 12:53:51 2015) by ROOT version6.04/00
   TCanvas *c = new TCanvas("c", "",0,45,600,500);
   c->SetHighLightColor(2);
   c->Range(-150,-150,1350,150);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   Double_t _fx11[1] = {
   792.688};
   Double_t _fy11[1] = {
   20.02759};
   TGraph *graph = new TGraph(1,_fx11,_fy11);
   graph->SetName("");
   graph->SetTitle("Event 2");
   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_Graph11 = new TH1F("Graph_Graph11","Event 2",100,0,1200);
   Graph_Graph11->SetMinimum(-120);
   Graph_Graph11->SetMaximum(120);
   Graph_Graph11->SetDirectory(0);
   Graph_Graph11->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph11->SetLineColor(ci);
   Graph_Graph11->GetXaxis()->SetTitle("Z [cm]");
   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()->SetTitle("Y [cm]");
   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);
   
   graph->Draw("ap");
   
   Double_t _fx12[1] = {
   792.688};
   Double_t _fy12[1] = {
   20.02759};
   graph = new TGraph(1,_fx12,_fy12);
   graph->SetName("");
   graph->SetTitle("Event 2");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph1112 = new TH1F("Graph_Graph_Graph1112","Event 2",100,0,1200);
   Graph_Graph_Graph1112->SetMinimum(-120);
   Graph_Graph_Graph1112->SetMaximum(120);
   Graph_Graph_Graph1112->SetDirectory(0);
   Graph_Graph_Graph1112->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph1112->SetLineColor(ci);
   Graph_Graph_Graph1112->GetXaxis()->SetTitle("Z [cm]");
   Graph_Graph_Graph1112->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph1112->GetYaxis()->SetTitle("Y [cm]");
   Graph_Graph_Graph1112->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph1112->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph_Graph1112);
   
   graph->Draw("p");
   
   Double_t _fx13[1] = {
   801.6865};
   Double_t _fy13[1] = {
   111.6076};
   graph = new TGraph(1,_fx13,_fy13);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph13 = new TH1F("Graph_Graph13","",100,801.5865,802.7865);
   Graph_Graph13->SetMinimum(-120);
   Graph_Graph13->SetMaximum(120);
   Graph_Graph13->SetDirectory(0);
   Graph_Graph13->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph13->SetLineColor(ci);
   Graph_Graph13->GetXaxis()->SetRange(0,101);
   Graph_Graph13->GetXaxis()->SetLabelFont(42);
   Graph_Graph13->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetXaxis()->SetTitleFont(42);
   Graph_Graph13->GetYaxis()->SetLabelFont(42);
   Graph_Graph13->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetYaxis()->SetTitleFont(42);
   Graph_Graph13->GetZaxis()->SetLabelFont(42);
   Graph_Graph13->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph13);
   
   graph->Draw("p");
   
   Double_t _fx14[1] = {
   801.6865};
   Double_t _fy14[1] = {
   111.6076};
   graph = new TGraph(1,_fx14,_fy14);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph1314 = new TH1F("Graph_Graph_Graph1314","",100,801.5865,802.7865);
   Graph_Graph_Graph1314->SetMinimum(-120);
   Graph_Graph_Graph1314->SetMaximum(120);
   Graph_Graph_Graph1314->SetDirectory(0);
   Graph_Graph_Graph1314->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph1314->SetLineColor(ci);
   Graph_Graph_Graph1314->GetXaxis()->SetRange(0,101);
   Graph_Graph_Graph1314->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph1314->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph1314->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph_Graph1314);
   
   graph->Draw("p");
   
   Double_t _fx15[1] = {
   823.7501};
   Double_t _fy15[1] = {
   86.87169};
   graph = new TGraph(1,_fx15,_fy15);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff0000");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph15 = new TH1F("Graph_Graph15","",100,823.6501,824.8501);
   Graph_Graph15->SetMinimum(-120);
   Graph_Graph15->SetMaximum(120);
   Graph_Graph15->SetDirectory(0);
   Graph_Graph15->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph15->SetLineColor(ci);
   Graph_Graph15->GetXaxis()->SetLabelFont(42);
   Graph_Graph15->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetXaxis()->SetTitleFont(42);
   Graph_Graph15->GetYaxis()->SetLabelFont(42);
   Graph_Graph15->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetYaxis()->SetTitleFont(42);
   Graph_Graph15->GetZaxis()->SetLabelFont(42);
   Graph_Graph15->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph15);
   
   graph->Draw("p");
   
   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 2");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
void SegX_2016B_June22all_sameYrange_fullIntegral_10k9k()
{
//=========Macro generated from canvas: SegX/SegX
//=========  (Fri Aug  5 09:22:37 2016) by ROOT version6.06/01
   TCanvas *SegX = new TCanvas("SegX", "SegX",0,0,500,500);
   gStyle->SetOptStat(0);
   SegX->SetHighLightColor(2);
   SegX->Range(-125,-2.848556,125,2.626708);
   SegX->SetFillColor(0);
   SegX->SetBorderMode(0);
   SegX->SetBorderSize(2);
   SegX->SetLogy();
   SegX->SetFrameBorderMode(0);
   SegX->SetFrameBorderMode(0);
   
   TH1D *SegX_1__19 = new TH1D("SegX_1__19","SegX",100,-100,100);
   SegX_1__19->SetBinContent(0,399.7427);
   SegX_1__19->SetBinContent(39,0.0007394809);
   SegX_1__19->SetBinContent(40,0.01109221);
   SegX_1__19->SetBinContent(41,0.02366339);
   SegX_1__19->SetBinContent(42,0.04880574);
   SegX_1__19->SetBinContent(43,0.09613251);
   SegX_1__19->SetBinContent(44,0.5671818);
   SegX_1__19->SetBinContent(45,1.913037);
   SegX_1__19->SetBinContent(46,3.895585);
   SegX_1__19->SetBinContent(47,8.348);
   SegX_1__19->SetBinContent(48,11.60985);
   SegX_1__19->SetBinContent(49,11.7363);
   SegX_1__19->SetBinContent(50,12.04171);
   SegX_1__19->SetBinContent(51,12.05058);
   SegX_1__19->SetBinContent(52,11.89159);
   SegX_1__19->SetBinContent(53,11.26081);
   SegX_1__19->SetBinContent(54,8.149079);
   SegX_1__19->SetBinContent(55,3.796495);
   SegX_1__19->SetBinContent(56,1.839089);
   SegX_1__19->SetBinContent(57,0.5302078);
   SegX_1__19->SetBinContent(58,0.09835096);
   SegX_1__19->SetBinContent(59,0.05472159);
   SegX_1__19->SetBinContent(60,0.02292391);
   SegX_1__19->SetBinContent(61,0.008873771);
   SegX_1__19->SetBinContent(62,0.005176366);
   SegX_1__19->SetMinimum(0.005);
   SegX_1__19->SetMaximum(120);
   SegX_1__19->SetEntries(675802);
   SegX_1__19->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ff00ff");
   SegX_1__19->SetLineColor(ci);

   ci = TColor::GetColor("#ff00ff");
   SegX_1__19->SetMarkerColor(ci);
   SegX_1__19->GetXaxis()->SetTitle("cm");
   SegX_1__19->GetYaxis()->SetTitle("scaled number of entries");
   SegX_1__19->Draw("H");
   
   TLegend *leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *SegX_2__20 = new TH1D("SegX_2__20","SegX",100,-100,100);
   SegX_2__20->SetBinContent(0,270.1449);
   SegX_2__20->SetBinContent(39,0.0249815);
   SegX_2__20->SetBinContent(40,0.1142904);
   SegX_2__20->SetBinContent(41,0.3269454);
   SegX_2__20->SetBinContent(42,1.204733);
   SegX_2__20->SetBinContent(43,2.505957);
   SegX_2__20->SetBinContent(44,3.989545);
   SegX_2__20->SetBinContent(45,5.530904);
   SegX_2__20->SetBinContent(46,6.957972);
   SegX_2__20->SetBinContent(47,7.25369);
   SegX_2__20->SetBinContent(48,7.353304);
   SegX_2__20->SetBinContent(49,7.47384);
   SegX_2__20->SetBinContent(50,7.455104);
   SegX_2__20->SetBinContent(51,7.516308);
   SegX_2__20->SetBinContent(52,7.505691);
   SegX_2__20->SetBinContent(53,7.34581);
   SegX_2__20->SetBinContent(54,7.34862);
   SegX_2__20->SetBinContent(55,6.910819);
   SegX_2__20->SetBinContent(56,5.432227);
   SegX_2__20->SetBinContent(57,3.844028);
   SegX_2__20->SetBinContent(58,2.401034);
   SegX_2__20->SetBinContent(59,1.067022);
   SegX_2__20->SetBinContent(60,0.2994657);
   SegX_2__20->SetBinContent(61,0.1164762);
   SegX_2__20->SetBinContent(62,0.02123427);
   SegX_2__20->SetEntries(1185341);
   SegX_2__20->SetStats(0);

   ci = TColor::GetColor("#ff9999");
   SegX_2__20->SetLineColor(ci);

   ci = TColor::GetColor("#ff9999");
   SegX_2__20->SetMarkerColor(ci);
   SegX_2__20->GetXaxis()->SetTitle("cm");
   SegX_2__20->GetYaxis()->SetTitle("scaled number of entries");
   SegX_2__20->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *SegX_3__21 = new TH1D("SegX_3__21","SegX",100,-100,100);
   SegX_3__21->SetBinContent(0,80.5951);
   SegX_3__21->SetBinContent(28,0.0004635445);
   SegX_3__21->SetBinContent(29,0.001390634);
   SegX_3__21->SetBinContent(30,0.01344279);
   SegX_3__21->SetBinContent(31,0.03754711);
   SegX_3__21->SetBinContent(32,0.1219122);
   SegX_3__21->SetBinContent(33,0.3712992);
   SegX_3__21->SetBinContent(34,0.817229);
   SegX_3__21->SetBinContent(35,1.240445);
   SegX_3__21->SetBinContent(36,1.838418);
   SegX_3__21->SetBinContent(37,2.596777);
   SegX_3__21->SetBinContent(38,3.1229);
   SegX_3__21->SetBinContent(39,3.203556);
   SegX_3__21->SetBinContent(40,3.271697);
   SegX_3__21->SetBinContent(41,3.325005);
   SegX_3__21->SetBinContent(42,3.348646);
   SegX_3__21->SetBinContent(43,3.330568);
   SegX_3__21->SetBinContent(44,3.375068);
   SegX_3__21->SetBinContent(45,3.360234);
   SegX_3__21->SetBinContent(46,3.349109);
   SegX_3__21->SetBinContent(47,3.318515);
   SegX_3__21->SetBinContent(48,3.375531);
   SegX_3__21->SetBinContent(49,3.312489);
   SegX_3__21->SetBinContent(50,3.43162);
   SegX_3__21->SetBinContent(51,3.357453);
   SegX_3__21->SetBinContent(52,3.422813);
   SegX_3__21->SetBinContent(53,3.361625);
   SegX_3__21->SetBinContent(54,3.392682);
   SegX_3__21->SetBinContent(55,3.39361);
   SegX_3__21->SetBinContent(56,3.321297);
   SegX_3__21->SetBinContent(57,3.326859);
   SegX_3__21->SetBinContent(58,3.282822);
   SegX_3__21->SetBinContent(59,3.388047);
   SegX_3__21->SetBinContent(60,3.411224);
   SegX_3__21->SetBinContent(61,3.326859);
   SegX_3__21->SetBinContent(62,3.22627);
   SegX_3__21->SetBinContent(63,3.022774);
   SegX_3__21->SetBinContent(64,2.55274);
   SegX_3__21->SetBinContent(65,1.746172);
   SegX_3__21->SetBinContent(66,1.123632);
   SegX_3__21->SetBinContent(67,0.7268378);
   SegX_3__21->SetBinContent(68,0.3203093);
   SegX_3__21->SetBinContent(69,0.09409954);
   SegX_3__21->SetBinContent(70,0.03337521);
   SegX_3__21->SetBinContent(71,0.003708356);
   SegX_3__21->SetBinContent(72,0.0009270891);
   SegX_3__21->SetEntries(389596);
   SegX_3__21->SetStats(0);
   SegX_3__21->GetXaxis()->SetTitle("cm");
   SegX_3__21->GetYaxis()->SetTitle("scaled number of entries");
   SegX_3__21->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *SegX_4__22 = new TH1D("SegX_4__22","SegX",100,-100,100);
   SegX_4__22->SetBinContent(0,205.6549);
   SegX_4__22->SetBinContent(20,0.002748252);
   SegX_4__22->SetBinContent(21,0.008244756);
   SegX_4__22->SetBinContent(22,0.01972275);
   SegX_4__22->SetBinContent(23,0.06773633);
   SegX_4__22->SetBinContent(24,0.1547104);
   SegX_4__22->SetBinContent(25,0.2565574);
   SegX_4__22->SetBinContent(26,0.3739239);
   SegX_4__22->SetBinContent(27,0.4752859);
   SegX_4__22->SetBinContent(28,0.5855393);
   SegX_4__22->SetBinContent(29,0.687063);
   SegX_4__22->SetBinContent(30,0.84339);
   SegX_4__22->SetBinContent(31,1.017177);
   SegX_4__22->SetBinContent(32,1.278746);
   SegX_4__22->SetBinContent(33,1.383664);
   SegX_4__22->SetBinContent(34,1.584286);
   SegX_4__22->SetBinContent(35,1.911167);
   SegX_4__22->SetBinContent(36,2.183405);
   SegX_4__22->SetBinContent(37,2.35606);
   SegX_4__22->SetBinContent(38,2.533727);
   SegX_4__22->SetBinContent(39,2.709938);
   SegX_4__22->SetBinContent(40,2.69458);
   SegX_4__22->SetBinContent(41,2.674696);
   SegX_4__22->SetBinContent(42,2.683264);
   SegX_4__22->SetBinContent(43,2.654165);
   SegX_4__22->SetBinContent(44,2.712525);
   SegX_4__22->SetBinContent(45,2.747282);
   SegX_4__22->SetBinContent(46,2.711231);
   SegX_4__22->SetBinContent(47,2.720446);
   SegX_4__22->SetBinContent(48,2.75585);
   SegX_4__22->SetBinContent(49,2.717375);
   SegX_4__22->SetBinContent(50,2.758275);
   SegX_4__22->SetBinContent(51,2.76943);
   SegX_4__22->SetBinContent(52,2.74906);
   SegX_4__22->SetBinContent(53,2.771046);
   SegX_4__22->SetBinContent(54,2.740816);
   SegX_4__22->SetBinContent(55,2.685851);
   SegX_4__22->SetBinContent(56,2.669523);
   SegX_4__22->SetBinContent(57,2.647213);
   SegX_4__22->SetBinContent(58,2.597745);
   SegX_4__22->SetBinContent(59,2.6401);
   SegX_4__22->SetBinContent(60,2.63913);
   SegX_4__22->SetBinContent(61,2.655943);
   SegX_4__22->SetBinContent(62,2.623126);
   SegX_4__22->SetBinContent(63,2.52629);
   SegX_4__22->SetBinContent(64,2.347007);
   SegX_4__22->SetBinContent(65,2.170634);
   SegX_4__22->SetBinContent(66,1.884493);
   SegX_4__22->SetBinContent(67,1.603524);
   SegX_4__22->SetBinContent(68,1.388999);
   SegX_4__22->SetBinContent(69,1.219901);
   SegX_4__22->SetBinContent(70,1.018147);
   SegX_4__22->SetBinContent(71,0.8441984);
   SegX_4__22->SetBinContent(72,0.6936911);
   SegX_4__22->SetBinContent(73,0.5441539);
   SegX_4__22->SetBinContent(74,0.4651012);
   SegX_4__22->SetBinContent(75,0.3503213);
   SegX_4__22->SetBinContent(76,0.2463727);
   SegX_4__22->SetBinContent(77,0.1514772);
   SegX_4__22->SetBinContent(78,0.06708968);
   SegX_4__22->SetBinContent(79,0.01762115);
   SegX_4__22->SetBinContent(80,0.006951461);
   SegX_4__22->SetBinContent(81,0.001939943);
   SegX_4__22->SetBinContent(82,0.0003233238);
   SegX_4__22->SetEntries(1890705);
   SegX_4__22->SetStats(0);

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

   ci = TColor::GetColor("#ff0000");
   SegX_4__22->SetMarkerColor(ci);
   SegX_4__22->GetXaxis()->SetTitle("cm");
   SegX_4__22->GetYaxis()->SetTitle("scaled number of entries");
   SegX_4__22->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *SegX_5__23 = new TH1D("SegX_5__23","SegX",100,-100,100);
   SegX_5__23->SetBinContent(0,157.814);
   SegX_5__23->SetBinContent(20,0.002033373);
   SegX_5__23->SetBinContent(21,0.006839528);
   SegX_5__23->SetBinContent(22,0.01959432);
   SegX_5__23->SetBinContent(23,0.07671363);
   SegX_5__23->SetBinContent(24,0.1695094);
   SegX_5__23->SetBinContent(25,0.2972422);
   SegX_5__23->SetBinContent(26,0.4053807);
   SegX_5__23->SetBinContent(27,0.513704);
   SegX_5__23->SetBinContent(28,0.6421762);
   SegX_5__23->SetBinContent(29,0.7730515);
   SegX_5__23->SetBinContent(30,0.9682553);
   SegX_5__23->SetBinContent(31,1.173626);
   SegX_5__23->SetBinContent(32,1.3936);
   SegX_5__23->SetBinContent(33,1.584737);
   SegX_5__23->SetBinContent(34,1.798056);
   SegX_5__23->SetBinContent(35,2.092526);
   SegX_5__23->SetBinContent(36,2.351134);
   SegX_5__23->SetBinContent(37,2.561681);
   SegX_5__23->SetBinContent(38,2.586636);
   SegX_5__23->SetBinContent(39,2.621203);
   SegX_5__23->SetBinContent(40,2.579241);
   SegX_5__23->SetBinContent(41,2.579057);
   SegX_5__23->SetBinContent(42,2.579796);
   SegX_5__23->SetBinContent(43,2.63784);
   SegX_5__23->SetBinContent(44,2.620279);
   SegX_5__23->SetBinContent(45,2.582569);
   SegX_5__23->SetBinContent(46,2.566302);
   SegX_5__23->SetBinContent(47,2.530441);
   SegX_5__23->SetBinContent(48,2.528777);
   SegX_5__23->SetBinContent(49,2.546338);
   SegX_5__23->SetBinContent(50,2.577208);
   SegX_5__23->SetBinContent(51,2.52545);
   SegX_5__23->SetBinContent(52,2.498461);
   SegX_5__23->SetBinContent(53,2.490882);
   SegX_5__23->SetBinContent(54,2.534138);
   SegX_5__23->SetBinContent(55,2.527113);
   SegX_5__23->SetBinContent(56,2.571478);
   SegX_5__23->SetBinContent(57,2.530071);
   SegX_5__23->SetBinContent(58,2.587005);
   SegX_5__23->SetBinContent(59,2.566117);
   SegX_5__23->SetBinContent(60,2.54301);
   SegX_5__23->SetBinContent(61,2.554102);
   SegX_5__23->SetBinContent(62,2.535247);
   SegX_5__23->SetBinContent(63,2.604012);
   SegX_5__23->SetBinContent(64,2.53155);
   SegX_5__23->SetBinContent(65,2.317861);
   SegX_5__23->SetBinContent(66,2.053707);
   SegX_5__23->SetBinContent(67,1.759977);
   SegX_5__23->SetBinContent(68,1.516342);
   SegX_5__23->SetBinContent(69,1.373451);
   SegX_5__23->SetBinContent(70,1.156989);
   SegX_5__23->SetBinContent(71,0.9863709);
   SegX_5__23->SetBinContent(72,0.7802608);
   SegX_5__23->SetBinContent(73,0.6194394);
   SegX_5__23->SetBinContent(74,0.5092676);
   SegX_5__23->SetBinContent(75,0.4011291);
   SegX_5__23->SetBinContent(76,0.2872602);
   SegX_5__23->SetBinContent(77,0.163779);
   SegX_5__23->SetBinContent(78,0.08170463);
   SegX_5__23->SetBinContent(79,0.02051858);
   SegX_5__23->SetBinContent(80,0.006654676);
   SegX_5__23->SetBinContent(81,0.001109113);
   SegX_5__23->SetEntries(1394704);
   SegX_5__23->SetStats(0);

   ci = TColor::GetColor("#00ff00");
   SegX_5__23->SetLineColor(ci);

   ci = TColor::GetColor("#00ff00");
   SegX_5__23->SetMarkerColor(ci);
   SegX_5__23->GetXaxis()->SetTitle("cm");
   SegX_5__23->GetYaxis()->SetTitle("scaled number of entries");
   SegX_5__23->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *SegX_6__24 = new TH1D("SegX_6__24","SegX",100,-100,100);
   SegX_6__24->SetBinContent(0,127.6015);
   SegX_6__24->SetBinContent(20,0.001032403);
   SegX_6__24->SetBinContent(21,0.004336093);
   SegX_6__24->SetBinContent(22,0.01817029);
   SegX_6__24->SetBinContent(23,0.08341816);
   SegX_6__24->SetBinContent(24,0.1755085);
   SegX_6__24->SetBinContent(25,0.3111663);
   SegX_6__24->SetBinContent(26,0.4148195);
   SegX_6__24->SetBinContent(27,0.5382949);
   SegX_6__24->SetBinContent(28,0.6943943);
   SegX_6__24->SetBinContent(29,0.8948869);
   SegX_6__24->SetBinContent(30,1.059452);
   SegX_6__24->SetBinContent(31,1.265726);
   SegX_6__24->SetBinContent(32,1.461057);
   SegX_6__24->SetBinContent(33,1.634294);
   SegX_6__24->SetBinContent(34,1.885787);
   SegX_6__24->SetBinContent(35,2.235772);
   SegX_6__24->SetBinContent(36,2.351608);
   SegX_6__24->SetBinContent(37,2.469508);
   SegX_6__24->SetBinContent(38,2.50048);
   SegX_6__24->SetBinContent(39,2.516792);
   SegX_6__24->SetBinContent(40,2.462488);
   SegX_6__24->SetBinContent(41,2.513488);
   SegX_6__24->SetBinContent(42,2.529387);
   SegX_6__24->SetBinContent(43,2.509152);
   SegX_6__24->SetBinContent(44,2.564283);
   SegX_6__24->SetBinContent(45,2.531865);
   SegX_6__24->SetBinContent(46,2.500687);
   SegX_6__24->SetBinContent(47,2.495937);
   SegX_6__24->SetBinContent(48,2.522367);
   SegX_6__24->SetBinContent(49,2.535169);
   SegX_6__24->SetBinContent(50,2.563663);
   SegX_6__24->SetBinContent(51,2.495112);
   SegX_6__24->SetBinContent(52,2.525051);
   SegX_6__24->SetBinContent(53,2.496144);
   SegX_6__24->SetBinContent(54,2.51163);
   SegX_6__24->SetBinContent(55,2.514727);
   SegX_6__24->SetBinContent(56,2.579562);
   SegX_6__24->SetBinContent(57,2.585137);
   SegX_6__24->SetBinContent(58,2.518857);
   SegX_6__24->SetBinContent(59,2.536201);
   SegX_6__24->SetBinContent(60,2.563457);
   SegX_6__24->SetBinContent(61,2.528768);
   SegX_6__24->SetBinContent(62,2.531865);
   SegX_6__24->SetBinContent(63,2.472192);
   SegX_6__24->SetBinContent(64,2.477767);
   SegX_6__24->SetBinContent(65,2.363377);
   SegX_6__24->SetBinContent(66,2.154832);
   SegX_6__24->SetBinContent(67,1.816616);
   SegX_6__24->SetBinContent(68,1.592172);
   SegX_6__24->SetBinContent(69,1.388582);
   SegX_6__24->SetBinContent(70,1.132133);
   SegX_6__24->SetBinContent(71,1.010723);
   SegX_6__24->SetBinContent(72,0.82489);
   SegX_6__24->SetBinContent(73,0.6696166);
   SegX_6__24->SetBinContent(74,0.5168209);
   SegX_6__24->SetBinContent(75,0.3947909);
   SegX_6__24->SetBinContent(76,0.2859756);
   SegX_6__24->SetBinContent(77,0.1655974);
   SegX_6__24->SetBinContent(78,0.0755719);
   SegX_6__24->SetBinContent(79,0.02064806);
   SegX_6__24->SetBinContent(80,0.005368496);
   SegX_6__24->SetBinContent(81,0.0008259224);
   SegX_6__24->SetEntries(1102290);
   SegX_6__24->SetStats(0);

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

   ci = TColor::GetColor("#0000ff");
   SegX_6__24->SetMarkerColor(ci);
   SegX_6__24->GetXaxis()->SetTitle("cm");
   SegX_6__24->GetYaxis()->SetTitle("scaled number of entries");
   SegX_6__24->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.01,0.9390678,0.1408871,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("SegX");
   pt->Draw();
   SegX->Modified();
   SegX->cd();
   SegX->SetSelected(SegX);
}
Beispiel #16
0
//void makeHist(const int sample, const int dataset=1)
void makeHist(const string title="")
{
	vector<Hist> hist2print;
	TPaveText *tx = new TPaveText(.05,.1,.95,.8);
//	tx->AddText("Using Deafult JERs for all jets");
//	tx->AddText("Using b-Jet JERs");

/*	string title("QCD MG:");

	//if (sample==1) title += "NJet(70/50/30>=2/4/5), #slash{E}_{T}>175, Triplet>1, 80<TopMass<270, TOP+0.5*BJET>500, MT2>300, #Delta#Phi(.5,.5,.3), BJets>=1";
	if (sample==1)      title += "All Stop cuts applied (use default JERs for all jets)";
	else if (sample==2) title += "All Stop cuts applied + Inverted #Delta#Phi (use default JERs for all jets)";
	else if (sample==3) title += "All Stop cuts applied (use b-Jet JERs)";
	else if (sample==4) title += "All Stop cuts applied + Inverted #Delta#Phi (use b-Jet JERs)";
	else if (sample==5) title += "No cuts applied";
*/
	unsigned bitMaskArray[] = {0,1,2,3,129,130,131,195,257,258,269,323};
	vector<unsigned> vBitMaskArray(bitMaskArray, bitMaskArray + sizeof(bitMaskArray) / sizeof(unsigned));



	stringstream unclmet_title;
	unclmet_title << title << "Unclutered MET";
	hist2print.push_back(Hist("met",title,2,0.0, 400.0,1));
	hist2print.push_back(Hist("unclmet",unclmet_title.str().c_str(),2,0.0, 100.0,1));
	hist2print.push_back(Hist("mht",title,2,0.0, 400.0,1));
	hist2print.push_back(Hist("ht",title,2,0,2000,1));
	hist2print.push_back(Hist("njet30eta5p0",title,1,0,15,1));
	hist2print.push_back(Hist("nbjets",title,1,0,10,1));
//	hist2print.push_back(Hist("bjetPt",title,2));
	hist2print.push_back(Hist("M123",title,2));
//	hist2print.push_back(Hist("M23overM123",title));
	hist2print.push_back(Hist("MT2",title,2));
	hist2print.push_back(Hist("MTb",title,4));
	hist2print.push_back(Hist("MTt",title,4));
	hist2print.push_back(Hist("MTb_p_MTt",title,2,400,1000,1));
	//hist2print.push_back(Hist("jet1_pt",title,2));
	//hist2print.push_back("bjetPt");
//	hist2print.push_back(Hist("bjetMass",title,2,0,200));
//	hist2print.push_back(Hist("dphimin",title,4));


	TFile *outRootFile = new TFile("Merged.root");

	/*TPad *c1=0, *c2=0;
	TCanvas *c = GetCanvas(c1, c2);
	if (c ==NULL|| c1 == 0 ||c2 == 0)
	{
		cout << " A drawing pad is null !"<< endl;
		cout << "c = " << c << endl;
		cout << "c1 = " << c1 << endl;
		cout << "c2 = " << c2 << endl;
		assert(false);
	}*/
   TCanvas *c = new TCanvas("c1");
   c->Range(0,0,1,1);
   c->SetBorderSize(2);
   c->SetFrameFillColor(0);
  
// ------------>Primitives in pad: c1_1
   TPad *c1_1 = new TPad("c1_1", "c1_1",0.01,0.30,0.99,0.99);
   c1_1->Draw();
   c1_1->cd();
   c1_1->SetBorderSize(2);
   c1_1->SetTickx(1);
   c1_1->SetTicky(1);
   c1_1->SetTopMargin(0.1);
   c1_1->SetBottomMargin(0.0);
   //c1_1->SetFrameFillColor(3);
	//c1_1->SetLogy();
  
  c->cd();
// ------------>Primitives in pad: c1_2
   TPad *c1_2 = new TPad("c1_2", "c1_2",0.01,0.01,0.99,0.30);
   c1_2->Draw();
   c1_2->cd();
   c1_2->SetBorderSize(2);
   c1_2->SetTickx(1);
   c1_2->SetTicky(1);
   c1_2->SetTopMargin(0.0);
   c1_2->SetBottomMargin(0.24);
   c1_2->SetFrameFillColor(0);
	c1_2->SetGridx();
	c1_2->SetGridy();
	c->cd();
	gStyle->SetOptStat(0);
	gPad->Print("samples.eps[");

	for (unsigned i=0;i<vBitMaskArray.size(); ++i)
	{
		unsigned mask = vBitMaskArray.at(i);
		for (unsigned ihist=0; ihist < hist2print.size(); ++ihist)
		{
			stringstream path, reco_hist_name, gen_hist_name, smear_hist_name;
			stringstream reco_hist, gen_hist, smear_hist;
			stringstream folder;
			folder << "Hist/Mask"<< mask << "HT0to8000MHT0to8000/";
			//cout << "folder = " << folder.str() << endl;

			/*	if ((hist2print.at(ihist).Name()).find("Jet"))
				{
				reco_hist_name << folder.str() << "reco" << hist2print.at(ihist).Name() << "_copy";
				reco_hist << folder.str() << "reco" << hist2print.at(ihist).Name();
				smear_hist_name << folder.str() << "smeared" << hist2print.at(ihist).Name() << "_copy";
				smear_hist << folder.str() << "smeared" << hist2print.at(ihist).Name();
				gen_hist_name << folder.str() << "gen" << hist2print.at(ihist).Name() << "_copy";
				gen_hist << folder.str() << "gen" << hist2print.at(ihist).Name();
				} else
				*/	{
					reco_hist_name << folder.str() << "reco_" << hist2print.at(ihist).Name() << "_copy";
					reco_hist << folder.str() << "reco_" << hist2print.at(ihist).Name();
					smear_hist_name << folder.str() << "smeared_" << hist2print.at(ihist).Name() << "_copy";
					smear_hist << folder.str() << "smeared_" << hist2print.at(ihist).Name();
					gen_hist_name << folder.str() << "gen_" << hist2print.at(ihist).Name() << "_copy";
					gen_hist << folder.str() << "gen_" << hist2print.at(ihist).Name();
				}

				TH1* hreco = (TH1*) (outRootFile->Get(reco_hist.str().c_str()));
				if (hreco == NULL) { cout << "hreco = " << reco_hist.str() << " was not found!" << endl; assert(false); } 
				hreco->SetDirectory(0);
				TH1* hsmear = (TH1*) (outRootFile->Get(smear_hist.str().c_str()));
				if (hsmear == NULL) { cout << "hsmear = " << smear_hist.str() << " was not found!" << endl; assert(false); } 
				hsmear->SetDirectory(0);
				TH1* hgen = (TH1*) (outRootFile->Get(gen_hist.str().c_str()));
				//->Clone(gen_hist_name.str().c_str()));
				if (hgen == NULL) { cout << "hgen = " << gen_hist.str() << " was not found!" << endl; assert(false); } 
				hgen->SetDirectory(0);

				hreco->Sumw2();
				hsmear->Sumw2();
				hgen->Sumw2();

				const int rebin = hist2print.at(ihist).Rebin();
				const string title = hist2print.at(ihist).Title();
				const double xmin = hist2print.at(ihist).Xmin();
				const double xmax = hist2print.at(ihist).Xmax();

				if (rebin>1)
				{
					hreco->Rebin(rebin);
					hsmear->Rebin(rebin);
					hgen->Rebin(rebin);
				}
				if (title.length()>0)
				{
					hreco->SetTitle(title.c_str());
					hsmear->SetTitle(title.c_str());
					hgen->SetTitle(title.c_str());
				}
				if (xmin != LargeNegNum || xmax != LargeNegNum)
				{
					hreco->GetXaxis()->SetRangeUser(xmin,xmax);
					hsmear->GetXaxis()->SetRangeUser(xmin,xmax);
					hgen->GetXaxis()->SetRangeUser(xmin,xmax);
				}

				const double reco_max_y  = hreco->GetBinContent(hreco->GetMaximumBin());
				const double smear_max_y = hsmear->GetBinContent(hsmear->GetMaximumBin());
				const double y_max = max(reco_max_y, smear_max_y);
				double y_min = 9999.0;
				for (unsigned bin=1; bin<hreco->GetNbinsX(); ++bin)
				{
					const double v1 = hreco->GetBinContent(bin);
					const double v2 = hsmear->GetBinContent(bin);
					const double minv = min(v1,v2);
					if (minv != 0 && minv < y_min) y_min = minv;
					
				}

				cout << hreco->GetName() << "->ymin/max = " << y_min << "(" << y_min/2.0 << ")/" << y_max << "(" << y_max*2.0 << ")" << endl;
				hreco->GetYaxis()->SetRangeUser(y_min/2.0, y_max*2.0);
				hsmear->GetYaxis()->SetRangeUser(y_min/2.0, y_max*2.0);


				hgen->SetLineColor(kBlue);
				hgen->SetMarkerColor(kBlue);
				hgen->SetMarkerStyle(24);
				hgen->SetLineWidth(2);
				hsmear->SetLineColor(kRed);
				hsmear->SetMarkerColor(kRed);
				hsmear->SetMarkerStyle(24);
				hsmear->SetLineWidth(2);
				hreco->SetLineWidth(2);
				hreco->SetMarkerStyle(kDot);
				hreco->SetLineColor(kBlack);
				hreco->SetMarkerColor(kBlack);
				//hreco->GetXaxis()->SetRangeUser(0,300);
				//hsmear->GetXaxis()->SetRangeUser(0,300);


				hreco->GetYaxis()->CenterTitle(1);
				hreco->SetLabelFont(42,"XYZ");
				hreco->SetTitleFont(42,"XYZ");
				hreco->GetYaxis()->SetTitleOffset(0.8);
				hreco->SetLabelSize(0.05,"XYZ");
				hreco->SetTitleSize(0.06,"XYZ");


				TH1 *hsmeartoreco_ratio = (TH1*) (hsmear->Clone("hsmear_copy"));
				hsmeartoreco_ratio->Divide(hreco);
				hsmeartoreco_ratio->SetTitle("");
				hsmeartoreco_ratio->GetYaxis()->SetTitle("Smear/Reco");
				hsmeartoreco_ratio->GetYaxis()->SetRangeUser(0,2.);

				hsmeartoreco_ratio->GetYaxis()->SetTitleOffset(0.4);
				hsmeartoreco_ratio->GetXaxis()->SetTitleOffset(0.9);
				hsmeartoreco_ratio->GetYaxis()->CenterTitle(1);
				hsmeartoreco_ratio->GetXaxis()->CenterTitle(1);
				hsmeartoreco_ratio->SetLabelSize(0.125,"XYZ");
				hsmeartoreco_ratio->SetTitleSize(0.125,"XYZ");
				//	hsmeartoreco_ratio->SetLabelFont(labelfont,"XYZ");
				//	hsmeartoreco_ratio->SetTitleFont(titlefont,"XYZ");
				hsmeartoreco_ratio->GetXaxis()->SetTickLength(0.07);



				stringstream recoleg,smearleg, genleg;
				const double sum_reco  = hreco->Integral(1, hreco->GetNbinsX()+1);
				const double sum_smear = hsmear->Integral(1, hsmear->GetNbinsX()+1);
				const double sum_gen   = hgen->Integral(1, hgen->GetNbinsX()+1);
				const double err_reco  = StatErr(hreco);
				const double err_smear = StatErr(hsmear);


				cout << setprecision(1) << fixed;

				recoleg << "Reco (" << sum_reco << "#pm" << err_reco << ")";
				smearleg << "Smear (" << sum_smear << "#pm" << err_smear << ")";
				genleg << "Gen (" << sum_gen << ")";
				cout <<  smear_hist_name.str() << "::reco/smear = " << sum_reco << "/" << sum_smear << endl;

				TLegend *l2 = new TLegend(0.6,0.6,0.9,0.9);
				l2->AddEntry(hreco, recoleg.str().c_str());
				//l2->AddEntry(hgen, genleg.str().c_str());
				l2->AddEntry(hsmear, smearleg.str().c_str());

				c1_1->cd();
				gPad->SetLogy(hist2print.at(ihist).LogY());

				hreco->DrawCopy();
				//hgen->DrawCopy("same");
				hsmear->DrawCopy("same");
				l2->Draw();
				//tx->Draw();
				c1_2->cd();
				hsmeartoreco_ratio->DrawCopy();
				c->cd();
				gPad->Print("samples.eps");

		}
	}

	gPad->Print("samples.eps]");
}
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 Dmeson-HIHLTriggerEfficiency()
{
//=========Macro generated from canvas: c/
//=========  (Thu May  5 01:01:57 2016) by ROOT version6.02/10
   TCanvas *c = new TCanvas("c", "",0,0,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   c->Range(-12.68293,-0.1664634,84.87805,1.114024);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetTickx(1);
   c->SetTicky(1);
   c->SetLeftMargin(0.13);
   c->SetRightMargin(0.05);
   c->SetTopMargin(0.05);
   c->SetBottomMargin(0.13);
   c->SetFrameFillStyle(0);
   c->SetFrameBorderMode(0);
   c->SetFrameFillStyle(0);
   c->SetFrameBorderMode(0);
   Double_t xAxis1[16] = {0, 5, 10, 15, 18, 20, 25, 30, 35, 40, 45, 55, 60, 65, 70, 80}; 
   
   TH1D *hTmp1 = new TH1D("hTmp1","",15, xAxis1);
   hTmp1->SetLineStyle(0);
   hTmp1->SetMarkerStyle(20);
   hTmp1->GetXaxis()->SetTitle("D Meson p_{T} (GeV/c)");
   hTmp1->GetXaxis()->SetLabelFont(42);
   hTmp1->GetXaxis()->SetLabelOffset(0.007);
   hTmp1->GetXaxis()->SetLabelSize(0.05);
   hTmp1->GetXaxis()->SetTitleSize(0.06);
   hTmp1->GetXaxis()->SetTitleOffset(0.9);
   hTmp1->GetXaxis()->SetTitleFont(42);
   hTmp1->GetYaxis()->SetTitle("D Meson HLT Efficiency");
   hTmp1->GetYaxis()->SetLabelFont(42);
   hTmp1->GetYaxis()->SetLabelOffset(0.007);
   hTmp1->GetYaxis()->SetLabelSize(0.05);
   hTmp1->GetYaxis()->SetTitleSize(0.06);
   hTmp1->GetYaxis()->SetTitleOffset(1.05);
   hTmp1->GetYaxis()->SetTitleFont(42);
   hTmp1->GetZaxis()->SetLabelFont(42);
   hTmp1->GetZaxis()->SetLabelOffset(0.007);
   hTmp1->GetZaxis()->SetLabelSize(0.05);
   hTmp1->GetZaxis()->SetTitleSize(0.06);
   hTmp1->GetZaxis()->SetTitleFont(42);
   hTmp1->Draw("");
   
   Double_t _fx3001[11] = {
   16.5,
   19,
   22.5,
   27.5,
   32.5,
   37.5,
   42.5,
   50,
   57.5,
   62.5,
   75};
   Double_t _fy3001[11] = {
   0,
   0.06896552,
   0.8761062,
   0.98,
   1,
   1,
   0.7777778,
   1,
   1,
   1,
   1};
   Double_t _felx3001[11] = {
   1.5,
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   2.5,
   5};
   Double_t _fely3001[11] = {
   0,
   0.03764367,
   0.03310196,
   0.02860099,
   0.04165758,
   0.06928609,
   0.1035062,
   0.05582399,
   0.2496484,
   0.2496484,
   0.2496484};
   Double_t _fehx3001[11] = {
   1.5,
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   2.5,
   5};
   Double_t _fehy3001[11] = {
   0.3181538,
   0.05749455,
   0.02869668,
   0.01444014,
   0,
   0,
   0.08449391,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(11,_fx3001,_fy3001,_felx3001,_fehx3001,_fely3001,_fehy3001);
   grae->SetName("");
   grae->SetTitle("");
   grae->SetFillColor(1);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3001 = new TH1F("Graph_Graph3001","",100,8.5,86.5);
   Graph_Graph3001->SetMinimum(0);
   Graph_Graph3001->SetMaximum(1.1);
   Graph_Graph3001->SetDirectory(0);
   Graph_Graph3001->SetStats(0);
   Graph_Graph3001->SetLineStyle(0);
   Graph_Graph3001->SetMarkerStyle(20);
   Graph_Graph3001->GetXaxis()->SetLabelFont(42);
   Graph_Graph3001->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph3001->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph3001->GetXaxis()->SetTitleOffset(0.9);
   Graph_Graph3001->GetXaxis()->SetTitleFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph3001->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph3001->GetYaxis()->SetTitleOffset(1.05);
   Graph_Graph3001->GetYaxis()->SetTitleFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3001->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3001->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3001);
   
   grae->Draw("pl ");
   
   Double_t _fx3002[9] = {
   19,
   22.5,
   27.5,
   32.5,
   37.5,
   42.5,
   50,
   62.5,
   75};
   Double_t _fy3002[9] = {
   0.1111111,
   0,
   0,
   0,
   0,
   0.6923077,
   0.9,
   1,
   1};
   Double_t _felx3002[9] = {
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   5};
   Double_t _fely3002[9] = {
   0.05913286,
   0,
   0,
   0,
   0,
   0.1286012,
   0.1183613,
   0.2496484,
   0.3181538};
   Double_t _fehx3002[9] = {
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   5};
   Double_t _fehy3002[9] = {
   0.08674482,
   0.01540516,
   0.03322531,
   0.05088055,
   0.0787842,
   0.1111246,
   0.0681878,
   0,
   0};
   grae = new TGraphAsymmErrors(9,_fx3002,_fy3002,_felx3002,_fehx3002,_fely3002,_fehy3002);
   grae->SetName("");
   grae->SetTitle("");
   grae->SetFillColor(1);
   grae->SetLineColor(2);
   grae->SetMarkerColor(2);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3002 = new TH1F("Graph_Graph3002","",100,11.8,86.2);
   Graph_Graph3002->SetMinimum(0);
   Graph_Graph3002->SetMaximum(1.1);
   Graph_Graph3002->SetDirectory(0);
   Graph_Graph3002->SetStats(0);
   Graph_Graph3002->SetLineStyle(0);
   Graph_Graph3002->SetMarkerStyle(20);
   Graph_Graph3002->GetXaxis()->SetLabelFont(42);
   Graph_Graph3002->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph3002->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph3002->GetXaxis()->SetTitleOffset(0.9);
   Graph_Graph3002->GetXaxis()->SetTitleFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph3002->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph3002->GetYaxis()->SetTitleOffset(1.05);
   Graph_Graph3002->GetYaxis()->SetTitleFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3002->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3002->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3002);
   
   grae->Draw("pl ");
   
   Double_t _fx3003[10] = {
   19,
   22.5,
   27.5,
   32.5,
   37.5,
   42.5,
   50,
   57.5,
   62.5,
   75};
   Double_t _fy3003[10] = {
   0.1333333,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1};
   Double_t _felx3003[10] = {
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   2.5,
   5};
   Double_t _fely3003[10] = {
   0.07000057,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0.2496484,
   0.2496484};
   Double_t _fehx3003[10] = {
   1,
   2.5,
   2.5,
   2.5,
   2.5,
   2.5,
   5,
   2.5,
   2.5,
   5};
   Double_t _fehy3003[10] = {
   0.1005408,
   0.02030624,
   0.03421472,
   0.06183102,
   0.07373067,
   0.06183102,
   0.0586742,
   0.2496484,
   0,
   0};
   grae = new TGraphAsymmErrors(10,_fx3003,_fy3003,_felx3003,_fehx3003,_fely3003,_fehy3003);
   grae->SetName("");
   grae->SetTitle("");
   grae->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#009900");
   grae->SetLineColor(ci);

   ci = TColor::GetColor("#009900");
   grae->SetMarkerColor(ci);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3003 = new TH1F("Graph_Graph3003","",100,11.8,86.2);
   Graph_Graph3003->SetMinimum(0);
   Graph_Graph3003->SetMaximum(1.1);
   Graph_Graph3003->SetDirectory(0);
   Graph_Graph3003->SetStats(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()->SetTitleOffset(0.9);
   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(1.05);
   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("pl ");
   
   TLegend *leg = new TLegend(0.53,0.2,0.93,0.6,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(62);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("","PbPb #sqrt{s} = 5.02 TeV","");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("","HLT D meson 20","pl");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("","HLT D meson 40","pl");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("","HLT D meson 60","pl");

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

   ci = TColor::GetColor("#009900");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
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);
}
Beispiel #20
0
void hmt()
{
//=========Macro generated from canvas: hmt/hmt
//=========  (Mon Nov 23 11:05:05 2015) by ROOT version6.02/05
   TCanvas *hmt = new TCanvas("hmt", "hmt",220,242,700,700);
   hmt->Range(-25,-7.557249,225,5.510816);
   hmt->SetFillColor(0);
   hmt->SetBorderMode(0);
   hmt->SetBorderSize(2);
   hmt->SetLogy();
   hmt->SetFrameBorderMode(0);
   hmt->SetFrameBorderMode(0);
   
   THStack *hmt = new THStack();
   hmt->SetName("hmt");
   hmt->SetTitle("hmt");
   
   TH1F *hmt_stack_12 = new TH1F("hmt_stack_12","hmt",8,0,200);
   hmt_stack_12->SetMinimum(5.617689e-07);
   hmt_stack_12->SetMaximum(15995.94);
   hmt_stack_12->SetDirectory(0);
   hmt_stack_12->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   hmt_stack_12->SetLineColor(ci);
   hmt_stack_12->GetXaxis()->SetTitle("hmt");
   hmt_stack_12->GetXaxis()->SetLabelFont(42);
   hmt_stack_12->GetXaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetXaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetXaxis()->SetTitleFont(42);
   hmt_stack_12->GetYaxis()->SetTitle("Events/pb");
   hmt_stack_12->GetYaxis()->SetLabelFont(42);
   hmt_stack_12->GetYaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetYaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetYaxis()->SetTitleFont(42);
   hmt_stack_12->GetZaxis()->SetLabelFont(42);
   hmt_stack_12->GetZaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetZaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetZaxis()->SetTitleFont(42);
   hmt->SetHistogram(hmt_stack_12);
   
   
   TH1D *hmt56 = new TH1D("hmt56"," Transverse mass",8,0,200);
   hmt56->SetBinContent(1,5612.801);
   hmt56->SetBinContent(2,96.67354);
   hmt56->SetBinContent(3,1.843083);
   hmt56->SetBinContent(4,0.00068069);
   hmt56->SetBinError(1,42.85727);
   hmt56->SetBinError(2,5.590091);
   hmt56->SetBinError(3,0.7489465);
   hmt56->SetBinError(4,0.00068069);
   hmt56->SetEntries(35032);

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

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

   ci = TColor::GetColor("#00cc00");
   hmt56->SetMarkerColor(ci);
   hmt56->SetMarkerStyle(22);
   hmt56->GetXaxis()->SetTitle("hmt");
   hmt56->GetXaxis()->SetLabelFont(42);
   hmt56->GetXaxis()->SetLabelSize(0.035);
   hmt56->GetXaxis()->SetTitleSize(0.035);
   hmt56->GetXaxis()->SetTitleFont(42);
   hmt56->GetYaxis()->SetTitle("Events/pb");
   hmt56->GetYaxis()->SetLabelFont(42);
   hmt56->GetYaxis()->SetLabelSize(0.035);
   hmt56->GetYaxis()->SetTitleSize(0.035);
   hmt56->GetYaxis()->SetTitleFont(42);
   hmt56->GetZaxis()->SetLabelFont(42);
   hmt56->GetZaxis()->SetLabelSize(0.035);
   hmt56->GetZaxis()->SetTitleSize(0.035);
   hmt56->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   
   TH1D *hmt57 = new TH1D("hmt57"," Transverse mass",8,0,200);
   hmt57->SetBinContent(1,20.71688);
   hmt57->SetBinContent(2,9.067683);
   hmt57->SetBinContent(3,5.102584);
   hmt57->SetBinContent(4,1.066239);
   hmt57->SetBinContent(5,0.004897312);
   hmt57->SetBinContent(6,8.681582e-05);
   hmt57->SetBinContent(7,2.866842e-05);
   hmt57->SetBinError(1,0.1278328);
   hmt57->SetBinError(2,0.08350833);
   hmt57->SetBinError(3,0.06062541);
   hmt57->SetBinError(4,0.025646);
   hmt57->SetBinError(5,0.001471335);
   hmt57->SetBinError(6,3.545477e-05);
   hmt57->SetBinError(7,2.027973e-05);
   hmt57->SetEntries(136801);

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

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

   ci = TColor::GetColor("#00ffff");
   hmt57->SetMarkerColor(ci);
   hmt57->SetMarkerStyle(20);
   hmt57->GetXaxis()->SetTitle("hmt");
   hmt57->GetXaxis()->SetLabelFont(42);
   hmt57->GetXaxis()->SetLabelSize(0.035);
   hmt57->GetXaxis()->SetTitleSize(0.035);
   hmt57->GetXaxis()->SetTitleFont(42);
   hmt57->GetYaxis()->SetTitle("Events/pb");
   hmt57->GetYaxis()->SetLabelFont(42);
   hmt57->GetYaxis()->SetLabelSize(0.035);
   hmt57->GetYaxis()->SetTitleSize(0.035);
   hmt57->GetYaxis()->SetTitleFont(42);
   hmt57->GetZaxis()->SetLabelFont(42);
   hmt57->GetZaxis()->SetLabelSize(0.035);
   hmt57->GetZaxis()->SetTitleSize(0.035);
   hmt57->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   
   TH1D *hmt58 = new TH1D("hmt58"," Transverse mass",8,0,200);
   hmt58->SetBinContent(1,4.450283);
   hmt58->SetBinContent(2,0.4423873);
   hmt58->SetBinContent(3,0.0414851);
   hmt58->SetBinContent(4,0.005226811);
   hmt58->SetBinContent(5,0.0005983346);
   hmt58->SetBinContent(6,4.854534e-05);
   hmt58->SetBinContent(7,4.681207e-06);
   hmt58->SetBinContent(8,3.510905e-06);
   hmt58->SetBinContent(9,2.340604e-06);
   hmt58->SetBinError(1,0.01852365);
   hmt58->SetBinError(2,0.005347213);
   hmt58->SetBinError(3,0.001581388);
   hmt58->SetBinError(4,0.000472027);
   hmt58->SetBinError(5,0.000107885);
   hmt58->SetBinError(6,1.091083e-05);
   hmt58->SetBinError(7,2.340604e-06);
   hmt58->SetBinError(8,2.027022e-06);
   hmt58->SetBinError(9,1.655057e-06);
   hmt58->SetEntries(131338);

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

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

   ci = TColor::GetColor("#ffcc00");
   hmt58->SetMarkerColor(ci);
   hmt58->SetMarkerStyle(21);
   hmt58->GetXaxis()->SetTitle("hmt");
   hmt58->GetXaxis()->SetLabelFont(42);
   hmt58->GetXaxis()->SetLabelSize(0.035);
   hmt58->GetXaxis()->SetTitleSize(0.035);
   hmt58->GetXaxis()->SetTitleFont(42);
   hmt58->GetYaxis()->SetTitle("Events/pb");
   hmt58->GetYaxis()->SetLabelFont(42);
   hmt58->GetYaxis()->SetLabelSize(0.035);
   hmt58->GetYaxis()->SetTitleSize(0.035);
   hmt58->GetYaxis()->SetTitleFont(42);
   hmt58->GetZaxis()->SetLabelFont(42);
   hmt58->GetZaxis()->SetLabelSize(0.035);
   hmt58->GetZaxis()->SetTitleSize(0.035);
   hmt58->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   
   TH1D *hmt59 = new TH1D("hmt59"," Transverse mass",8,0,200);
   hmt59->SetBinContent(1,0.03415001);
   hmt59->SetBinContent(2,0.02037586);
   hmt59->SetBinContent(3,0.007434646);
   hmt59->SetBinContent(4,0.001881798);
   hmt59->SetBinContent(5,0.0003547652);
   hmt59->SetBinContent(6,3.084915e-05);
   hmt59->SetBinError(1,0.0007257751);
   hmt59->SetBinError(2,0.0005606149);
   hmt59->SetBinError(3,0.0003386388);
   hmt59->SetBinError(4,0.00017037);
   hmt59->SetBinError(5,7.397367e-05);
   hmt59->SetBinError(6,2.181364e-05);
   hmt59->SetEntries(4164);

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

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

   ci = TColor::GetColor("#ff0000");
   hmt59->SetMarkerColor(ci);
   hmt59->SetMarkerStyle(20);
   hmt59->GetXaxis()->SetTitle("hmt");
   hmt59->GetXaxis()->SetLabelFont(42);
   hmt59->GetXaxis()->SetLabelSize(0.035);
   hmt59->GetXaxis()->SetTitleSize(0.035);
   hmt59->GetXaxis()->SetTitleFont(42);
   hmt59->GetYaxis()->SetTitle("Events/pb");
   hmt59->GetYaxis()->SetLabelFont(42);
   hmt59->GetYaxis()->SetLabelSize(0.035);
   hmt59->GetYaxis()->SetTitleSize(0.035);
   hmt59->GetYaxis()->SetTitleFont(42);
   hmt59->GetZaxis()->SetLabelFont(42);
   hmt59->GetZaxis()->SetLabelSize(0.035);
   hmt59->GetZaxis()->SetTitleSize(0.035);
   hmt59->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   
   TH1D *hmt60 = new TH1D("hmt60"," Transverse mass",8,0,200);
   hmt60->SetBinContent(1,0.0006037793);
   hmt60->SetBinContent(2,0.0002683464);
   hmt60->SetBinContent(3,0.0001341732);
   hmt60->SetBinContent(4,1.677165e-05);
   hmt60->SetBinError(1,0.0001006299);
   hmt60->SetBinError(2,6.708659e-05);
   hmt60->SetBinError(3,4.743738e-05);
   hmt60->SetBinError(4,1.677165e-05);
   hmt60->SetEntries(61);

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

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

   ci = TColor::GetColor("#0000ff");
   hmt60->SetMarkerColor(ci);
   hmt60->SetMarkerStyle(21);
   hmt60->GetXaxis()->SetTitle("hmt");
   hmt60->GetXaxis()->SetLabelFont(42);
   hmt60->GetXaxis()->SetLabelSize(0.035);
   hmt60->GetXaxis()->SetTitleSize(0.035);
   hmt60->GetXaxis()->SetTitleFont(42);
   hmt60->GetYaxis()->SetTitle("Events/pb");
   hmt60->GetYaxis()->SetLabelFont(42);
   hmt60->GetYaxis()->SetLabelSize(0.035);
   hmt60->GetYaxis()->SetTitleSize(0.035);
   hmt60->GetYaxis()->SetTitleFont(42);
   hmt60->GetZaxis()->SetLabelFont(42);
   hmt60->GetZaxis()->SetLabelSize(0.035);
   hmt60->GetZaxis()->SetTitleSize(0.035);
   hmt60->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   hmt->Draw("nostack");
   
   TPaveText *pt = new TPaveText(0.444023,0.94,0.555977,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("hmt");
   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("hmt","hmt_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("hmt","hmt_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("hmt","hmt_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("hmt","hmt_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("hmt","hmt_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();
   hmt->Modified();
   hmt->cd();
   hmt->SetSelected(hmt);
}
void DarkSusy_mH_125_mGammaD_2000_cT_10_LHE_dimuon_p()
{
//=========Macro generated from canvas: cnv/cnv
//=========  (Sun May 24 15:17:57 2015) by ROOT version6.02/05
    TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904);
    gStyle->SetOptFit(1);
    gStyle->SetOptStat(0);
    gStyle->SetOptTitle(0);
    cnv->SetHighLightColor(2);
    cnv->Range(-21.25,-0.006229087,103.75,0.04168697);
    cnv->SetFillColor(0);
    cnv->SetBorderMode(0);
    cnv->SetBorderSize(2);
    cnv->SetTickx(1);
    cnv->SetTicky(1);
    cnv->SetLeftMargin(0.17);
    cnv->SetRightMargin(0.03);
    cnv->SetTopMargin(0.07);
    cnv->SetBottomMargin(0.13);
    cnv->SetFrameFillStyle(0);
    cnv->SetFrameBorderMode(0);
    cnv->SetFrameFillStyle(0);
    cnv->SetFrameBorderMode(0);

    TH1F *h_dimuon_1_p_dummy132 = new TH1F("h_dimuon_1_p_dummy132","h_dimuon_1_p_dummy",100,0,100);
    h_dimuon_1_p_dummy132->SetMaximum(0.03833284);
    h_dimuon_1_p_dummy132->SetLineStyle(0);
    h_dimuon_1_p_dummy132->SetMarkerStyle(20);
    h_dimuon_1_p_dummy132->GetXaxis()->SetTitle("p of #mu#mu [GeV]");
    h_dimuon_1_p_dummy132->GetXaxis()->SetLabelFont(42);
    h_dimuon_1_p_dummy132->GetXaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p_dummy132->GetXaxis()->SetTitleSize(0.06);
    h_dimuon_1_p_dummy132->GetXaxis()->SetTitleOffset(0.95);
    h_dimuon_1_p_dummy132->GetXaxis()->SetTitleFont(42);
    h_dimuon_1_p_dummy132->GetYaxis()->SetTitle("Fraction of events / 1 GeV");
    h_dimuon_1_p_dummy132->GetYaxis()->SetLabelFont(42);
    h_dimuon_1_p_dummy132->GetYaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p_dummy132->GetYaxis()->SetTitleSize(0.06);
    h_dimuon_1_p_dummy132->GetYaxis()->SetTitleOffset(1.35);
    h_dimuon_1_p_dummy132->GetYaxis()->SetTitleFont(42);
    h_dimuon_1_p_dummy132->GetZaxis()->SetLabelFont(42);
    h_dimuon_1_p_dummy132->GetZaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p_dummy132->GetZaxis()->SetTitleSize(0.06);
    h_dimuon_1_p_dummy132->GetZaxis()->SetTitleFont(42);
    h_dimuon_1_p_dummy132->Draw("");

    TH1F *h_dimuon_1_p133 = new TH1F("h_dimuon_1_p133","h_dimuon_1_p",101,0,101);
    h_dimuon_1_p133->SetBinContent(4,3.64385e-05);
    h_dimuon_1_p133->SetBinContent(5,0.000145754);
    h_dimuon_1_p133->SetBinContent(6,0.0002004118);
    h_dimuon_1_p133->SetBinContent(7,0.0004008235);
    h_dimuon_1_p133->SetBinContent(8,0.0006012353);
    h_dimuon_1_p133->SetBinContent(9,0.0009656203);
    h_dimuon_1_p133->SetBinContent(10,0.001657952);
    h_dimuon_1_p133->SetBinContent(11,0.001967679);
    h_dimuon_1_p133->SetBinContent(12,0.002477818);
    h_dimuon_1_p133->SetBinContent(13,0.003206588);
    h_dimuon_1_p133->SetBinContent(14,0.00413577);
    h_dimuon_1_p133->SetBinContent(15,0.004700567);
    h_dimuon_1_p133->SetBinContent(16,0.005283582);
    h_dimuon_1_p133->SetBinContent(17,0.006832219);
    h_dimuon_1_p133->SetBinContent(18,0.007816059);
    h_dimuon_1_p133->SetBinContent(19,0.008052909);
    h_dimuon_1_p133->SetBinContent(20,0.009437571);
    h_dimuon_1_p133->SetBinContent(21,0.01118662);
    h_dimuon_1_p133->SetBinContent(22,0.01244375);
    h_dimuon_1_p133->SetBinContent(23,0.01186073);
    h_dimuon_1_p133->SetBinContent(24,0.01373732);
    h_dimuon_1_p133->SetBinContent(25,0.01473937);
    h_dimuon_1_p133->SetBinContent(26,0.01512198);
    h_dimuon_1_p133->SetBinContent(27,0.01619691);
    h_dimuon_1_p133->SetBinContent(28,0.01687103);
    h_dimuon_1_p133->SetBinContent(29,0.01738117);
    h_dimuon_1_p133->SetBinContent(30,0.01690746);
    h_dimuon_1_p133->SetBinContent(31,0.01783665);
    h_dimuon_1_p133->SetBinContent(32,0.01896624);
    h_dimuon_1_p133->SetBinContent(33,0.01947638);
    h_dimuon_1_p133->SetBinContent(34,0.02062419);
    h_dimuon_1_p133->SetBinContent(35,0.01967679);
    h_dimuon_1_p133->SetBinContent(36,0.0210068);
    h_dimuon_1_p133->SetBinContent(37,0.02217283);
    h_dimuon_1_p133->SetBinContent(38,0.02055131);
    h_dimuon_1_p133->SetBinContent(39,0.0208246);
    h_dimuon_1_p133->SetBinContent(40,0.02208173);
    h_dimuon_1_p133->SetBinContent(41,0.02321132);
    h_dimuon_1_p133->SetBinContent(42,0.02208173);
    h_dimuon_1_p133->SetBinContent(43,0.02133474);
    h_dimuon_1_p133->SetBinContent(44,0.02189954);
    h_dimuon_1_p133->SetBinContent(45,0.02020515);
    h_dimuon_1_p133->SetBinContent(46,0.01984076);
    h_dimuon_1_p133->SetBinContent(47,0.01860186);
    h_dimuon_1_p133->SetBinContent(48,0.01734473);
    h_dimuon_1_p133->SetBinContent(49,0.01747226);
    h_dimuon_1_p133->SetBinContent(50,0.01475759);
    h_dimuon_1_p133->SetBinContent(51,0.01444787);
    h_dimuon_1_p133->SetBinContent(52,0.01415636);
    h_dimuon_1_p133->SetBinContent(53,0.01381019);
    h_dimuon_1_p133->SetBinContent(54,0.0126806);
    h_dimuon_1_p133->SetBinContent(55,0.01191539);
    h_dimuon_1_p133->SetBinContent(56,0.01129594);
    h_dimuon_1_p133->SetBinContent(57,0.01191539);
    h_dimuon_1_p133->SetBinContent(58,0.011551);
    h_dimuon_1_p133->SetBinContent(59,0.01036675);
    h_dimuon_1_p133->SetBinContent(60,0.0110773);
    h_dimuon_1_p133->SetBinContent(61,0.01056716);
    h_dimuon_1_p133->SetBinContent(62,0.009947711);
    h_dimuon_1_p133->SetBinContent(63,0.009893053);
    h_dimuon_1_p133->SetBinContent(64,0.009018529);
    h_dimuon_1_p133->SetBinContent(65,0.008144005);
    h_dimuon_1_p133->SetBinContent(66,0.008799898);
    h_dimuon_1_p133->SetBinContent(67,0.00849017);
    h_dimuon_1_p133->SetBinContent(68,0.008216882);
    h_dimuon_1_p133->SetBinContent(69,0.008526609);
    h_dimuon_1_p133->SetBinContent(70,0.008799898);
    h_dimuon_1_p133->SetBinContent(71,0.008581267);
    h_dimuon_1_p133->SetBinContent(72,0.008089347);
    h_dimuon_1_p133->SetBinContent(73,0.007360577);
    h_dimuon_1_p133->SetBinContent(74,0.007196604);
    h_dimuon_1_p133->SetBinContent(75,0.007233042);
    h_dimuon_1_p133->SetBinContent(76,0.007160165);
    h_dimuon_1_p133->SetBinContent(77,0.00703263);
    h_dimuon_1_p133->SetBinContent(78,0.006704684);
    h_dimuon_1_p133->SetBinContent(79,0.006686465);
    h_dimuon_1_p133->SetBinContent(80,0.007160165);
    h_dimuon_1_p133->SetBinContent(81,0.00632208);
    h_dimuon_1_p133->SetBinContent(82,0.006121668);
    h_dimuon_1_p133->SetBinContent(83,0.005957695);
    h_dimuon_1_p133->SetBinContent(84,0.006522492);
    h_dimuon_1_p133->SetBinContent(85,0.006048791);
    h_dimuon_1_p133->SetBinContent(86,0.005283582);
    h_dimuon_1_p133->SetBinContent(87,0.006358518);
    h_dimuon_1_p133->SetBinContent(88,0.005739064);
    h_dimuon_1_p133->SetBinContent(89,0.005538652);
    h_dimuon_1_p133->SetBinContent(90,0.005283582);
    h_dimuon_1_p133->SetBinContent(91,0.005083171);
    h_dimuon_1_p133->SetBinContent(92,0.005629749);
    h_dimuon_1_p133->SetBinContent(93,0.005411117);
    h_dimuon_1_p133->SetBinContent(94,0.004828101);
    h_dimuon_1_p133->SetBinContent(95,0.004791663);
    h_dimuon_1_p133->SetBinContent(96,0.005083171);
    h_dimuon_1_p133->SetBinContent(97,0.004700567);
    h_dimuon_1_p133->SetBinContent(98,0.004573032);
    h_dimuon_1_p133->SetBinContent(99,0.004900978);
    h_dimuon_1_p133->SetBinContent(100,0.004664128);
    h_dimuon_1_p133->SetBinError(4,3.64385e-05);
    h_dimuon_1_p133->SetBinError(5,0.000145754);
    h_dimuon_1_p133->SetBinError(6,0.0002004118);
    h_dimuon_1_p133->SetBinError(7,0.0004008235);
    h_dimuon_1_p133->SetBinError(8,0.0006012353);
    h_dimuon_1_p133->SetBinError(9,0.0009656203);
    h_dimuon_1_p133->SetBinError(10,0.001657952);
    h_dimuon_1_p133->SetBinError(11,0.001967679);
    h_dimuon_1_p133->SetBinError(12,0.002477818);
    h_dimuon_1_p133->SetBinError(13,0.003206588);
    h_dimuon_1_p133->SetBinError(14,0.00413577);
    h_dimuon_1_p133->SetBinError(15,0.004700567);
    h_dimuon_1_p133->SetBinError(16,0.005283583);
    h_dimuon_1_p133->SetBinError(17,0.006832219);
    h_dimuon_1_p133->SetBinError(18,0.007816058);
    h_dimuon_1_p133->SetBinError(19,0.008052909);
    h_dimuon_1_p133->SetBinError(20,0.009437572);
    h_dimuon_1_p133->SetBinError(21,0.01118662);
    h_dimuon_1_p133->SetBinError(22,0.01244375);
    h_dimuon_1_p133->SetBinError(23,0.01186073);
    h_dimuon_1_p133->SetBinError(24,0.01373731);
    h_dimuon_1_p133->SetBinError(25,0.01473937);
    h_dimuon_1_p133->SetBinError(26,0.01512198);
    h_dimuon_1_p133->SetBinError(27,0.01619691);
    h_dimuon_1_p133->SetBinError(28,0.01687103);
    h_dimuon_1_p133->SetBinError(29,0.01738116);
    h_dimuon_1_p133->SetBinError(30,0.01690746);
    h_dimuon_1_p133->SetBinError(31,0.01783665);
    h_dimuon_1_p133->SetBinError(32,0.01896624);
    h_dimuon_1_p133->SetBinError(33,0.01947638);
    h_dimuon_1_p133->SetBinError(34,0.02062419);
    h_dimuon_1_p133->SetBinError(35,0.01967679);
    h_dimuon_1_p133->SetBinError(36,0.0210068);
    h_dimuon_1_p133->SetBinError(37,0.02217283);
    h_dimuon_1_p133->SetBinError(38,0.02055131);
    h_dimuon_1_p133->SetBinError(39,0.0208246);
    h_dimuon_1_p133->SetBinError(40,0.02208173);
    h_dimuon_1_p133->SetBinError(41,0.02321133);
    h_dimuon_1_p133->SetBinError(42,0.02208173);
    h_dimuon_1_p133->SetBinError(43,0.02133474);
    h_dimuon_1_p133->SetBinError(44,0.02189954);
    h_dimuon_1_p133->SetBinError(45,0.02020515);
    h_dimuon_1_p133->SetBinError(46,0.01984076);
    h_dimuon_1_p133->SetBinError(47,0.01860185);
    h_dimuon_1_p133->SetBinError(48,0.01734473);
    h_dimuon_1_p133->SetBinError(49,0.01747226);
    h_dimuon_1_p133->SetBinError(50,0.01475759);
    h_dimuon_1_p133->SetBinError(51,0.01444787);
    h_dimuon_1_p133->SetBinError(52,0.01415636);
    h_dimuon_1_p133->SetBinError(53,0.01381019);
    h_dimuon_1_p133->SetBinError(54,0.0126806);
    h_dimuon_1_p133->SetBinError(55,0.01191539);
    h_dimuon_1_p133->SetBinError(56,0.01129594);
    h_dimuon_1_p133->SetBinError(57,0.01191539);
    h_dimuon_1_p133->SetBinError(58,0.011551);
    h_dimuon_1_p133->SetBinError(59,0.01036675);
    h_dimuon_1_p133->SetBinError(60,0.0110773);
    h_dimuon_1_p133->SetBinError(61,0.01056717);
    h_dimuon_1_p133->SetBinError(62,0.009947711);
    h_dimuon_1_p133->SetBinError(63,0.009893053);
    h_dimuon_1_p133->SetBinError(64,0.009018529);
    h_dimuon_1_p133->SetBinError(65,0.008144005);
    h_dimuon_1_p133->SetBinError(66,0.008799898);
    h_dimuon_1_p133->SetBinError(67,0.008490171);
    h_dimuon_1_p133->SetBinError(68,0.008216882);
    h_dimuon_1_p133->SetBinError(69,0.008526609);
    h_dimuon_1_p133->SetBinError(70,0.008799898);
    h_dimuon_1_p133->SetBinError(71,0.008581267);
    h_dimuon_1_p133->SetBinError(72,0.008089347);
    h_dimuon_1_p133->SetBinError(73,0.007360577);
    h_dimuon_1_p133->SetBinError(74,0.007196604);
    h_dimuon_1_p133->SetBinError(75,0.007233042);
    h_dimuon_1_p133->SetBinError(76,0.007160165);
    h_dimuon_1_p133->SetBinError(77,0.007032631);
    h_dimuon_1_p133->SetBinError(78,0.006704684);
    h_dimuon_1_p133->SetBinError(79,0.006686465);
    h_dimuon_1_p133->SetBinError(80,0.007160165);
    h_dimuon_1_p133->SetBinError(81,0.00632208);
    h_dimuon_1_p133->SetBinError(82,0.006121668);
    h_dimuon_1_p133->SetBinError(83,0.005957695);
    h_dimuon_1_p133->SetBinError(84,0.006522492);
    h_dimuon_1_p133->SetBinError(85,0.006048791);
    h_dimuon_1_p133->SetBinError(86,0.005283583);
    h_dimuon_1_p133->SetBinError(87,0.006358518);
    h_dimuon_1_p133->SetBinError(88,0.005739064);
    h_dimuon_1_p133->SetBinError(89,0.005538652);
    h_dimuon_1_p133->SetBinError(90,0.005283583);
    h_dimuon_1_p133->SetBinError(91,0.005083171);
    h_dimuon_1_p133->SetBinError(92,0.005629748);
    h_dimuon_1_p133->SetBinError(93,0.005411117);
    h_dimuon_1_p133->SetBinError(94,0.004828101);
    h_dimuon_1_p133->SetBinError(95,0.004791663);
    h_dimuon_1_p133->SetBinError(96,0.005083171);
    h_dimuon_1_p133->SetBinError(97,0.004700567);
    h_dimuon_1_p133->SetBinError(98,0.004573032);
    h_dimuon_1_p133->SetBinError(99,0.004900978);
    h_dimuon_1_p133->SetBinError(100,0.004664128);
    h_dimuon_1_p133->SetEntries(79999);
    h_dimuon_1_p133->SetDirectory(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#0000ff");
    h_dimuon_1_p133->SetLineColor(ci);
    h_dimuon_1_p133->SetLineWidth(2);
    h_dimuon_1_p133->SetMarkerStyle(20);
    h_dimuon_1_p133->GetXaxis()->SetLabelFont(42);
    h_dimuon_1_p133->GetXaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p133->GetXaxis()->SetTitleSize(0.06);
    h_dimuon_1_p133->GetXaxis()->SetTitleOffset(0.95);
    h_dimuon_1_p133->GetXaxis()->SetTitleFont(42);
    h_dimuon_1_p133->GetYaxis()->SetLabelFont(42);
    h_dimuon_1_p133->GetYaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p133->GetYaxis()->SetTitleSize(0.06);
    h_dimuon_1_p133->GetYaxis()->SetTitleOffset(1.3);
    h_dimuon_1_p133->GetYaxis()->SetTitleFont(42);
    h_dimuon_1_p133->GetZaxis()->SetLabelFont(42);
    h_dimuon_1_p133->GetZaxis()->SetLabelOffset(0.007);
    h_dimuon_1_p133->GetZaxis()->SetTitleSize(0.06);
    h_dimuon_1_p133->GetZaxis()->SetTitleFont(42);
    h_dimuon_1_p133->Draw("SAME");

    TH1F *h_dimuon_2_p134 = new TH1F("h_dimuon_2_p134","h_dimuon_2_p",101,0,101);
    h_dimuon_2_p134->SetBinContent(2,0.0003750449);
    h_dimuon_2_p134->SetBinContent(3,0.001027297);
    h_dimuon_2_p134->SetBinContent(4,0.001989368);
    h_dimuon_2_p134->SetBinContent(5,0.003880899);
    h_dimuon_2_p134->SetBinContent(6,0.006131168);
    h_dimuon_2_p134->SetBinContent(7,0.00722369);
    h_dimuon_2_p134->SetBinContent(8,0.009522878);
    h_dimuon_2_p134->SetBinContent(9,0.01079477);
    h_dimuon_2_p134->SetBinContent(10,0.01260477);
    h_dimuon_2_p134->SetBinContent(11,0.01457783);
    h_dimuon_2_p134->SetBinContent(12,0.01599648);
    h_dimuon_2_p134->SetBinContent(13,0.01635522);
    h_dimuon_2_p134->SetBinContent(14,0.0176108);
    h_dimuon_2_p134->SetBinContent(15,0.0181326);
    h_dimuon_2_p134->SetBinContent(16,0.02015458);
    h_dimuon_2_p134->SetBinContent(17,0.01997522);
    h_dimuon_2_p134->SetBinContent(18,0.02052963);
    h_dimuon_2_p134->SetBinContent(19,0.02088837);
    h_dimuon_2_p134->SetBinContent(20,0.02114927);
    h_dimuon_2_p134->SetBinContent(21,0.0209862);
    h_dimuon_2_p134->SetBinContent(22,0.02000783);
    h_dimuon_2_p134->SetBinContent(23,0.02113296);
    h_dimuon_2_p134->SetBinContent(24,0.02124711);
    h_dimuon_2_p134->SetBinContent(25,0.01973062);
    h_dimuon_2_p134->SetBinContent(26,0.02129602);
    h_dimuon_2_p134->SetBinContent(27,0.02036657);
    h_dimuon_2_p134->SetBinContent(28,0.02074161);
    h_dimuon_2_p134->SetBinContent(29,0.01943711);
    h_dimuon_2_p134->SetBinContent(30,0.01912729);
    h_dimuon_2_p134->SetBinContent(31,0.01840981);
    h_dimuon_2_p134->SetBinContent(32,0.0183772);
    h_dimuon_2_p134->SetBinContent(33,0.01686071);
    h_dimuon_2_p134->SetBinContent(34,0.01700747);
    h_dimuon_2_p134->SetBinContent(35,0.01575188);
    h_dimuon_2_p134->SetBinContent(36,0.01643675);
    h_dimuon_2_p134->SetBinContent(37,0.01560513);
    h_dimuon_2_p134->SetBinContent(38,0.0137136);
    h_dimuon_2_p134->SetBinContent(39,0.01433324);
    h_dimuon_2_p134->SetBinContent(40,0.01338747);
    h_dimuon_2_p134->SetBinContent(41,0.01330594);
    h_dimuon_2_p134->SetBinContent(42,0.01342008);
    h_dimuon_2_p134->SetBinContent(43,0.01271891);
    h_dimuon_2_p134->SetBinContent(44,0.01134918);
    h_dimuon_2_p134->SetBinContent(45,0.01182207);
    h_dimuon_2_p134->SetBinContent(46,0.01095783);
    h_dimuon_2_p134->SetBinContent(47,0.01085999);
    h_dimuon_2_p134->SetBinContent(48,0.00986531);
    h_dimuon_2_p134->SetBinContent(49,0.009441346);
    h_dimuon_2_p134->SetBinContent(50,0.009669635);
    h_dimuon_2_p134->SetBinContent(51,0.009849004);
    h_dimuon_2_p134->SetBinContent(52,0.009310896);
    h_dimuon_2_p134->SetBinContent(53,0.008462968);
    h_dimuon_2_p134->SetBinContent(54,0.008756482);
    h_dimuon_2_p134->SetBinContent(55,0.008707562);
    h_dimuon_2_p134->SetBinContent(56,0.00867495);
    h_dimuon_2_p134->SetBinContent(57,0.007696572);
    h_dimuon_2_p134->SetBinContent(58,0.007859635);
    h_dimuon_2_p134->SetBinContent(59,0.007435672);
    h_dimuon_2_p134->SetBinContent(60,0.007598734);
    h_dimuon_2_p134->SetBinContent(61,0.007419365);
    h_dimuon_2_p134->SetBinContent(62,0.007239996);
    h_dimuon_2_p134->SetBinContent(63,0.006799726);
    h_dimuon_2_p134->SetBinContent(64,0.007011708);
    h_dimuon_2_p134->SetBinContent(65,0.006636663);
    h_dimuon_2_p134->SetBinContent(66,0.006277924);
    h_dimuon_2_p134->SetBinContent(67,0.006799726);
    h_dimuon_2_p134->SetBinContent(68,0.006359456);
    h_dimuon_2_p134->SetBinContent(69,0.006245312);
    h_dimuon_2_p134->SetBinContent(70,0.005788736);
    h_dimuon_2_p134->SetBinContent(71,0.00603333);
    h_dimuon_2_p134->SetBinContent(72,0.00502234);
    h_dimuon_2_p134->SetBinContent(73,0.005886573);
    h_dimuon_2_p134->SetBinContent(74,0.005446303);
    h_dimuon_2_p134->SetBinContent(75,0.005038646);
    h_dimuon_2_p134->SetBinContent(76,0.004842971);
    h_dimuon_2_p134->SetBinContent(77,0.004908196);
    h_dimuon_2_p134->SetBinContent(78,0.004614682);
    h_dimuon_2_p134->SetBinContent(79,0.005120177);
    h_dimuon_2_p134->SetBinContent(80,0.004598376);
    h_dimuon_2_p134->SetBinContent(81,0.004565763);
    h_dimuon_2_p134->SetBinContent(82,0.004598376);
    h_dimuon_2_p134->SetBinContent(83,0.004304863);
    h_dimuon_2_p134->SetBinContent(84,0.004533151);
    h_dimuon_2_p134->SetBinContent(85,0.004728826);
    h_dimuon_2_p134->SetBinContent(86,0.004076574);
    h_dimuon_2_p134->SetBinContent(87,0.004109187);
    h_dimuon_2_p134->SetBinContent(88,0.004255943);
    h_dimuon_2_p134->SetBinContent(89,0.003995043);
    h_dimuon_2_p134->SetBinContent(90,0.003815674);
    h_dimuon_2_p134->SetBinContent(91,0.004174412);
    h_dimuon_2_p134->SetBinContent(92,0.004467926);
    h_dimuon_2_p134->SetBinContent(93,0.003929818);
    h_dimuon_2_p134->SetBinContent(94,0.003701529);
    h_dimuon_2_p134->SetBinContent(95,0.004174412);
    h_dimuon_2_p134->SetBinContent(96,0.003766755);
    h_dimuon_2_p134->SetBinContent(97,0.003473241);
    h_dimuon_2_p134->SetBinContent(98,0.003717836);
    h_dimuon_2_p134->SetBinContent(99,0.003636304);
    h_dimuon_2_p134->SetBinContent(100,0.003244953);
    h_dimuon_2_p134->SetBinError(2,0.0003750448);
    h_dimuon_2_p134->SetBinError(3,0.001027297);
    h_dimuon_2_p134->SetBinError(4,0.001989368);
    h_dimuon_2_p134->SetBinError(5,0.003880899);
    h_dimuon_2_p134->SetBinError(6,0.006131168);
    h_dimuon_2_p134->SetBinError(7,0.00722369);
    h_dimuon_2_p134->SetBinError(8,0.009522878);
    h_dimuon_2_p134->SetBinError(9,0.01079477);
    h_dimuon_2_p134->SetBinError(10,0.01260477);
    h_dimuon_2_p134->SetBinError(11,0.01457783);
    h_dimuon_2_p134->SetBinError(12,0.01599648);
    h_dimuon_2_p134->SetBinError(13,0.01635522);
    h_dimuon_2_p134->SetBinError(14,0.0176108);
    h_dimuon_2_p134->SetBinError(15,0.0181326);
    h_dimuon_2_p134->SetBinError(16,0.02015458);
    h_dimuon_2_p134->SetBinError(17,0.01997521);
    h_dimuon_2_p134->SetBinError(18,0.02052963);
    h_dimuon_2_p134->SetBinError(19,0.02088837);
    h_dimuon_2_p134->SetBinError(20,0.02114927);
    h_dimuon_2_p134->SetBinError(21,0.0209862);
    h_dimuon_2_p134->SetBinError(22,0.02000783);
    h_dimuon_2_p134->SetBinError(23,0.02113296);
    h_dimuon_2_p134->SetBinError(24,0.02124711);
    h_dimuon_2_p134->SetBinError(25,0.01973062);
    h_dimuon_2_p134->SetBinError(26,0.02129602);
    h_dimuon_2_p134->SetBinError(27,0.02036657);
    h_dimuon_2_p134->SetBinError(28,0.02074161);
    h_dimuon_2_p134->SetBinError(29,0.01943711);
    h_dimuon_2_p134->SetBinError(30,0.01912729);
    h_dimuon_2_p134->SetBinError(31,0.01840981);
    h_dimuon_2_p134->SetBinError(32,0.0183772);
    h_dimuon_2_p134->SetBinError(33,0.01686071);
    h_dimuon_2_p134->SetBinError(34,0.01700747);
    h_dimuon_2_p134->SetBinError(35,0.01575188);
    h_dimuon_2_p134->SetBinError(36,0.01643675);
    h_dimuon_2_p134->SetBinError(37,0.01560513);
    h_dimuon_2_p134->SetBinError(38,0.0137136);
    h_dimuon_2_p134->SetBinError(39,0.01433324);
    h_dimuon_2_p134->SetBinError(40,0.01338747);
    h_dimuon_2_p134->SetBinError(41,0.01330594);
    h_dimuon_2_p134->SetBinError(42,0.01342008);
    h_dimuon_2_p134->SetBinError(43,0.01271891);
    h_dimuon_2_p134->SetBinError(44,0.01134918);
    h_dimuon_2_p134->SetBinError(45,0.01182207);
    h_dimuon_2_p134->SetBinError(46,0.01095783);
    h_dimuon_2_p134->SetBinError(47,0.01085999);
    h_dimuon_2_p134->SetBinError(48,0.00986531);
    h_dimuon_2_p134->SetBinError(49,0.009441346);
    h_dimuon_2_p134->SetBinError(50,0.009669634);
    h_dimuon_2_p134->SetBinError(51,0.009849004);
    h_dimuon_2_p134->SetBinError(52,0.009310896);
    h_dimuon_2_p134->SetBinError(53,0.008462968);
    h_dimuon_2_p134->SetBinError(54,0.008756482);
    h_dimuon_2_p134->SetBinError(55,0.008707563);
    h_dimuon_2_p134->SetBinError(56,0.00867495);
    h_dimuon_2_p134->SetBinError(57,0.007696572);
    h_dimuon_2_p134->SetBinError(58,0.007859635);
    h_dimuon_2_p134->SetBinError(59,0.007435672);
    h_dimuon_2_p134->SetBinError(60,0.007598735);
    h_dimuon_2_p134->SetBinError(61,0.007419365);
    h_dimuon_2_p134->SetBinError(62,0.007239996);
    h_dimuon_2_p134->SetBinError(63,0.006799726);
    h_dimuon_2_p134->SetBinError(64,0.007011708);
    h_dimuon_2_p134->SetBinError(65,0.006636663);
    h_dimuon_2_p134->SetBinError(66,0.006277925);
    h_dimuon_2_p134->SetBinError(67,0.006799726);
    h_dimuon_2_p134->SetBinError(68,0.006359456);
    h_dimuon_2_p134->SetBinError(69,0.006245312);
    h_dimuon_2_p134->SetBinError(70,0.005788736);
    h_dimuon_2_p134->SetBinError(71,0.00603333);
    h_dimuon_2_p134->SetBinError(72,0.00502234);
    h_dimuon_2_p134->SetBinError(73,0.005886573);
    h_dimuon_2_p134->SetBinError(74,0.005446303);
    h_dimuon_2_p134->SetBinError(75,0.005038646);
    h_dimuon_2_p134->SetBinError(76,0.00484297);
    h_dimuon_2_p134->SetBinError(77,0.004908196);
    h_dimuon_2_p134->SetBinError(78,0.004614682);
    h_dimuon_2_p134->SetBinError(79,0.005120177);
    h_dimuon_2_p134->SetBinError(80,0.004598376);
    h_dimuon_2_p134->SetBinError(81,0.004565763);
    h_dimuon_2_p134->SetBinError(82,0.004598376);
    h_dimuon_2_p134->SetBinError(83,0.004304863);
    h_dimuon_2_p134->SetBinError(84,0.004533151);
    h_dimuon_2_p134->SetBinError(85,0.004728826);
    h_dimuon_2_p134->SetBinError(86,0.004076574);
    h_dimuon_2_p134->SetBinError(87,0.004109187);
    h_dimuon_2_p134->SetBinError(88,0.004255944);
    h_dimuon_2_p134->SetBinError(89,0.003995043);
    h_dimuon_2_p134->SetBinError(90,0.003815674);
    h_dimuon_2_p134->SetBinError(91,0.004174412);
    h_dimuon_2_p134->SetBinError(92,0.004467926);
    h_dimuon_2_p134->SetBinError(93,0.003929818);
    h_dimuon_2_p134->SetBinError(94,0.00370153);
    h_dimuon_2_p134->SetBinError(95,0.004174412);
    h_dimuon_2_p134->SetBinError(96,0.003766755);
    h_dimuon_2_p134->SetBinError(97,0.003473241);
    h_dimuon_2_p134->SetBinError(98,0.003717836);
    h_dimuon_2_p134->SetBinError(99,0.003636304);
    h_dimuon_2_p134->SetBinError(100,0.003244953);
    h_dimuon_2_p134->SetEntries(79999);
    h_dimuon_2_p134->SetDirectory(0);

    ci = TColor::GetColor("#ff0000");
    h_dimuon_2_p134->SetLineColor(ci);
    h_dimuon_2_p134->SetLineWidth(2);
    h_dimuon_2_p134->SetMarkerStyle(20);
    h_dimuon_2_p134->GetXaxis()->SetLabelFont(42);
    h_dimuon_2_p134->GetXaxis()->SetLabelOffset(0.007);
    h_dimuon_2_p134->GetXaxis()->SetTitleSize(0.06);
    h_dimuon_2_p134->GetXaxis()->SetTitleOffset(0.95);
    h_dimuon_2_p134->GetXaxis()->SetTitleFont(42);
    h_dimuon_2_p134->GetYaxis()->SetLabelFont(42);
    h_dimuon_2_p134->GetYaxis()->SetLabelOffset(0.007);
    h_dimuon_2_p134->GetYaxis()->SetTitleSize(0.06);
    h_dimuon_2_p134->GetYaxis()->SetTitleOffset(1.3);
    h_dimuon_2_p134->GetYaxis()->SetTitleFont(42);
    h_dimuon_2_p134->GetZaxis()->SetLabelFont(42);
    h_dimuon_2_p134->GetZaxis()->SetLabelOffset(0.007);
    h_dimuon_2_p134->GetZaxis()->SetTitleSize(0.06);
    h_dimuon_2_p134->GetZaxis()->SetTitleFont(42);
    h_dimuon_2_p134->Draw("SAME");

    TLegend *leg = new TLegend(0.46,0.6744444,0.6955556,0.7644444,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextSize(0.02777778);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    TLegendEntry *entry=leg->AddEntry("h_dimuon_1_p","1st #mu#mu (leading p_{T})","L");

    ci = TColor::GetColor("#0000ff");
    entry->SetLineColor(ci);
    entry->SetLineStyle(1);
    entry->SetLineWidth(2);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    entry=leg->AddEntry("h_dimuon_2_p","2nd #mu#mu","L");

    ci = TColor::GetColor("#ff0000");
    entry->SetLineColor(ci);
    entry->SetLineStyle(1);
    entry->SetLineWidth(2);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    leg->Draw();

    leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextSize(0.02777778);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 10 mm}}","h");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    leg->Draw();

    leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextAlign(22);
    leg->SetTextSize(0.045);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    leg->Draw();
    cnv->Modified();
    cnv->cd();
    cnv->SetSelected(cnv);
}
void DarkSusy_mH_125_mGammaD_2000_cT_1000_LHE_dimuon_m1_vs_m2()
{
//=========Macro generated from canvas: cnv/cnv
//=========  (Sun May 24 15:19:04 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.36674,-7.877387,51.86701,54.35636);
   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);
   
   TH2F *h_m1_vs_m2113 = new TH2F("h_m1_vs_m2113","h_m1_vs_m2",500,0.213,50,100,0.213,50);
   h_m1_vs_m2113->SetBinContent(20279,79998);
   h_m1_vs_m2113->SetBinContent(20280,1);
   h_m1_vs_m2113->SetEntries(79999);
   h_m1_vs_m2113->SetLineStyle(0);
   h_m1_vs_m2113->SetMarkerStyle(20);
   h_m1_vs_m2113->GetXaxis()->SetTitle("m_{2#mu#mu} [GeV]");
   h_m1_vs_m2113->GetXaxis()->SetLabelFont(42);
   h_m1_vs_m2113->GetXaxis()->SetLabelOffset(0.007);
   h_m1_vs_m2113->GetXaxis()->SetTitleSize(0.06);
   h_m1_vs_m2113->GetXaxis()->SetTitleOffset(0.95);
   h_m1_vs_m2113->GetXaxis()->SetTitleFont(42);
   h_m1_vs_m2113->GetYaxis()->SetTitle("m_{1#mu#mu} [GeV]");
   h_m1_vs_m2113->GetYaxis()->SetLabelFont(42);
   h_m1_vs_m2113->GetYaxis()->SetLabelOffset(0.007);
   h_m1_vs_m2113->GetYaxis()->SetTitleSize(0.06);
   h_m1_vs_m2113->GetYaxis()->SetTitleOffset(1.3);
   h_m1_vs_m2113->GetYaxis()->SetTitleFont(42);
   h_m1_vs_m2113->GetZaxis()->SetLabelFont(42);
   h_m1_vs_m2113->GetZaxis()->SetLabelOffset(0.007);
   h_m1_vs_m2113->GetZaxis()->SetTitleSize(0.06);
   h_m1_vs_m2113->GetZaxis()->SetTitleFont(42);
   h_m1_vs_m2113->Draw("");
   
   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}} = 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 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 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 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 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);
}
Beispiel #27
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 DarkSusy_mH_125_mGammaD_2000_cT_0_LHE_gammaD_M()
{
//=========Macro generated from canvas: cnv/cnv
//=========  (Sun May 24 15:19:47 2015) by ROOT version6.02/05
    TCanvas *cnv = new TCanvas("cnv", "cnv",1,1,904,904);
    gStyle->SetOptFit(1);
    gStyle->SetOptStat(0);
    gStyle->SetOptTitle(0);
    cnv->SetHighLightColor(2);
    cnv->Range(-1.526695,-0.2275,1.571513,1.5225);
    cnv->SetFillColor(0);
    cnv->SetBorderMode(0);
    cnv->SetBorderSize(2);
    cnv->SetLogx();
    cnv->SetTickx(1);
    cnv->SetTicky(1);
    cnv->SetLeftMargin(0.17);
    cnv->SetRightMargin(0.03);
    cnv->SetTopMargin(0.07);
    cnv->SetBottomMargin(0.13);
    cnv->SetFrameFillStyle(0);
    cnv->SetFrameBorderMode(0);
    cnv->SetFrameFillStyle(0);
    cnv->SetFrameBorderMode(0);

    TH1F *h_gammaD_1_M_dummy86 = new TH1F("h_gammaD_1_M_dummy86","h_gammaD_1_M_dummy",303,0.1,30.1);
    h_gammaD_1_M_dummy86->SetMaximum(1.4);
    h_gammaD_1_M_dummy86->SetLineStyle(0);
    h_gammaD_1_M_dummy86->SetMarkerStyle(20);
    h_gammaD_1_M_dummy86->GetXaxis()->SetTitle("Mass of #gamma_{D} [GeV]");
    h_gammaD_1_M_dummy86->GetXaxis()->SetLabelFont(42);
    h_gammaD_1_M_dummy86->GetXaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M_dummy86->GetXaxis()->SetTitleSize(0.06);
    h_gammaD_1_M_dummy86->GetXaxis()->SetTitleOffset(0.95);
    h_gammaD_1_M_dummy86->GetXaxis()->SetTitleFont(42);
    h_gammaD_1_M_dummy86->GetYaxis()->SetTitle("Fraction of events / 0.1 GeV");
    h_gammaD_1_M_dummy86->GetYaxis()->SetLabelFont(42);
    h_gammaD_1_M_dummy86->GetYaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M_dummy86->GetYaxis()->SetTitleSize(0.06);
    h_gammaD_1_M_dummy86->GetYaxis()->SetTitleOffset(1.35);
    h_gammaD_1_M_dummy86->GetYaxis()->SetTitleFont(42);
    h_gammaD_1_M_dummy86->GetZaxis()->SetLabelFont(42);
    h_gammaD_1_M_dummy86->GetZaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M_dummy86->GetZaxis()->SetTitleSize(0.06);
    h_gammaD_1_M_dummy86->GetZaxis()->SetTitleFont(42);
    h_gammaD_1_M_dummy86->Draw("");

    TH1F *h_gammaD_1_M87 = new TH1F("h_gammaD_1_M87","h_gammaD_1_M",303,0.1,30.1);
    h_gammaD_1_M87->SetBinContent(201,1);
    h_gammaD_1_M87->SetBinError(201,0.002500016);
    h_gammaD_1_M87->SetEntries(159998);
    h_gammaD_1_M87->SetDirectory(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#0000ff");
    h_gammaD_1_M87->SetLineColor(ci);
    h_gammaD_1_M87->SetLineWidth(2);
    h_gammaD_1_M87->SetMarkerStyle(20);
    h_gammaD_1_M87->GetXaxis()->SetLabelFont(42);
    h_gammaD_1_M87->GetXaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M87->GetXaxis()->SetTitleSize(0.06);
    h_gammaD_1_M87->GetXaxis()->SetTitleOffset(0.95);
    h_gammaD_1_M87->GetXaxis()->SetTitleFont(42);
    h_gammaD_1_M87->GetYaxis()->SetLabelFont(42);
    h_gammaD_1_M87->GetYaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M87->GetYaxis()->SetTitleSize(0.06);
    h_gammaD_1_M87->GetYaxis()->SetTitleOffset(1.3);
    h_gammaD_1_M87->GetYaxis()->SetTitleFont(42);
    h_gammaD_1_M87->GetZaxis()->SetLabelFont(42);
    h_gammaD_1_M87->GetZaxis()->SetLabelOffset(0.007);
    h_gammaD_1_M87->GetZaxis()->SetTitleSize(0.06);
    h_gammaD_1_M87->GetZaxis()->SetTitleFont(42);
    h_gammaD_1_M87->Draw("SAMEHIST");

    TLegend *leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextSize(0.02777778);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    TLegendEntry *entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 50 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 20 GeV, c#tau_{#gamma_{D}} = 0 mm}}","h");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    leg->Draw();

    leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextAlign(22);
    leg->SetTextSize(0.045);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    entry=leg->AddEntry("NULL","CMS Simulation (LHE) 14 TeV","h");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(42);
    leg->Draw();
    cnv->Modified();
    cnv->cd();
    cnv->SetSelected(cnv);
}
void 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_100_LHE_dimuon_m_fake()
{
//=========Macro generated from canvas: cnv/cnv
//=========  (Sun May 24 15:18:28 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(-26.5625,-0.008809844,129.6875,0.05895819);
   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_m_fake_dummy116 = new TH1F("h_dimuon_m_fake_dummy116","h_dimuon_m_fake_dummy",125,0,125);
   h_dimuon_m_fake_dummy116->SetMaximum(0.05421443);
   h_dimuon_m_fake_dummy116->SetLineStyle(0);
   h_dimuon_m_fake_dummy116->SetMarkerStyle(20);
   h_dimuon_m_fake_dummy116->GetXaxis()->SetTitle("Mass of Fake #mu#mu [GeV]");
   h_dimuon_m_fake_dummy116->GetXaxis()->SetLabelFont(42);
   h_dimuon_m_fake_dummy116->GetXaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_dummy116->GetXaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_dummy116->GetXaxis()->SetTitleOffset(0.95);
   h_dimuon_m_fake_dummy116->GetXaxis()->SetTitleFont(42);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetTitle("Fraction of events / 1 GeV");
   h_dimuon_m_fake_dummy116->GetYaxis()->SetNdivisions(508);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetLabelFont(42);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetTitleOffset(1.35);
   h_dimuon_m_fake_dummy116->GetYaxis()->SetTitleFont(42);
   h_dimuon_m_fake_dummy116->GetZaxis()->SetLabelFont(42);
   h_dimuon_m_fake_dummy116->GetZaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_dummy116->GetZaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_dummy116->GetZaxis()->SetTitleFont(42);
   h_dimuon_m_fake_dummy116->Draw("");
   
   TH1F *h_dimuon_m_fake_0117 = new TH1F("h_dimuon_m_fake_0117","h_dimuon_m_fake_0",125,0,125);
   h_dimuon_m_fake_0117->SetBinContent(1,0.001193765);
   h_dimuon_m_fake_0117->SetBinContent(2,0.003418793);
   h_dimuon_m_fake_0117->SetBinContent(3,0.005868823);
   h_dimuon_m_fake_0117->SetBinContent(4,0.007793847);
   h_dimuon_m_fake_0117->SetBinContent(5,0.01025013);
   h_dimuon_m_fake_0117->SetBinContent(6,0.01258141);
   h_dimuon_m_fake_0117->SetBinContent(7,0.01408143);
   h_dimuon_m_fake_0117->SetBinContent(8,0.01711896);
   h_dimuon_m_fake_0117->SetBinContent(9,0.01928774);
   h_dimuon_m_fake_0117->SetBinContent(10,0.02063776);
   h_dimuon_m_fake_0117->SetBinContent(11,0.02268153);
   h_dimuon_m_fake_0117->SetBinContent(12,0.0239628);
   h_dimuon_m_fake_0117->SetBinContent(13,0.02550657);
   h_dimuon_m_fake_0117->SetBinContent(14,0.02655658);
   h_dimuon_m_fake_0117->SetBinContent(15,0.02669408);
   h_dimuon_m_fake_0117->SetBinContent(16,0.02803785);
   h_dimuon_m_fake_0117->SetBinContent(17,0.02936287);
   h_dimuon_m_fake_0117->SetBinContent(18,0.0283941);
   h_dimuon_m_fake_0117->SetBinContent(19,0.03011913);
   h_dimuon_m_fake_0117->SetBinContent(20,0.02869411);
   h_dimuon_m_fake_0117->SetBinContent(21,0.02987537);
   h_dimuon_m_fake_0117->SetBinContent(22,0.02950662);
   h_dimuon_m_fake_0117->SetBinContent(23,0.02854411);
   h_dimuon_m_fake_0117->SetBinContent(24,0.02812535);
   h_dimuon_m_fake_0117->SetBinContent(25,0.02756909);
   h_dimuon_m_fake_0117->SetBinContent(26,0.02610658);
   h_dimuon_m_fake_0117->SetBinContent(27,0.02502531);
   h_dimuon_m_fake_0117->SetBinContent(28,0.02491906);
   h_dimuon_m_fake_0117->SetBinContent(29,0.02488781);
   h_dimuon_m_fake_0117->SetBinContent(30,0.02330654);
   h_dimuon_m_fake_0117->SetBinContent(31,0.02198778);
   h_dimuon_m_fake_0117->SetBinContent(32,0.02102526);
   h_dimuon_m_fake_0117->SetBinContent(33,0.02067526);
   h_dimuon_m_fake_0117->SetBinContent(34,0.01935024);
   h_dimuon_m_fake_0117->SetBinContent(35,0.01845648);
   h_dimuon_m_fake_0117->SetBinContent(36,0.01780647);
   h_dimuon_m_fake_0117->SetBinContent(37,0.01737522);
   h_dimuon_m_fake_0117->SetBinContent(38,0.01623145);
   h_dimuon_m_fake_0117->SetBinContent(39,0.01498144);
   h_dimuon_m_fake_0117->SetBinContent(40,0.01449393);
   h_dimuon_m_fake_0117->SetBinContent(41,0.01330642);
   h_dimuon_m_fake_0117->SetBinContent(42,0.0121564);
   h_dimuon_m_fake_0117->SetBinContent(43,0.0116564);
   h_dimuon_m_fake_0117->SetBinContent(44,0.01084389);
   h_dimuon_m_fake_0117->SetBinContent(45,0.01028763);
   h_dimuon_m_fake_0117->SetBinContent(46,0.009437618);
   h_dimuon_m_fake_0117->SetBinContent(47,0.009125114);
   h_dimuon_m_fake_0117->SetBinContent(48,0.007956349);
   h_dimuon_m_fake_0117->SetBinContent(49,0.007906348);
   h_dimuon_m_fake_0117->SetBinContent(50,0.006987588);
   h_dimuon_m_fake_0117->SetBinContent(51,0.006300079);
   h_dimuon_m_fake_0117->SetBinContent(52,0.006368829);
   h_dimuon_m_fake_0117->SetBinContent(53,0.005443818);
   h_dimuon_m_fake_0117->SetBinContent(54,0.005250066);
   h_dimuon_m_fake_0117->SetBinContent(55,0.004668809);
   h_dimuon_m_fake_0117->SetBinContent(56,0.00405005);
   h_dimuon_m_fake_0117->SetBinContent(57,0.003818798);
   h_dimuon_m_fake_0117->SetBinContent(58,0.003637546);
   h_dimuon_m_fake_0117->SetBinContent(59,0.003443793);
   h_dimuon_m_fake_0117->SetBinContent(60,0.002881286);
   h_dimuon_m_fake_0117->SetBinContent(61,0.002731284);
   h_dimuon_m_fake_0117->SetBinContent(62,0.002318779);
   h_dimuon_m_fake_0117->SetBinContent(63,0.002193777);
   h_dimuon_m_fake_0117->SetBinContent(64,0.001856273);
   h_dimuon_m_fake_0117->SetBinContent(65,0.001675021);
   h_dimuon_m_fake_0117->SetBinContent(66,0.001687521);
   h_dimuon_m_fake_0117->SetBinContent(67,0.001306266);
   h_dimuon_m_fake_0117->SetBinContent(68,0.001262516);
   h_dimuon_m_fake_0117->SetBinContent(69,0.001168765);
   h_dimuon_m_fake_0117->SetBinContent(70,0.0007937599);
   h_dimuon_m_fake_0117->SetBinContent(71,0.0007312591);
   h_dimuon_m_fake_0117->SetBinContent(72,0.0005875073);
   h_dimuon_m_fake_0117->SetBinContent(73,0.000637508);
   h_dimuon_m_fake_0117->SetBinContent(74,0.0005125064);
   h_dimuon_m_fake_0117->SetBinContent(75,0.0004500056);
   h_dimuon_m_fake_0117->SetBinContent(76,0.0003250041);
   h_dimuon_m_fake_0117->SetBinContent(77,0.0003687546);
   h_dimuon_m_fake_0117->SetBinContent(78,0.0002937537);
   h_dimuon_m_fake_0117->SetBinContent(79,0.0002250028);
   h_dimuon_m_fake_0117->SetBinContent(80,0.0002000025);
   h_dimuon_m_fake_0117->SetBinContent(81,0.0001750022);
   h_dimuon_m_fake_0117->SetBinContent(82,0.0001062513);
   h_dimuon_m_fake_0117->SetBinContent(83,0.0001187515);
   h_dimuon_m_fake_0117->SetBinContent(84,6.250078e-05);
   h_dimuon_m_fake_0117->SetBinContent(85,5.000062e-05);
   h_dimuon_m_fake_0117->SetBinContent(86,6.250078e-05);
   h_dimuon_m_fake_0117->SetBinContent(87,1.875023e-05);
   h_dimuon_m_fake_0117->SetBinContent(88,1.875023e-05);
   h_dimuon_m_fake_0117->SetBinContent(89,6.250078e-06);
   h_dimuon_m_fake_0117->SetBinContent(90,1.875023e-05);
   h_dimuon_m_fake_0117->SetBinContent(92,1.250016e-05);
   h_dimuon_m_fake_0117->SetBinContent(96,6.250078e-06);
   h_dimuon_m_fake_0117->SetBinError(1,8.63778e-05);
   h_dimuon_m_fake_0117->SetBinError(2,0.000146177);
   h_dimuon_m_fake_0117->SetBinError(3,0.0001915218);
   h_dimuon_m_fake_0117->SetBinError(4,0.0002207083);
   h_dimuon_m_fake_0117->SetBinError(5,0.0002531089);
   h_dimuon_m_fake_0117->SetBinError(6,0.0002804189);
   h_dimuon_m_fake_0117->SetBinError(7,0.0002966648);
   h_dimuon_m_fake_0117->SetBinError(8,0.0003271007);
   h_dimuon_m_fake_0117->SetBinError(9,0.000347203);
   h_dimuon_m_fake_0117->SetBinError(10,0.0003591484);
   h_dimuon_m_fake_0117->SetBinError(11,0.0003765121);
   h_dimuon_m_fake_0117->SetBinError(12,0.0003870005);
   h_dimuon_m_fake_0117->SetBinError(13,0.0003992719);
   h_dimuon_m_fake_0117->SetBinError(14,0.0004074073);
   h_dimuon_m_fake_0117->SetBinError(15,0.0004084607);
   h_dimuon_m_fake_0117->SetBinError(16,0.0004186153);
   h_dimuon_m_fake_0117->SetBinError(17,0.0004283926);
   h_dimuon_m_fake_0117->SetBinError(18,0.0004212664);
   h_dimuon_m_fake_0117->SetBinError(19,0.0004338743);
   h_dimuon_m_fake_0117->SetBinError(20,0.000423486);
   h_dimuon_m_fake_0117->SetBinError(21,0.0004321151);
   h_dimuon_m_fake_0117->SetBinError(22,0.00042944);
   h_dimuon_m_fake_0117->SetBinError(23,0.0004223777);
   h_dimuon_m_fake_0117->SetBinError(24,0.000419268);
   h_dimuon_m_fake_0117->SetBinError(25,0.0004151012);
   h_dimuon_m_fake_0117->SetBinError(26,0.0004039408);
   h_dimuon_m_fake_0117->SetBinError(27,0.0003954872);
   h_dimuon_m_fake_0117->SetBinError(28,0.0003946468);
   h_dimuon_m_fake_0117->SetBinError(29,0.0003943992);
   h_dimuon_m_fake_0117->SetBinError(30,0.0003816644);
   h_dimuon_m_fake_0117->SetBinError(31,0.0003707092);
   h_dimuon_m_fake_0117->SetBinError(32,0.0003625045);
   h_dimuon_m_fake_0117->SetBinError(33,0.0003594746);
   h_dimuon_m_fake_0117->SetBinError(34,0.000347765);
   h_dimuon_m_fake_0117->SetBinError(35,0.0003396387);
   h_dimuon_m_fake_0117->SetBinError(36,0.0003336043);
   h_dimuon_m_fake_0117->SetBinError(37,0.0003295398);
   h_dimuon_m_fake_0117->SetBinError(38,0.0003185088);
   h_dimuon_m_fake_0117->SetBinError(39,0.0003059986);
   h_dimuon_m_fake_0117->SetBinError(40,0.0003009787);
   h_dimuon_m_fake_0117->SetBinError(41,0.0002883854);
   h_dimuon_m_fake_0117->SetBinError(42,0.0002756419);
   h_dimuon_m_fake_0117->SetBinError(43,0.0002699137);
   h_dimuon_m_fake_0117->SetBinError(44,0.0002603366);
   h_dimuon_m_fake_0117->SetBinError(45,0.0002535715);
   h_dimuon_m_fake_0117->SetBinError(46,0.00024287);
   h_dimuon_m_fake_0117->SetBinError(47,0.0002388151);
   h_dimuon_m_fake_0117->SetBinError(48,0.0002229973);
   h_dimuon_m_fake_0117->SetBinError(49,0.0002222955);
   h_dimuon_m_fake_0117->SetBinError(50,0.0002089808);
   h_dimuon_m_fake_0117->SetBinError(51,0.0001984338);
   h_dimuon_m_fake_0117->SetBinError(52,0.0001995136);
   h_dimuon_m_fake_0117->SetBinError(53,0.0001844567);
   h_dimuon_m_fake_0117->SetBinError(54,0.0001811445);
   h_dimuon_m_fake_0117->SetBinError(55,0.0001708228);
   h_dimuon_m_fake_0117->SetBinError(56,0.000159101);
   h_dimuon_m_fake_0117->SetBinError(57,0.000154492);
   h_dimuon_m_fake_0117->SetBinError(58,0.0001507811);
   h_dimuon_m_fake_0117->SetBinError(59,0.0001467105);
   h_dimuon_m_fake_0117->SetBinError(60,0.0001341949);
   h_dimuon_m_fake_0117->SetBinError(61,0.000130655);
   h_dimuon_m_fake_0117->SetBinError(62,0.000120385);
   h_dimuon_m_fake_0117->SetBinError(63,0.0001170952);
   h_dimuon_m_fake_0117->SetBinError(64,0.0001077119);
   h_dimuon_m_fake_0117->SetBinError(65,0.0001023182);
   h_dimuon_m_fake_0117->SetBinError(66,0.0001026993);
   h_dimuon_m_fake_0117->SetBinError(67,9.035633e-05);
   h_dimuon_m_fake_0117->SetBinError(68,8.88303e-05);
   h_dimuon_m_fake_0117->SetBinError(69,8.546853e-05);
   h_dimuon_m_fake_0117->SetBinError(70,7.04348e-05);
   h_dimuon_m_fake_0117->SetBinError(71,6.760493e-05);
   h_dimuon_m_fake_0117->SetBinError(72,6.059676e-05);
   h_dimuon_m_fake_0117->SetBinError(73,6.312269e-05);
   h_dimuon_m_fake_0117->SetBinError(74,5.659686e-05);
   h_dimuon_m_fake_0117->SetBinError(75,5.303367e-05);
   h_dimuon_m_fake_0117->SetBinError(76,4.506995e-05);
   h_dimuon_m_fake_0117->SetBinError(77,4.800776e-05);
   h_dimuon_m_fake_0117->SetBinError(78,4.284838e-05);
   h_dimuon_m_fake_0117->SetBinError(79,3.750047e-05);
   h_dimuon_m_fake_0117->SetBinError(80,3.535578e-05);
   h_dimuon_m_fake_0117->SetBinError(81,3.30723e-05);
   h_dimuon_m_fake_0117->SetBinError(82,2.576973e-05);
   h_dimuon_m_fake_0117->SetBinError(83,2.724346e-05);
   h_dimuon_m_fake_0117->SetBinError(84,1.976448e-05);
   h_dimuon_m_fake_0117->SetBinError(85,1.767789e-05);
   h_dimuon_m_fake_0117->SetBinError(86,1.976448e-05);
   h_dimuon_m_fake_0117->SetBinError(87,1.082545e-05);
   h_dimuon_m_fake_0117->SetBinError(88,1.082545e-05);
   h_dimuon_m_fake_0117->SetBinError(89,6.250078e-06);
   h_dimuon_m_fake_0117->SetBinError(90,1.082545e-05);
   h_dimuon_m_fake_0117->SetBinError(92,8.838945e-06);
   h_dimuon_m_fake_0117->SetBinError(96,6.250078e-06);
   h_dimuon_m_fake_0117->SetEntries(159998);
   h_dimuon_m_fake_0117->SetDirectory(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ff0000");
   h_dimuon_m_fake_0117->SetLineColor(ci);
   h_dimuon_m_fake_0117->SetLineWidth(2);
   h_dimuon_m_fake_0117->SetMarkerStyle(20);
   h_dimuon_m_fake_0117->GetXaxis()->SetLabelFont(42);
   h_dimuon_m_fake_0117->GetXaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_0117->GetXaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_0117->GetXaxis()->SetTitleOffset(0.95);
   h_dimuon_m_fake_0117->GetXaxis()->SetTitleFont(42);
   h_dimuon_m_fake_0117->GetYaxis()->SetLabelFont(42);
   h_dimuon_m_fake_0117->GetYaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_0117->GetYaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_0117->GetYaxis()->SetTitleOffset(1.3);
   h_dimuon_m_fake_0117->GetYaxis()->SetTitleFont(42);
   h_dimuon_m_fake_0117->GetZaxis()->SetLabelFont(42);
   h_dimuon_m_fake_0117->GetZaxis()->SetLabelOffset(0.007);
   h_dimuon_m_fake_0117->GetZaxis()->SetTitleSize(0.06);
   h_dimuon_m_fake_0117->GetZaxis()->SetTitleFont(42);
   h_dimuon_m_fake_0117->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}} = 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);
}