ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/
//Draw the 2-particle correlation histograms (from output of AliAnalysisTaskDiHadron)
//Author: Jason Glyndwr Ulery, ulery@uni-frankfurt.de

#ifndef __CINT__
#include <TF1.h>
#include <TF2.h>
#include "TSystem.h"
#include <iostream>
#include <TH1.h>
#include <TH2.h>
#include <TH3.h>
#include <TRandom.h>
#include <fstream>
#include "TList.h"
#include "TArrayF.h"
#endif

void DrawDPhi(float TPt1, float TPt2, float APt1, float APt2, float Cent1, float Cent2, int ptWeighted=0, int notDelta=0, int LSign=0){//ptWeighted 0 no weight, 1 weighted, 2 <pt>; Lsign 0-all, 1-like-sign 2-unlike-sign
  gROOT->Reset();
  gROOT->LoadMacro("Util9.C");
  Style(1);
  //gDebug=1;
  int SaveRoot=1;
  int SavePS=0;
  int SavePDF=0;
  float ZYACent=1.5;//0  for 2-D zyam lowest bins -number wanted for 2-D strips//1.5
  float ZYAWidth=0.2; 
  int ReBinPhi=1;
  int ReBinEta=1;
  int DrawAsHisto=0;
  int noTitle=1;
  int SaveMacro=0;
  int SaveText=0;
  int DrawMC=0;
  int EffMethod=0;//0 no correction, 1 angle dependent, 2 use mix for triggered, 3 <1>, 4 fits, 5  fits with VariablePtLimit
  //int SaveEffFits=1;

 
  
  //char *Folder="2010-03-10/pass5";
  //char *Folder="2010-04-07/7_2010_04_05";
  //char *EffFolder="2010-03-10/all_5";

  //char *Folder="2010-04-12/pass5";
  //char *EffFolder="2010-04-12/900Pythia";

  // char *Folder="2010-04-26/7pass1";
  //char *Folder="2010-04-26/7Pythia";
  //char *Folder="2010-05-28/7Pythia2";//with new cut
  //char *Folder="2010-05-28/900Pythia";//with new cut
  //char *Folder="2010-05-28/7Pythia_LHC10b5";//newer pythia
  //har *Folder="2010-06-30/7Pythia_LHC10b5";//newer pythia
  /*
  char *Folder="2010-07-02/LHC10c_900pass2";
  //char *Folder="2010-07-02/LHC10c6_900Pythia";
  char *EffFolder="2010-07-02/LHC10c6_900Pythia";
  */
  //12&21
  //7-22 paper cuts, 7-27 papercuts and early corr, 7-12 old cuts, 8-4 more multiplicity cuts
  char *Folder="2010-08-17/LHC10b_7pass2";
  // char *Folder="2010-08-17/7Pythia_LHC10b5";
  //char *Folder="2010-08-17/LHC10c_900pass2";
  //char *Folder="2010-08-17/LHC10c6_900Pythia";

   char *EffFolder="2010-08-17/7Pythia_LHC10b5";
   //char *EffFolder="2010-08-17/LHC10c6_900Pythia";

  //  char *EffFolder="2010-04-26/7Pythia";
  // char *EffFolder="2010-05-28/7Pythia2";//with new cut
  // char *EffFolder="2010-05-28/900Pythia";//with new cut
  //char *EffFolder="2010-06-30/7Pythia_LHC10b5";//newer pythia
  //char *EffFolder="2010-05-28/7Pythia_LHC10b5";//newer pythia


  char *cPt[3]={"","Pt","MPt"};
  char *cDelta[2]={"Delta",""};
  char *csign[3]={"","LS","ULS"};
  char name[300];
  char inName[100];
  char effName[100];
  sprintf(inName,"%s/julery_DiHadron.root",Folder);
  sprintf(effName,"%s/julery_DiHadron.root",EffFolder);
  cout << inName << endl;
  cout << effName << endl;
  char *titArray[2]={"","_NoTitle"};
  char *histArray[2]={"","_Histo"};
  
  Float_t MPt[4];//<pt>, error <pt>, # of triggers
  Float_t MPt2[4];
  Float_t TrigSum=0, TrigSum2=0;
  
  TH1F *hPhiRaw=new TH1F("hPhiRaw","",1,0,1);
  TH1F *hPhiCorr=new TH1F("hPhiCorr","",1,0,1);
  TH1F *hPhiEff=new TH1F("hPhiEff","",1,0,1);
  TH1F *hPhiMC=new TH1F("hPhiMC","",1,0,1);
  TH1F *hPhiMixRaw=new TH1F("hPhiMixRaw","",1,0,1);
  TH1F *hPhiMixCorr=new TH1F("hPhiMixCorr","",1,0,1);
  TH1F *hPhiMixEff=new TH1F("hPhiMixEff","",1,0,1);
  TH1F *hPhiMixMC=new TH1F("hPhiMixMC","",1,0,1);

  TH1F *hEtaNRaw=new TH1F("hEtaNRaw","",1,0,1);
  TH1F *hEtaNCorr=new TH1F("hEtaNCorr","",1,0,1);
  TH1F *hEtaNEff=new TH1F("hEtaNEff","",1,0,1);
  TH1F *hEtaNMC=new TH1F("hEtaNMC","",1,0,1);
  TH1F *hEtaNMixRaw=new TH1F("hEtaNMixRaw","",1,0,1);
  TH1F *hEtaNMixCorr=new TH1F("hEtaNMixCorr","",1,0,1);
  TH1F *hEtaNMixEff=new TH1F("hEtaNMixEff","",1,0,1);
  TH1F *hEtaNMixMC=new TH1F("hEtaNMixMC","",1,0,1);

  TH1F *hEtaARaw=new TH1F("hEtaARaw","",1,0,1);
  TH1F *hEtaACorr=new TH1F("hEtaACorr","",1,0,1);
  TH1F *hEtaAEff=new TH1F("hEtaAEff","",1,0,1);
  TH1F *hEtaAMC=new TH1F("hEtaAMC","",1,0,1);
  TH1F *hEtaAMixRaw=new TH1F("hEtaAMixRaw","",1,0,1);
  TH1F *hEtaAMixCorr=new TH1F("hEtaAMixCorr","",1,0,1);
  TH1F *hEtaAMixEff=new TH1F("hEtaAMixEff","",1,0,1);
  TH1F *hEtaAMixMC=new TH1F("hEtaAMixMC","",1,0,1);

  TH2F *hPhiEtaRaw=new TH2F("hPhiEtaRaw","",1,0,1,1,0,1);
  TH2F *hPhiEtaCorr=new TH2F("hPhiEtaCorr","",1,0,1,1,0,1);
  TH2F *hPhiEtaEff=new TH2F("hPhiEtaEff","",1,0,1,1,0,1);
  TH2F *hPhiEtaMC=new TH2F("hPhiEtaMC","",1,0,1,1,0,1);
  TH2F *hPhiEtaMixRaw=new TH2F("hPhiEtaMixRaw","",1,0,1,1,0,1);
  TH2F *hPhiEtaMixCorr=new TH2F("hPhiEtaMixCorr","",1,0,1,1,0,1);
  TH2F *hPhiEtaMixEff=new TH2F("hPhiEtaMixEff","",1,0,1,1,0,1);
  TH2F *hPhiEtaMixMC=new TH2F("hPhiEtaMixMC","",1,0,1,1,0,1);
  TH1F *hMult=new TH1F("hMult","",1,0,1);
  TH1F *hTMult=new TH1F("hTMult","",1,0,1);
  TH1F *hNTrig=new TH1F("hNTrig","Number of Triggers",1,-0.5,0.5);
  //TH1F *hNEvents=new TH1F("hNEvents","Number of Events & In Selected Cent",2,-0.5,1.5);

  TF1 *ZeroLine=new TF1("ZeroLine","[0]",-2,7);
  ZeroLine->SetParameter(0,0);
  ZeroLine->SetLineStyle(2);
   TF1 *fit1=new TF1("fit1","1/sqrt(2*3.1415926)*([0]/[1]*(exp(-0.5*pow(x/[1],2))+exp(-0.5*pow((x-6.29185)/[1],2)))+[2]/[3]*(exp(-0.5*pow((x-3.14159)/[3],2))+exp(-0.5*pow((x+3.14159)/[3],2))))+[4]");
  fit1->SetParameters(.1,.2,.1,.35,.1);
  fit1->SetParNames("Near-Yield", "Near-Width","Away-Yield","Away-Width","Bg-Level");
   TF1 *fit2=new TF1("fit2","1/sqrt(2*3.1415926)*([0]/[1]*(exp(-0.5*pow(x/[1],2))))+[2]");
  fit2->SetParameters(.1,.2,.1);
  fit2->SetParNames("Near-Yield", "Near-Width","Bg-Level");

 int VariablePtLimit=0;//if 1 and EffMethod==4 then a variable upper limit on the associated pt is used
 if(EffMethod==5)VariablePtLimit=1;
  
  TFile *inFile=new TFile(inName);
  TList *inList=inFile->Get("julery_DiHadron");
  //sprintf(xname,"fHistNEvents_C%d",xCent);
  TH1F *hNEvents=(TH1F*)inList->FindObject("fHistNEvents_C0");
  //cout << "Number of Events: " << hNEvents->GetBinContent(1) << endl;
  TFile *effFile=new TFile(effName);
  TList *effList=effFile->Get("julery_DiHadron");
  for(int Cent=Cent1;Cent<=Cent2;Cent++){
    int qqx=0;
    if(ptWeighted)qqx=1;
    for(int ipt=0;ipt<=qqx;ipt++){
    MakeProjections(TPt1,TPt2,APt1,APt2,Cent,inList,hPhiRaw,hPhiMixRaw,hEtaNRaw,hEtaNMixRaw,hEtaARaw,hEtaAMixRaw,hPhiEtaRaw,hPhiEtaMixRaw,MPt,ipt,0,notDelta,LSign);
    MakeProjections(TPt1,TPt2,APt1,APt2,Cent,effList,hPhiEff,hPhiMixEff,hEtaNEff,hEtaNMixEff,hEtaAEff,hEtaAMixEff,hPhiEtaEff,hPhiEtaMixEff,MPt2,ipt,0,notDelta,LSign);
    MakeProjections(TPt1,TPt2,APt1,APt2,Cent,effList,hPhiMC,hPhiMixMC,hEtaNMC,hEtaNMixMC,hEtaAMC,hEtaAMixMC,hPhiEtaMC,hPhiEtaMixMC,MPt2,ipt,1,notDelta,LSign);
    c100xx=new TCanvas("c100");
    hPhiMixEff->Draw();
    c100xx->SaveAs("Mix.gif");
    if(EffMethod<4){
      EffCorr2(TPt1,TPt2,APt1,APt2,Cent,hPhiEff,hPhiMC,hPhiMixEff,hPhiMixMC,hEtaNEff,hEtaNMC,hEtaNMixEff,hEtaNMixMC,hEtaAEff,hEtaAMC,hEtaAMixEff,hEtaAMixMC,hPhiEtaEff,hPhiEtaMC,hPhiEtaMixEff,hPhiEtaMixMC,EffMethod);
    }
    else{
      EffFit(APt1,APt2,Cent,effList,hPhiEff,hPhiMixEff,hEtaNEff,hEtaNMixEff,hEtaAEff,hEtaAMixEff,hPhiEtaEff,hPhiEtaMixEff,LSign,VariablePtLimit);
    }
    //EffCorr2(TPt1,TPt2,APt1,APt2,Cent,hPhiRaw,hPhiEff,hPhiMC,hPhiMixRaw,hPhiMixEff,hPhiMixMC,hEtaNRaw,hEtaNEff,hEtaNMC,hEtaNMixRaw,hEtaNMixEff,hEtaNMixMC,hEtaARaw,hEtaAEff,hEtaAMC,hEtaAMixRaw,hEtaAMixEff,hEtaAMixMC,hPhiEtaRaw,hPhiEtaEff,hPhiEtaMC,hPhiEtaMixRaw,hPhiEtaMixEff,hPhiEtaMixMC,EffMethod);
    
    hPhiCorr=(TH1F*)hPhiRaw->Clone();
    sprintf(name,"hPhiCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hPhiCorr->SetName(name);
    hPhiCorr->Divide(hPhiEff);
    
    hPhiMixCorr=(TH1F*)hPhiMixRaw->Clone();
    sprintf(name,"hPhiMixCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hPhiMixCorr->SetName(name);
    hPhiMixCorr->Divide(hPhiMixEff);

    hEtaNCorr=(TH1F*)hEtaNRaw->Clone();
    sprintf(name,"hEtaNCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hEtaNCorr->SetName(name);
    hEtaNCorr->Divide(hEtaNEff);
    
    hEtaNMixCorr=(TH1F*)hEtaNMixRaw->Clone();
    sprintf(name,"hEtaNMixCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hEtaNMixCorr->SetName(name);
    hEtaNMixCorr->Divide(hEtaNMixEff);

    hEtaACorr=(TH1F*)hEtaARaw->Clone();
    sprintf(name,"hEtaACorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hEtaACorr->SetName(name);
    hEtaACorr->Divide(hEtaAEff);
    
    hEtaAMixCorr=(TH1F*)hEtaAMixRaw->Clone();
    sprintf(name,"hEtaAMixCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hEtaAMixCorr->SetName(name);
    hEtaAMixCorr->Divide(hEtaAMixEff);
    
    hPhiEtaCorr=(TH2F*)hPhiEtaRaw->Clone();
    sprintf(name,"hPhiEtaCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hPhiEtaCorr->SetName(name);
    hPhiEtaCorr->Divide(hPhiEtaEff);
    
    hPhiEtaMixCorr=(TH2F*)hPhiEtaMixRaw->Clone();
    sprintf(name,"hPhiMixCorr_%2.2fPT%2.2f_%2.2fpt%2.2f_%d",TPt1,TPt2,APt1,APt2,Cent);
    hPhiEtaMixCorr->SetName(name);
    hPhiEtaMixCorr->Divide(hPhiEtaMixEff);
    //GeoCorr(hEtaNCorr,hEtaNMixCorr,hEtaNMixMC,hEtaACorr,hEtaAMixCorr,hEtaAMixMC,hPhiEtaCorr,hPhiEtaMixCorr,hPhiEtaMixMC);
    //GeoCorr2(hEtaNCorr,hEtaNMixCorr,hEtaACorr,hEtaAMixCorr,hPhiEtaCorr,hPhiEtaMixCorr);
     MixedCorrect(hPhiCorr,hPhiMixCorr,hEtaNCorr,hEtaNMixCorr,hEtaACorr,hEtaAMixCorr,hPhiEtaCorr,hPhiEtaMixCorr);
    //Deal with efficiencies of 0
    for(int x=1;x<=hPhiCorr->GetNbinsX();x++){
      if(hPhiEff->GetBinContent(x)<1E-10)hPhiCorr->SetBinContent(x,0);
      if(hPhiMixEff->GetBinContent(x)<1E-10)hPhiMixCorr->SetBinContent(x,0);
    }
    for(int x=1;x<=hEtaNCorr->GetNbinsX();x++){
      if(hEtaNEff->GetBinContent(x)<1E-10)hEtaNCorr->SetBinContent(x,0);
      if(hEtaNMixEff->GetBinContent(x)<1E-10)hEtaNMixCorr->SetBinContent(x,0);
      if(hEtaAEff->GetBinContent(x)<1E-10)hEtaACorr->SetBinContent(x,0);
      if(hEtaAMixEff->GetBinContent(x)<1E-10)hEtaAMixCorr->SetBinContent(x,0);
    }
    for(int x=1;x<=hPhiEtaCorr->GetNbinsX();x++){ 
      for(int y=1;y<=hPhiCorr->GetNbinsX();y++){
	if(hPhiEtaEff->GetBinContent(x,y)<1E-10)hPhiEtaCorr->SetBinContent(x,y,0);
	if(hPhiEtaMixEff->GetBinContent(x,y)<1E-10)hPhiEtaMixCorr->SetBinContent(x,y,0);
      }
    }
    
  
    if(!notDelta&&!ipt){
      float a[3];
      if(ZYACent>0.0001)ZYA1(hPhiCorr,hPhiMixCorr,a,ZYACent,ZYAWidth);
      // cout << "a: "  << a[0] << "  Error: " << a[1] << "  Error Code: " << a[2] << "  <pT>: " << MPt[0]  << endl;
      else if(ZYACent==0){
	ZYAM2D(hPhiEtaCorr,hPhiEtaMixCorr,a,80,10);
      }
      else
	ZYAM2D2(hPhiEtaCorr,hPhiEtaMixCorr,a,fabs(ZYACent),ZYAWidth);
    }

    if(ptWeighted==2&&ipt==0){
      TH1F *TempPhiRaw=(TH1F*)hPhiRaw->Clone();
      TempPhiRaw->SetName("TempPhiRaw");
      TH1F *TempPhiMixRaw=(TH1F*)hPhiMixRaw->Clone();
      TempPhiMixRaw->SetName("TempPhiMixRaw");
      TH1F *TempPhiCorr=(TH1F*)hPhiCorr->Clone();
      TempPhiCorr->SetName("TempPhiCorr");
      TH1F *TempPhiMixCorr=(TH1F*)hPhiMixCorr->Clone();
      TempPhiMixCorr->SetName("TemPhiMixCorr");
      TH1F *TempPhiCorr2=(TH1F*)hPhiCorr->Clone();
      TempPhiCorr2->SetName("TempPhiCorr2");
      TH1F *TempPhiMixCorr2=(TH1F*)hPhiMixCorr->Clone();
      TempPhiMixCorr2->SetName("TemPhiMixCorr2");
      
      TH1F *TempEtaNRaw=(TH1F*)hEtaNRaw->Clone();
      TempEtaNRaw->SetName("TempEtaNRaw");
      TH1F *TempEtaNMixRaw=(TH1F*)hEtaNMixRaw->Clone();
      TempEtaNMixRaw->SetName("TempEtaNMixRaw");
      TH1F *TempEtaNCorr=(TH1F*)hEtaNCorr->Clone();
      TempEtaNCorr->SetName("TempEtaNCorr");
      TH1F *TempEtaNMixCorr=(TH1F*)hEtaNMixCorr->Clone();
      TempEtaNMixCorr->SetName("TemEtaNMixCorr");
      TH1F *TempEtaNCorr2=(TH1F*)hEtaNCorr->Clone();
      TempEtaNCorr2->SetName("TempEtaNCorr2");
      TH1F *TempEtaNMixCorr2=(TH1F*)hEtaNMixCorr->Clone();
      TempEtaNMixCorr2->SetName("TemEtaNMixCorr2");

      TH1F *TempEtaARaw=(TH1F*)hEtaARaw->Clone();
      TempEtaARaw->SetName("TempEtaARaw");
      TH1F *TempEtaAMixRaw=(TH1F*)hEtaAMixRaw->Clone();
      TempEtaAMixRaw->SetName("TempEtaAMixRaw");
      TH1F *TempEtaACorr=(TH1F*)hEtaACorr->Clone();
      TempEtaACorr->SetName("TempEtaACorr");
      TH1F *TempEtaAMixCorr=(TH1F*)hEtaAMixCorr->Clone();
      TempEtaAMixCorr->SetName("TemEtaAMixCorr");
      TH1F *TempEtaACorr2=(TH1F*)hEtaACorr->Clone();
      TempEtaACorr2->SetName("TempEtaAMixCorr2");
      TH1F *TempEtaAMixCorr2=(TH1F*)hEtaAMixCorr->Clone();
      TempEtaAMixCorr2->SetName("TemEtaAMixCorr2");

      TH1F *TempPhiEtaRaw=(TH1F*)hPhiEtaRaw->Clone();
      TempPhiEtaRaw->SetName("TempPhiEtaRaw");
      TH1F *TempPhiEtaMixRaw=(TH1F*)hPhiEtaMixRaw->Clone();
      TempPhiEtaMixRaw->SetName("TempPhiEtaMixRaw");
      TH1F *TempPhiEtaCorr=(TH1F*)hPhiEtaCorr->Clone();
      TempPhiEtaCorr->SetName("TempPhiEtaCorr");
      TH1F *TempPhiEtaMixCorr=(TH1F*)hPhiEtaMixCorr->Clone();
      TempPhiEtaMixCorr->SetName("TemPhiEtaMixCorr");
      TH1F *TempPhiEtaCorr2=(TH1F*)hPhiEtaCorr->Clone();
      TempPhiEtaCorr2->SetName("TempPhiEtaCorr2");
      TH1F *TempPhiEtaMixCorr2=(TH1F*)hPhiEtaMixCorr->Clone();
      TempPhiEtaMixCorr2->SetName("TempPhiEtaMixCorr2");

    }
    }//ptWeighted loop
    
    
    TH1F *hPhiCorr2=(TH1F*)hPhiCorr->Clone();
    hPhiCorr2->SetName("hPhiCorr2");
    sprintf(name,"Bg Sub. %s",hPhiCorr2->GetTitle());
    hPhiCorr2->SetTitle(name);
    if(noTitle)hPhiCorr2->SetTitle("");
    
    TH1F *hPhiMixCorr2=(TH1F*)hPhiMixCorr->Clone();
    hPhiMixCorr2->SetName("hPhiMixCorr2");
    sprintf(name,"Normalized %1.3f %s",a[0],hPhiMixCorr2->GetTitle());
    hPhiMixCorr2->SetTitle(name);
    if(noTitle)hPhiMixCorr2->SetTitle("");
    hPhiMixCorr2->SetMarkerStyle(25);
    hPhiMixCorr2->SetMarkerColor(4);
    hPhiMixCorr2->SetLineColor(4);

    TH1F *hEtaNCorr2=(TH1F*)hEtaNCorr->Clone();
    hEtaNCorr2->SetName("hEtaNCorr2");
    sprintf(name,"Bg Sub. %s",hEtaNCorr2->GetTitle());
    hEtaNCorr2->SetTitle(name);
    if(noTitle)hEtaNCorr2->SetTitle("");
    
    TH1F *hEtaNMixCorr2=(TH1F*)hEtaNMixCorr->Clone();
    hEtaNMixCorr2->SetName("hEtaNMixCorr2");
    sprintf(name,"Normalized %1.3f %s",a[0],hEtaNMixCorr2->GetTitle());
    hEtaNMixCorr2->SetTitle(name);
    if(noTitle)hEtaNMixCorr2->SetTitle("");
    hEtaNMixCorr2->SetMarkerStyle(25);
    hEtaNMixCorr2->SetMarkerColor(4);
    hEtaNMixCorr2->SetLineColor(4);

    TH1F *hEtaACorr2=(TH1F*)hEtaACorr->Clone();
    hEtaACorr2->SetName("hEtaACorr2");
    sprintf(name,"Bg Sub. %s",hEtaACorr2->GetTitle());
    hEtaACorr2->SetTitle(name);
    if(noTitle)hEtaACorr2->SetTitle("");
    
    TH1F *hEtaAMixCorr2=(TH1F*)hEtaAMixCorr->Clone();
    hEtaAMixCorr2->SetName("hEtaAMixCorr2");
    sprintf(name,"Normalized %1.3f %s",a[0],hEtaAMixCorr2->GetTitle());
    hEtaAMixCorr2->SetTitle(name);
    if(noTitle)hEtaAMixCorr2->SetTitle("");
    hEtaAMixCorr2->SetMarkerStyle(25);
    hEtaAMixCorr2->SetMarkerColor(4);
    hEtaAMixCorr2->SetLineColor(4);
    
    TH2F *hPhiEtaCorr2=(TH2F*)hPhiEtaCorr->Clone();
    hPhiEtaCorr2->SetName("hPhiEtaCorr2");
    sprintf(name,"BG Sub. %s",hPhiEtaCorr2->GetTitle());
    hPhiEtaCorr2->SetTitle(name);
    if(noTitle)hPhiEtaCorr2->SetTitle("");
    
    TH2F *hPhiEtaMixCorr2=(TH2F*)hPhiEtaMixCorr->Clone();
    hPhiEtaMixCorr2->SetName("hPhiEtaMixCorr2");
    sprintf(name,"Normalized %1.3f %s",a[0],hPhiEtaMixCorr2->GetTitle());
    hPhiEtaMixCorr2->SetTitle(name);
    if(noTitle)hPhiEtaMixCorr2->SetTitle("");
    if(!notDelta){
      hPhiMixCorr2->Scale(a[0]);
      hEtaNMixCorr2->Scale(a[0]);
      hEtaAMixCorr2->Scale(a[0]);
      hPhiEtaMixCorr2->Scale(a[0]);
      
      //	   hPhiCorr2->Add(hPhiMixCorr2,-1);
      Add1D(hPhiCorr2,hPhiMixCorr2,-1);
      Add1D(hEtaNCorr2,hEtaNMixCorr2,-1);
      Add1D(hEtaACorr2,hEtaAMixCorr2,-1);
      Add2D(hPhiEtaCorr2,hPhiEtaMixCorr2,-1); 
      if(ptWeighted==2){
	TempPhiMixCorr2->Scale(a[0]);
	TempEtaNMixCorr2->Scale(a[0]);
	TempEtaAMixCorr2->Scale(a[0]);
	TempPhiEtaMixCorr2->Scale(a[0]);
	Add1D(TempPhiCorr2,TempPhiMixCorr2,-1);
	Add1D(TempEtaNCorr2,TempEtaNMixCorr2,-1);
	Add1D(TempEtaACorr2,TempEtaAMixCorr2,-1);
	//cout << TempPhiEtaCorr2->GetBinContent(1,1) << " " << TempPhiEtaMixCorr2->GetBinContent(1,1) << endl;
	//Add2D(TempPhiEtaCorr2,TempPhiEtaMixCorr2,-1); 	
	TempPhiEtaCorr2->Add(TempPhiEtaMixCorr2,-1);


	/*
	hPhiRaw->Divide(TempPhiRaw);
	hPhiCorr->Divide(TempPhiCorr);

	hPhiMixRaw->Divide(TempPhiMixRaw);
	hPhiMixCorr->Divide(TempPhiMixCorr);
	hPhiMixCorr2->Divide(TemPhiMixCorr2);
	*/
       	hPhiCorr2->Divide(TempPhiCorr2);
	DivideMean1D(hPhiRaw,TempPhiRaw,APt1,APt2,MPt[2]);
	DivideMean1DCorr(hPhiCorr,TempPhiCorr,TempPhiRaw,APt1,APt2,MPt[2]);
	//DivideMean1DBgSub(hPhiCorr2,TempPhiCorr2,TempPhiRaw,TempPhiMixRaw,APt1,APt2,MPt[2],MPt[3]);
	DivideMean1D(hPhiMixRaw,TempPhiMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hPhiMixCorr,TempPhiMixCorr,TempPhiMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hPhiMixCorr2,TempPhiMixCorr2,TempPhiMixRaw,APt1,APt2,MPt[3]);

	/*
	hEtaNRaw->Divide(TempEtaNRaw);
	hEtaNCorr->Divide(TempEtaNCorr);

	hEtaNMixRaw->Divide(TempEtaNMixRaw);
	hEtaNMixCorr->Divide(TempEtaNMixCorr);
	hEtaNMixCorr2->Divide(TempEtaNMixCorr2);

	hEtaARaw->Divide(TempEtaARaw);
	hEtaACorr->Divide(TempEtaACorr);

	hEtaAMixRaw->Divide(TempEtaAMixRaw);
	hEtaAMixCorr->Divide(TempEtaAMixCorr);
	hEtaAMixCorr2->Divide(TempEtaAMixCorr2);
	*/
	hEtaNCorr2->Divide(TempEtaNCorr2);
	DivideMean1D(hEtaNRaw,TempEtaNRaw,APt1,APt2,MPt[2]);
	DivideMean1DCorr(hEtaNCorr,TempEtaNCorr,TempEtaNRaw,APt1,APt2,MPt[2]);
	//DivideMean1DBgSub(hEtaNCorr2,TempEtaNCorr2,TempEtaNRaw,TempEtaNMixRaw,APt1,APt2,MPt[2],MPt[3]);
	DivideMean1D(hEtaNMixRaw,TempEtaNMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hEtaNMixCorr,TempEtaNMixCorr,TempEtaNMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hEtaNMixCorr2,TempEtaNMixCorr2,TempEtaNMixRaw,APt1,APt2,MPt[3]);

	hEtaACorr2->Divide(TempEtaACorr2);
	DivideMean1D(hEtaARaw,TempEtaARaw,APt1,APt2,MPt[2]);
	DivideMean1DCorr(hEtaACorr,TempEtaACorr,TempEtaARaw,APt1,APt2,MPt[2]);
	//DivideMean1DBgSub(hEtaACorr2,TempEtaACorr2,TempEtaARaw,TempEtaAMixRaw,APt1,APt2,MPt[2],MPt[3]);
	DivideMean1D(hEtaAMixRaw,TempEtaAMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hEtaAMixCorr,TempEtaAMixCorr,TempEtaAMixRaw,APt1,APt2,MPt[3]);
	DivideMean1DCorr(hEtaAMixCorr2,TempEtaAMixCorr2,TempEtaAMixRaw,APt1,APt2,MPt[3]);
	/*
	//Its not liking my 2D functions for some reason
	DivideMean2D(hPhiEtaRaw,TempPhiEtaRaw,APt1,APt2,MPt[2]);
	DivideMean2D(hPhiEtaCorr,TempPhiEtaCorr,APt1,APt2,MPt[2]);
	DivideMean2D(hPhiEtaCorr2,TempPhiEtaCorr2,APt1,APt2,MPt[2]);
	DivideMean2D(hPhiEtaMixRaw,TempPhiEtaMixRaw,APt1,APt2,MPt[3]);
	DivideMean2D(hPhiEtaMixCorr,TempPhiEtaMixCorr,APt1,APt2,MPt[3]);
	DivideMean2D(hPhiEtaMixCorr2,TempPhiEtaMixCorr2,APt1,APt2,MPt[3]);	
	*/
	//Errors are messed up but its not liking my 2d divide
	hPhiEtaRaw->Divide(TempPhiEtaRaw);
	hPhiEtaCorr->Divide(TempPhiEtaCorr);
	hPhiEtaCorr2->Divide(TempPhiEtaCorr2);
	hPhiEtaMixRaw->Divide(TempPhiEtaMixRaw);
	hPhiEtaMixCorr->Divide(TempPhiEtaMixCorr);
	hPhiEtaMixCorr2->Divide(TempPhiEtaMixCorr2);
	

	hPhiRaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiCorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiCorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiMixRaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiMixCorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiMixCorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");

	hEtaNRaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaNCorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaNCorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaNMixRaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaNMixCorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaNMixCorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");

	hEtaARaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaACorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaACorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaAMixRaw->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaAMixCorr->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");
	hEtaAMixCorr2->GetYaxis()->SetTitle("<p_{T}^{Assoc}>");

	hPhiEtaRaw->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiEtaCorr->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiEtaCorr2->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiEtaMixRaw->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiEtaMixCorr->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
	hPhiEtaMixCorr2->GetZaxis()->SetTitle("<p_{T}^{Assoc}>");
      }
    }	
    
    if(Cent==Cent1){
      TH1F *hPhiRawPlot=(TH1F*)hPhiRaw->Clone();
      hPhiRawPlot->SetName("hPhiRawPlot");
      TH1F *hPhiCorrPlot=(TH1F*)hPhiCorr->Clone();
      hPhiCorrPlot->SetName("hPhiCorrPlot");
      TH1F *hPhiCorr2Plot=(TH1F*)hPhiCorr2->Clone();
      hPhiCorr2Plot->SetName("hPhiCorr2Plot");
      TH1F *hPhiEffPlot=(TH1F*)hPhiEff->Clone();
      hPhiEffPlot->SetName("hPhiEffPlot");
      TH1F *hPhiMCPlot=(TH1F*)hPhiMC->Clone();
      hPhiMCPlot->SetName("hPhiMCPlot");
      TH1F *hPhiMixRawPlot=(TH1F*)hPhiMixRaw->Clone();
      hPhiMixRawPlot->SetName("hPhiMixRawPlot");
      TH1F *hPhiMixCorrPlot=(TH1F*)hPhiMixCorr->Clone();
      hPhiMixCorrPlot->SetName("hPhiMixCorrPlot");
      TH1F *hPhiMixCorr2Plot=(TH1F*)hPhiMixCorr2->Clone();
      hPhiMixCorr2Plot->SetName("hPhiMixCorr2Plot");
      TH1F *hPhiMixEffPlot=(TH1F*)hPhiMixEff->Clone();
      hPhiMixEffPlot->SetName("hPhiMixEffPlot");
      TH1F *hPhiMixMCPlot=(TH1F*)hPhiMixMC->Clone();
      hPhiMixMCPlot->SetName("hPHiMixMCPlot");
      

      TH1F *hEtaNRawPlot=(TH1F*)hEtaNRaw->Clone();
      hEtaNRawPlot->SetName("hEtaNRawPlot");
      TH1F *hEtaNCorrPlot=(TH1F*)hEtaNCorr->Clone();
      hEtaNCorrPlot->SetName("hEtaNCorrPlot");
      TH1F *hEtaNCorr2Plot=(TH1F*)hEtaNCorr2->Clone();
      hEtaNCorr2Plot->SetName("hEtaNCorr2Plot");
      TH1F *hEtaNEffPlot=(TH1F*)hEtaNEff->Clone();
      hEtaNEffPlot->SetName("hEtaNEffPlot");
      TH1F *hEtaNMixRawPlot=(TH1F*)hEtaNMixRaw->Clone();
      hEtaNMixRawPlot->SetName("hEtaNMixRawPlot");
      TH1F *hEtaNMixCorrPlot=(TH1F*)hEtaNMixCorr->Clone();
      hEtaNMixCorrPlot->SetName("hEtaNMixCorrPlot");
      TH1F *hEtaNMixCorr2Plot=(TH1F*)hEtaNMixCorr2->Clone();
      hEtaNMixCorr2Plot->SetName("hEtaNMixCorr2Plot");
      TH1F *hEtaNMixEffPlot=(TH1F*)hEtaNMixEff->Clone();
      hEtaNMixEffPlot->SetName("hEtaNMixEffPlot");

      TH1F *hEtaARawPlot=(TH1F*)hEtaARaw->Clone();
      hEtaARawPlot->SetName("hEtaARawPlot");
      TH1F *hEtaACorrPlot=(TH1F*)hEtaACorr->Clone();
      hEtaACorrPlot->SetName("hEtaACorrPlot");
      TH1F *hEtaACorr2Plot=(TH1F*)hEtaACorr2->Clone();
      hEtaACorr2Plot->SetName("hEtaACorr2Plot");
      TH1F *hEtaAEffPlot=(TH1F*)hEtaAEff->Clone();
      hEtaAEffPlot->SetName("hEtaAEffPlot");
      TH1F *hEtaAMixRawPlot=(TH1F*)hEtaAMixRaw->Clone();
      hEtaAMixRawPlot->SetName("hEtaAMixRawPlot");
      TH1F *hEtaAMixCorrPlot=(TH1F*)hEtaAMixCorr->Clone();
      hEtaAMixCorrPlot->SetName("hEtaAMixCorrPlot");
      TH1F *hEtaAMixCorr2Plot=(TH1F*)hEtaAMixCorr2->Clone();
      hEtaAMixCorr2Plot->SetName("hEtaAMixCorr2Plot");
      TH1F *hEtaAMixEffPlot=(TH1F*)hEtaAMixEff->Clone();
      hEtaAMixEffPlot->SetName("hEtaAMixEffPlot");

      TH2F *hPhiEtaRawPlot=(TH2F*)hPhiEtaRaw->Clone();
      hPhiEtaRawPlot->SetName("hPhiEtaRawPlot");
      TH2F *hPhiEtaCorrPlot=(TH2F*)hPhiEtaCorr->Clone();
      hPhiEtaCorrPlot->SetName("hPhiEtaCorrPlot");
      TH2F *hPhiEtaCorr2Plot=(TH2F*)hPhiEtaCorr2->Clone();
      hPhiEtaCorr2Plot->SetName("hPhiEtaCorr2Plot");
      TH2F *hPhiEtaEffPlot=(TH2F*)hPhiEtaEff->Clone();
      hPhiEtaEffPlot->SetName("hPhiEtaEffPlot");
      TH2F *hPhiEtaMixRawPlot=(TH2F*)hPhiEtaMixRaw->Clone();
      hPhiEtaMixRawPlot->SetName("hPhiEtaMixRawPlot");
      TH2F *hPhiEtaMixCorrPlot=(TH2F*)hPhiEtaMixCorr->Clone();
      hPhiEtaMixCorrPlot->SetName("hPhiEtaMixRawPlot");
      TH2F *hPhiEtaMixCorr2Plot=(TH2F*)hPhiEtaMixCorr2->Clone();
      hPhiEtaMixCorr2Plot->SetName("hPhiEtaMixCorr2Plot");
      TH2F *hPhiEtaMixEffPlot=(TH2F*)hPhiEtaMixEff->Clone();
      hPhiEtaMixEffPlot->SetName("hPhiEtaMixEffPlot");
      
      TrigSum=MPt[2];
      TrigSum2=MPt2[2];

      hPhiRawPlot->Scale(MPt[2]);
      hPhiCorrPlot->Scale(MPt[2]);
      hPhiCorr2Plot->Scale(MPt[2]);
      hPhiEffPlot->Scale(MPt[2]);
      hPhiMCPlot->Scale(MPt2[2]);
      hPhiMixRawPlot->Scale(MPt[2]);
      hPhiMixCorrPlot->Scale(MPt[2]);
      hPhiMixCorr2Plot->Scale(MPt[2]);
      hPhiMixEffPlot->Scale(MPt[2]);
      hPhiMixMCPlot->Scale(MPt2[2]);

      hEtaNRawPlot->Scale(MPt[2]);
      hEtaNCorrPlot->Scale(MPt[2]);
      hEtaNCorr2Plot->Scale(MPt[2]);
      hEtaNEffPlot->Scale(MPt[2]);
      hEtaNMixRawPlot->Scale(MPt[2]);
      hEtaNMixCorrPlot->Scale(MPt[2]);
      hEtaNMixCorr2Plot->Scale(MPt[2]);
      hEtaNMixEffPlot->Scale(MPt[2]);

      hEtaARawPlot->Scale(MPt[2]);
      hEtaACorrPlot->Scale(MPt[2]);
      hEtaACorr2Plot->Scale(MPt[2]);
      hEtaAEffPlot->Scale(MPt[2]);
      hEtaAMixRawPlot->Scale(MPt[2]);
      hEtaAMixCorrPlot->Scale(MPt[2]);
      hEtaAMixCorr2Plot->Scale(MPt[2]);
      hEtaAMixEffPlot->Scale(MPt[2]);
      
      hPhiEtaRawPlot->Scale(MPt[2]);
      hPhiEtaCorrPlot->Scale(MPt[2]);
      hPhiEtaCorr2Plot->Scale(MPt[2]);
      hPhiEtaEffPlot->Scale(MPt[2]);
      hPhiEtaMixRawPlot->Scale(MPt[2]);
      hPhiEtaMixCorrPlot->Scale(MPt[2]);
      hPhiEtaMixCorr2Plot->Scale(MPt[2]);
      hPhiEtaMixEffPlot->Scale(MPt[2]);
    }
    else{//I need to do trigger weighted averaging here so I need the trigger counts
      hPhiRawPlot->Add(hPhiRaw,MPt[2]);
      hPhiCorrPlot->Add(hPhiCorr,MPt[2]);
      hPhiCorr2Plot->Add(hPhiCorr2,MPt[2]);
      hPhiEffPlot->Add(hPhiEff,MPt[2]);
      hPhiMCPlot->Add(hPhiMC,MPt2[2]);
      hPhiMixRawPlot->Add(hPhiMixRaw,MPt[2]);
      hPhiMixCorrPlot->Add(hPhiMixCorr,MPt[2]);
      hPhiMixCorr2Plot->Add(hPhiMixCorr2,MPt[2]);
      hPhiMixEffPlot->Add(hPhiMixEff,MPt[2]);
      hPhiMCPlot->Add(hPhiMixMC,MPt2[2]);

      hEtaNRawPlot->Add(hEtaNRaw,MPt[2]);
      hEtaNCorrPlot->Add(hEtaNCorr,MPt[2]);
      hEtaNCorr2Plot->Add(hEtaNCorr2,MPt[2]);
      hEtaNEffPlot->Add(hEtaNEff,MPt[2]);
      hEtaNMixRawPlot->Add(hEtaNMixRaw,MPt[2]);
      hEtaNMixCorrPlot->Add(hEtaNMixCorr,MPt[2]);
      hEtaNMixCorr2Plot->Add(hEtaNMixCorr2,MPt[2]);
      hEtaNMixEffPlot->Add(hEtaNMixEff,MPt[2]);

      hEtaARawPlot->Add(hEtaARaw,MPt[2]);
      hEtaACorrPlot->Add(hEtaACorr,MPt[2]);
      hEtaACorr2Plot->Add(hEtaACorr2,MPt[2]);
      hEtaAEffPlot->Add(hEtaAEff,MPt[2]);
      hEtaAMixRawPlot->Add(hEtaAMixRaw,MPt[2]);
      hEtaAMixCorrPlot->Add(hEtaAMixCorr,MPt[2]);
      hEtaAMixCorr2Plot->Add(hEtaAMixCorr2,MPt[2]);
      hEtaAMixEffPlot->Add(hEtaAMixEff,MPt[2]);

      hPhiEtaRawPlot->Add(hPhiEtaRaw,MPt[2]);
      hPhiEtaCorrPlot->Add(hPhiEtaCorr,MPt[2]);
      hPhiEtaCorr2Plot->Add(hPhiEtaCorr2,MPt[2]);
      hPhiEtaEffPlot->Add(hPhiEtaEff,MPt[2]);
      hPhiEtaMixRawPlot->Add(hPhiEtaMixRaw,MPt[2]);
      hPhiEtaMixCorrPlot->Add(hPhiEtaCorr,MPt[2]);
      hPhiEtaMixCorr2Plot->Add(hPhiEtaMixCorr2,MPt[2]);
      hPhiEtaMixEffPlot->Add(hPhiEtaMixEff,MPt[2]);
      TrigSum+=MPt[2];
      TrigSum2+=MPt2[2];
    }
  }
  if(TrigSum==0)cout << "TrigSum: " << TrigSum << endl;
  hPhiRawPlot->Scale(1./TrigSum);
  hPhiCorrPlot->Scale(1./TrigSum);
  hPhiCorr2Plot->Scale(1./TrigSum);
  hPhiEffPlot->Scale(1./TrigSum);
  hPhiMCPlot->Scale(1./TrigSum2);
  hPhiMixRawPlot->Scale(1./TrigSum);
  hPhiMixCorrPlot->Scale(1./TrigSum);
  hPhiMixCorr2Plot->Scale(1./TrigSum);
  hPhiMixEffPlot->Scale(1./TrigSum);
  hPhiMixMCPlot->Scale(1./TrigSum);

  hEtaNRawPlot->Scale(1./TrigSum);
  hEtaNCorrPlot->Scale(1./TrigSum);
  hEtaNCorr2Plot->Scale(1./TrigSum);
  hEtaNEffPlot->Scale(1./TrigSum);
  hEtaNMixRawPlot->Scale(1./TrigSum);
  hEtaNMixCorrPlot->Scale(1./TrigSum);
  hEtaNMixCorr2Plot->Scale(1./TrigSum);
  hEtaNMixEffPlot->Scale(1./TrigSum);

  hEtaARawPlot->Scale(1./TrigSum);
  hEtaACorrPlot->Scale(1./TrigSum);
  hEtaACorr2Plot->Scale(1./TrigSum);
  hEtaAEffPlot->Scale(1./TrigSum);
  hEtaAMixRawPlot->Scale(1./TrigSum);
  hEtaAMixCorrPlot->Scale(1./TrigSum);
  hEtaAMixCorr2Plot->Scale(1./TrigSum);
  hEtaAMixEffPlot->Scale(1./TrigSum);

  hPhiEtaRawPlot->Scale(1./TrigSum);
  hPhiEtaCorrPlot->Scale(1./TrigSum);
  hPhiEtaCorr2Plot->Scale(1./TrigSum);
  hPhiEtaEffPlot->Scale(1./TrigSum);
  hPhiEtaMixRawPlot->Scale(1./TrigSum);
  hPhiEtaMixCorrPlot->Scale(1./TrigSum);
  hPhiEtaMixCorr2Plot->Scale(1./TrigSum);
  hPhiEtaMixEffPlot->Scale(1./TrigSum); 
  
  if(noTitle){
    hPhiRawPlot->SetTitle("");
    hPhiCorrPlot->SetTitle("");
    hPhiCorr2Plot->SetTitle("");
    hPhiEffPlot->SetTitle("");
    hPhiMCPlot->SetTitle("");
    hPhiMixRawPlot->SetTitle("");
    hPhiMixCorrPlot->SetTitle("");
    hPhiMixCorr2Plot->SetTitle("");
    hPhiMixEffPlot->SetTitle("");
    hPhiMixMCPlot->SetTitle("");

    hEtaNRawPlot->SetTitle("");
    hEtaNCorrPlot->SetTitle("");
    hEtaNCorr2Plot->SetTitle("");
    hEtaNEffPlot->SetTitle("");
    hEtaNMixRawPlot->SetTitle("");
    hEtaNMixCorrPlot->SetTitle("");
    hEtaNMixCorr2Plot->SetTitle("");
    hEtaNMixEffPlot->SetTitle("");

    hEtaARawPlot->SetTitle("");
    hEtaACorrPlot->SetTitle("");
    hEtaACorr2Plot->SetTitle("");
    hEtaAEffPlot->SetTitle("");
    hEtaAMixRawPlot->SetTitle("");
    hEtaAMixCorrPlot->SetTitle("");
    hEtaAMixCorr2Plot->SetTitle("");
    hEtaAMixEffPlot->SetTitle("");
    
    hPhiEtaRawPlot->SetTitle("");
    hPhiEtaCorrPlot->SetTitle("");
    hPhiEtaCorr2Plot->SetTitle("");
    hPhiEtaEffPlot->SetTitle("");
    hPhiEtaMixRawPlot->SetTitle("");
    hPhiEtaMixCorrPlot->SetTitle("");
    hPhiEtaMixCorr2Plot->SetTitle("");
    hPhiEtaMixEffPlot->SetTitle(""); 
  }
  
  if(ReBinPhi>1){
    rebin1D(hPhiRawPlot,ReBinPhi);
    rebin1D(hPhiCorrPlot,ReBinPhi);
    hPhiCorr2Plot=rebin1D(hPhiCorr2Plot,ReBinPhi);
    hPhiEffPlot=rebin1D(hPhiEffPlot,ReBinPhi);
    hPhiMCPlot=rebins1D(hPhiMCPlot,ReBinPhi);
    hPhiMixRawPlot=rebin1D(hPhiMixRawPlot,ReBinPhi);
    hPhiMixCorrPlot=rebin1D(hPhiMixCorrPlot,ReBinPhi);
    hPhiMixCorr2Plot=rebin1D(hPhiMixCorr2Plot,ReBinPhi);
    hPhiMixEffPlot=rebin1D(hPhiMixEffPlot,ReBinPhi);
    hPhiMixMCPlot=rebin1D(hPhiMixMCPlot,ReBinPhi);
  }
 if(ReBinEta>1){
    rebin1D(hEtaNRawPlot,ReBinEtaN);
    rebin1D(hEtaNCorrPlot,ReBinEtaN);
    hEtaNCorr2Plot=rebin1D(hEtaNCorr2Plot,ReBinEtaN);
    hEtaNEffPlot=rebin1D(hEtaNEffPlot,ReBinEtaN);
    hEtaNMixRawPlot=rebin1D(hEtaNMixRawPlot,ReBinEtaN);
    hEtaNMixCorrPlot=rebin1D(hEtaNMixCorrPlot,ReBinEtaN);
    hEtaNMixCorr2Plot=rebin1D(hEtaNMixCorr2Plot,ReBinEtaN);
    hEtaNMixEffPlot=rebin1D(hEtaNMixEffPlot,ReBinEtaN);

    rebin1D(hEtaARawPlot,ReBinEtaA);
    rebin1D(hEtaACorrPlot,ReBinEtaA);
    hEtaACorr2Plot=rebin1D(hEtaACorr2Plot,ReBinEtaA);
    hEtaAEffPlot=rebin1D(hEtaAEffPlot,ReBinEtaA);
    hEtaAMixRawPlot=rebin1D(hEtaAMixRawPlot,ReBinEtaA);
    hEtaAMixCorrPlot=rebin1D(hEtaAMixCorrPlot,ReBinEtaA);
    hEtaAMixCorr2Plot=rebin1D(hEtaAMixCorr2Plot,ReBinEtaA);
    hEtaAMixEffPlot=rebin1D(hEtaAMixEffPlot,ReBinEtaA);
  }


 ///Phi Plots////////////////////////////
  c1=new TCanvas("c1","PhiRaw");
  SetMargins1D(c1);
  // if(DrawAsHisto)gStyle->SetHistFillColor(2);
 
  // cout << hPhiRawPlot->GetXaxis()->GetTitle() << endl;
  hPhiRawPlot->Draw();
  if(DrawAsHisto)DrawLego1D(c1,hPhiRawPlot);
   
  sprintf(name,"%s/%s%sPhiRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  c1->SaveAs(name);
  sprintf(name,"%s/%s%sPhiRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)c1->SaveAs(name);
  sprintf(name,"%s/%s%sPhiRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
 if(SavePDF)c1->SaveAs(name,"landscape");
 sprintf(name,"%s/%s%sPhiRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveMacro)c1->SaveAs(name);
  hPhiRawPlot->GetXaxis()->SetLabelOffset(0.005);
  sprintf(name,"%s/%s%sPhiRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hPhiRawPlot,name);
  
  c2=new TCanvas("c2","PhiCorr");
  SetMargins1D(c2);
  hPhiCorrPlot->Draw();
  if(DrawAsHisto)DrawLego1D(c2,hPhiCorrPlot);
  sprintf(name,"%s/%s%sPhiCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  c2->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS) c2->SaveAs(name);
  hPhiCorrPlot->GetXaxis()->SetLabelOffset(0.005);

   
 if(!notDelta){
 c2bg=new TCanvas("c2bg","PhiCorrBgSub");
 SetMargins1D(c2bg);
 if(ptWeighted==2){
   hPhiCorr2Plot->SetMaximum(APt2);
   hPhiCorr2Plot->SetMinimum(APt1);
 }
  hPhiCorr2Plot->Draw();
  ZeroLine->Draw("same");
  if(DrawAsHisto)DrawLego1D(c2bg,hPhiCorr2Plot);
  sprintf(name,"%s/%s%sPhiCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  c2bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)c2bg->SaveAs(name);
  hPhiCorr2Plot->GetXaxis()->SetLabelOffset(0.005);
  }
 float maxeff=1.1;
 float mineff=0.5;
  c3=new TCanvas("c3","PhiEff");
  SetMargins1D(c3);
  // hPhiEffPlot->SetMaximum(maxeff);
  // hPhiEffPlot->SetMinimum(mineff);
  hPhiEffPlot->Draw();
  sprintf(name,"%s/%s%sPhiEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  c3->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)c3->SaveAs(name);

  c3MC=new TCanvas("c3MC","PhiMC");
  SetMargins1D(c3MC);
  hPhiMCPlot->Draw();
  sprintf(name,"%s/%s%sPhiMC_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(DrawMC)c3MC->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMC_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS&&DrawMC)c3MC->SaveAs(name);

  c4=new TCanvas("c4","PhiMixRaw");
  SetMargins1D(c4);
  hPhiMixRawPlot->Draw();
  sprintf(name,"%s/%s%sPhiMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c4->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)c4->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveMacro)c4->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hPhiMixRawPlot,name);

  c5=new TCanvas("c5","PhiMixCorr");
  SetMargins1D(c5);
  hPhiMixCorrPlot->Draw();
  sprintf(name,"%s/%s%sPhiMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c5->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)c5->SaveAs(name);
  
  if(!notDelta){
  c5bg=new TCanvas("c5bg","PhiMixCorrNorm");
  SetMargins1D(c5bg);
  hPhiMixCorr2Plot->Draw();
  sprintf(name,"%s/%s%sPhiMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c5bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
    if(SavePS)c5bg->SaveAs(name);
  }

  c6=new TCanvas("c6","PhiMixEff");
  SetMargins1D(c6);
  //hPhiMixEffPlot->SetMaximum(maxeff);
  //hPhiMixEffPlot->SetMinimum(mineff);
  hPhiMixEffPlot->Draw();
  sprintf(name,"%s/%s%sPhiMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c6->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)c6->SaveAs(name);

  c6MC=new TCanvas("c6MC","PhiMixMC");
  SetMargins1D(c6MC);
  hPhiMixMCPlot->Draw();
  sprintf(name,"%s/%s%sPhiMixMC_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(DrawMC)c6MC->SaveAs(name);
  sprintf(name,"%s/%s%sPhiMixMC_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS&&DrawMC)c6MC->SaveAs(name);

  c2Cyl=new TCanvas("c2Cyl","PhiCorrCyl");
  SetMargins1DCyl(c2Cyl);
  hPhiCorrPlot->Draw("legocyl");
  sprintf(name,"%s/%s%sPhiCorr%dCyl_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c2Cyl->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%dCyl_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)c2Cyl->SaveAs(name);

  if(!notDelta){
  c2All=new TCanvas("c2All","PhiCorrAll");
  SetMargins1D(c2All);
  TH1F *hPhiCorrAll=(TH1F*)hPhiCorrPlot->Clone();
  hPhiCorrAll->SetName("hPhiCorrAll");
  hPhiCorrAll->SetMinimum(hPhiMixCorr->GetMinimum()-fabs(hPhiMixCorr2->GetMinimum()-hPhiMixCorr->GetMinimum()));
  if(hPhiCorrAll->GetMinimum()<0)hPhiCorrAll->SetMinimum(0);
  hPhiCorrAll->Draw();
  hPhiMixCorrPlot->Draw("same");
  hPhiMixCorr2Plot->Draw("same");
  hPhiCorrAll->Draw("same");
  sprintf(name,"%s/%s%sPhiCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  c2All->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)c2All->SaveAs(name);
 sprintf(name,"%s/%s%sPhiCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)c2All->SaveAs(name);
}

  c2Fit=new TCanvas("c2Fit","PhiCorrFit");
  SetMargins1D(c2Fit);
  TH1F* hPhiCorrFitPlot=(TH1F*)hPhiCorrPlot->Clone();
  hPhiCorrFitPlot->SetName("hPhiCorrFitPlot");
  hPhiCorrFitPlot->Draw();
  hPhiCorrFitPlot->Fit("fit1");
  fit2->SetParameter(2,fit1->GetParameter(4));
  fit2->SetParLimits(2,0,0);
  if(DrawAsHisto)DrawLego1D(c2,hPhiCorrFitPlot);
  sprintf(name,"%s/%s%sPhiCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  c2Fit->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS) c2Fit->SaveAs(name);
  sprintf(name,"%s/%s%sPhiCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF) c2Fit->SaveAs(name);
  hPhiCorrPlot->GetXaxis()->SetLabelOffset(0.005);

  ////Near-Side Eta Plots////////////////////////////////
  cN1=new TCanvas("cN1","EtaNRaw");
  SetMargins1D(cN1); 
  hEtaNRawPlot->Draw();
  if(DrawAsHisto)DrawLego1D(cN1,hEtaNRawPlot);
  sprintf(name,"%s/%s%sEtaNRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cN1->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)cN1->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF)cN1->SaveAs(name);
   sprintf(name,"%s/%s%sEtaNRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveMacro)cN1->SaveAs(name);
  hEtaNRawPlot->GetXaxis()->SetLabelOffset(0.005);
  sprintf(name,"%s/%s%sEtaNRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hEtaNRawPlot,name);
  
  cN2=new TCanvas("cN2","EtaNCorr");
  SetMargins1D(cN2);
  hEtaNCorrPlot->Draw();
  if(DrawAsHisto)DrawLego1D(cN2,hEtaNCorrPlot);
  sprintf(name,"%s/%s%sEtaNCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cN2->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS) cN2->SaveAs(name);
 sprintf(name,"%s/%s%sEtaNCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF) cN2->SaveAs(name);
  hEtaNCorrPlot->GetXaxis()->SetLabelOffset(0.005);
   
 if(!notDelta){
   cN2bg=new TCanvas("cN2bg","EtaNCorrBgSub");
   SetMargins1D(cN2bg);
   if(ptWeighted==2){
     hEtaNCorr2Plot->SetMaximum(APt2);
     hEtaNCorr2Plot->SetMinimum(APt1);
   }
   hEtaNCorr2Plot->Draw();
   ZeroLine->Draw("same");
   if(DrawAsHisto)DrawLego1D(cN2bg,hEtaNCorr2Plot);
   sprintf(name,"%s/%s%sEtaNCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
   cN2bg->SaveAs(name);
   sprintf(name,"%s/%s%sEtaNCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
   if(SavePS)cN2bg->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
   if(SavePDF)cN2bg->SaveAs(name)
   hEtaNCorr2Plot->GetXaxis()->SetLabelOffset(0.005);
 }
 float maxeff=1.1;
 float mineff=0.5;
  cN3=new TCanvas("cN3","EtaNEff");
  SetMargins1D(cN3);
  //hEtaNEffPlot->SetMaximum(maxeff);
  //hEtaNEffPlot->SetMinimum(mineff);
  hEtaNEffPlot->Draw();
  sprintf(name,"%s/%s%sEtaNEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cN3->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)cN3->SaveAs(name);
 sprintf(name,"%s/%s%sEtaNEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF)cN3->SaveAs(name);

  cN4=new TCanvas("cN4","EtaNMixRaw");
  SetMargins1D(cN4);
  hEtaNMixRawPlot->Draw();
  sprintf(name,"%s/%s%sEtaNMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cN4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cN4->SaveAs(name);
sprintf(name,"%s/%s%sEtaNMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cN4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveMacro)cN4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hEtaNMixRawPlot,name);

  cN5=new TCanvas("cN5","EtaNMixCorr");
  SetMargins1D(cN5);
  hEtaNMixCorrPlot->Draw();
  sprintf(name,"%s/%s%sEtaNMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cN5->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cN5->SaveAs(name);
  
  if(!notDelta){
  cN5bg=new TCanvas("cN5bg","EtaNMixCorrNorm");
  SetMargins1D(cN5bg);
  hEtaNMixCorr2Plot->Draw();
  sprintf(name,"%s/%s%sEtaNMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cN5bg->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
    if(SavePS)cN5bg->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
    if(SavePDF)cN5bg->SaveAs(name);
  }

  cN6=new TCanvas("cN6","EtaNMixEff");
  SetMargins1D(cN6);
  //hEtaNMixEffPlot->SetMaximum(maxeff);
  // hEtaNMixEffPlot->SetMinimum(mineff);
  hEtaNMixEffPlot->Draw();
  sprintf(name,"%s/%s%sEtaNMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cN6->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cN6->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cN6->SaveAs(name);

  if(!notDelta){
  cN2All=new TCanvas("cN2All","EtaNCorrAll");
  SetMargins1D(cN2All);
  TH1F *hEtaNCorrAll=(TH1F*)hEtaNCorrPlot->Clone();
  hEtaNCorrAll->SetName("hEtaNCorrAll");
  hEtaNCorrAll->SetMinimum(hEtaNMixCorr->GetMinimum()-fabs(hEtaNMixCorr2->GetMinimum()-hEtaNMixCorr->GetMinimum()));
  if(hEtaNCorrAll->GetMinimum()<0)hEtaNCorrAll->SetMinimum(0);
  hEtaNCorrAll->Draw();
  hEtaNMixCorrPlot->Draw("same");
  hEtaNMixCorr2Plot->Draw("same");
  hEtaNCorrAll->Draw("same");
  sprintf(name,"%s/%s%sEtaNCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cN2All->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cN2All->SaveAs(name);
 sprintf(name,"%s/%s%sEtaNCorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cN2All->SaveAs(name);
}

 cN2Fit=new TCanvas("cN2Fit","EtaNCorrFit");
  SetMargins1D(cN2Fit);
  TH1F *hEtaNCorrFitPlot=(TH1F*)hEtaNCorrPlot->Clone();
  hEtaNCorrFitPlot->SetName("hEtaNCorrFitPlot");
  hEtaNCorrFitPlot->Draw();
  hEtaNCorrFitPlot->Fit("fit2");
  if(DrawAsHisto)DrawLego1D(cN2,hEtaNCorrPlot);
  sprintf(name,"%s/%s%sEtaNCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cN2Fit->SaveAs(name);
  sprintf(name,"%s/%s%sEtaNCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS) cN2Fit->SaveAs(name);
 sprintf(name,"%s/%s%sEtaNCorr%dFit_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF) cN2Fit->SaveAs(name);
  hEtaNCorrPlot->GetXaxis()->SetLabelOffset(0.005);

  /////Away-Side Eta Plots////////////////////////

   cA1=new TCanvas("cA1","EtaARaw");
  SetMargins1D(cA1);
  // if(DrawAsHisto)gStyle->SetHistFillColor(2);
  //cout << hEtaARawPlot->GetXaxis()->GetTitle() << endl;
  hEtaARawPlot->Draw();
  if(DrawAsHisto)DrawLego1D(cA1,hEtaARawPlot);
  sprintf(name,"%s/%s%sEtaARaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cA1->SaveAs(name);
  sprintf(name,"%s/%s%sEtaARaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)cA1->SaveAs(name);
 sprintf(name,"%s/%s%sEtaARaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF)cA1->SaveAs(name);
   sprintf(name,"%s/%s%sEtaARaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveMacro)cA1->SaveAs(name);
  hEtaARawPlot->GetXaxis()->SetLabelOffset(0.005);
  sprintf(name,"%s/%s%sEtaARaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hEtaARawPlot,name);
  
  cA2=new TCanvas("cA2","EtaACorr");
  SetMargins1D(cA2);
  hEtaACorrPlot->Draw();
  if(DrawAsHisto)DrawLego1D(ca2,hEtaACorrPlot);
  sprintf(name,"%s/%s%sEtaACorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cA2->SaveAs(name);
  sprintf(name,"%s/%s%sEtaACorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS) cA2->SaveAs(name);
  sprintf(name,"%s/%s%sEtaACorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF) cA2->SaveAs(name);
  hEtaACorrPlot->GetXaxis()->SetLabelOffset(0.005);
   
 if(!notDelta){
 cA2bg=new TCanvas("cA2bg","EtaACorrBgSub");
 SetMargins1D(cA2bg);
 if(ptWeighted==2){
   hEtaACorr2Plot->SetMaximum(APt2);
   hEtaACorr2Plot->SetMinimum(APt1);
 }
  hEtaACorr2Plot->Draw();
  ZeroLine->Draw("same");
  if(DrawAsHisto)DrawLego1D(c2bg,hEtaACorr2Plot);
  sprintf(name,"%s/%s%sEtaACorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cA2bg->SaveAs(name);
  sprintf(name,"%s/%s%sEtaACorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)cA2bg->SaveAs(name);
 sprintf(name,"%s/%s%sEtaACorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF)cA2bg->SaveAs(name);
  hEtaACorr2Plot->GetXaxis()->SetLabelOffset(0.005);
  }
 float maxeff=1.1;
 float mineff=0.5;
  cA3=new TCanvas("cA3","EtaAEff");
  SetMargins1D(cA3);
  //hEtaAEffPlot->SetMaximum(maxeff);
  // hEtaAEffPlot->SetMinimum(mineff);
  hEtaAEffPlot->Draw();
  sprintf(name,"%s/%s%sEtaAEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  cA3->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePS)cA3->SaveAs(name);
 sprintf(name,"%s/%s%sEtaAEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],histArray[DrawAsHisto],titArray[noTitle],ZYACent);
  if(SavePDF)cA3->SaveAs(name);

  cA4=new TCanvas("cA4","EtaAMixRaw");
  SetMargins1D(cA4);
  hEtaAMixRawPlot->Draw();
  sprintf(name,"%s/%s%sEtaAMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cA4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cA4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cA4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.C",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveMacro)cA4->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.txt",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SaveText)SaveAsText(hEtaAMixRawPlot,name);

  cA5=new TCanvas("cA5","EtaAMixCorr");
  SetMargins1D(cA5);
  hEtaAMixCorrPlot->Draw();
  sprintf(name,"%s/%s%sEtaAMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cA5->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cA5->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cA5->SaveAs(name);
  
  if(!notDelta){
  cA5bg=new TCanvas("cA5bg","EtaAMixCorrNorm");
  SetMargins1D(cA5bg);
  hEtaAMixCorr2Plot->Draw();
  sprintf(name,"%s/%s%sEtaAMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cA5bg->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
    if(SavePS)cA5bg->SaveAs(name);
sprintf(name,"%s/%s%sEtaAMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
    if(SavePDF)cA5bg->SaveAs(name);
  }

  cA6=new TCanvas("cA6","EtaAMixEff");
  SetMargins1D(cA6);
  //hEtaAMixEffPlot->SetMaximum(maxeff);
  //hEtaAMixEffPlot->SetMinimum(mineff);
  hEtaAMixEffPlot->Draw();
  sprintf(name,"%s/%s%sEtaAMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cA6->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cA6->SaveAs(name);
  sprintf(name,"%s/%s%sEtaAMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cA6->SaveAs(name);

  if(!notDelta){
  cA2All=new TCanvas("cA2All","EtaACorrAll");
  SetMargins1D(cA2All);
  TH1F *hEtaACorrAll=(TH1F*)hEtaACorrPlot->Clone();
  hEtaACorrAll->SetName("hEtaACorrAll");
  hEtaACorrAll->SetMinimum(hEtaAMixCorr->GetMinimum()-fabs(hEtaAMixCorr2->GetMinimum()-hEtaAMixCorr->GetMinimum()));
  if(hEtaACorrAll->GetMinimum()<0)hEtaACorrAll->SetMinimum(0);
  hEtaACorrAll->Draw();
  hEtaAMixCorrPlot->Draw("same");
  hEtaAMixCorr2Plot->Draw("same");
  hEtaACorrAll->Draw("same");
  sprintf(name,"%s/%s%sEtaACorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  cA2All->SaveAs(name);
  sprintf(name,"%s/%s%sEtaACorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePS)cA2All->SaveAs(name);
  sprintf(name,"%s/%s%sEtaACorr%dAll_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d%s%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
  if(SavePDF)cA2All->SaveAs(name);
}


 
  ////PhiEtaPlots/////////////////////////////
  c10=new TCanvas("c10","PhiEtaRaw");
  SetMargins2DSurf(c10);
  hPhiEtaRawPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c10->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c10->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c10->SaveAs(name);


  c20=new TCanvas("c20","PhiEtaCorr");
  SetMargins2DSurf(c20);
  hPhiEtaCorrPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c20->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c20->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c20->SaveAs(name);
  
  if(!notDelta){
  c20bg=new TCanvas("c20bg","PhiEtaCorrBgSub");
  SetMargins2DSurf(c20bg);
  if(ptWeighted==2){
    hPhiEtaCorr2Plot->SetMaximum(APt2);
    hPhiEtaCorr2Plot->SetMinimum(APt1);
  }
  hPhiEtaCorr2Plot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c20bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c20bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c20bg->SaveAs(name);
  }

  c30=new TCanvas("c30","PhiEtaEff");
  //hPhiEtaEffPlot->SetMaximum(maxeff);
  //hPhiEtaEffPlot->SetMinimum(mineff);
  SetMargins2DSurf(c30);
  hPhiEtaEffPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c30->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c30->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c30->SaveAs(name);

  c40=new TCanvas("c40","PhiEtaMixRaw");
  SetMargins2DSurf(c40);
  hPhiEtaMixRawPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c40->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c40->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixRaw_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c40->SaveAs(name);

  c50=new TCanvas("c50","PhiEtaMixCorr");
  SetMargins2DSurf(c50);
  hPhiEtaMixCorrPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c50->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c50->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaMixCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c50->SaveAs(name);
  
  if(!notDelta){
  c50bg=new TCanvas("c50bg","PhiEtaMixCorr");
  SetMargins2DSurf(c50bg);
  hPhiEtaMixCorr2Plot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c50bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c50bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c50bg->SaveAs(name);
  }

  c60=new TCanvas("c60","PhiEtaMixEff");
  // hPhiEtaMixEffPlot->SetMaximum(maxeff);
  //hPhiEtaMixEffPlot->SetMinimum(mineff);
  SetMargins2DSurf(c60);
  hPhiEtaMixEffPlot->Draw("lego2");
  sprintf(name,"%s/%s%sPhiEtaMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c60->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c60->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixEff%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c60->SaveAs(name);

   c100=new TCanvas("c100","PhiEtaRaw");
  SetMargins2D(c100);
  hPhiEtaRawPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c100->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c100->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c100->SaveAs(name);

  c200=new TCanvas("c200","PhiEtaCorr");
  SetMargins2D(c200);
  hPhiEtaCorrPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c200->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c200->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c200->SaveAs(name);
  
   if(!notDelta){
  c200bg=new TCanvas("c200bg","PhiEtaCorrBgSub");
  SetMargins2D(c200bg);
  hPhiEtaCorr2Plot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c200bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c200bg->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaCorr%dBgSub_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c200bg->SaveAs(name);
  }

  c300=new TCanvas("c300","PhiEtaEff");
  SetMargins2D(c300);
  hPhiEtaEffPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaEff%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c300->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaEff%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c300->SaveAs(name);

  c400=new TCanvas("c400","PhiEtaMixRaw");
  SetMargins2D(c400);
  hPhiEtaMixRawPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaMixRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c400->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c400->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaMixRaw_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c400->SaveAs(name);

  c500=new TCanvas("c500","PhiEtaMixCorr");
  SetMargins2D(c500);
  hPhiEtaMixCorrPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaMixCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c500->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c500->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaMixCorr%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c500->SaveAs(name);
  
   if(!notDelta){
  c500bg=new TCanvas("c500bg","PhiEtaMixCorrNorm");
  SetMargins2D(c500bg);
  hPhiEtaMixCorr2Plot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c500bg->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c500bg->SaveAs(name);
 sprintf(name,"%s/%s%sPhiEtaMixCorr%dNorm_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c500bg->SaveAs(name);
  }
   
  c600=new TCanvas("c600","PhiEtaMixEff");
  SetMargins2D(c600);
  hPhiEtaMixEffPlot->Draw("colz");
  sprintf(name,"%s/%s%sPhiEtaMixEff%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c600->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaMixEff%d_2_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c600->SaveAs(name);
  

  
  c20Cyl=new TCanvas("c20Cyl","PhiEtaCorrCyl");
  SetMargins2DSurf(c20Cyl);
  c20Cyl->SetTheta(45);
  c20Cyl->SetPhi(200);
  hPhiEtaCorrPlot->Draw("surf1cyl");
  sprintf(name,"%s/%s%sPhiEtaCorr%dCyl_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.gif",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  c20Cyl->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%dCyl_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.eps",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePS)c20Cyl->SaveAs(name);
  sprintf(name,"%s/%s%sPhiEtaCorr%dCyl_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d%s_z%1.1f.pdf",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,titArray[noTitle],ZYACent);
  if(SavePDF)c20Cyl->SaveAs(name);

 if(SaveRoot){
   sprintf(name,"%s/DrawDPhi%s%sCorr%d_%2.1fPt%2.1f_%1.2fpt%1.2f_%dC%d_R%d_%d%s%s_z%1.1f.root",Folder,cDelta[notDelta],cPt[ptWeighted],EffMethod,TPt1,TPt2,APt1,APt2,Cent1,Cent2,ReBinPhi,ReBinEta,csign[LSign],titArray[noTitle],ZYACent);
 	TFile *fout=new TFile(name,"recreate");
 	cout << "Writing Histograms to File: " << name << endl;
	hNEvents->Write();
	hNTrig->Write();
 	hPhiRawPlot->Write();
 	hPhiEffPlot->Write();
 	hPhiCorrPlot->Write();
 	hPhiMixRawPlot->Write();
 	hPhiMixEffPlot->Write();
 	hPhiMixCorrPlot->Write();
	hEtaARawPlot->Write();
 	hEtaAEffPlot->Write();
 	hEtaACorrPlot->Write();
 	hEtaAMixRawPlot->Write();
 	hEtaAMixEffPlot->Write();
 	hEtaAMixCorrPlot->Write();
	hEtaNRawPlot->Write();
 	hEtaNEffPlot->Write();
 	hEtaNCorrPlot->Write();
 	hEtaNMixRawPlot->Write();
 	hEtaNMixEffPlot->Write();
 	hEtaNMixCorrPlot->Write();
 	hPhiEtaRawPlot->Write();
 	hPhiEtaEffPlot->Write();
 	hPhiEtaCorrPlot->Write();
 	hPhiEtaMixRawPlot->Write();
 	hPhiEtaMixEffPlot->Write();
 	hPhiEtaMixCorrPlot->Write();
 	if(!notDelta){
 		hPhiCorr2Plot->Write();
 		hPhiMixCorr2Plot->Write();
		hEtaNCorr2Plot->Write();
 		hEtaNMixCorr2Plot->Write();
		hEtaACorr2Plot->Write();
 		hEtaAMixCorr2Plot->Write();
 		hPhiEtaCorr2Plot->Write();
 		hPhiEtaMixCorr2Plot->Write();
 	}
 	fout->Write();
 	fout->Close();
}
}
 DrawDPhi.C:1
 DrawDPhi.C:2
 DrawDPhi.C:3
 DrawDPhi.C:4
 DrawDPhi.C:5
 DrawDPhi.C:6
 DrawDPhi.C:7
 DrawDPhi.C:8
 DrawDPhi.C:9
 DrawDPhi.C:10
 DrawDPhi.C:11
 DrawDPhi.C:12
 DrawDPhi.C:13
 DrawDPhi.C:14
 DrawDPhi.C:15
 DrawDPhi.C:16
 DrawDPhi.C:17
 DrawDPhi.C:18
 DrawDPhi.C:19
 DrawDPhi.C:20
 DrawDPhi.C:21
 DrawDPhi.C:22
 DrawDPhi.C:23
 DrawDPhi.C:24
 DrawDPhi.C:25
 DrawDPhi.C:26
 DrawDPhi.C:27
 DrawDPhi.C:28
 DrawDPhi.C:29
 DrawDPhi.C:30
 DrawDPhi.C:31
 DrawDPhi.C:32
 DrawDPhi.C:33
 DrawDPhi.C:34
 DrawDPhi.C:35
 DrawDPhi.C:36
 DrawDPhi.C:37
 DrawDPhi.C:38
 DrawDPhi.C:39
 DrawDPhi.C:40
 DrawDPhi.C:41
 DrawDPhi.C:42
 DrawDPhi.C:43
 DrawDPhi.C:44
 DrawDPhi.C:45
 DrawDPhi.C:46
 DrawDPhi.C:47
 DrawDPhi.C:48
 DrawDPhi.C:49
 DrawDPhi.C:50
 DrawDPhi.C:51
 DrawDPhi.C:52
 DrawDPhi.C:53
 DrawDPhi.C:54
 DrawDPhi.C:55
 DrawDPhi.C:56
 DrawDPhi.C:57
 DrawDPhi.C:58
 DrawDPhi.C:59
 DrawDPhi.C:60
 DrawDPhi.C:61
 DrawDPhi.C:62
 DrawDPhi.C:63
 DrawDPhi.C:64
 DrawDPhi.C:65
 DrawDPhi.C:66
 DrawDPhi.C:67
 DrawDPhi.C:68
 DrawDPhi.C:69
 DrawDPhi.C:70
 DrawDPhi.C:71
 DrawDPhi.C:72
 DrawDPhi.C:73
 DrawDPhi.C:74
 DrawDPhi.C:75
 DrawDPhi.C:76
 DrawDPhi.C:77
 DrawDPhi.C:78
 DrawDPhi.C:79
 DrawDPhi.C:80
 DrawDPhi.C:81
 DrawDPhi.C:82
 DrawDPhi.C:83
 DrawDPhi.C:84
 DrawDPhi.C:85
 DrawDPhi.C:86
 DrawDPhi.C:87
 DrawDPhi.C:88
 DrawDPhi.C:89
 DrawDPhi.C:90
 DrawDPhi.C:91
 DrawDPhi.C:92
 DrawDPhi.C:93
 DrawDPhi.C:94
 DrawDPhi.C:95
 DrawDPhi.C:96
 DrawDPhi.C:97
 DrawDPhi.C:98
 DrawDPhi.C:99
 DrawDPhi.C:100
 DrawDPhi.C:101
 DrawDPhi.C:102
 DrawDPhi.C:103
 DrawDPhi.C:104
 DrawDPhi.C:105
 DrawDPhi.C:106
 DrawDPhi.C:107
 DrawDPhi.C:108
 DrawDPhi.C:109
 DrawDPhi.C:110
 DrawDPhi.C:111
 DrawDPhi.C:112
 DrawDPhi.C:113
 DrawDPhi.C:114
 DrawDPhi.C:115
 DrawDPhi.C:116
 DrawDPhi.C:117
 DrawDPhi.C:118
 DrawDPhi.C:119
 DrawDPhi.C:120
 DrawDPhi.C:121
 DrawDPhi.C:122
 DrawDPhi.C:123
 DrawDPhi.C:124
 DrawDPhi.C:125
 DrawDPhi.C:126
 DrawDPhi.C:127
 DrawDPhi.C:128
 DrawDPhi.C:129
 DrawDPhi.C:130
 DrawDPhi.C:131
 DrawDPhi.C:132
 DrawDPhi.C:133
 DrawDPhi.C:134
 DrawDPhi.C:135
 DrawDPhi.C:136
 DrawDPhi.C:137
 DrawDPhi.C:138
 DrawDPhi.C:139
 DrawDPhi.C:140
 DrawDPhi.C:141
 DrawDPhi.C:142
 DrawDPhi.C:143
 DrawDPhi.C:144
 DrawDPhi.C:145
 DrawDPhi.C:146
 DrawDPhi.C:147
 DrawDPhi.C:148
 DrawDPhi.C:149
 DrawDPhi.C:150
 DrawDPhi.C:151
 DrawDPhi.C:152
 DrawDPhi.C:153
 DrawDPhi.C:154
 DrawDPhi.C:155
 DrawDPhi.C:156
 DrawDPhi.C:157
 DrawDPhi.C:158
 DrawDPhi.C:159
 DrawDPhi.C:160
 DrawDPhi.C:161
 DrawDPhi.C:162
 DrawDPhi.C:163
 DrawDPhi.C:164
 DrawDPhi.C:165
 DrawDPhi.C:166
 DrawDPhi.C:167
 DrawDPhi.C:168
 DrawDPhi.C:169
 DrawDPhi.C:170
 DrawDPhi.C:171
 DrawDPhi.C:172
 DrawDPhi.C:173
 DrawDPhi.C:174
 DrawDPhi.C:175
 DrawDPhi.C:176
 DrawDPhi.C:177
 DrawDPhi.C:178
 DrawDPhi.C:179
 DrawDPhi.C:180
 DrawDPhi.C:181
 DrawDPhi.C:182
 DrawDPhi.C:183
 DrawDPhi.C:184
 DrawDPhi.C:185
 DrawDPhi.C:186
 DrawDPhi.C:187
 DrawDPhi.C:188
 DrawDPhi.C:189
 DrawDPhi.C:190
 DrawDPhi.C:191
 DrawDPhi.C:192
 DrawDPhi.C:193
 DrawDPhi.C:194
 DrawDPhi.C:195
 DrawDPhi.C:196
 DrawDPhi.C:197
 DrawDPhi.C:198
 DrawDPhi.C:199
 DrawDPhi.C:200
 DrawDPhi.C:201
 DrawDPhi.C:202
 DrawDPhi.C:203
 DrawDPhi.C:204
 DrawDPhi.C:205
 DrawDPhi.C:206
 DrawDPhi.C:207
 DrawDPhi.C:208
 DrawDPhi.C:209
 DrawDPhi.C:210
 DrawDPhi.C:211
 DrawDPhi.C:212
 DrawDPhi.C:213
 DrawDPhi.C:214
 DrawDPhi.C:215
 DrawDPhi.C:216
 DrawDPhi.C:217
 DrawDPhi.C:218
 DrawDPhi.C:219
 DrawDPhi.C:220
 DrawDPhi.C:221
 DrawDPhi.C:222
 DrawDPhi.C:223
 DrawDPhi.C:224
 DrawDPhi.C:225
 DrawDPhi.C:226
 DrawDPhi.C:227
 DrawDPhi.C:228
 DrawDPhi.C:229
 DrawDPhi.C:230
 DrawDPhi.C:231
 DrawDPhi.C:232
 DrawDPhi.C:233
 DrawDPhi.C:234
 DrawDPhi.C:235
 DrawDPhi.C:236
 DrawDPhi.C:237
 DrawDPhi.C:238
 DrawDPhi.C:239
 DrawDPhi.C:240
 DrawDPhi.C:241
 DrawDPhi.C:242
 DrawDPhi.C:243
 DrawDPhi.C:244
 DrawDPhi.C:245
 DrawDPhi.C:246
 DrawDPhi.C:247
 DrawDPhi.C:248
 DrawDPhi.C:249
 DrawDPhi.C:250
 DrawDPhi.C:251
 DrawDPhi.C:252
 DrawDPhi.C:253
 DrawDPhi.C:254
 DrawDPhi.C:255
 DrawDPhi.C:256
 DrawDPhi.C:257
 DrawDPhi.C:258
 DrawDPhi.C:259
 DrawDPhi.C:260
 DrawDPhi.C:261
 DrawDPhi.C:262
 DrawDPhi.C:263
 DrawDPhi.C:264
 DrawDPhi.C:265
 DrawDPhi.C:266
 DrawDPhi.C:267
 DrawDPhi.C:268
 DrawDPhi.C:269
 DrawDPhi.C:270
 DrawDPhi.C:271
 DrawDPhi.C:272
 DrawDPhi.C:273
 DrawDPhi.C:274
 DrawDPhi.C:275
 DrawDPhi.C:276
 DrawDPhi.C:277
 DrawDPhi.C:278
 DrawDPhi.C:279
 DrawDPhi.C:280
 DrawDPhi.C:281
 DrawDPhi.C:282
 DrawDPhi.C:283
 DrawDPhi.C:284
 DrawDPhi.C:285
 DrawDPhi.C:286
 DrawDPhi.C:287
 DrawDPhi.C:288
 DrawDPhi.C:289
 DrawDPhi.C:290
 DrawDPhi.C:291
 DrawDPhi.C:292
 DrawDPhi.C:293
 DrawDPhi.C:294
 DrawDPhi.C:295
 DrawDPhi.C:296
 DrawDPhi.C:297
 DrawDPhi.C:298
 DrawDPhi.C:299
 DrawDPhi.C:300
 DrawDPhi.C:301
 DrawDPhi.C:302
 DrawDPhi.C:303
 DrawDPhi.C:304
 DrawDPhi.C:305
 DrawDPhi.C:306
 DrawDPhi.C:307
 DrawDPhi.C:308
 DrawDPhi.C:309
 DrawDPhi.C:310
 DrawDPhi.C:311
 DrawDPhi.C:312
 DrawDPhi.C:313
 DrawDPhi.C:314
 DrawDPhi.C:315
 DrawDPhi.C:316
 DrawDPhi.C:317
 DrawDPhi.C:318
 DrawDPhi.C:319
 DrawDPhi.C:320
 DrawDPhi.C:321
 DrawDPhi.C:322
 DrawDPhi.C:323
 DrawDPhi.C:324
 DrawDPhi.C:325
 DrawDPhi.C:326
 DrawDPhi.C:327
 DrawDPhi.C:328
 DrawDPhi.C:329
 DrawDPhi.C:330
 DrawDPhi.C:331
 DrawDPhi.C:332
 DrawDPhi.C:333
 DrawDPhi.C:334
 DrawDPhi.C:335
 DrawDPhi.C:336
 DrawDPhi.C:337
 DrawDPhi.C:338
 DrawDPhi.C:339
 DrawDPhi.C:340
 DrawDPhi.C:341
 DrawDPhi.C:342
 DrawDPhi.C:343
 DrawDPhi.C:344
 DrawDPhi.C:345
 DrawDPhi.C:346
 DrawDPhi.C:347
 DrawDPhi.C:348
 DrawDPhi.C:349
 DrawDPhi.C:350
 DrawDPhi.C:351
 DrawDPhi.C:352
 DrawDPhi.C:353
 DrawDPhi.C:354
 DrawDPhi.C:355
 DrawDPhi.C:356
 DrawDPhi.C:357
 DrawDPhi.C:358
 DrawDPhi.C:359
 DrawDPhi.C:360
 DrawDPhi.C:361
 DrawDPhi.C:362
 DrawDPhi.C:363
 DrawDPhi.C:364
 DrawDPhi.C:365
 DrawDPhi.C:366
 DrawDPhi.C:367
 DrawDPhi.C:368
 DrawDPhi.C:369
 DrawDPhi.C:370
 DrawDPhi.C:371
 DrawDPhi.C:372
 DrawDPhi.C:373
 DrawDPhi.C:374
 DrawDPhi.C:375
 DrawDPhi.C:376
 DrawDPhi.C:377
 DrawDPhi.C:378
 DrawDPhi.C:379
 DrawDPhi.C:380
 DrawDPhi.C:381
 DrawDPhi.C:382
 DrawDPhi.C:383
 DrawDPhi.C:384
 DrawDPhi.C:385
 DrawDPhi.C:386
 DrawDPhi.C:387
 DrawDPhi.C:388
 DrawDPhi.C:389
 DrawDPhi.C:390
 DrawDPhi.C:391
 DrawDPhi.C:392
 DrawDPhi.C:393
 DrawDPhi.C:394
 DrawDPhi.C:395
 DrawDPhi.C:396
 DrawDPhi.C:397
 DrawDPhi.C:398
 DrawDPhi.C:399
 DrawDPhi.C:400
 DrawDPhi.C:401
 DrawDPhi.C:402
 DrawDPhi.C:403
 DrawDPhi.C:404
 DrawDPhi.C:405
 DrawDPhi.C:406
 DrawDPhi.C:407
 DrawDPhi.C:408
 DrawDPhi.C:409
 DrawDPhi.C:410
 DrawDPhi.C:411
 DrawDPhi.C:412
 DrawDPhi.C:413
 DrawDPhi.C:414
 DrawDPhi.C:415
 DrawDPhi.C:416
 DrawDPhi.C:417
 DrawDPhi.C:418
 DrawDPhi.C:419
 DrawDPhi.C:420
 DrawDPhi.C:421
 DrawDPhi.C:422
 DrawDPhi.C:423
 DrawDPhi.C:424
 DrawDPhi.C:425
 DrawDPhi.C:426
 DrawDPhi.C:427
 DrawDPhi.C:428
 DrawDPhi.C:429
 DrawDPhi.C:430
 DrawDPhi.C:431
 DrawDPhi.C:432
 DrawDPhi.C:433
 DrawDPhi.C:434
 DrawDPhi.C:435
 DrawDPhi.C:436
 DrawDPhi.C:437
 DrawDPhi.C:438
 DrawDPhi.C:439
 DrawDPhi.C:440
 DrawDPhi.C:441
 DrawDPhi.C:442
 DrawDPhi.C:443
 DrawDPhi.C:444
 DrawDPhi.C:445
 DrawDPhi.C:446
 DrawDPhi.C:447
 DrawDPhi.C:448
 DrawDPhi.C:449
 DrawDPhi.C:450
 DrawDPhi.C:451
 DrawDPhi.C:452
 DrawDPhi.C:453
 DrawDPhi.C:454
 DrawDPhi.C:455
 DrawDPhi.C:456
 DrawDPhi.C:457
 DrawDPhi.C:458
 DrawDPhi.C:459
 DrawDPhi.C:460
 DrawDPhi.C:461
 DrawDPhi.C:462
 DrawDPhi.C:463
 DrawDPhi.C:464
 DrawDPhi.C:465
 DrawDPhi.C:466
 DrawDPhi.C:467
 DrawDPhi.C:468
 DrawDPhi.C:469
 DrawDPhi.C:470
 DrawDPhi.C:471
 DrawDPhi.C:472
 DrawDPhi.C:473
 DrawDPhi.C:474
 DrawDPhi.C:475
 DrawDPhi.C:476
 DrawDPhi.C:477
 DrawDPhi.C:478
 DrawDPhi.C:479
 DrawDPhi.C:480
 DrawDPhi.C:481
 DrawDPhi.C:482
 DrawDPhi.C:483
 DrawDPhi.C:484
 DrawDPhi.C:485
 DrawDPhi.C:486
 DrawDPhi.C:487
 DrawDPhi.C:488
 DrawDPhi.C:489
 DrawDPhi.C:490
 DrawDPhi.C:491
 DrawDPhi.C:492
 DrawDPhi.C:493
 DrawDPhi.C:494
 DrawDPhi.C:495
 DrawDPhi.C:496
 DrawDPhi.C:497
 DrawDPhi.C:498
 DrawDPhi.C:499
 DrawDPhi.C:500
 DrawDPhi.C:501
 DrawDPhi.C:502
 DrawDPhi.C:503
 DrawDPhi.C:504
 DrawDPhi.C:505
 DrawDPhi.C:506
 DrawDPhi.C:507
 DrawDPhi.C:508
 DrawDPhi.C:509
 DrawDPhi.C:510
 DrawDPhi.C:511
 DrawDPhi.C:512
 DrawDPhi.C:513
 DrawDPhi.C:514
 DrawDPhi.C:515
 DrawDPhi.C:516
 DrawDPhi.C:517
 DrawDPhi.C:518
 DrawDPhi.C:519
 DrawDPhi.C:520
 DrawDPhi.C:521
 DrawDPhi.C:522
 DrawDPhi.C:523
 DrawDPhi.C:524
 DrawDPhi.C:525
 DrawDPhi.C:526
 DrawDPhi.C:527
 DrawDPhi.C:528
 DrawDPhi.C:529
 DrawDPhi.C:530
 DrawDPhi.C:531
 DrawDPhi.C:532
 DrawDPhi.C:533
 DrawDPhi.C:534
 DrawDPhi.C:535
 DrawDPhi.C:536
 DrawDPhi.C:537
 DrawDPhi.C:538
 DrawDPhi.C:539
 DrawDPhi.C:540
 DrawDPhi.C:541
 DrawDPhi.C:542
 DrawDPhi.C:543
 DrawDPhi.C:544
 DrawDPhi.C:545
 DrawDPhi.C:546
 DrawDPhi.C:547
 DrawDPhi.C:548
 DrawDPhi.C:549
 DrawDPhi.C:550
 DrawDPhi.C:551
 DrawDPhi.C:552
 DrawDPhi.C:553
 DrawDPhi.C:554
 DrawDPhi.C:555
 DrawDPhi.C:556
 DrawDPhi.C:557
 DrawDPhi.C:558
 DrawDPhi.C:559
 DrawDPhi.C:560
 DrawDPhi.C:561
 DrawDPhi.C:562
 DrawDPhi.C:563
 DrawDPhi.C:564
 DrawDPhi.C:565
 DrawDPhi.C:566
 DrawDPhi.C:567
 DrawDPhi.C:568
 DrawDPhi.C:569
 DrawDPhi.C:570
 DrawDPhi.C:571
 DrawDPhi.C:572
 DrawDPhi.C:573
 DrawDPhi.C:574
 DrawDPhi.C:575
 DrawDPhi.C:576
 DrawDPhi.C:577
 DrawDPhi.C:578
 DrawDPhi.C:579
 DrawDPhi.C:580
 DrawDPhi.C:581
 DrawDPhi.C:582
 DrawDPhi.C:583
 DrawDPhi.C:584
 DrawDPhi.C:585
 DrawDPhi.C:586
 DrawDPhi.C:587
 DrawDPhi.C:588
 DrawDPhi.C:589
 DrawDPhi.C:590
 DrawDPhi.C:591
 DrawDPhi.C:592
 DrawDPhi.C:593
 DrawDPhi.C:594
 DrawDPhi.C:595
 DrawDPhi.C:596
 DrawDPhi.C:597
 DrawDPhi.C:598
 DrawDPhi.C:599
 DrawDPhi.C:600
 DrawDPhi.C:601
 DrawDPhi.C:602
 DrawDPhi.C:603
 DrawDPhi.C:604
 DrawDPhi.C:605
 DrawDPhi.C:606
 DrawDPhi.C:607
 DrawDPhi.C:608
 DrawDPhi.C:609
 DrawDPhi.C:610
 DrawDPhi.C:611
 DrawDPhi.C:612
 DrawDPhi.C:613
 DrawDPhi.C:614
 DrawDPhi.C:615
 DrawDPhi.C:616
 DrawDPhi.C:617
 DrawDPhi.C:618
 DrawDPhi.C:619
 DrawDPhi.C:620
 DrawDPhi.C:621
 DrawDPhi.C:622
 DrawDPhi.C:623
 DrawDPhi.C:624
 DrawDPhi.C:625
 DrawDPhi.C:626
 DrawDPhi.C:627
 DrawDPhi.C:628
 DrawDPhi.C:629
 DrawDPhi.C:630
 DrawDPhi.C:631
 DrawDPhi.C:632
 DrawDPhi.C:633
 DrawDPhi.C:634
 DrawDPhi.C:635
 DrawDPhi.C:636
 DrawDPhi.C:637
 DrawDPhi.C:638
 DrawDPhi.C:639
 DrawDPhi.C:640
 DrawDPhi.C:641
 DrawDPhi.C:642
 DrawDPhi.C:643
 DrawDPhi.C:644
 DrawDPhi.C:645
 DrawDPhi.C:646
 DrawDPhi.C:647
 DrawDPhi.C:648
 DrawDPhi.C:649
 DrawDPhi.C:650
 DrawDPhi.C:651
 DrawDPhi.C:652
 DrawDPhi.C:653
 DrawDPhi.C:654
 DrawDPhi.C:655
 DrawDPhi.C:656
 DrawDPhi.C:657
 DrawDPhi.C:658
 DrawDPhi.C:659
 DrawDPhi.C:660
 DrawDPhi.C:661
 DrawDPhi.C:662
 DrawDPhi.C:663
 DrawDPhi.C:664
 DrawDPhi.C:665
 DrawDPhi.C:666
 DrawDPhi.C:667
 DrawDPhi.C:668
 DrawDPhi.C:669
 DrawDPhi.C:670
 DrawDPhi.C:671
 DrawDPhi.C:672
 DrawDPhi.C:673
 DrawDPhi.C:674
 DrawDPhi.C:675
 DrawDPhi.C:676
 DrawDPhi.C:677
 DrawDPhi.C:678
 DrawDPhi.C:679
 DrawDPhi.C:680
 DrawDPhi.C:681
 DrawDPhi.C:682
 DrawDPhi.C:683
 DrawDPhi.C:684
 DrawDPhi.C:685
 DrawDPhi.C:686
 DrawDPhi.C:687
 DrawDPhi.C:688
 DrawDPhi.C:689
 DrawDPhi.C:690
 DrawDPhi.C:691
 DrawDPhi.C:692
 DrawDPhi.C:693
 DrawDPhi.C:694
 DrawDPhi.C:695
 DrawDPhi.C:696
 DrawDPhi.C:697
 DrawDPhi.C:698
 DrawDPhi.C:699
 DrawDPhi.C:700
 DrawDPhi.C:701
 DrawDPhi.C:702
 DrawDPhi.C:703
 DrawDPhi.C:704
 DrawDPhi.C:705
 DrawDPhi.C:706
 DrawDPhi.C:707
 DrawDPhi.C:708
 DrawDPhi.C:709
 DrawDPhi.C:710
 DrawDPhi.C:711
 DrawDPhi.C:712
 DrawDPhi.C:713
 DrawDPhi.C:714
 DrawDPhi.C:715
 DrawDPhi.C:716
 DrawDPhi.C:717
 DrawDPhi.C:718
 DrawDPhi.C:719
 DrawDPhi.C:720
 DrawDPhi.C:721
 DrawDPhi.C:722
 DrawDPhi.C:723
 DrawDPhi.C:724
 DrawDPhi.C:725
 DrawDPhi.C:726
 DrawDPhi.C:727
 DrawDPhi.C:728
 DrawDPhi.C:729
 DrawDPhi.C:730
 DrawDPhi.C:731
 DrawDPhi.C:732
 DrawDPhi.C:733
 DrawDPhi.C:734
 DrawDPhi.C:735
 DrawDPhi.C:736
 DrawDPhi.C:737
 DrawDPhi.C:738
 DrawDPhi.C:739
 DrawDPhi.C:740
 DrawDPhi.C:741
 DrawDPhi.C:742
 DrawDPhi.C:743
 DrawDPhi.C:744
 DrawDPhi.C:745
 DrawDPhi.C:746
 DrawDPhi.C:747
 DrawDPhi.C:748
 DrawDPhi.C:749
 DrawDPhi.C:750
 DrawDPhi.C:751
 DrawDPhi.C:752
 DrawDPhi.C:753
 DrawDPhi.C:754
 DrawDPhi.C:755
 DrawDPhi.C:756
 DrawDPhi.C:757
 DrawDPhi.C:758
 DrawDPhi.C:759
 DrawDPhi.C:760
 DrawDPhi.C:761
 DrawDPhi.C:762
 DrawDPhi.C:763
 DrawDPhi.C:764
 DrawDPhi.C:765
 DrawDPhi.C:766
 DrawDPhi.C:767
 DrawDPhi.C:768
 DrawDPhi.C:769
 DrawDPhi.C:770
 DrawDPhi.C:771
 DrawDPhi.C:772
 DrawDPhi.C:773
 DrawDPhi.C:774
 DrawDPhi.C:775
 DrawDPhi.C:776
 DrawDPhi.C:777
 DrawDPhi.C:778
 DrawDPhi.C:779
 DrawDPhi.C:780
 DrawDPhi.C:781
 DrawDPhi.C:782
 DrawDPhi.C:783
 DrawDPhi.C:784
 DrawDPhi.C:785
 DrawDPhi.C:786
 DrawDPhi.C:787
 DrawDPhi.C:788
 DrawDPhi.C:789
 DrawDPhi.C:790
 DrawDPhi.C:791
 DrawDPhi.C:792
 DrawDPhi.C:793
 DrawDPhi.C:794
 DrawDPhi.C:795
 DrawDPhi.C:796
 DrawDPhi.C:797
 DrawDPhi.C:798
 DrawDPhi.C:799
 DrawDPhi.C:800
 DrawDPhi.C:801
 DrawDPhi.C:802
 DrawDPhi.C:803
 DrawDPhi.C:804
 DrawDPhi.C:805
 DrawDPhi.C:806
 DrawDPhi.C:807
 DrawDPhi.C:808
 DrawDPhi.C:809
 DrawDPhi.C:810
 DrawDPhi.C:811
 DrawDPhi.C:812
 DrawDPhi.C:813
 DrawDPhi.C:814
 DrawDPhi.C:815
 DrawDPhi.C:816
 DrawDPhi.C:817
 DrawDPhi.C:818
 DrawDPhi.C:819
 DrawDPhi.C:820
 DrawDPhi.C:821
 DrawDPhi.C:822
 DrawDPhi.C:823
 DrawDPhi.C:824
 DrawDPhi.C:825
 DrawDPhi.C:826
 DrawDPhi.C:827
 DrawDPhi.C:828
 DrawDPhi.C:829
 DrawDPhi.C:830
 DrawDPhi.C:831
 DrawDPhi.C:832
 DrawDPhi.C:833
 DrawDPhi.C:834
 DrawDPhi.C:835
 DrawDPhi.C:836
 DrawDPhi.C:837
 DrawDPhi.C:838
 DrawDPhi.C:839
 DrawDPhi.C:840
 DrawDPhi.C:841
 DrawDPhi.C:842
 DrawDPhi.C:843
 DrawDPhi.C:844
 DrawDPhi.C:845
 DrawDPhi.C:846
 DrawDPhi.C:847
 DrawDPhi.C:848
 DrawDPhi.C:849
 DrawDPhi.C:850
 DrawDPhi.C:851
 DrawDPhi.C:852
 DrawDPhi.C:853
 DrawDPhi.C:854
 DrawDPhi.C:855
 DrawDPhi.C:856
 DrawDPhi.C:857
 DrawDPhi.C:858
 DrawDPhi.C:859
 DrawDPhi.C:860
 DrawDPhi.C:861
 DrawDPhi.C:862
 DrawDPhi.C:863
 DrawDPhi.C:864
 DrawDPhi.C:865
 DrawDPhi.C:866
 DrawDPhi.C:867
 DrawDPhi.C:868
 DrawDPhi.C:869
 DrawDPhi.C:870
 DrawDPhi.C:871
 DrawDPhi.C:872
 DrawDPhi.C:873
 DrawDPhi.C:874
 DrawDPhi.C:875
 DrawDPhi.C:876
 DrawDPhi.C:877
 DrawDPhi.C:878
 DrawDPhi.C:879
 DrawDPhi.C:880
 DrawDPhi.C:881
 DrawDPhi.C:882
 DrawDPhi.C:883
 DrawDPhi.C:884
 DrawDPhi.C:885
 DrawDPhi.C:886
 DrawDPhi.C:887
 DrawDPhi.C:888
 DrawDPhi.C:889
 DrawDPhi.C:890
 DrawDPhi.C:891
 DrawDPhi.C:892
 DrawDPhi.C:893
 DrawDPhi.C:894
 DrawDPhi.C:895
 DrawDPhi.C:896
 DrawDPhi.C:897
 DrawDPhi.C:898
 DrawDPhi.C:899
 DrawDPhi.C:900
 DrawDPhi.C:901
 DrawDPhi.C:902
 DrawDPhi.C:903
 DrawDPhi.C:904
 DrawDPhi.C:905
 DrawDPhi.C:906
 DrawDPhi.C:907
 DrawDPhi.C:908
 DrawDPhi.C:909
 DrawDPhi.C:910
 DrawDPhi.C:911
 DrawDPhi.C:912
 DrawDPhi.C:913
 DrawDPhi.C:914
 DrawDPhi.C:915
 DrawDPhi.C:916
 DrawDPhi.C:917
 DrawDPhi.C:918
 DrawDPhi.C:919
 DrawDPhi.C:920
 DrawDPhi.C:921
 DrawDPhi.C:922
 DrawDPhi.C:923
 DrawDPhi.C:924
 DrawDPhi.C:925
 DrawDPhi.C:926
 DrawDPhi.C:927
 DrawDPhi.C:928
 DrawDPhi.C:929
 DrawDPhi.C:930
 DrawDPhi.C:931
 DrawDPhi.C:932
 DrawDPhi.C:933
 DrawDPhi.C:934
 DrawDPhi.C:935
 DrawDPhi.C:936
 DrawDPhi.C:937
 DrawDPhi.C:938
 DrawDPhi.C:939
 DrawDPhi.C:940
 DrawDPhi.C:941
 DrawDPhi.C:942
 DrawDPhi.C:943
 DrawDPhi.C:944
 DrawDPhi.C:945
 DrawDPhi.C:946
 DrawDPhi.C:947
 DrawDPhi.C:948
 DrawDPhi.C:949
 DrawDPhi.C:950
 DrawDPhi.C:951
 DrawDPhi.C:952
 DrawDPhi.C:953
 DrawDPhi.C:954
 DrawDPhi.C:955
 DrawDPhi.C:956
 DrawDPhi.C:957
 DrawDPhi.C:958
 DrawDPhi.C:959
 DrawDPhi.C:960
 DrawDPhi.C:961
 DrawDPhi.C:962
 DrawDPhi.C:963
 DrawDPhi.C:964
 DrawDPhi.C:965
 DrawDPhi.C:966
 DrawDPhi.C:967
 DrawDPhi.C:968
 DrawDPhi.C:969
 DrawDPhi.C:970
 DrawDPhi.C:971
 DrawDPhi.C:972
 DrawDPhi.C:973
 DrawDPhi.C:974
 DrawDPhi.C:975
 DrawDPhi.C:976
 DrawDPhi.C:977
 DrawDPhi.C:978
 DrawDPhi.C:979
 DrawDPhi.C:980
 DrawDPhi.C:981
 DrawDPhi.C:982
 DrawDPhi.C:983
 DrawDPhi.C:984
 DrawDPhi.C:985
 DrawDPhi.C:986
 DrawDPhi.C:987
 DrawDPhi.C:988
 DrawDPhi.C:989
 DrawDPhi.C:990
 DrawDPhi.C:991
 DrawDPhi.C:992
 DrawDPhi.C:993
 DrawDPhi.C:994
 DrawDPhi.C:995
 DrawDPhi.C:996
 DrawDPhi.C:997
 DrawDPhi.C:998
 DrawDPhi.C:999
 DrawDPhi.C:1000
 DrawDPhi.C:1001
 DrawDPhi.C:1002
 DrawDPhi.C:1003
 DrawDPhi.C:1004
 DrawDPhi.C:1005
 DrawDPhi.C:1006
 DrawDPhi.C:1007
 DrawDPhi.C:1008
 DrawDPhi.C:1009
 DrawDPhi.C:1010
 DrawDPhi.C:1011
 DrawDPhi.C:1012
 DrawDPhi.C:1013
 DrawDPhi.C:1014
 DrawDPhi.C:1015
 DrawDPhi.C:1016
 DrawDPhi.C:1017
 DrawDPhi.C:1018
 DrawDPhi.C:1019
 DrawDPhi.C:1020
 DrawDPhi.C:1021
 DrawDPhi.C:1022
 DrawDPhi.C:1023
 DrawDPhi.C:1024
 DrawDPhi.C:1025
 DrawDPhi.C:1026
 DrawDPhi.C:1027
 DrawDPhi.C:1028
 DrawDPhi.C:1029
 DrawDPhi.C:1030
 DrawDPhi.C:1031
 DrawDPhi.C:1032
 DrawDPhi.C:1033
 DrawDPhi.C:1034
 DrawDPhi.C:1035
 DrawDPhi.C:1036
 DrawDPhi.C:1037
 DrawDPhi.C:1038
 DrawDPhi.C:1039
 DrawDPhi.C:1040
 DrawDPhi.C:1041
 DrawDPhi.C:1042
 DrawDPhi.C:1043
 DrawDPhi.C:1044
 DrawDPhi.C:1045
 DrawDPhi.C:1046
 DrawDPhi.C:1047
 DrawDPhi.C:1048
 DrawDPhi.C:1049
 DrawDPhi.C:1050
 DrawDPhi.C:1051
 DrawDPhi.C:1052
 DrawDPhi.C:1053
 DrawDPhi.C:1054
 DrawDPhi.C:1055
 DrawDPhi.C:1056
 DrawDPhi.C:1057
 DrawDPhi.C:1058
 DrawDPhi.C:1059
 DrawDPhi.C:1060
 DrawDPhi.C:1061
 DrawDPhi.C:1062
 DrawDPhi.C:1063
 DrawDPhi.C:1064
 DrawDPhi.C:1065
 DrawDPhi.C:1066
 DrawDPhi.C:1067
 DrawDPhi.C:1068
 DrawDPhi.C:1069
 DrawDPhi.C:1070
 DrawDPhi.C:1071
 DrawDPhi.C:1072
 DrawDPhi.C:1073
 DrawDPhi.C:1074
 DrawDPhi.C:1075
 DrawDPhi.C:1076
 DrawDPhi.C:1077
 DrawDPhi.C:1078
 DrawDPhi.C:1079
 DrawDPhi.C:1080
 DrawDPhi.C:1081
 DrawDPhi.C:1082
 DrawDPhi.C:1083
 DrawDPhi.C:1084
 DrawDPhi.C:1085
 DrawDPhi.C:1086
 DrawDPhi.C:1087
 DrawDPhi.C:1088
 DrawDPhi.C:1089
 DrawDPhi.C:1090
 DrawDPhi.C:1091
 DrawDPhi.C:1092
 DrawDPhi.C:1093
 DrawDPhi.C:1094
 DrawDPhi.C:1095
 DrawDPhi.C:1096
 DrawDPhi.C:1097
 DrawDPhi.C:1098
 DrawDPhi.C:1099
 DrawDPhi.C:1100
 DrawDPhi.C:1101
 DrawDPhi.C:1102
 DrawDPhi.C:1103
 DrawDPhi.C:1104
 DrawDPhi.C:1105
 DrawDPhi.C:1106
 DrawDPhi.C:1107
 DrawDPhi.C:1108
 DrawDPhi.C:1109
 DrawDPhi.C:1110
 DrawDPhi.C:1111
 DrawDPhi.C:1112
 DrawDPhi.C:1113
 DrawDPhi.C:1114
 DrawDPhi.C:1115
 DrawDPhi.C:1116
 DrawDPhi.C:1117
 DrawDPhi.C:1118
 DrawDPhi.C:1119
 DrawDPhi.C:1120
 DrawDPhi.C:1121
 DrawDPhi.C:1122
 DrawDPhi.C:1123
 DrawDPhi.C:1124
 DrawDPhi.C:1125
 DrawDPhi.C:1126
 DrawDPhi.C:1127
 DrawDPhi.C:1128
 DrawDPhi.C:1129
 DrawDPhi.C:1130
 DrawDPhi.C:1131
 DrawDPhi.C:1132
 DrawDPhi.C:1133
 DrawDPhi.C:1134
 DrawDPhi.C:1135
 DrawDPhi.C:1136
 DrawDPhi.C:1137
 DrawDPhi.C:1138
 DrawDPhi.C:1139
 DrawDPhi.C:1140
 DrawDPhi.C:1141
 DrawDPhi.C:1142
 DrawDPhi.C:1143
 DrawDPhi.C:1144
 DrawDPhi.C:1145
 DrawDPhi.C:1146
 DrawDPhi.C:1147
 DrawDPhi.C:1148
 DrawDPhi.C:1149
 DrawDPhi.C:1150
 DrawDPhi.C:1151
 DrawDPhi.C:1152
 DrawDPhi.C:1153
 DrawDPhi.C:1154
 DrawDPhi.C:1155
 DrawDPhi.C:1156
 DrawDPhi.C:1157
 DrawDPhi.C:1158
 DrawDPhi.C:1159
 DrawDPhi.C:1160
 DrawDPhi.C:1161
 DrawDPhi.C:1162
 DrawDPhi.C:1163
 DrawDPhi.C:1164
 DrawDPhi.C:1165
 DrawDPhi.C:1166
 DrawDPhi.C:1167
 DrawDPhi.C:1168
 DrawDPhi.C:1169
 DrawDPhi.C:1170
 DrawDPhi.C:1171
 DrawDPhi.C:1172
 DrawDPhi.C:1173
 DrawDPhi.C:1174
 DrawDPhi.C:1175
 DrawDPhi.C:1176
 DrawDPhi.C:1177
 DrawDPhi.C:1178
 DrawDPhi.C:1179
 DrawDPhi.C:1180
 DrawDPhi.C:1181
 DrawDPhi.C:1182
 DrawDPhi.C:1183
 DrawDPhi.C:1184
 DrawDPhi.C:1185
 DrawDPhi.C:1186
 DrawDPhi.C:1187
 DrawDPhi.C:1188
 DrawDPhi.C:1189
 DrawDPhi.C:1190
 DrawDPhi.C:1191
 DrawDPhi.C:1192
 DrawDPhi.C:1193
 DrawDPhi.C:1194
 DrawDPhi.C:1195
 DrawDPhi.C:1196
 DrawDPhi.C:1197
 DrawDPhi.C:1198
 DrawDPhi.C:1199
 DrawDPhi.C:1200
 DrawDPhi.C:1201
 DrawDPhi.C:1202
 DrawDPhi.C:1203
 DrawDPhi.C:1204
 DrawDPhi.C:1205
 DrawDPhi.C:1206
 DrawDPhi.C:1207
 DrawDPhi.C:1208
 DrawDPhi.C:1209
 DrawDPhi.C:1210
 DrawDPhi.C:1211
 DrawDPhi.C:1212
 DrawDPhi.C:1213
 DrawDPhi.C:1214
 DrawDPhi.C:1215
 DrawDPhi.C:1216
 DrawDPhi.C:1217
 DrawDPhi.C:1218
 DrawDPhi.C:1219
 DrawDPhi.C:1220
 DrawDPhi.C:1221
 DrawDPhi.C:1222
 DrawDPhi.C:1223
 DrawDPhi.C:1224
 DrawDPhi.C:1225
 DrawDPhi.C:1226
 DrawDPhi.C:1227
 DrawDPhi.C:1228
 DrawDPhi.C:1229
 DrawDPhi.C:1230
 DrawDPhi.C:1231
 DrawDPhi.C:1232
 DrawDPhi.C:1233
 DrawDPhi.C:1234
 DrawDPhi.C:1235
 DrawDPhi.C:1236
 DrawDPhi.C:1237
 DrawDPhi.C:1238
 DrawDPhi.C:1239
 DrawDPhi.C:1240
 DrawDPhi.C:1241
 DrawDPhi.C:1242
 DrawDPhi.C:1243
 DrawDPhi.C:1244
 DrawDPhi.C:1245
 DrawDPhi.C:1246
 DrawDPhi.C:1247
 DrawDPhi.C:1248
 DrawDPhi.C:1249
 DrawDPhi.C:1250
 DrawDPhi.C:1251
 DrawDPhi.C:1252
 DrawDPhi.C:1253
 DrawDPhi.C:1254
 DrawDPhi.C:1255
 DrawDPhi.C:1256
 DrawDPhi.C:1257
 DrawDPhi.C:1258
 DrawDPhi.C:1259
 DrawDPhi.C:1260
 DrawDPhi.C:1261
 DrawDPhi.C:1262
 DrawDPhi.C:1263
 DrawDPhi.C:1264
 DrawDPhi.C:1265
 DrawDPhi.C:1266
 DrawDPhi.C:1267
 DrawDPhi.C:1268
 DrawDPhi.C:1269
 DrawDPhi.C:1270
 DrawDPhi.C:1271
 DrawDPhi.C:1272
 DrawDPhi.C:1273
 DrawDPhi.C:1274
 DrawDPhi.C:1275
 DrawDPhi.C:1276
 DrawDPhi.C:1277
 DrawDPhi.C:1278
 DrawDPhi.C:1279
 DrawDPhi.C:1280
 DrawDPhi.C:1281
 DrawDPhi.C:1282
 DrawDPhi.C:1283
 DrawDPhi.C:1284
 DrawDPhi.C:1285
 DrawDPhi.C:1286
 DrawDPhi.C:1287
 DrawDPhi.C:1288
 DrawDPhi.C:1289
 DrawDPhi.C:1290
 DrawDPhi.C:1291
 DrawDPhi.C:1292
 DrawDPhi.C:1293
 DrawDPhi.C:1294
 DrawDPhi.C:1295
 DrawDPhi.C:1296
 DrawDPhi.C:1297
 DrawDPhi.C:1298
 DrawDPhi.C:1299
 DrawDPhi.C:1300
 DrawDPhi.C:1301
 DrawDPhi.C:1302
 DrawDPhi.C:1303
 DrawDPhi.C:1304
 DrawDPhi.C:1305
 DrawDPhi.C:1306
 DrawDPhi.C:1307
 DrawDPhi.C:1308
 DrawDPhi.C:1309
 DrawDPhi.C:1310
 DrawDPhi.C:1311
 DrawDPhi.C:1312
 DrawDPhi.C:1313
 DrawDPhi.C:1314
 DrawDPhi.C:1315
 DrawDPhi.C:1316
 DrawDPhi.C:1317
 DrawDPhi.C:1318
 DrawDPhi.C:1319
 DrawDPhi.C:1320
 DrawDPhi.C:1321
 DrawDPhi.C:1322
 DrawDPhi.C:1323
 DrawDPhi.C:1324
 DrawDPhi.C:1325
 DrawDPhi.C:1326
 DrawDPhi.C:1327
 DrawDPhi.C:1328
 DrawDPhi.C:1329
 DrawDPhi.C:1330
 DrawDPhi.C:1331
 DrawDPhi.C:1332
 DrawDPhi.C:1333
 DrawDPhi.C:1334
 DrawDPhi.C:1335
 DrawDPhi.C:1336
 DrawDPhi.C:1337
 DrawDPhi.C:1338
 DrawDPhi.C:1339
 DrawDPhi.C:1340
 DrawDPhi.C:1341
 DrawDPhi.C:1342
 DrawDPhi.C:1343
 DrawDPhi.C:1344
 DrawDPhi.C:1345
 DrawDPhi.C:1346
 DrawDPhi.C:1347
 DrawDPhi.C:1348
 DrawDPhi.C:1349
 DrawDPhi.C:1350
 DrawDPhi.C:1351
 DrawDPhi.C:1352
 DrawDPhi.C:1353
 DrawDPhi.C:1354
 DrawDPhi.C:1355
 DrawDPhi.C:1356
 DrawDPhi.C:1357
 DrawDPhi.C:1358
 DrawDPhi.C:1359
 DrawDPhi.C:1360
 DrawDPhi.C:1361
 DrawDPhi.C:1362
 DrawDPhi.C:1363
 DrawDPhi.C:1364
 DrawDPhi.C:1365
 DrawDPhi.C:1366
 DrawDPhi.C:1367
 DrawDPhi.C:1368
 DrawDPhi.C:1369
 DrawDPhi.C:1370
 DrawDPhi.C:1371
 DrawDPhi.C:1372
 DrawDPhi.C:1373
 DrawDPhi.C:1374
 DrawDPhi.C:1375
 DrawDPhi.C:1376
 DrawDPhi.C:1377
 DrawDPhi.C:1378
 DrawDPhi.C:1379
 DrawDPhi.C:1380
 DrawDPhi.C:1381
 DrawDPhi.C:1382
 DrawDPhi.C:1383
 DrawDPhi.C:1384
 DrawDPhi.C:1385
 DrawDPhi.C:1386
 DrawDPhi.C:1387
 DrawDPhi.C:1388
 DrawDPhi.C:1389
 DrawDPhi.C:1390
 DrawDPhi.C:1391
 DrawDPhi.C:1392
 DrawDPhi.C:1393
 DrawDPhi.C:1394
 DrawDPhi.C:1395
 DrawDPhi.C:1396
 DrawDPhi.C:1397
 DrawDPhi.C:1398
 DrawDPhi.C:1399
 DrawDPhi.C:1400
 DrawDPhi.C:1401
 DrawDPhi.C:1402
 DrawDPhi.C:1403
 DrawDPhi.C:1404
 DrawDPhi.C:1405
 DrawDPhi.C:1406
 DrawDPhi.C:1407
 DrawDPhi.C:1408
 DrawDPhi.C:1409
 DrawDPhi.C:1410
 DrawDPhi.C:1411
 DrawDPhi.C:1412
 DrawDPhi.C:1413
 DrawDPhi.C:1414
 DrawDPhi.C:1415
 DrawDPhi.C:1416
 DrawDPhi.C:1417
 DrawDPhi.C:1418
 DrawDPhi.C:1419
 DrawDPhi.C:1420
 DrawDPhi.C:1421
 DrawDPhi.C:1422