ROOT logo
const Int_t numberOfCentralityBins = 13;
TString centralityArray[numberOfCentralityBins] = {"0-80","10-20","20-30","30-40","40-50","50-60","60-70","70-80","0-100","0-1","1-2","2-3","92-8500"};

const Int_t gRebin = 1;

void drawCorrelationFunctionPsiChargeIndependent(const char* filename = "AnalysisResults.root", 
						 Int_t gCentrality = 1,
						 Int_t gBit = -1,
						 const char* gCentralityEstimator = 0x0,
						 Bool_t kShowShuffled = kFALSE, 
						 Bool_t kShowMixed = kTRUE, 
						 Double_t psiMin = -0.5, 
						 Double_t psiMax = 3.5,
						 Double_t vertexZMin = -10.,
						 Double_t vertexZMax = 10.,
						 Double_t ptTriggerMin = -1.,
						 Double_t ptTriggerMax = -1.,
						 Double_t ptAssociatedMin = -1.,
						 Double_t ptAssociatedMax = -1.,
						 Bool_t normToTrig = kFALSE,
						 Int_t rebinEta = 1,
						 Int_t rebinPhi = 1) {
  //Macro that draws the correlation functions from the balance function
  //analysis vs the reaction plane
  //Author: Panos.Christakoglou@nikhef.nl
  gROOT->LoadMacro("~/SetPlotStyle.C");
  SetPlotStyle();
  gStyle->SetPalette(1,0);

  //Load the PWG2ebye library
  gSystem->Load("libANALYSIS.so");
  gSystem->Load("libANALYSISalice.so");
  gSystem->Load("libEventMixing.so");
  gSystem->Load("libCORRFW.so");
  gSystem->Load("libPWGTools.so");
  gSystem->Load("libPWGCFebye.so");

  //Prepare the objects and return them
  TList *list = GetListOfObjects(filename,gCentrality,gBit,gCentralityEstimator,0);
  TList *listShuffled = NULL;
  if(kShowShuffled) listShuffled = GetListOfObjects(filename,gCentrality,gBit,gCentralityEstimator,1);
  TList *listMixed = NULL;
  if(kShowMixed) listMixed = GetListOfObjects(filename,gCentrality,gBit,gCentralityEstimator,2);

  if(!list) {
    Printf("The TList object was not created");
    return;
  }
  else 
    draw(list,listShuffled,listMixed,
	 gCentralityEstimator,gCentrality,psiMin,psiMax,vertexZMin,vertexZMax,
	 ptTriggerMin,ptTriggerMax,ptAssociatedMin,ptAssociatedMax,normToTrig,rebinEta,rebinPhi);
}

//______________________________________________________//
TList *GetListOfObjects(const char* filename,
			Int_t gCentrality,
			Int_t gBit,
			const char *gCentralityEstimator,
			Int_t kData = 1) {
  //Get the TList objects (QA, bf, bf shuffled)
  TList *listBF = 0x0;
  
  //Open the file
  TFile *f = TFile::Open(filename,"UPDATE");
  if((!f)||(!f->IsOpen())) {
    Printf("The file %s is not found. Aborting...",filename);
    return listBF;
  }
  //f->ls();
  
  TDirectoryFile *dir = dynamic_cast<TDirectoryFile *>(f->Get("PWGCFEbyE.outputBalanceFunctionPsiAnalysis"));
  if(!dir) {   
    Printf("The TDirectoryFile is not found. Aborting...",filename);
    return listBF;
  }
  //dir->ls();
  
  TString listBFName;
  if(kData == 0) {
    //cout<<"no shuffling - no mixing"<<endl;
    listBFName = "listBFPsi_";
  }
  else if(kData == 1) {
    //cout<<"shuffling - no mixing"<<endl;
    listBFName = "listBFPsiShuffled_";
  }
  else if(kData == 2) {
    //cout<<"no shuffling - mixing"<<endl;
    listBFName = "listBFPsiMixed_";
  }
  listBFName += centralityArray[gCentrality-1];
  if(gBit > -1) {
    listBFName += "_Bit"; listBFName += gBit; }
  if(gCentralityEstimator) {
    listBFName += "_"; listBFName += gCentralityEstimator;}

  // histograms were already retrieved (in first iteration)
  if(dir->Get(Form("%s_histograms",listBFName.Data()))){
    listBF = dynamic_cast<TList *>(dir->Get(Form("%s_histograms",listBFName.Data())));
  }

  // histograms were not yet retrieved (this is the first iteration)
  else{

    listBF = dynamic_cast<TList *>(dir->Get(listBFName.Data()));
    cout<<"======================================================="<<endl;
    cout<<"List name (control): "<<listBFName.Data()<<endl;
    cout<<"List name: "<<listBF->GetName()<<endl;
    //listBF->ls();
    
    //Get the histograms
    TString histoName;
    if(kData == 0) 
      histoName = "fHistP";  
    else if(kData == 1)
      histoName = "fHistP_shuffle";
    else if(kData == 2)
      histoName = "fHistP";
    if(gCentralityEstimator) 
      histoName += gCentralityEstimator;   
    AliTHn *fHistP = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));  
    if(!fHistP) {
      Printf("fHistP %s not found!!!",histoName.Data());
      break;
    }
    fHistP->FillParent(); fHistP->DeleteContainers();
    
    if(kData == 0)
      histoName = "fHistN";
    if(kData == 1)
      histoName = "fHistN_shuffle";
    if(kData == 2)
      histoName = "fHistN";
    if(gCentralityEstimator)
      histoName += gCentralityEstimator;
    AliTHn *fHistN = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));
    if(!fHistN) {
      Printf("fHistN %s not found!!!",histoName.Data());
      break;
    }
    fHistN->FillParent(); fHistN->DeleteContainers();
    
    if(kData == 0)
      histoName = "fHistPN";
    if(kData == 1)
      histoName = "fHistPN_shuffle";
    if(kData == 2)
      histoName = "fHistPN";
    if(gCentralityEstimator)
      histoName += gCentralityEstimator;
    AliTHn *fHistPN = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));
    if(!fHistPN) {
      Printf("fHistPN %s not found!!!",histoName.Data());
      break;
    }
    fHistPN->FillParent(); fHistPN->DeleteContainers();
    
    if(kData == 0)
      histoName = "fHistNP";
    if(kData == 1)
      histoName = "fHistNP_shuffle";
    if(kData == 2)
      histoName = "fHistNP";
    if(gCentralityEstimator) 
      histoName += gCentralityEstimator;    
    AliTHn *fHistNP = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));
    if(!fHistNP) {
      Printf("fHistNP %s not found!!!",histoName.Data());
      break;
    }
    fHistNP->FillParent(); fHistNP->DeleteContainers();
    
    if(kData == 0)
      histoName = "fHistPP";
    if(kData == 1)
      histoName = "fHistPP_shuffle";
    if(kData == 2)
      histoName = "fHistPP";
    if(gCentralityEstimator)
      histoName += gCentralityEstimator;   
    AliTHn *fHistPP = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));
    if(!fHistPP) {
      Printf("fHistPP %s not found!!!",histoName.Data());
      break;
    }
    fHistPP->FillParent(); fHistPP->DeleteContainers();
    
    if(kData == 0)
      histoName = "fHistNN";
    if(kData == 1)
      histoName = "fHistNN_shuffle";
    if(kData == 2)
      histoName = "fHistNN";
    if(gCentralityEstimator) 
      histoName += gCentralityEstimator;
    AliTHn *fHistNN = dynamic_cast<AliTHn *>(listBF->FindObject(histoName.Data()));
    if(!fHistNN) {
      Printf("fHistNN %s not found!!!",histoName.Data());
      break;
    }
    fHistNN->FillParent(); fHistNN->DeleteContainers();

    dir->cd();
    listBF->Write(Form("%s_histograms",listBFName.Data()), TObject::kSingleKey);
    
  }// first iteration
  
  f->Close();
  
  return listBF;
}

//______________________________________________________//
void draw(TList *list, TList *listBFShuffled, TList *listBFMixed, 
	  const char *gCentralityEstimator,
	  Int_t gCentrality, Double_t psiMin, Double_t psiMax,
	  Double_t vertexZMin,
	  Double_t vertexZMax,
	  Double_t ptTriggerMin, Double_t ptTriggerMax,
	  Double_t ptAssociatedMin, Double_t ptAssociatedMax,
	  Bool_t normToTrig, Int_t rebinEta, Int_t rebinPhi) {
  //Draws the correlation functions for every centrality bin
  //(+-), (-+), (++), (--)  
  AliTHn *hP = NULL;
  AliTHn *hN = NULL;
  AliTHn *hPN = NULL;
  AliTHn *hNP = NULL;
  AliTHn *hPP = NULL;
  AliTHn *hNN = NULL;
  
  TString gHistPname = "fHistP"; 
  if(gCentralityEstimator) gHistPname += gCentralityEstimator;
  TString gHistNname = "fHistN";
  if(gCentralityEstimator) gHistNname += gCentralityEstimator;
  TString gHistPNname = "fHistPN"; 
  if(gCentralityEstimator) gHistPNname += gCentralityEstimator;
  TString gHistNPname = "fHistNP";
  if(gCentralityEstimator) gHistNPname += gCentralityEstimator;
  TString gHistPPname = "fHistPP";
  if(gCentralityEstimator) gHistPPname += gCentralityEstimator;
  TString gHistNNname = "fHistNN";
  if(gCentralityEstimator) gHistNNname += gCentralityEstimator;

  hP = (AliTHn*) list->FindObject(gHistPname.Data());
  hN = (AliTHn*) list->FindObject(gHistNname.Data());
  hPN = (AliTHn*) list->FindObject(gHistPNname.Data());
  hNP = (AliTHn*) list->FindObject(gHistNPname.Data());
  hPP = (AliTHn*) list->FindObject(gHistPPname.Data());
  hNN = (AliTHn*) list->FindObject(gHistNNname.Data());

  //Create the AliBalancePsi object and fill it with the AliTHn objects
  AliBalancePsi *b = new AliBalancePsi();
  b->SetHistNp(hP);
  b->SetHistNn(hN);
  b->SetHistNpn(hPN);
  b->SetHistNnp(hNP);
  b->SetHistNpp(hPP);
  b->SetHistNnn(hNN);

  //balance function shuffling
  AliTHn *hPShuffled = NULL;
  AliTHn *hNShuffled = NULL;
  AliTHn *hPNShuffled = NULL;
  AliTHn *hNPShuffled = NULL;
  AliTHn *hPPShuffled = NULL;
  AliTHn *hNNShuffled = NULL;
  if(listBFShuffled) {
    //listBFShuffled->ls();
    
    gHistPname = "fHistP_shuffle"; 
    if(gCentralityEstimator) gHistPname += gCentralityEstimator;
    gHistNname = "fHistN_shuffle";
    if(gCentralityEstimator) gHistNname += gCentralityEstimator;
    gHistPNname = "fHistPN_shuffle"; 
    if(gCentralityEstimator) gHistPNname += gCentralityEstimator;
    gHistNPname = "fHistNP_shuffle";
    if(gCentralityEstimator) gHistNPname += gCentralityEstimator;
    gHistPPname = "fHistPP_shuffle";
    if(gCentralityEstimator) gHistPPname += gCentralityEstimator;
    gHistNNname = "fHistNN_shuffle";
    if(gCentralityEstimator) gHistNNname += gCentralityEstimator;

    hPShuffled = (AliTHn*) listBFShuffled->FindObject(gHistPname.Data());
    hPShuffled->SetName("gHistPShuffled");
    hNShuffled = (AliTHn*) listBFShuffled->FindObject(gHistNname.Data());
    hNShuffled->SetName("gHistNShuffled");
    hPNShuffled = (AliTHn*) listBFShuffled->FindObject(gHistPNname.Data());
    hPNShuffled->SetName("gHistPNShuffled");
    hNPShuffled = (AliTHn*) listBFShuffled->FindObject(gHistNPname.Data());
    hNPShuffled->SetName("gHistNPShuffled");
    hPPShuffled = (AliTHn*) listBFShuffled->FindObject(gHistPPname.Data());
    hPPShuffled->SetName("gHistPPShuffled");
    hNNShuffled = (AliTHn*) listBFShuffled->FindObject(gHistNNname.Data());
    hNNShuffled->SetName("gHistNNShuffled");
    
    AliBalancePsi *bShuffled = new AliBalancePsi();
    bShuffled->SetHistNp(hPShuffled);
    bShuffled->SetHistNn(hNShuffled);
    bShuffled->SetHistNpn(hPNShuffled);
    bShuffled->SetHistNnp(hNPShuffled);
    bShuffled->SetHistNpp(hPPShuffled);
    bShuffled->SetHistNnn(hNNShuffled);
  }

  //balance function mixing
  AliTHn *hPMixed = NULL;
  AliTHn *hNMixed = NULL;
  AliTHn *hPNMixed = NULL;
  AliTHn *hNPMixed = NULL;
  AliTHn *hPPMixed = NULL;
  AliTHn *hNNMixed = NULL;

  if(listBFMixed) {
    //listBFMixed->ls();

    gHistPname = "fHistP"; 
    if(gCentralityEstimator) gHistPname += gCentralityEstimator;
    gHistNname = "fHistN";
    if(gCentralityEstimator) gHistNname += gCentralityEstimator;
    gHistPNname = "fHistPN"; 
    if(gCentralityEstimator) gHistPNname += gCentralityEstimator;
    gHistNPname = "fHistNP";
    if(gCentralityEstimator) gHistNPname += gCentralityEstimator;
    gHistPPname = "fHistPP";
    if(gCentralityEstimator) gHistPPname += gCentralityEstimator;
    gHistNNname = "fHistNN";
    if(gCentralityEstimator) gHistNNname += gCentralityEstimator;
    hPMixed = (AliTHn*) listBFMixed->FindObject(gHistPname.Data());
    hPMixed->SetName("gHistPMixed");
    hNMixed = (AliTHn*) listBFMixed->FindObject(gHistNname.Data());
    hNMixed->SetName("gHistNMixed");
    hPNMixed = (AliTHn*) listBFMixed->FindObject(gHistPNname.Data());
    hPNMixed->SetName("gHistPNMixed");
    hNPMixed = (AliTHn*) listBFMixed->FindObject(gHistNPname.Data());
    hNPMixed->SetName("gHistNPMixed");
    hPPMixed = (AliTHn*) listBFMixed->FindObject(gHistPPname.Data());
    hPPMixed->SetName("gHistPPMixed");
    hNNMixed = (AliTHn*) listBFMixed->FindObject(gHistNNname.Data());
    hNNMixed->SetName("gHistNNMixed");
    
    AliBalancePsi *bMixed = new AliBalancePsi();
    bMixed->SetHistNp(hPMixed);
    bMixed->SetHistNn(hNMixed);
    bMixed->SetHistNpn(hPNMixed);
    bMixed->SetHistNnp(hNPMixed);
    bMixed->SetHistNpp(hPPMixed);
    bMixed->SetHistNnn(hNNMixed);
  }

  TH2D *gHist[6];
  
  TCanvas *c[6];
  TString histoTitle, pngName;
  
  // all charges together
  histoTitle = "(+-) | Centrality: ";
  histoTitle += centralityArray[gCentrality-1]; 
  histoTitle += "%";
  if((psiMin == -0.5)&&(psiMax == 0.5))
    histoTitle += " (-7.5^{o} < #varphi - #Psi_{2} < 7.5^{o})"; 
  else if((psiMin == 0.5)&&(psiMax == 1.5))
    histoTitle += " (37.5^{o} < #varphi - #Psi_{2} < 52.5^{o})"; 
  else if((psiMin == 1.5)&&(psiMax == 2.5))
    histoTitle += " (82.5^{o} < #varphi - #Psi_{2} < 97.5^{o})"; 
  else 
    histoTitle += " (0^{o} < #varphi - #Psi_{2} < 180^{o})"; 

  gHist[0] = b->GetCorrelationFunctionChargeIndependent(psiMin,psiMax,vertexZMin,vertexZMax,ptTriggerMin,ptTriggerMax,ptAssociatedMin,ptAssociatedMax);
  if(rebinEta > 1 || rebinPhi > 1){
    gHist[0]->Rebin2D(rebinEta,rebinPhi);
    gHist[0]->Scale(1./(Double_t)(rebinEta*rebinPhi));  
  }
  gHist[0]->GetYaxis()->SetTitleOffset(1.5);
  gHist[0]->GetYaxis()->SetTitle("#Delta #varphi (rad)");
  gHist[0]->SetTitle(histoTitle.Data());
  c[0] = new TCanvas("c0","",0,0,600,500);
  c[0]->SetFillColor(10); c[0]->SetHighLightColor(10);
  gHist[0]->DrawCopy("surf1fb");
  gPad->SetTheta(30); // default is 30
  //gPad->SetPhi(130); // default is 30
  gPad->SetPhi(-60); // default is 30
  gPad->Update();
  pngName = "DeltaPhiDeltaEta.Centrality"; 
  pngName += centralityArray[gCentrality-1]; 
  pngName += ".Psi"; pngName += psiMin; pngName += "To"; pngName += psiMax;
  pngName += ".PositiveNegative.png";
  //c[0]->SaveAs(pngName.Data());
  
  if(listBFShuffled) {
    histoTitle = "(+-) shuffled | Centrality: "; 
    histoTitle += centralityArray[gCentrality-1]; 
    histoTitle += "%";
    if((psiMin == -0.5)&&(psiMax == 0.5))
      histoTitle += " (-7.5^{o} < #varphi - #Psi_{2} < 7.5^{o})"; 
    else if((psiMin == 0.5)&&(psiMax == 1.5))
      histoTitle += " (37.5^{o} < #varphi - #Psi_{2} < 52.5^{o})"; 
    else if((psiMin == 1.5)&&(psiMax == 2.5))
      histoTitle += " (82.5^{o} < #varphi - #Psi_{2} < 97.5^{o})"; 
    else 
      histoTitle += " (0^{o} < #varphi - #Psi_{2} < 180^{o})"; 
    
    gHist[1] = bShuffled->GetCorrelationFunctionChargeIndependent(psiMin,psiMax,vertexZMin,vertexZMax,ptTriggerMin,ptTriggerMax,ptAssociatedMin,ptAssociatedMax);
    if(rebinEta > 1 || rebinPhi > 1){
      gHist[1]->Rebin2D(rebinEta,rebinPhi);
      gHist[1]->Scale(1./(Double_t)(rebinEta*rebinPhi));  
    }
    gHist[1]->GetYaxis()->SetTitleOffset(1.5);
    gHist[1]->GetYaxis()->SetTitle("#Delta #varphi (rad)");
    gHist[1]->SetTitle(histoTitle.Data());
    c[1] = new TCanvas("c1","",0,100,600,500);
    c[1]->SetFillColor(10); 
    c[1]->SetHighLightColor(10);
    gHist[1]->DrawCopy("surf1fb");
    gPad->SetTheta(30); // default is 30
    //gPad->SetPhi(130); // default is 30
    gPad->SetPhi(-60); // default is 30
    gPad->Update();    
    pngName = "DeltaPhiDeltaEtaShuffled.Centrality"; 
    pngName += centralityArray[gCentrality-1]; 
    pngName += ".Psi"; pngName += psiMin; pngName += "To"; pngName += psiMax;
    pngName += ".PositiveNegative.png";
    //c[1]->SaveAs(pngName.Data());
  }

  if(listBFMixed) {
    histoTitle = "(+-) mixed | Centrality: "; 
    histoTitle += centralityArray[gCentrality-1]; 
    histoTitle += "%";
    if((psiMin == -0.5)&&(psiMax == 0.5))
      histoTitle += " (-7.5^{o} < #varphi - #Psi_{2} < 7.5^{o})"; 
    else if((psiMin == 0.5)&&(psiMax == 1.5))
      histoTitle += " (37.5^{o} < #varphi - #Psi_{2} < 52.5^{o})"; 
    else if((psiMin == 1.5)&&(psiMax == 2.5))
      histoTitle += " (82.5^{o} < #varphi - #Psi_{2} < 97.5^{o})"; 
    else 
      histoTitle += " (0^{o} < #varphi - #Psi_{2} < 180^{o})"; 
    
    // if normalization to trigger then do not divide Event mixing by number of trigger particles
    gHist[2] = bMixed->GetCorrelationFunctionChargeIndependent(psiMin,psiMax,vertexZMin,vertexZMax,ptTriggerMin,ptTriggerMax,ptAssociatedMin,ptAssociatedMax);
    if(rebinEta > 1 || rebinPhi > 1){
      gHist[2]->Rebin2D(rebinEta,rebinPhi);
      gHist[2]->Scale(1./(Double_t)(rebinEta*rebinPhi));  
    }
 
    // normalization to 1 at (0,0) --> Jan Fietes method
    if(normToTrig){
      Double_t mixedNorm = gHist[2]->Integral(gHist[2]->GetXaxis()->FindBin(0-10e-5),gHist[2]->GetXaxis()->FindBin(0+10e-5),gHist[2]->GetNbinsY()/2 + 1,gHist[2]->GetNbinsY());
      mixedNorm /= 0.5 * gHist[2]->GetNbinsY()*(gHist[2]->GetXaxis()->FindBin(0.01) - gHist[2]->GetXaxis()->FindBin(-0.01) + 1);

      // finite bin correction
      Double_t binWidthEta = gHist[2]->GetXaxis()->GetBinWidth(gHist[2]->GetNbinsX());
      Double_t maxEta      = gHist[2]->GetXaxis()->GetBinUpEdge(gHist[2]->GetNbinsX());
	
      Double_t finiteBinCorrection = -1.0 / (2*maxEta) * binWidthEta / 2 + 1;
      //Printf("Finite bin correction: %f", finiteBinCorrection);
      mixedNorm /= finiteBinCorrection;
      
      gHist[2]->Scale(1./mixedNorm);
    } 

    gHist[2]->GetYaxis()->SetTitleOffset(1.5);
    gHist[2]->GetYaxis()->SetTitle("#Delta #varphi (rad)");
    gHist[2]->SetTitle(histoTitle.Data());
    c[2] = new TCanvas("c2","",0,200,600,500);
    c[2]->SetFillColor(10); 
    c[2]->SetHighLightColor(10);
    gHist[2]->DrawCopy("surf1fb");
    gPad->SetTheta(30); // default is 30
    //gPad->SetPhi(130); // default is 30
    gPad->SetPhi(-60); // default is 30
    gPad->Update();    
    pngName = "DeltaPhiDeltaEtaMixed.Centrality"; 
    pngName += centralityArray[gCentrality-1]; 
    pngName += ".Psi"; pngName += psiMin; pngName += "To"; pngName += psiMax;
    pngName += ".PositiveNegative.png";
    //c[2]->SaveAs(pngName.Data());

    //Correlation function (+-)
    gHist[3] = b->GetCorrelationFunction("ALL",psiMin,psiMax,vertexZMin,vertexZMax,ptTriggerMin,ptTriggerMax,ptAssociatedMin,ptAssociatedMax,bMixed,normToTrig);
    gHist[3]->GetXaxis()->SetRangeUser(-1.5,1.5);
    gHist[3]->GetZaxis()->SetTitle("C_{+-}(#Delta#eta,#Delta#varphi)");
    c[3] = new TCanvas("c3","",0,300,600,500);
    c[3]->SetFillColor(10); 
    c[3]->SetHighLightColor(10);
    gHist[3]->DrawCopy("surf1fb");
    gPad->SetTheta(30); // default is 30
    //gPad->SetPhi(130); // default is 30
    gPad->SetPhi(-60); // default is 30
    gPad->Update();    
    pngName = "CorrelationFunction.Centrality"; 
    pngName += centralityArray[gCentrality-1]; 
    pngName += ".Psi"; pngName += psiMin; pngName += "To"; pngName += psiMax;
    pngName += ".PositiveNegative.png";
    //c[3]->SaveAs(pngName.Data());

    //Correlation function subtracted awayside (+-)
    gHist[4] = dynamic_cast<TH2D *>(gHist[3]->Clone()); // this will be used to imitate twice the away-side
    gHist[4]->GetXaxis()->SetRangeUser(-1.5,1.5);
    gHist[4]->GetZaxis()->SetTitle("C_{+-}(#Delta#eta,#Delta#varphi)");
    gHist[5] = dynamic_cast<TH2D *>(gHist[3]->Clone()); // this will be the subtracted one
    gHist[5]->GetXaxis()->SetRangeUser(-1.5,1.5);
    gHist[5]->GetZaxis()->SetTitle("C_{+-}(#Delta#eta,#Delta#varphi)");

    //prepare the double away side histo
    for(Int_t ix = 0; ix < gHist[4]->GetNbinsX(); ix++ ){
      for(Int_t iy = 0; iy < gHist[4]->GetNbinsX(); iy++ ){
	if(iy<gHist[4]->GetNbinsY()/2) gHist[4]->SetBinContent(ix+1,iy+1,gHist[4]->GetBinContent(ix+1,iy+1+gHist[4]->GetNbinsY()/2));
      }
    }
    gHist[5]->Add(gHist[4],-1);

    c[4] = new TCanvas("c3","",0,300,600,500);
    c[4]->SetFillColor(10); 
    c[4]->SetHighLightColor(10);
    gHist[5]->DrawCopy("surf1fb");
    gPad->SetTheta(30); // default is 30
    //gPad->SetPhi(130); // default is 30
    gPad->SetPhi(-60); // default is 30
    gPad->Update();    
  }

  //Write to output file
  TString newFileName = "correlationFunctionChargeIndependent.Centrality";  
  newFileName += gCentrality; newFileName += ".Psi";
  if((psiMin == -0.5)&&(psiMax == 0.5)) newFileName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) newFileName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) newFileName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) newFileName += "Rest.PttFrom";
  else newFileName += "All.PttFrom";
  newFileName += Form("%.1f",ptTriggerMin); newFileName += "To"; 
  newFileName += Form("%.1f",ptTriggerMax); newFileName += "PtaFrom";
  newFileName += Form("%.1f",ptAssociatedMin); newFileName += "To"; 
  newFileName += Form("%.1f",ptAssociatedMax); 
  newFileName += ".root";
  TFile *newFile = TFile::Open(newFileName.Data(),"recreate");
  gHist[0]->SetName("gHistRaw"); gHist[0]->Write();
  if(listBFShuffled) {
    gHist[1]->SetName("gHistShuffled"); gHist[1]->Write();
  }
  if(listBFMixed) {
    gHist[2]->SetName("gHistMixed"); gHist[2]->Write();

    gHist[3]->SetName("gHistCorrelationFunctions");gHist[3]->Write();
    gHist[4]->SetName("gHistCorrelationFunctionsAwaySide"); gHist[4]->Write();
    gHist[5]->SetName("gHistCorrelationFunctionsSubtracted"); gHist[5]->Write();
  }
  newFile->Close();

  // // some cleaning
  // for(Int_t i = 0; i < 6; i++){

  //   if(!listBFShuffled && i == 1) continue;
  //   if(!listBFMixed && (i == 2 || i == 3 || i == 4 || i == 5)) continue;

  //   if(gHist[i]) delete gHist[i];
    
  //   if(c[i]) delete c[i];
  // }

  delete hP;
  delete hN;
  delete hPP;
  delete hPN;
  delete hNP;
  delete hNN;

  delete hPMixed;
  delete hNMixed;
  delete hPPMixed;
  delete hPNMixed;
  delete hNPMixed;
  delete hNNMixed;

  delete hPShuffled;
  delete hNShuffled;
  delete hPPShuffled;
  delete hPNShuffled;
  delete hNPShuffled;
  delete hNNShuffled;

}

//____________________________________________________________//
void drawCorrelationFunctions(const char* lhcPeriod = "LHC11h",
			      Int_t gTrainID = 208,			      
			      Int_t gCentrality = 1,
			      Double_t psiMin = -0.5, Double_t psiMax = 3.5,
			      Double_t ptTriggerMin = -1.,
			      Double_t ptTriggerMax = -1.,
			      Double_t ptAssociatedMin = -1.,
			      Double_t ptAssociatedMax = -1.) {
  //Macro that draws the charge dependent correlation functions
  //for each centrality bin for the different pT of trigger and 
  //associated particles
  //Author: Panos.Christakoglou@nikhef.nl
  TGaxis::SetMaxDigits(3);

  //Get the input file
  TString filename = "PbPb/"; filename += lhcPeriod; 
  filename +="/Train"; filename += gTrainID;
  filename +="/Centrality"; filename += gCentrality;
  filename += "/correlationFunction.Centrality";
  filename += gCentrality; filename += ".Psi";
  if((psiMin == -0.5)&&(psiMax == 0.5)) filename += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) filename += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) filename += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) filename += "Rest.Ptt";
  else filename += "All.PttFrom";
  filename += Form("%.1f",ptTriggerMin); filename += "To"; 
  filename += Form("%.1f",ptTriggerMax); filename += "PtaFrom";
  filename += Form("%.1f",ptAssociatedMin); filename += "To"; 
  filename += Form("%.1f",ptAssociatedMax); 
  filename += ".root";  

  //Open the file
  TFile *f = TFile::Open(filename.Data());
  if((!f)||(!f->IsOpen())) {
    Printf("The file %s is not found. Aborting...",filename);
    return listBF;
  }
  //f->ls();
  
  //Latex
  TString centralityLatex = "Centrality: ";
  centralityLatex += centralityArray[gCentrality-1]; 
  centralityLatex += "%";

  TString psiLatex;
  if((psiMin == -0.5)&&(psiMax == 0.5))
    psiLatex = " -7.5^{o} < #varphi - #Psi_{2} < 7.5^{o}"; 
  else if((psiMin == 0.5)&&(psiMax == 1.5))
    psiLatex = " 37.5^{o} < #varphi - #Psi_{2} < 52.5^{o}"; 
  else if((psiMin == 1.5)&&(psiMax == 2.5))
    psiLatex = " 82.5^{o} < #varphi - #Psi_{2} < 97.5^{o}"; 
  else 
    psiLatex = " 0^{o} < #varphi - #Psi_{2} < 180^{o}"; 
 
  TString pttLatex = Form("%.1f",ptTriggerMin);
  pttLatex += " < p_{T,trig} < "; pttLatex += Form("%.1f",ptTriggerMax);
  pttLatex += " GeV/c";

  TString ptaLatex = Form("%.1f",ptAssociatedMin);
  ptaLatex += " < p_{T,assoc} < "; ptaLatex += Form("%.1f",ptAssociatedMax);
  ptaLatex += " GeV/c";

  TLatex *latexInfo1 = new TLatex();
  latexInfo1->SetNDC();
  latexInfo1->SetTextSize(0.045);
  latexInfo1->SetTextColor(1);

  TString pngName;

  //============================================================//
  //Get the +- correlation function
  TH2D *gHistPN = dynamic_cast<TH2D *>(f->Get("gHistPNCorrelationFunctions"));
  gHistPN->SetStats(kFALSE);
  gHistPN->SetTitle("");
  gHistPN->GetXaxis()->SetRangeUser(-1.45,1.45);
  gHistPN->GetXaxis()->CenterTitle();
  gHistPN->GetXaxis()->SetTitleOffset(1.2);
  gHistPN->GetYaxis()->CenterTitle();
  gHistPN->GetYaxis()->SetTitleOffset(1.2);
  gHistPN->GetZaxis()->SetTitleOffset(1.2);
  TCanvas *cPN = new TCanvas("cPN","",0,0,600,500);
  cPN->SetFillColor(10); cPN->SetHighLightColor(10);
  cPN->SetLeftMargin(0.15);
  gHistPN->DrawCopy("surf1fb");
  gPad->SetTheta(30); // default is 30
  gPad->SetPhi(-60); // default is 30
  gPad->Update();

  latexInfo1->DrawLatex(0.44,0.88,centralityLatex.Data());
  //latexInfo1->DrawLatex(0.44,0.82,psiLatex.Data());
  latexInfo1->DrawLatex(0.44,0.82,pttLatex.Data());
  latexInfo1->DrawLatex(0.44,0.76,ptaLatex.Data());

  pngName = "CorrelationFunctionChargeIndependent.Centrality"; 
  pngName += centralityArray[gCentrality-1]; 
  pngName += ".Psi"; 
  if((psiMin == -0.5)&&(psiMax == 0.5)) pngName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) pngName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) pngName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) pngName += "Rest.Ptt";
  else pngName += "All.PttFrom";
  pngName += Form("%.1f",ptTriggerMin); pngName += "To"; 
  pngName += Form("%.1f",ptTriggerMax); pngName += "PtaFrom";
  pngName += Form("%.1f",ptAssociatedMin); pngName += "To"; 
  pngName += Form("%.1f",ptAssociatedMax); 
  pngName += ".PositiveNegative.png";
  cPN->SaveAs(pngName.Data());
  fitCorrelationFunctions(gCentrality, psiMin, psiMax,
			  ptTriggerMin,ptTriggerMax,
			  ptAssociatedMin, ptAssociatedMax,gHistPN);
  //============================================================//
  //Get the -+ correlation function
  TH2D *gHistNP = dynamic_cast<TH2D *>(f->Get("gHistNPCorrelationFunctions"));
  gHistNP->SetStats(kFALSE);
  gHistNP->SetTitle("");
  gHistNP->GetXaxis()->SetRangeUser(-1.45,1.45);
  gHistNP->GetXaxis()->CenterTitle();
  gHistNP->GetXaxis()->SetTitleOffset(1.2);
  gHistNP->GetYaxis()->CenterTitle();
  gHistNP->GetYaxis()->SetTitleOffset(1.2);
  gHistNP->GetZaxis()->SetTitleOffset(1.2);
  TCanvas *cNP = new TCanvas("cNP","",50,50,600,500);
  cNP->SetFillColor(10); cNP->SetHighLightColor(10);
  cNP->SetLeftMargin(0.15);
  gHistNP->DrawCopy("surf1fb");
  gPad->SetTheta(30); // default is 30
  gPad->SetPhi(-60); // default is 30
  gPad->Update();

  latexInfo1->DrawLatex(0.44,0.88,centralityLatex.Data());
  //latexInfo1->DrawLatex(0.44,0.82,psiLatex.Data());
  latexInfo1->DrawLatex(0.44,0.82,pttLatex.Data());
  latexInfo1->DrawLatex(0.44,0.76,ptaLatex.Data());

  pngName = "CorrelationFunction.Centrality"; 
  pngName += centralityArray[gCentrality-1]; 
  pngName += ".Psi"; 
  if((psiMin == -0.5)&&(psiMax == 0.5)) pngName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) pngName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) pngName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) pngName += "Rest.Ptt";
  else pngName += "All.PttFrom";
  pngName += Form("%.1f",ptTriggerMin); pngName += "To"; 
  pngName += Form("%.1f",ptTriggerMax); pngName += "PtaFrom";
  pngName += Form("%.1f",ptAssociatedMin); pngName += "To"; 
  pngName += Form("%.1f",ptAssociatedMax); 
  pngName += ".NegativePositive.png";
  cNP->SaveAs(pngName.Data());

  fitCorrelationFunctions(gCentrality, psiMin, psiMax,
			  ptTriggerMin,ptTriggerMax,
			  ptAssociatedMin, ptAssociatedMax,gHistNP);
  //============================================================//
  //Get the ++ correlation function
  TH2D *gHistPP = dynamic_cast<TH2D *>(f->Get("gHistPPCorrelationFunctions"));
  gHistPP->SetStats(kFALSE);
  gHistPP->SetTitle("");
  gHistPP->GetXaxis()->SetRangeUser(-1.45,1.45);
  gHistPP->GetXaxis()->CenterTitle();
  gHistPP->GetXaxis()->SetTitleOffset(1.2);
  gHistPP->GetYaxis()->CenterTitle();
  gHistPP->GetYaxis()->SetTitleOffset(1.2);
  gHistPP->GetZaxis()->SetTitleOffset(1.2);
  TCanvas *cPP = new TCanvas("cPP","",100,100,600,500);
  cPP->SetFillColor(10); cPP->SetHighLightColor(10);
  cPP->SetLeftMargin(0.15);
  gHistPP->DrawCopy("surf1fb");
  gPad->SetTheta(30); // default is 30
  gPad->SetPhi(-60); // default is 30
  gPad->Update();

  latexInfo1->DrawLatex(0.44,0.88,centralityLatex.Data());
  //latexInfo1->DrawLatex(0.44,0.82,psiLatex.Data());
  latexInfo1->DrawLatex(0.44,0.82,pttLatex.Data());
  latexInfo1->DrawLatex(0.44,0.76,ptaLatex.Data());

  pngName = "CorrelationFunction.Centrality"; 
  pngName += centralityArray[gCentrality-1]; 
  pngName += ".Psi"; 
  if((psiMin == -0.5)&&(psiMax == 0.5)) pngName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) pngName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) pngName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) pngName += "Rest.Ptt";
  else pngName += "All.PttFrom";
  pngName += Form("%.1f",ptTriggerMin); pngName += "To"; 
  pngName += Form("%.1f",ptTriggerMax); pngName += "PtaFrom";
  pngName += Form("%.1f",ptAssociatedMin); pngName += "To"; 
  pngName += Form("%.1f",ptAssociatedMax); 
  pngName += ".PositivePositive.png";
  cPP->SaveAs(pngName.Data());

  fitCorrelationFunctions(gCentrality, psiMin, psiMax,
			  ptTriggerMin,ptTriggerMax,
			  ptAssociatedMin, ptAssociatedMax,gHistPP);
  //============================================================//
  //Get the -- correlation function
  TH2D *gHistNN = dynamic_cast<TH2D *>(f->Get("gHistNNCorrelationFunctions"));
  gHistNN->SetStats(kFALSE);
  gHistNN->SetTitle("");
  gHistNN->GetXaxis()->SetRangeUser(-1.45,1.45);
  gHistNN->GetXaxis()->CenterTitle();
  gHistNN->GetXaxis()->SetTitleOffset(1.2);
  gHistNN->GetYaxis()->CenterTitle();
  gHistNN->GetYaxis()->SetTitleOffset(1.2);
  gHistNN->GetZaxis()->SetTitleOffset(1.2);
  TCanvas *cNN = new TCanvas("cNN","",150,150,600,500);
  cNN->SetFillColor(10); cNN->SetHighLightColor(10);
  cNN->SetLeftMargin(0.15);
  gHistNN->DrawCopy("surf1fb");
  gPad->SetTheta(30); // default is 30
  gPad->SetPhi(-60); // default is 30
  gPad->Update();

  latexInfo1->DrawLatex(0.44,0.88,centralityLatex.Data());
  //latexInfo1->DrawLatex(0.44,0.82,psiLatex.Data());
  latexInfo1->DrawLatex(0.44,0.82,pttLatex.Data());
  latexInfo1->DrawLatex(0.44,0.76,ptaLatex.Data());

  pngName = "CorrelationFunction.Centrality"; 
  pngName += centralityArray[gCentrality-1]; 
  pngName += ".Psi"; 
  if((psiMin == -0.5)&&(psiMax == 0.5)) pngName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) pngName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) pngName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) pngName += "Rest.Ptt";
  else pngName += "All.PttFrom";
  pngName += Form("%.1f",ptTriggerMin); pngName += "To"; 
  pngName += Form("%.1f",ptTriggerMax); pngName += "PtaFrom";
  pngName += Form("%.1f",ptAssociatedMin); pngName += "To"; 
  pngName += Form("%.1f",ptAssociatedMax); 
  pngName += ".NegativeNegative.png";
  cNN->SaveAs(pngName.Data());

  fitCorrelationFunctions(gCentrality, psiMin, psiMax,
			  ptTriggerMin,ptTriggerMax,
			  ptAssociatedMin, ptAssociatedMax,gHistNN);
}

// //____________________________________________________________//
// void fitCorrelationFunctions(Int_t gCentrality = 1,
// 			     Double_t psiMin = -0.5, Double_t psiMax = 3.5,
// 			     Double_t ptTriggerMin = -1.,
// 			     Double_t ptTriggerMax = -1.,
// 			     Double_t ptAssociatedMin = -1.,
// 			     Double_t ptAssociatedMax = -1.,
// 			     TH2D *gHist) {

//   cout<<"FITTING FUNCTION (MW style)"<<endl;

//   //near side peak(s): [1]*(TMath::Exp(-TMath::Power((0.5*TMath::Power(((x-[5])/[2]),2)+0.5*TMath::Power((y/[3]),2)),[4])) + 
//   //                        TMath::Exp(-TMath::Power((0.5*TMath::Power(((x+[5])/[6]),2)+0.5*TMath::Power((y/[3]),2)),[4])))
//   //away side peak(s): [7]*(TMath::Exp(-TMath::Power((0.5*TMath::Power(((x-[11])/[8]),2)+0.5*TMath::Power((y/[9]),2)),[10])) + 
//   //                        TMath::Exp(-TMath::Power((0.5*TMath::Power(((x+[11])/[12]),2)+0.5*TMath::Power((y/[9]),2)),[10])))
//   //flow contribution (v1 up to v4): 2.*[13]*([14]*TMath::Cos(y) + [15]*TMath::Cos(2.*y) + [16]*TMath::Cos(3.*y) + [17]*TMath::Cos(4.*y))



//   TF2 *gFitFunction = new TF2("gFitFunction","[0]+[1]*(TMath::Exp(-TMath::Power((0.5*TMath::Power(((x-[5])/[2]),2)+0.5*TMath::Power((y/[3]),2)),[4])) + TMath::Exp(-TMath::Power((0.5*TMath::Power(((x+[5])/[6]),2)+0.5*TMath::Power((y/[3]),2)),[4]))) + [7]*(TMath::Exp(-TMath::Power((0.5*TMath::Power(((x-[11])/[8]),2)+0.5*TMath::Power(((y-TMath::Pi())/[9]),2)),[10])) + TMath::Exp(-TMath::Power((0.5*TMath::Power(((x+[11])/[12]),2)+0.5*TMath::Power(((y-TMath::Pi())/[9]),2)),[10]))) + 2.*[13]*([14]*TMath::Cos(y) + [15]*TMath::Cos(2.*y) + [16]*TMath::Cos(3.*y) + [17]*TMath::Cos(4.*y))",-2.0,2.0,-TMath::Pi()/2.,3.*TMath::Pi()/2.); 
//   gFitFunction->SetName("gFitFunction");


//   //Normalization
//   gFitFunction->SetParName(0,"N1"); 
//   //near side peak(s)
//   gFitFunction->SetParName(1,"N_{near side}");gFitFunction->FixParameter(1,0.0);
//   gFitFunction->SetParName(2,"Sigma_{near side}(delta eta 1)"); gFitFunction->FixParameter(2,0.0);
//   gFitFunction->SetParName(3,"Sigma_{near side}(delta phi)"); gFitFunction->FixParameter(3,0.0);
//   gFitFunction->SetParName(4,"Exponent_{near side}"); gFitFunction->FixParameter(4,1.0);
//   gFitFunction->SetParName(5,"Offset_{near side}"); gFitFunction->FixParameter(5,0.0);
//   gFitFunction->SetParName(6,"Sigma_{near side}(delta eta 2)"); gFitFunction->FixParameter(6,0.0);

//   //away side peak(s)
//   gFitFunction->SetParName(7,"N_{near side}");gFitFunction->FixParameter(7,0.0);
//   gFitFunction->SetParName(8,"Sigma_{near side}(delta eta 1)"); gFitFunction->FixParameter(8,0.0);
//   gFitFunction->SetParName(9,"Sigma_{near side}(delta phi)"); gFitFunction->FixParameter(9,0.0);
//   gFitFunction->SetParName(10,"Exponent_{near side}"); gFitFunction->FixParameter(10,1.0);
//   gFitFunction->SetParName(11,"Offset_{near side}"); gFitFunction->FixParameter(11,0.0);
//   gFitFunction->SetParName(12,"Sigma_{near side}(delta eta 2)"); gFitFunction->FixParameter(12,0.0);

//   //flow contribution
//   gFitFunction->SetParName(13,"N_{flow}"); gFitFunction->SetParameter(13,0.2);
//   gFitFunction->SetParName(14,"V1"); gFitFunction->SetParameter(14,0.005);
//   gFitFunction->SetParName(15,"V2"); gFitFunction->SetParameter(15,0.1);
//   gFitFunction->SetParName(16,"V3"); gFitFunction->SetParameter(16,0.05);
//   gFitFunction->SetParName(17,"V4"); gFitFunction->SetParameter(17,0.005);

//   // flow parameters
//   Double_t fNV = 0.;
//   Double_t fV1 = 0.;
//   Double_t fV2 = 0.;
//   Double_t fV3 = 0.;
//   Double_t fV4 = 0.;
 
//   //Fitting the correlation function (first the edges to extract flow)
//   gHist->Fit("gFitFunction","nm","",1.0,1.6);

//   fNV += gFitFunction->GetParameter(13);
//   fV1 += gFitFunction->GetParameter(14);
//   fV2 += gFitFunction->GetParameter(15);
//   fV3 += gFitFunction->GetParameter(16);
//   fV4 += gFitFunction->GetParameter(17);

//   gHist->Fit("gFitFunction","nm","",-1.6,-1.0);

//   fNV += gFitFunction->GetParameter(13);
//   fV1 += gFitFunction->GetParameter(14);
//   fV2 += gFitFunction->GetParameter(15);
//   fV3 += gFitFunction->GetParameter(16);
//   fV4 += gFitFunction->GetParameter(17);

//   // Now fit the whole with fixed flow
//   gFitFunction->FixParameter(13,fNV/2.);
//   gFitFunction->FixParameter(14,fV1/2.);
//   gFitFunction->FixParameter(15,fV2/2.);
//   gFitFunction->FixParameter(16,fV3/2.);
//   gFitFunction->FixParameter(17,fV4/2.);
  
//   gFitFunction->ReleaseParameter(1);gFitFunction->SetParameter(1,0.3);
//   gFitFunction->ReleaseParameter(2);gFitFunction->SetParameter(2,0.3);gFitFunction->SetParLimits(2,0.05,0.7);
//   gFitFunction->ReleaseParameter(3);gFitFunction->SetParameter(3,0.3);gFitFunction->SetParLimits(3,0.05,1.7);
//   gFitFunction->ReleaseParameter(5);gFitFunction->SetParameter(5,0.7);gFitFunction->SetParLimits(5,0.0,0.9);
//   gFitFunction->ReleaseParameter(6);gFitFunction->SetParameter(6,0.3);gFitFunction->SetParLimits(6,0.01,1.7);

//   gFitFunction->ReleaseParameter(7);gFitFunction->SetParameter(1,0.3);
//   gFitFunction->ReleaseParameter(8);gFitFunction->SetParameter(2,0.3);gFitFunction->SetParLimits(2,0.05,0.7);
//   gFitFunction->ReleaseParameter(9);gFitFunction->SetParameter(3,0.3);gFitFunction->SetParLimits(3,0.05,1.7);
//   gFitFunction->ReleaseParameter(11);gFitFunction->SetParameter(5,0.7);gFitFunction->SetParLimits(5,0.0,0.9);
//   gFitFunction->ReleaseParameter(12);gFitFunction->SetParameter(6,0.3);gFitFunction->SetParLimits(6,0.01,1.7);

//   gHist->Fit("gFitFunction","nm");


//   //Cloning the histogram
//   TString histoName = gHist->GetName(); histoName += "Fit"; 
//   TH2D *gHistFit = new TH2D(histoName.Data(),";#Delta#eta;#Delta#varphi (rad);C(#Delta#eta,#Delta#varphi)",gHist->GetNbinsX(),gHist->GetXaxis()->GetXmin(),gHist->GetXaxis()->GetXmax(),gHist->GetNbinsY(),gHist->GetYaxis()->GetXmin(),gHist->GetYaxis()->GetXmax());
//   TH2D *gHistResidual = dynamic_cast<TH2D *>(gHist->Clone());
//   gHistResidual->SetName("gHistResidual");
//   gHistResidual->Sumw2();

//   for(Int_t iBinDeltaEta = 1; iBinDeltaEta <= gHist->GetNbinsX(); iBinDeltaEta++) {
//     for(Int_t iBinDeltaPhi = 1; iBinDeltaPhi <= gHist->GetNbinsY(); iBinDeltaPhi++) {
//       gHistFit->SetBinContent(iBinDeltaEta,iBinDeltaPhi,gFitFunction->Eval(gHist->GetXaxis()->GetBinCenter(iBinDeltaEta),gHist->GetYaxis()->GetBinCenter(iBinDeltaPhi)));
//     }
//   }
//   gHistResidual->Add(gHistFit,-1);

//   //Write to output file
//   TString newFileName = "correlationFunctionFit";
//   if(histoName.Contains("PN")) newFileName += "PN";
//   else if(histoName.Contains("NP")) newFileName += "NP";
//   else if(histoName.Contains("PP")) newFileName += "PP";
//   else if(histoName.Contains("NN")) newFileName += "NN";
//   newFileName += ".Centrality";  
//   newFileName += gCentrality; newFileName += ".Psi";
//   if((psiMin == -0.5)&&(psiMax == 0.5)) newFileName += "InPlane.Ptt";
//   else if((psiMin == 0.5)&&(psiMax == 1.5)) newFileName += "Intermediate.Ptt";
//   else if((psiMin == 1.5)&&(psiMax == 2.5)) newFileName += "OutOfPlane.Ptt";
//   else if((psiMin == 2.5)&&(psiMax == 3.5)) newFileName += "Rest.PttFrom";
//   else newFileName += "All.PttFrom";
//   newFileName += Form("%.1f",ptTriggerMin); newFileName += "To"; 
//   newFileName += Form("%.1f",ptTriggerMax); newFileName += "PtaFrom";
//   newFileName += Form("%.1f",ptAssociatedMin); newFileName += "To"; 
//   newFileName += Form("%.1f",ptAssociatedMax); 
//   newFileName += ".root";
//   TFile *newFile = TFile::Open(newFileName.Data(),"recreate");
//   gHist->Write();
//   gHistFit->Write();
//   gHistResidual->Write();
//   gFitFunction->Write();
//   newFile->Close();
  

// }

//____________________________________________________________//
void fitCorrelationFunctions(Int_t gCentrality = 1,
			     Double_t psiMin = -0.5, Double_t psiMax = 3.5,
			     Double_t ptTriggerMin = -1.,
			     Double_t ptTriggerMax = -1.,
			     Double_t ptAssociatedMin = -1.,
			     Double_t ptAssociatedMax = -1.,
			     TH2D *gHist) {

  cout<<"FITTING FUNCTION"<<endl;

  //near side peak: [1]*TMath::Exp(-TMath::Power((0.5*TMath::Power((x/[2]),2)+0.5*TMath::Power((y/[3]),2)),[4]))
  //away side ridge: [5]*TMath::Exp(-TMath::Power((0.5*TMath::Power(((y-TMath::Pi())/[6]),2)),[7]))
  //longitudinal ridge: [8]*TMath::Exp(-TMath::Power((0.5*TMath::Power((x/[9]),2)),[10]))
  //wing structures: [11]*TMath::Power(x,2)
  //flow contribution (v1 up to v4): 2.*([12]*TMath::Cos(y) + [13]*TMath::Cos(2.*y) + [14]*TMath::Cos(3.*y) + [15]*TMath::Cos(4.*y))
  TF2 *gFitFunction = new TF2("gFitFunction","[0]+[1]*TMath::Exp(-TMath::Power((0.5*TMath::Power((x/[2]),2)+0.5*TMath::Power((y/[3]),2)),[4]))+[5]*TMath::Exp(-TMath::Power((0.5*TMath::Power(((y-TMath::Pi())/[6]),2)),[7]))+[8]*TMath::Exp(-TMath::Power((0.5*TMath::Power(((x+[17])/[9]),2)),[10]))+[8]*TMath::Exp(-TMath::Power((0.5*TMath::Power(((x-[17])/[9]),2)),[10]))+[11]*TMath::Power(x,2)+2.*[12]*([13]*TMath::Cos(y) + [14]*TMath::Cos(2.*y) + [15]*TMath::Cos(3.*y) + [16]*TMath::Cos(4.*y))",-2.0,2.0,-TMath::Pi()/2.,3.*TMath::Pi()/2.); 
  gFitFunction->SetName("gFitFunction");


  //Normalization
  gFitFunction->SetParName(0,"N1"); 
  //near side peak
  gFitFunction->SetParName(1,"N_{near side}");gFitFunction->FixParameter(1,0.0);
  gFitFunction->SetParName(2,"Sigma_{near side}(delta eta)"); gFitFunction->FixParameter(2,0.0);
  gFitFunction->SetParName(3,"Sigma_{near side}(delta phi)"); gFitFunction->FixParameter(3,0.0);
  gFitFunction->SetParName(4,"Exponent_{near side}"); gFitFunction->FixParameter(4,1.0);
  //away side ridge
  gFitFunction->SetParName(5,"N_{away side}"); gFitFunction->FixParameter(5,0.0);
  gFitFunction->SetParName(6,"Sigma_{away side}(delta phi)"); gFitFunction->FixParameter(6,0.0);
  gFitFunction->SetParName(7,"Exponent_{away side}"); gFitFunction->FixParameter(7,1.0);
  //longitudinal ridge
  gFitFunction->SetParName(8,"N_{long. ridge}"); gFitFunction->SetParameter(8,0.05);//
  gFitFunction->FixParameter(8,0.0);
  gFitFunction->SetParName(9,"Sigma_{long. ridge}(delta eta)"); gFitFunction->FixParameter(9,0.0);
  gFitFunction->SetParName(10,"Exponent_{long. ridge}"); gFitFunction->FixParameter(10,1.0);
  //wing structures
  gFitFunction->SetParName(11,"N_{wing}"); gFitFunction->FixParameter(11,0.0);
  //flow contribution
  gFitFunction->SetParName(12,"N_{flow}"); gFitFunction->SetParameter(12,0.2);gFitFunction->SetParLimits(12,0.0,10);
  gFitFunction->SetParName(13,"V1"); gFitFunction->SetParameter(13,0.005);gFitFunction->SetParLimits(13,0.0,10);
  gFitFunction->SetParName(14,"V2"); gFitFunction->SetParameter(14,0.1);gFitFunction->SetParLimits(14,0.0,10);
  gFitFunction->SetParName(15,"V3"); gFitFunction->SetParameter(15,0.05);gFitFunction->SetParLimits(15,0.0,10);
  gFitFunction->SetParName(16,"V4"); gFitFunction->SetParameter(16,0.005);gFitFunction->SetParLimits(16,0.0,10);
  gFitFunction->SetParName(17,"Offset"); gFitFunction->FixParameter(17,0.0);

  // flow parameters
  Double_t fNV = 0.;
  Double_t fV1 = 0.;
  Double_t fV2 = 0.;
  Double_t fV3 = 0.;
  Double_t fV4 = 0.;
 
  //Fitting the correlation function (first the edges to extract flow)
  gHist->Fit("gFitFunction","nm","",1.0,1.6);

  fNV += gFitFunction->GetParameter(12);
  fV1 += gFitFunction->GetParameter(13);
  fV2 += gFitFunction->GetParameter(14);
  fV3 += gFitFunction->GetParameter(15);
  fV4 += gFitFunction->GetParameter(16);

  gHist->Fit("gFitFunction","nm","",-1.6,-1.0);

  fNV += gFitFunction->GetParameter(12);
  fV1 += gFitFunction->GetParameter(13);
  fV2 += gFitFunction->GetParameter(14);
  fV3 += gFitFunction->GetParameter(15);
  fV4 += gFitFunction->GetParameter(16);

  // Now fit the whole with fixed flow
  gFitFunction->FixParameter(12,fNV/2.);
  gFitFunction->FixParameter(13,fV1/2.);
  gFitFunction->FixParameter(14,fV2/2.);
  gFitFunction->FixParameter(15,fV3/2.);
  gFitFunction->FixParameter(16,fV4/2.);
  
  gFitFunction->ReleaseParameter(0);gFitFunction->SetParameter(0,1.0);
  gFitFunction->ReleaseParameter(1);gFitFunction->SetParameter(1,0.3);
  gFitFunction->ReleaseParameter(2);gFitFunction->SetParameter(2,0.3);gFitFunction->SetParLimits(2,0.05,0.7);
  gFitFunction->ReleaseParameter(3);gFitFunction->SetParameter(3,0.3);gFitFunction->SetParLimits(3,0.05,1.7);
  //gFitFunction->ReleaseParameter(4);gFitFunction->SetParameter(4,1.0);gFitFunction->SetParLimits(4,0.0,2.0);
  gFitFunction->ReleaseParameter(5);gFitFunction->SetParameter(5,1.0);//gFitFunction->SetParLimits(5,0.0,10);
  gFitFunction->ReleaseParameter(6);gFitFunction->SetParameter(6,0.5);//gFitFunction->SetParLimits(6,0.0,10);
  //gFitFunction->ReleaseParameter(7);gFitFunction->SetParameter(7,1.0);gFitFunction->SetParLimits(7,0.0,2.0);
  gFitFunction->ReleaseParameter(8);gFitFunction->SetParameter(8,0.05);
  gFitFunction->ReleaseParameter(9);gFitFunction->SetParameter(9,0.6);gFitFunction->SetParLimits(9,0.1,10.0);
  //gFitFunction->ReleaseParameter(10);gFitFunction->SetParameter(10,1.0);gFitFunction->SetParLimits(10,0.0,2.0);
  gFitFunction->ReleaseParameter(17);gFitFunction->SetParameter(17,0.7);gFitFunction->SetParLimits(17,0.0,0.9);

  gHist->Fit("gFitFunction","nm");


  //Cloning the histogram
  TString histoName = gHist->GetName(); histoName += "Fit"; 
  TH2D *gHistFit = new TH2D(histoName.Data(),";#Delta#eta;#Delta#varphi (rad);C(#Delta#eta,#Delta#varphi)",gHist->GetNbinsX(),gHist->GetXaxis()->GetXmin(),gHist->GetXaxis()->GetXmax(),gHist->GetNbinsY(),gHist->GetYaxis()->GetXmin(),gHist->GetYaxis()->GetXmax());
  TH2D *gHistResidual = dynamic_cast<TH2D *>(gHist->Clone());
  gHistResidual->SetName("gHistResidual");
  gHistResidual->Sumw2();

  for(Int_t iBinDeltaEta = 1; iBinDeltaEta <= gHist->GetNbinsX(); iBinDeltaEta++) {
    for(Int_t iBinDeltaPhi = 1; iBinDeltaPhi <= gHist->GetNbinsY(); iBinDeltaPhi++) {
      gHistFit->SetBinContent(iBinDeltaEta,iBinDeltaPhi,gFitFunction->Eval(gHist->GetXaxis()->GetBinCenter(iBinDeltaEta),gHist->GetYaxis()->GetBinCenter(iBinDeltaPhi)));
    }
  }
  gHistResidual->Add(gHistFit,-1);

  //Write to output file
  TString newFileName = "correlationFunctionFit";
  if(histoName.Contains("PN")) newFileName += "PN";
  else if(histoName.Contains("NP")) newFileName += "NP";
  else if(histoName.Contains("PP")) newFileName += "PP";
  else if(histoName.Contains("NN")) newFileName += "NN";
  newFileName += ".Centrality";  
  newFileName += gCentrality; newFileName += ".Psi";
  if((psiMin == -0.5)&&(psiMax == 0.5)) newFileName += "InPlane.Ptt";
  else if((psiMin == 0.5)&&(psiMax == 1.5)) newFileName += "Intermediate.Ptt";
  else if((psiMin == 1.5)&&(psiMax == 2.5)) newFileName += "OutOfPlane.Ptt";
  else if((psiMin == 2.5)&&(psiMax == 3.5)) newFileName += "Rest.PttFrom";
  else newFileName += "All.PttFrom";
  newFileName += Form("%.1f",ptTriggerMin); newFileName += "To"; 
  newFileName += Form("%.1f",ptTriggerMax); newFileName += "PtaFrom";
  newFileName += Form("%.1f",ptAssociatedMin); newFileName += "To"; 
  newFileName += Form("%.1f",ptAssociatedMax); 
  newFileName += ".root";
  TFile *newFile = TFile::Open(newFileName.Data(),"recreate");
  gHist->Write();
  gHistFit->Write();
  gHistResidual->Write();
  gFitFunction->Write();
  newFile->Close();
  

}



// //____________________________________________________________//
// void fitCorrelationFunctions(Int_t gCentrality = 1,
// 			     Double_t psiMin = -0.5, Double_t psiMax = 3.5,
// 			     Double_t ptTriggerMin = -1.,
// 			     Double_t ptTriggerMax = -1.,
// 			     Double_t ptAssociatedMin = -1.,
// 			     Double_t ptAssociatedMax = -1.,
// 			     TH2D *gHist) {

//   cout<<"FITTING FUNCTION (HOUSTON)"<<endl;

//   // Fit Function
//    //x axis = delta_eta
//    //y axis = delta_phi
//                                                                                                                                                                                         //  [9]*exp(-1*pow(((x/[10])^2 + (y/[10])^2),0.5)) Hyper expo
//   TF2 *fit1 = new TF2("fit1","[0] + [1]*cos(y) + [2]*cos(2*y) + [3]*cos(3*y) + [4]*cos(4*y) +[5]*cos(5*y)+ [6]*exp(-0.5*pow(((x/[7])^2 + (y/[8])^2),[11])) + [6]*exp(-0.5*pow(((x/[7])^2 + ((y-6.283)/[8])^2),[11]))+ [9]*exp(-1*((x/[10])^2 + (y/[10])^2)) ",-2.0,2.0,-TMath::Pi()/2.,3.*TMath::Pi()/2.);
 
  
   
//   Double_t Parameters[] = {0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.3,0.3,1.0,0.1,0.1};
  	
//   fit1->SetParameters(Parameters);  // input pars from macro arguments
	
//   fit1->SetParName(0,"offset");
//   fit1->SetParName(1,"v1");
//   fit1->SetParName(2,"v2");
//   fit1->SetParName(3,"v3");
//   fit1->SetParName(4,"v4");
//   fit1->SetParName(5,"v5");
//   fit1->SetParName(6,"Ridgeamp");
//   fit1->SetParName(7,"Ridgesigx");
//   fit1->SetParName(8,"Ridgesigy");
//   fit1->SetParName(9,"Expoamp");
//   fit1->SetParName(10,"Exposig");
//   fit1->SetParName(11,"Gausspara");
    

//   //Fit Parameter Ranges
//   fit1->SetParLimits(0,-2.0,2.0);   //offset
//   fit1->SetParLimits(1,-1.0,0.1);   //v1
//   fit1->SetParLimits(2,-1.6,0.9);   //v2
//   fit1->SetParLimits(3,0.0,0.5);    //v3
//   fit1->SetParLimits(4,0.0,0.9);    //v4
//   fit1->SetParLimits(5,0.0,0.9);    //v5
//   fit1->SetParLimits(6,0.0,1.5);    //Ridgeamp
//   fit1->SetParLimits(7,0.1,3.0);    //Ridgesigx
//   fit1->SetParLimits(8,0.1,2.0);    //Ridgesigy
//   fit1->SetParLimits(9,0.0,6.0);      //Expoamp
//   fit1->SetParLimits(10,0.05,0.5); //Exposig
//   fit1->SetParLimits(11,0.0,2.0);    //Gausspara

//   //Fitting the correlation function
//   gHist->Fit("fit1","nm");

//   //Cloning the histogram
//   TString histoName = gHist->GetName(); histoName += "Fit"; 
//   TH2D *gHistFit = new TH2D(histoName.Data(),";#Delta#eta;#Delta#varphi (rad);C(#Delta#eta,#Delta#varphi)",gHist->GetNbinsX(),gHist->GetXaxis()->GetXmin(),gHist->GetXaxis()->GetXmax(),gHist->GetNbinsY(),gHist->GetYaxis()->GetXmin(),gHist->GetYaxis()->GetXmax());
//   TH2D *gHistResidual = dynamic_cast<TH2D *>(gHist->Clone());
//   gHistResidual->SetName("gHistResidual");
//   gHistResidual->Sumw2();

//   for(Int_t iBinDeltaEta = 1; iBinDeltaEta <= gHist->GetNbinsX(); iBinDeltaEta++) {
//     for(Int_t iBinDeltaPhi = 1; iBinDeltaPhi <= gHist->GetNbinsY(); iBinDeltaPhi++) {
//       gHistFit->SetBinContent(iBinDeltaEta,iBinDeltaPhi,fit1->Eval(gHist->GetXaxis()->GetBinCenter(iBinDeltaEta),gHist->GetYaxis()->GetBinCenter(iBinDeltaPhi)));
//     }
//   }
//   gHistResidual->Add(gHistFit,-1);

//   //Write to output file
//   TString newFileName = "correlationFunctionFit";
//   if(histoName.Contains("PN")) newFileName += "PN";
//   else if(histoName.Contains("NP")) newFileName += "NP";
//   else if(histoName.Contains("PP")) newFileName += "PP";
//   else if(histoName.Contains("NN")) newFileName += "NN";
//   newFileName += ".Centrality";  
//   newFileName += gCentrality; newFileName += ".Psi";
//   if((psiMin == -0.5)&&(psiMax == 0.5)) newFileName += "InPlane.Ptt";
//   else if((psiMin == 0.5)&&(psiMax == 1.5)) newFileName += "Intermediate.Ptt";
//   else if((psiMin == 1.5)&&(psiMax == 2.5)) newFileName += "OutOfPlane.Ptt";
//   else if((psiMin == 2.5)&&(psiMax == 3.5)) newFileName += "Rest.PttFrom";
//   else newFileName += "All.PttFrom";
//   newFileName += Form("%.1f",ptTriggerMin); newFileName += "To"; 
//   newFileName += Form("%.1f",ptTriggerMax); newFileName += "PtaFrom";
//   newFileName += Form("%.1f",ptAssociatedMin); newFileName += "To"; 
//   newFileName += Form("%.1f",ptAssociatedMax); 
//   newFileName += ".root";
//   TFile *newFile = TFile::Open(newFileName.Data(),"recreate");
//   gHist->Write();
//   gHistFit->Write();
//   gHistResidual->Write();
//   fit1->Write();
//   newFile->Close();
  

// }
 drawCorrelationFunctionPsiChargeIndependent.C:1
 drawCorrelationFunctionPsiChargeIndependent.C:2
 drawCorrelationFunctionPsiChargeIndependent.C:3
 drawCorrelationFunctionPsiChargeIndependent.C:4
 drawCorrelationFunctionPsiChargeIndependent.C:5
 drawCorrelationFunctionPsiChargeIndependent.C:6
 drawCorrelationFunctionPsiChargeIndependent.C:7
 drawCorrelationFunctionPsiChargeIndependent.C:8
 drawCorrelationFunctionPsiChargeIndependent.C:9
 drawCorrelationFunctionPsiChargeIndependent.C:10
 drawCorrelationFunctionPsiChargeIndependent.C:11
 drawCorrelationFunctionPsiChargeIndependent.C:12
 drawCorrelationFunctionPsiChargeIndependent.C:13
 drawCorrelationFunctionPsiChargeIndependent.C:14
 drawCorrelationFunctionPsiChargeIndependent.C:15
 drawCorrelationFunctionPsiChargeIndependent.C:16
 drawCorrelationFunctionPsiChargeIndependent.C:17
 drawCorrelationFunctionPsiChargeIndependent.C:18
 drawCorrelationFunctionPsiChargeIndependent.C:19
 drawCorrelationFunctionPsiChargeIndependent.C:20
 drawCorrelationFunctionPsiChargeIndependent.C:21
 drawCorrelationFunctionPsiChargeIndependent.C:22
 drawCorrelationFunctionPsiChargeIndependent.C:23
 drawCorrelationFunctionPsiChargeIndependent.C:24
 drawCorrelationFunctionPsiChargeIndependent.C:25
 drawCorrelationFunctionPsiChargeIndependent.C:26
 drawCorrelationFunctionPsiChargeIndependent.C:27
 drawCorrelationFunctionPsiChargeIndependent.C:28
 drawCorrelationFunctionPsiChargeIndependent.C:29
 drawCorrelationFunctionPsiChargeIndependent.C:30
 drawCorrelationFunctionPsiChargeIndependent.C:31
 drawCorrelationFunctionPsiChargeIndependent.C:32
 drawCorrelationFunctionPsiChargeIndependent.C:33
 drawCorrelationFunctionPsiChargeIndependent.C:34
 drawCorrelationFunctionPsiChargeIndependent.C:35
 drawCorrelationFunctionPsiChargeIndependent.C:36
 drawCorrelationFunctionPsiChargeIndependent.C:37
 drawCorrelationFunctionPsiChargeIndependent.C:38
 drawCorrelationFunctionPsiChargeIndependent.C:39
 drawCorrelationFunctionPsiChargeIndependent.C:40
 drawCorrelationFunctionPsiChargeIndependent.C:41
 drawCorrelationFunctionPsiChargeIndependent.C:42
 drawCorrelationFunctionPsiChargeIndependent.C:43
 drawCorrelationFunctionPsiChargeIndependent.C:44
 drawCorrelationFunctionPsiChargeIndependent.C:45
 drawCorrelationFunctionPsiChargeIndependent.C:46
 drawCorrelationFunctionPsiChargeIndependent.C:47
 drawCorrelationFunctionPsiChargeIndependent.C:48
 drawCorrelationFunctionPsiChargeIndependent.C:49
 drawCorrelationFunctionPsiChargeIndependent.C:50
 drawCorrelationFunctionPsiChargeIndependent.C:51
 drawCorrelationFunctionPsiChargeIndependent.C:52
 drawCorrelationFunctionPsiChargeIndependent.C:53
 drawCorrelationFunctionPsiChargeIndependent.C:54
 drawCorrelationFunctionPsiChargeIndependent.C:55
 drawCorrelationFunctionPsiChargeIndependent.C:56
 drawCorrelationFunctionPsiChargeIndependent.C:57
 drawCorrelationFunctionPsiChargeIndependent.C:58
 drawCorrelationFunctionPsiChargeIndependent.C:59
 drawCorrelationFunctionPsiChargeIndependent.C:60
 drawCorrelationFunctionPsiChargeIndependent.C:61
 drawCorrelationFunctionPsiChargeIndependent.C:62
 drawCorrelationFunctionPsiChargeIndependent.C:63
 drawCorrelationFunctionPsiChargeIndependent.C:64
 drawCorrelationFunctionPsiChargeIndependent.C:65
 drawCorrelationFunctionPsiChargeIndependent.C:66
 drawCorrelationFunctionPsiChargeIndependent.C:67
 drawCorrelationFunctionPsiChargeIndependent.C:68
 drawCorrelationFunctionPsiChargeIndependent.C:69
 drawCorrelationFunctionPsiChargeIndependent.C:70
 drawCorrelationFunctionPsiChargeIndependent.C:71
 drawCorrelationFunctionPsiChargeIndependent.C:72
 drawCorrelationFunctionPsiChargeIndependent.C:73
 drawCorrelationFunctionPsiChargeIndependent.C:74
 drawCorrelationFunctionPsiChargeIndependent.C:75
 drawCorrelationFunctionPsiChargeIndependent.C:76
 drawCorrelationFunctionPsiChargeIndependent.C:77
 drawCorrelationFunctionPsiChargeIndependent.C:78
 drawCorrelationFunctionPsiChargeIndependent.C:79
 drawCorrelationFunctionPsiChargeIndependent.C:80
 drawCorrelationFunctionPsiChargeIndependent.C:81
 drawCorrelationFunctionPsiChargeIndependent.C:82
 drawCorrelationFunctionPsiChargeIndependent.C:83
 drawCorrelationFunctionPsiChargeIndependent.C:84
 drawCorrelationFunctionPsiChargeIndependent.C:85
 drawCorrelationFunctionPsiChargeIndependent.C:86
 drawCorrelationFunctionPsiChargeIndependent.C:87
 drawCorrelationFunctionPsiChargeIndependent.C:88
 drawCorrelationFunctionPsiChargeIndependent.C:89
 drawCorrelationFunctionPsiChargeIndependent.C:90
 drawCorrelationFunctionPsiChargeIndependent.C:91
 drawCorrelationFunctionPsiChargeIndependent.C:92
 drawCorrelationFunctionPsiChargeIndependent.C:93
 drawCorrelationFunctionPsiChargeIndependent.C:94
 drawCorrelationFunctionPsiChargeIndependent.C:95
 drawCorrelationFunctionPsiChargeIndependent.C:96
 drawCorrelationFunctionPsiChargeIndependent.C:97
 drawCorrelationFunctionPsiChargeIndependent.C:98
 drawCorrelationFunctionPsiChargeIndependent.C:99
 drawCorrelationFunctionPsiChargeIndependent.C:100
 drawCorrelationFunctionPsiChargeIndependent.C:101
 drawCorrelationFunctionPsiChargeIndependent.C:102
 drawCorrelationFunctionPsiChargeIndependent.C:103
 drawCorrelationFunctionPsiChargeIndependent.C:104
 drawCorrelationFunctionPsiChargeIndependent.C:105
 drawCorrelationFunctionPsiChargeIndependent.C:106
 drawCorrelationFunctionPsiChargeIndependent.C:107
 drawCorrelationFunctionPsiChargeIndependent.C:108
 drawCorrelationFunctionPsiChargeIndependent.C:109
 drawCorrelationFunctionPsiChargeIndependent.C:110
 drawCorrelationFunctionPsiChargeIndependent.C:111
 drawCorrelationFunctionPsiChargeIndependent.C:112
 drawCorrelationFunctionPsiChargeIndependent.C:113
 drawCorrelationFunctionPsiChargeIndependent.C:114
 drawCorrelationFunctionPsiChargeIndependent.C:115
 drawCorrelationFunctionPsiChargeIndependent.C:116
 drawCorrelationFunctionPsiChargeIndependent.C:117
 drawCorrelationFunctionPsiChargeIndependent.C:118
 drawCorrelationFunctionPsiChargeIndependent.C:119
 drawCorrelationFunctionPsiChargeIndependent.C:120
 drawCorrelationFunctionPsiChargeIndependent.C:121
 drawCorrelationFunctionPsiChargeIndependent.C:122
 drawCorrelationFunctionPsiChargeIndependent.C:123
 drawCorrelationFunctionPsiChargeIndependent.C:124
 drawCorrelationFunctionPsiChargeIndependent.C:125
 drawCorrelationFunctionPsiChargeIndependent.C:126
 drawCorrelationFunctionPsiChargeIndependent.C:127
 drawCorrelationFunctionPsiChargeIndependent.C:128
 drawCorrelationFunctionPsiChargeIndependent.C:129
 drawCorrelationFunctionPsiChargeIndependent.C:130
 drawCorrelationFunctionPsiChargeIndependent.C:131
 drawCorrelationFunctionPsiChargeIndependent.C:132
 drawCorrelationFunctionPsiChargeIndependent.C:133
 drawCorrelationFunctionPsiChargeIndependent.C:134
 drawCorrelationFunctionPsiChargeIndependent.C:135
 drawCorrelationFunctionPsiChargeIndependent.C:136
 drawCorrelationFunctionPsiChargeIndependent.C:137
 drawCorrelationFunctionPsiChargeIndependent.C:138
 drawCorrelationFunctionPsiChargeIndependent.C:139
 drawCorrelationFunctionPsiChargeIndependent.C:140
 drawCorrelationFunctionPsiChargeIndependent.C:141
 drawCorrelationFunctionPsiChargeIndependent.C:142
 drawCorrelationFunctionPsiChargeIndependent.C:143
 drawCorrelationFunctionPsiChargeIndependent.C:144
 drawCorrelationFunctionPsiChargeIndependent.C:145
 drawCorrelationFunctionPsiChargeIndependent.C:146
 drawCorrelationFunctionPsiChargeIndependent.C:147
 drawCorrelationFunctionPsiChargeIndependent.C:148
 drawCorrelationFunctionPsiChargeIndependent.C:149
 drawCorrelationFunctionPsiChargeIndependent.C:150
 drawCorrelationFunctionPsiChargeIndependent.C:151
 drawCorrelationFunctionPsiChargeIndependent.C:152
 drawCorrelationFunctionPsiChargeIndependent.C:153
 drawCorrelationFunctionPsiChargeIndependent.C:154
 drawCorrelationFunctionPsiChargeIndependent.C:155
 drawCorrelationFunctionPsiChargeIndependent.C:156
 drawCorrelationFunctionPsiChargeIndependent.C:157
 drawCorrelationFunctionPsiChargeIndependent.C:158
 drawCorrelationFunctionPsiChargeIndependent.C:159
 drawCorrelationFunctionPsiChargeIndependent.C:160
 drawCorrelationFunctionPsiChargeIndependent.C:161
 drawCorrelationFunctionPsiChargeIndependent.C:162
 drawCorrelationFunctionPsiChargeIndependent.C:163
 drawCorrelationFunctionPsiChargeIndependent.C:164
 drawCorrelationFunctionPsiChargeIndependent.C:165
 drawCorrelationFunctionPsiChargeIndependent.C:166
 drawCorrelationFunctionPsiChargeIndependent.C:167
 drawCorrelationFunctionPsiChargeIndependent.C:168
 drawCorrelationFunctionPsiChargeIndependent.C:169
 drawCorrelationFunctionPsiChargeIndependent.C:170
 drawCorrelationFunctionPsiChargeIndependent.C:171
 drawCorrelationFunctionPsiChargeIndependent.C:172
 drawCorrelationFunctionPsiChargeIndependent.C:173
 drawCorrelationFunctionPsiChargeIndependent.C:174
 drawCorrelationFunctionPsiChargeIndependent.C:175
 drawCorrelationFunctionPsiChargeIndependent.C:176
 drawCorrelationFunctionPsiChargeIndependent.C:177
 drawCorrelationFunctionPsiChargeIndependent.C:178
 drawCorrelationFunctionPsiChargeIndependent.C:179
 drawCorrelationFunctionPsiChargeIndependent.C:180
 drawCorrelationFunctionPsiChargeIndependent.C:181
 drawCorrelationFunctionPsiChargeIndependent.C:182
 drawCorrelationFunctionPsiChargeIndependent.C:183
 drawCorrelationFunctionPsiChargeIndependent.C:184
 drawCorrelationFunctionPsiChargeIndependent.C:185
 drawCorrelationFunctionPsiChargeIndependent.C:186
 drawCorrelationFunctionPsiChargeIndependent.C:187
 drawCorrelationFunctionPsiChargeIndependent.C:188
 drawCorrelationFunctionPsiChargeIndependent.C:189
 drawCorrelationFunctionPsiChargeIndependent.C:190
 drawCorrelationFunctionPsiChargeIndependent.C:191
 drawCorrelationFunctionPsiChargeIndependent.C:192
 drawCorrelationFunctionPsiChargeIndependent.C:193
 drawCorrelationFunctionPsiChargeIndependent.C:194
 drawCorrelationFunctionPsiChargeIndependent.C:195
 drawCorrelationFunctionPsiChargeIndependent.C:196
 drawCorrelationFunctionPsiChargeIndependent.C:197
 drawCorrelationFunctionPsiChargeIndependent.C:198
 drawCorrelationFunctionPsiChargeIndependent.C:199
 drawCorrelationFunctionPsiChargeIndependent.C:200
 drawCorrelationFunctionPsiChargeIndependent.C:201
 drawCorrelationFunctionPsiChargeIndependent.C:202
 drawCorrelationFunctionPsiChargeIndependent.C:203
 drawCorrelationFunctionPsiChargeIndependent.C:204
 drawCorrelationFunctionPsiChargeIndependent.C:205
 drawCorrelationFunctionPsiChargeIndependent.C:206
 drawCorrelationFunctionPsiChargeIndependent.C:207
 drawCorrelationFunctionPsiChargeIndependent.C:208
 drawCorrelationFunctionPsiChargeIndependent.C:209
 drawCorrelationFunctionPsiChargeIndependent.C:210
 drawCorrelationFunctionPsiChargeIndependent.C:211
 drawCorrelationFunctionPsiChargeIndependent.C:212
 drawCorrelationFunctionPsiChargeIndependent.C:213
 drawCorrelationFunctionPsiChargeIndependent.C:214
 drawCorrelationFunctionPsiChargeIndependent.C:215
 drawCorrelationFunctionPsiChargeIndependent.C:216
 drawCorrelationFunctionPsiChargeIndependent.C:217
 drawCorrelationFunctionPsiChargeIndependent.C:218
 drawCorrelationFunctionPsiChargeIndependent.C:219
 drawCorrelationFunctionPsiChargeIndependent.C:220
 drawCorrelationFunctionPsiChargeIndependent.C:221
 drawCorrelationFunctionPsiChargeIndependent.C:222
 drawCorrelationFunctionPsiChargeIndependent.C:223
 drawCorrelationFunctionPsiChargeIndependent.C:224
 drawCorrelationFunctionPsiChargeIndependent.C:225
 drawCorrelationFunctionPsiChargeIndependent.C:226
 drawCorrelationFunctionPsiChargeIndependent.C:227
 drawCorrelationFunctionPsiChargeIndependent.C:228
 drawCorrelationFunctionPsiChargeIndependent.C:229
 drawCorrelationFunctionPsiChargeIndependent.C:230
 drawCorrelationFunctionPsiChargeIndependent.C:231
 drawCorrelationFunctionPsiChargeIndependent.C:232
 drawCorrelationFunctionPsiChargeIndependent.C:233
 drawCorrelationFunctionPsiChargeIndependent.C:234
 drawCorrelationFunctionPsiChargeIndependent.C:235
 drawCorrelationFunctionPsiChargeIndependent.C:236
 drawCorrelationFunctionPsiChargeIndependent.C:237
 drawCorrelationFunctionPsiChargeIndependent.C:238
 drawCorrelationFunctionPsiChargeIndependent.C:239
 drawCorrelationFunctionPsiChargeIndependent.C:240
 drawCorrelationFunctionPsiChargeIndependent.C:241
 drawCorrelationFunctionPsiChargeIndependent.C:242
 drawCorrelationFunctionPsiChargeIndependent.C:243
 drawCorrelationFunctionPsiChargeIndependent.C:244
 drawCorrelationFunctionPsiChargeIndependent.C:245
 drawCorrelationFunctionPsiChargeIndependent.C:246
 drawCorrelationFunctionPsiChargeIndependent.C:247
 drawCorrelationFunctionPsiChargeIndependent.C:248
 drawCorrelationFunctionPsiChargeIndependent.C:249
 drawCorrelationFunctionPsiChargeIndependent.C:250
 drawCorrelationFunctionPsiChargeIndependent.C:251
 drawCorrelationFunctionPsiChargeIndependent.C:252
 drawCorrelationFunctionPsiChargeIndependent.C:253
 drawCorrelationFunctionPsiChargeIndependent.C:254
 drawCorrelationFunctionPsiChargeIndependent.C:255
 drawCorrelationFunctionPsiChargeIndependent.C:256
 drawCorrelationFunctionPsiChargeIndependent.C:257
 drawCorrelationFunctionPsiChargeIndependent.C:258
 drawCorrelationFunctionPsiChargeIndependent.C:259
 drawCorrelationFunctionPsiChargeIndependent.C:260
 drawCorrelationFunctionPsiChargeIndependent.C:261
 drawCorrelationFunctionPsiChargeIndependent.C:262
 drawCorrelationFunctionPsiChargeIndependent.C:263
 drawCorrelationFunctionPsiChargeIndependent.C:264
 drawCorrelationFunctionPsiChargeIndependent.C:265
 drawCorrelationFunctionPsiChargeIndependent.C:266
 drawCorrelationFunctionPsiChargeIndependent.C:267
 drawCorrelationFunctionPsiChargeIndependent.C:268
 drawCorrelationFunctionPsiChargeIndependent.C:269
 drawCorrelationFunctionPsiChargeIndependent.C:270
 drawCorrelationFunctionPsiChargeIndependent.C:271
 drawCorrelationFunctionPsiChargeIndependent.C:272
 drawCorrelationFunctionPsiChargeIndependent.C:273
 drawCorrelationFunctionPsiChargeIndependent.C:274
 drawCorrelationFunctionPsiChargeIndependent.C:275
 drawCorrelationFunctionPsiChargeIndependent.C:276
 drawCorrelationFunctionPsiChargeIndependent.C:277
 drawCorrelationFunctionPsiChargeIndependent.C:278
 drawCorrelationFunctionPsiChargeIndependent.C:279
 drawCorrelationFunctionPsiChargeIndependent.C:280
 drawCorrelationFunctionPsiChargeIndependent.C:281
 drawCorrelationFunctionPsiChargeIndependent.C:282
 drawCorrelationFunctionPsiChargeIndependent.C:283
 drawCorrelationFunctionPsiChargeIndependent.C:284
 drawCorrelationFunctionPsiChargeIndependent.C:285
 drawCorrelationFunctionPsiChargeIndependent.C:286
 drawCorrelationFunctionPsiChargeIndependent.C:287
 drawCorrelationFunctionPsiChargeIndependent.C:288
 drawCorrelationFunctionPsiChargeIndependent.C:289
 drawCorrelationFunctionPsiChargeIndependent.C:290
 drawCorrelationFunctionPsiChargeIndependent.C:291
 drawCorrelationFunctionPsiChargeIndependent.C:292
 drawCorrelationFunctionPsiChargeIndependent.C:293
 drawCorrelationFunctionPsiChargeIndependent.C:294
 drawCorrelationFunctionPsiChargeIndependent.C:295
 drawCorrelationFunctionPsiChargeIndependent.C:296
 drawCorrelationFunctionPsiChargeIndependent.C:297
 drawCorrelationFunctionPsiChargeIndependent.C:298
 drawCorrelationFunctionPsiChargeIndependent.C:299
 drawCorrelationFunctionPsiChargeIndependent.C:300
 drawCorrelationFunctionPsiChargeIndependent.C:301
 drawCorrelationFunctionPsiChargeIndependent.C:302
 drawCorrelationFunctionPsiChargeIndependent.C:303
 drawCorrelationFunctionPsiChargeIndependent.C:304
 drawCorrelationFunctionPsiChargeIndependent.C:305
 drawCorrelationFunctionPsiChargeIndependent.C:306
 drawCorrelationFunctionPsiChargeIndependent.C:307
 drawCorrelationFunctionPsiChargeIndependent.C:308
 drawCorrelationFunctionPsiChargeIndependent.C:309
 drawCorrelationFunctionPsiChargeIndependent.C:310
 drawCorrelationFunctionPsiChargeIndependent.C:311
 drawCorrelationFunctionPsiChargeIndependent.C:312
 drawCorrelationFunctionPsiChargeIndependent.C:313
 drawCorrelationFunctionPsiChargeIndependent.C:314
 drawCorrelationFunctionPsiChargeIndependent.C:315
 drawCorrelationFunctionPsiChargeIndependent.C:316
 drawCorrelationFunctionPsiChargeIndependent.C:317
 drawCorrelationFunctionPsiChargeIndependent.C:318
 drawCorrelationFunctionPsiChargeIndependent.C:319
 drawCorrelationFunctionPsiChargeIndependent.C:320
 drawCorrelationFunctionPsiChargeIndependent.C:321
 drawCorrelationFunctionPsiChargeIndependent.C:322
 drawCorrelationFunctionPsiChargeIndependent.C:323
 drawCorrelationFunctionPsiChargeIndependent.C:324
 drawCorrelationFunctionPsiChargeIndependent.C:325
 drawCorrelationFunctionPsiChargeIndependent.C:326
 drawCorrelationFunctionPsiChargeIndependent.C:327
 drawCorrelationFunctionPsiChargeIndependent.C:328
 drawCorrelationFunctionPsiChargeIndependent.C:329
 drawCorrelationFunctionPsiChargeIndependent.C:330
 drawCorrelationFunctionPsiChargeIndependent.C:331
 drawCorrelationFunctionPsiChargeIndependent.C:332
 drawCorrelationFunctionPsiChargeIndependent.C:333
 drawCorrelationFunctionPsiChargeIndependent.C:334
 drawCorrelationFunctionPsiChargeIndependent.C:335
 drawCorrelationFunctionPsiChargeIndependent.C:336
 drawCorrelationFunctionPsiChargeIndependent.C:337
 drawCorrelationFunctionPsiChargeIndependent.C:338
 drawCorrelationFunctionPsiChargeIndependent.C:339
 drawCorrelationFunctionPsiChargeIndependent.C:340
 drawCorrelationFunctionPsiChargeIndependent.C:341
 drawCorrelationFunctionPsiChargeIndependent.C:342
 drawCorrelationFunctionPsiChargeIndependent.C:343
 drawCorrelationFunctionPsiChargeIndependent.C:344
 drawCorrelationFunctionPsiChargeIndependent.C:345
 drawCorrelationFunctionPsiChargeIndependent.C:346
 drawCorrelationFunctionPsiChargeIndependent.C:347
 drawCorrelationFunctionPsiChargeIndependent.C:348
 drawCorrelationFunctionPsiChargeIndependent.C:349
 drawCorrelationFunctionPsiChargeIndependent.C:350
 drawCorrelationFunctionPsiChargeIndependent.C:351
 drawCorrelationFunctionPsiChargeIndependent.C:352
 drawCorrelationFunctionPsiChargeIndependent.C:353
 drawCorrelationFunctionPsiChargeIndependent.C:354
 drawCorrelationFunctionPsiChargeIndependent.C:355
 drawCorrelationFunctionPsiChargeIndependent.C:356
 drawCorrelationFunctionPsiChargeIndependent.C:357
 drawCorrelationFunctionPsiChargeIndependent.C:358
 drawCorrelationFunctionPsiChargeIndependent.C:359
 drawCorrelationFunctionPsiChargeIndependent.C:360
 drawCorrelationFunctionPsiChargeIndependent.C:361
 drawCorrelationFunctionPsiChargeIndependent.C:362
 drawCorrelationFunctionPsiChargeIndependent.C:363
 drawCorrelationFunctionPsiChargeIndependent.C:364
 drawCorrelationFunctionPsiChargeIndependent.C:365
 drawCorrelationFunctionPsiChargeIndependent.C:366
 drawCorrelationFunctionPsiChargeIndependent.C:367
 drawCorrelationFunctionPsiChargeIndependent.C:368
 drawCorrelationFunctionPsiChargeIndependent.C:369
 drawCorrelationFunctionPsiChargeIndependent.C:370
 drawCorrelationFunctionPsiChargeIndependent.C:371
 drawCorrelationFunctionPsiChargeIndependent.C:372
 drawCorrelationFunctionPsiChargeIndependent.C:373
 drawCorrelationFunctionPsiChargeIndependent.C:374
 drawCorrelationFunctionPsiChargeIndependent.C:375
 drawCorrelationFunctionPsiChargeIndependent.C:376
 drawCorrelationFunctionPsiChargeIndependent.C:377
 drawCorrelationFunctionPsiChargeIndependent.C:378
 drawCorrelationFunctionPsiChargeIndependent.C:379
 drawCorrelationFunctionPsiChargeIndependent.C:380
 drawCorrelationFunctionPsiChargeIndependent.C:381
 drawCorrelationFunctionPsiChargeIndependent.C:382
 drawCorrelationFunctionPsiChargeIndependent.C:383
 drawCorrelationFunctionPsiChargeIndependent.C:384
 drawCorrelationFunctionPsiChargeIndependent.C:385
 drawCorrelationFunctionPsiChargeIndependent.C:386
 drawCorrelationFunctionPsiChargeIndependent.C:387
 drawCorrelationFunctionPsiChargeIndependent.C:388
 drawCorrelationFunctionPsiChargeIndependent.C:389
 drawCorrelationFunctionPsiChargeIndependent.C:390
 drawCorrelationFunctionPsiChargeIndependent.C:391
 drawCorrelationFunctionPsiChargeIndependent.C:392
 drawCorrelationFunctionPsiChargeIndependent.C:393
 drawCorrelationFunctionPsiChargeIndependent.C:394
 drawCorrelationFunctionPsiChargeIndependent.C:395
 drawCorrelationFunctionPsiChargeIndependent.C:396
 drawCorrelationFunctionPsiChargeIndependent.C:397
 drawCorrelationFunctionPsiChargeIndependent.C:398
 drawCorrelationFunctionPsiChargeIndependent.C:399
 drawCorrelationFunctionPsiChargeIndependent.C:400
 drawCorrelationFunctionPsiChargeIndependent.C:401
 drawCorrelationFunctionPsiChargeIndependent.C:402
 drawCorrelationFunctionPsiChargeIndependent.C:403
 drawCorrelationFunctionPsiChargeIndependent.C:404
 drawCorrelationFunctionPsiChargeIndependent.C:405
 drawCorrelationFunctionPsiChargeIndependent.C:406
 drawCorrelationFunctionPsiChargeIndependent.C:407
 drawCorrelationFunctionPsiChargeIndependent.C:408
 drawCorrelationFunctionPsiChargeIndependent.C:409
 drawCorrelationFunctionPsiChargeIndependent.C:410
 drawCorrelationFunctionPsiChargeIndependent.C:411
 drawCorrelationFunctionPsiChargeIndependent.C:412
 drawCorrelationFunctionPsiChargeIndependent.C:413
 drawCorrelationFunctionPsiChargeIndependent.C:414
 drawCorrelationFunctionPsiChargeIndependent.C:415
 drawCorrelationFunctionPsiChargeIndependent.C:416
 drawCorrelationFunctionPsiChargeIndependent.C:417
 drawCorrelationFunctionPsiChargeIndependent.C:418
 drawCorrelationFunctionPsiChargeIndependent.C:419
 drawCorrelationFunctionPsiChargeIndependent.C:420
 drawCorrelationFunctionPsiChargeIndependent.C:421
 drawCorrelationFunctionPsiChargeIndependent.C:422
 drawCorrelationFunctionPsiChargeIndependent.C:423
 drawCorrelationFunctionPsiChargeIndependent.C:424
 drawCorrelationFunctionPsiChargeIndependent.C:425
 drawCorrelationFunctionPsiChargeIndependent.C:426
 drawCorrelationFunctionPsiChargeIndependent.C:427
 drawCorrelationFunctionPsiChargeIndependent.C:428
 drawCorrelationFunctionPsiChargeIndependent.C:429
 drawCorrelationFunctionPsiChargeIndependent.C:430
 drawCorrelationFunctionPsiChargeIndependent.C:431
 drawCorrelationFunctionPsiChargeIndependent.C:432
 drawCorrelationFunctionPsiChargeIndependent.C:433
 drawCorrelationFunctionPsiChargeIndependent.C:434
 drawCorrelationFunctionPsiChargeIndependent.C:435
 drawCorrelationFunctionPsiChargeIndependent.C:436
 drawCorrelationFunctionPsiChargeIndependent.C:437
 drawCorrelationFunctionPsiChargeIndependent.C:438
 drawCorrelationFunctionPsiChargeIndependent.C:439
 drawCorrelationFunctionPsiChargeIndependent.C:440
 drawCorrelationFunctionPsiChargeIndependent.C:441
 drawCorrelationFunctionPsiChargeIndependent.C:442
 drawCorrelationFunctionPsiChargeIndependent.C:443
 drawCorrelationFunctionPsiChargeIndependent.C:444
 drawCorrelationFunctionPsiChargeIndependent.C:445
 drawCorrelationFunctionPsiChargeIndependent.C:446
 drawCorrelationFunctionPsiChargeIndependent.C:447
 drawCorrelationFunctionPsiChargeIndependent.C:448
 drawCorrelationFunctionPsiChargeIndependent.C:449
 drawCorrelationFunctionPsiChargeIndependent.C:450
 drawCorrelationFunctionPsiChargeIndependent.C:451
 drawCorrelationFunctionPsiChargeIndependent.C:452
 drawCorrelationFunctionPsiChargeIndependent.C:453
 drawCorrelationFunctionPsiChargeIndependent.C:454
 drawCorrelationFunctionPsiChargeIndependent.C:455
 drawCorrelationFunctionPsiChargeIndependent.C:456
 drawCorrelationFunctionPsiChargeIndependent.C:457
 drawCorrelationFunctionPsiChargeIndependent.C:458
 drawCorrelationFunctionPsiChargeIndependent.C:459
 drawCorrelationFunctionPsiChargeIndependent.C:460
 drawCorrelationFunctionPsiChargeIndependent.C:461
 drawCorrelationFunctionPsiChargeIndependent.C:462
 drawCorrelationFunctionPsiChargeIndependent.C:463
 drawCorrelationFunctionPsiChargeIndependent.C:464
 drawCorrelationFunctionPsiChargeIndependent.C:465
 drawCorrelationFunctionPsiChargeIndependent.C:466
 drawCorrelationFunctionPsiChargeIndependent.C:467
 drawCorrelationFunctionPsiChargeIndependent.C:468
 drawCorrelationFunctionPsiChargeIndependent.C:469
 drawCorrelationFunctionPsiChargeIndependent.C:470
 drawCorrelationFunctionPsiChargeIndependent.C:471
 drawCorrelationFunctionPsiChargeIndependent.C:472
 drawCorrelationFunctionPsiChargeIndependent.C:473
 drawCorrelationFunctionPsiChargeIndependent.C:474
 drawCorrelationFunctionPsiChargeIndependent.C:475
 drawCorrelationFunctionPsiChargeIndependent.C:476
 drawCorrelationFunctionPsiChargeIndependent.C:477
 drawCorrelationFunctionPsiChargeIndependent.C:478
 drawCorrelationFunctionPsiChargeIndependent.C:479
 drawCorrelationFunctionPsiChargeIndependent.C:480
 drawCorrelationFunctionPsiChargeIndependent.C:481
 drawCorrelationFunctionPsiChargeIndependent.C:482
 drawCorrelationFunctionPsiChargeIndependent.C:483
 drawCorrelationFunctionPsiChargeIndependent.C:484
 drawCorrelationFunctionPsiChargeIndependent.C:485
 drawCorrelationFunctionPsiChargeIndependent.C:486
 drawCorrelationFunctionPsiChargeIndependent.C:487
 drawCorrelationFunctionPsiChargeIndependent.C:488
 drawCorrelationFunctionPsiChargeIndependent.C:489
 drawCorrelationFunctionPsiChargeIndependent.C:490
 drawCorrelationFunctionPsiChargeIndependent.C:491
 drawCorrelationFunctionPsiChargeIndependent.C:492
 drawCorrelationFunctionPsiChargeIndependent.C:493
 drawCorrelationFunctionPsiChargeIndependent.C:494
 drawCorrelationFunctionPsiChargeIndependent.C:495
 drawCorrelationFunctionPsiChargeIndependent.C:496
 drawCorrelationFunctionPsiChargeIndependent.C:497
 drawCorrelationFunctionPsiChargeIndependent.C:498
 drawCorrelationFunctionPsiChargeIndependent.C:499
 drawCorrelationFunctionPsiChargeIndependent.C:500
 drawCorrelationFunctionPsiChargeIndependent.C:501
 drawCorrelationFunctionPsiChargeIndependent.C:502
 drawCorrelationFunctionPsiChargeIndependent.C:503
 drawCorrelationFunctionPsiChargeIndependent.C:504
 drawCorrelationFunctionPsiChargeIndependent.C:505
 drawCorrelationFunctionPsiChargeIndependent.C:506
 drawCorrelationFunctionPsiChargeIndependent.C:507
 drawCorrelationFunctionPsiChargeIndependent.C:508
 drawCorrelationFunctionPsiChargeIndependent.C:509
 drawCorrelationFunctionPsiChargeIndependent.C:510
 drawCorrelationFunctionPsiChargeIndependent.C:511
 drawCorrelationFunctionPsiChargeIndependent.C:512
 drawCorrelationFunctionPsiChargeIndependent.C:513
 drawCorrelationFunctionPsiChargeIndependent.C:514
 drawCorrelationFunctionPsiChargeIndependent.C:515
 drawCorrelationFunctionPsiChargeIndependent.C:516
 drawCorrelationFunctionPsiChargeIndependent.C:517
 drawCorrelationFunctionPsiChargeIndependent.C:518
 drawCorrelationFunctionPsiChargeIndependent.C:519
 drawCorrelationFunctionPsiChargeIndependent.C:520
 drawCorrelationFunctionPsiChargeIndependent.C:521
 drawCorrelationFunctionPsiChargeIndependent.C:522
 drawCorrelationFunctionPsiChargeIndependent.C:523
 drawCorrelationFunctionPsiChargeIndependent.C:524
 drawCorrelationFunctionPsiChargeIndependent.C:525
 drawCorrelationFunctionPsiChargeIndependent.C:526
 drawCorrelationFunctionPsiChargeIndependent.C:527
 drawCorrelationFunctionPsiChargeIndependent.C:528
 drawCorrelationFunctionPsiChargeIndependent.C:529
 drawCorrelationFunctionPsiChargeIndependent.C:530
 drawCorrelationFunctionPsiChargeIndependent.C:531
 drawCorrelationFunctionPsiChargeIndependent.C:532
 drawCorrelationFunctionPsiChargeIndependent.C:533
 drawCorrelationFunctionPsiChargeIndependent.C:534
 drawCorrelationFunctionPsiChargeIndependent.C:535
 drawCorrelationFunctionPsiChargeIndependent.C:536
 drawCorrelationFunctionPsiChargeIndependent.C:537
 drawCorrelationFunctionPsiChargeIndependent.C:538
 drawCorrelationFunctionPsiChargeIndependent.C:539
 drawCorrelationFunctionPsiChargeIndependent.C:540
 drawCorrelationFunctionPsiChargeIndependent.C:541
 drawCorrelationFunctionPsiChargeIndependent.C:542
 drawCorrelationFunctionPsiChargeIndependent.C:543
 drawCorrelationFunctionPsiChargeIndependent.C:544
 drawCorrelationFunctionPsiChargeIndependent.C:545
 drawCorrelationFunctionPsiChargeIndependent.C:546
 drawCorrelationFunctionPsiChargeIndependent.C:547
 drawCorrelationFunctionPsiChargeIndependent.C:548
 drawCorrelationFunctionPsiChargeIndependent.C:549
 drawCorrelationFunctionPsiChargeIndependent.C:550
 drawCorrelationFunctionPsiChargeIndependent.C:551
 drawCorrelationFunctionPsiChargeIndependent.C:552
 drawCorrelationFunctionPsiChargeIndependent.C:553
 drawCorrelationFunctionPsiChargeIndependent.C:554
 drawCorrelationFunctionPsiChargeIndependent.C:555
 drawCorrelationFunctionPsiChargeIndependent.C:556
 drawCorrelationFunctionPsiChargeIndependent.C:557
 drawCorrelationFunctionPsiChargeIndependent.C:558
 drawCorrelationFunctionPsiChargeIndependent.C:559
 drawCorrelationFunctionPsiChargeIndependent.C:560
 drawCorrelationFunctionPsiChargeIndependent.C:561
 drawCorrelationFunctionPsiChargeIndependent.C:562
 drawCorrelationFunctionPsiChargeIndependent.C:563
 drawCorrelationFunctionPsiChargeIndependent.C:564
 drawCorrelationFunctionPsiChargeIndependent.C:565
 drawCorrelationFunctionPsiChargeIndependent.C:566
 drawCorrelationFunctionPsiChargeIndependent.C:567
 drawCorrelationFunctionPsiChargeIndependent.C:568
 drawCorrelationFunctionPsiChargeIndependent.C:569
 drawCorrelationFunctionPsiChargeIndependent.C:570
 drawCorrelationFunctionPsiChargeIndependent.C:571
 drawCorrelationFunctionPsiChargeIndependent.C:572
 drawCorrelationFunctionPsiChargeIndependent.C:573
 drawCorrelationFunctionPsiChargeIndependent.C:574
 drawCorrelationFunctionPsiChargeIndependent.C:575
 drawCorrelationFunctionPsiChargeIndependent.C:576
 drawCorrelationFunctionPsiChargeIndependent.C:577
 drawCorrelationFunctionPsiChargeIndependent.C:578
 drawCorrelationFunctionPsiChargeIndependent.C:579
 drawCorrelationFunctionPsiChargeIndependent.C:580
 drawCorrelationFunctionPsiChargeIndependent.C:581
 drawCorrelationFunctionPsiChargeIndependent.C:582
 drawCorrelationFunctionPsiChargeIndependent.C:583
 drawCorrelationFunctionPsiChargeIndependent.C:584
 drawCorrelationFunctionPsiChargeIndependent.C:585
 drawCorrelationFunctionPsiChargeIndependent.C:586
 drawCorrelationFunctionPsiChargeIndependent.C:587
 drawCorrelationFunctionPsiChargeIndependent.C:588
 drawCorrelationFunctionPsiChargeIndependent.C:589
 drawCorrelationFunctionPsiChargeIndependent.C:590
 drawCorrelationFunctionPsiChargeIndependent.C:591
 drawCorrelationFunctionPsiChargeIndependent.C:592
 drawCorrelationFunctionPsiChargeIndependent.C:593
 drawCorrelationFunctionPsiChargeIndependent.C:594
 drawCorrelationFunctionPsiChargeIndependent.C:595
 drawCorrelationFunctionPsiChargeIndependent.C:596
 drawCorrelationFunctionPsiChargeIndependent.C:597
 drawCorrelationFunctionPsiChargeIndependent.C:598
 drawCorrelationFunctionPsiChargeIndependent.C:599
 drawCorrelationFunctionPsiChargeIndependent.C:600
 drawCorrelationFunctionPsiChargeIndependent.C:601
 drawCorrelationFunctionPsiChargeIndependent.C:602
 drawCorrelationFunctionPsiChargeIndependent.C:603
 drawCorrelationFunctionPsiChargeIndependent.C:604
 drawCorrelationFunctionPsiChargeIndependent.C:605
 drawCorrelationFunctionPsiChargeIndependent.C:606
 drawCorrelationFunctionPsiChargeIndependent.C:607
 drawCorrelationFunctionPsiChargeIndependent.C:608
 drawCorrelationFunctionPsiChargeIndependent.C:609
 drawCorrelationFunctionPsiChargeIndependent.C:610
 drawCorrelationFunctionPsiChargeIndependent.C:611
 drawCorrelationFunctionPsiChargeIndependent.C:612
 drawCorrelationFunctionPsiChargeIndependent.C:613
 drawCorrelationFunctionPsiChargeIndependent.C:614
 drawCorrelationFunctionPsiChargeIndependent.C:615
 drawCorrelationFunctionPsiChargeIndependent.C:616
 drawCorrelationFunctionPsiChargeIndependent.C:617
 drawCorrelationFunctionPsiChargeIndependent.C:618
 drawCorrelationFunctionPsiChargeIndependent.C:619
 drawCorrelationFunctionPsiChargeIndependent.C:620
 drawCorrelationFunctionPsiChargeIndependent.C:621
 drawCorrelationFunctionPsiChargeIndependent.C:622
 drawCorrelationFunctionPsiChargeIndependent.C:623
 drawCorrelationFunctionPsiChargeIndependent.C:624
 drawCorrelationFunctionPsiChargeIndependent.C:625
 drawCorrelationFunctionPsiChargeIndependent.C:626
 drawCorrelationFunctionPsiChargeIndependent.C:627
 drawCorrelationFunctionPsiChargeIndependent.C:628
 drawCorrelationFunctionPsiChargeIndependent.C:629
 drawCorrelationFunctionPsiChargeIndependent.C:630
 drawCorrelationFunctionPsiChargeIndependent.C:631
 drawCorrelationFunctionPsiChargeIndependent.C:632
 drawCorrelationFunctionPsiChargeIndependent.C:633
 drawCorrelationFunctionPsiChargeIndependent.C:634
 drawCorrelationFunctionPsiChargeIndependent.C:635
 drawCorrelationFunctionPsiChargeIndependent.C:636
 drawCorrelationFunctionPsiChargeIndependent.C:637
 drawCorrelationFunctionPsiChargeIndependent.C:638
 drawCorrelationFunctionPsiChargeIndependent.C:639
 drawCorrelationFunctionPsiChargeIndependent.C:640
 drawCorrelationFunctionPsiChargeIndependent.C:641
 drawCorrelationFunctionPsiChargeIndependent.C:642
 drawCorrelationFunctionPsiChargeIndependent.C:643
 drawCorrelationFunctionPsiChargeIndependent.C:644
 drawCorrelationFunctionPsiChargeIndependent.C:645
 drawCorrelationFunctionPsiChargeIndependent.C:646
 drawCorrelationFunctionPsiChargeIndependent.C:647
 drawCorrelationFunctionPsiChargeIndependent.C:648
 drawCorrelationFunctionPsiChargeIndependent.C:649
 drawCorrelationFunctionPsiChargeIndependent.C:650
 drawCorrelationFunctionPsiChargeIndependent.C:651
 drawCorrelationFunctionPsiChargeIndependent.C:652
 drawCorrelationFunctionPsiChargeIndependent.C:653
 drawCorrelationFunctionPsiChargeIndependent.C:654
 drawCorrelationFunctionPsiChargeIndependent.C:655
 drawCorrelationFunctionPsiChargeIndependent.C:656
 drawCorrelationFunctionPsiChargeIndependent.C:657
 drawCorrelationFunctionPsiChargeIndependent.C:658
 drawCorrelationFunctionPsiChargeIndependent.C:659
 drawCorrelationFunctionPsiChargeIndependent.C:660
 drawCorrelationFunctionPsiChargeIndependent.C:661
 drawCorrelationFunctionPsiChargeIndependent.C:662
 drawCorrelationFunctionPsiChargeIndependent.C:663
 drawCorrelationFunctionPsiChargeIndependent.C:664
 drawCorrelationFunctionPsiChargeIndependent.C:665
 drawCorrelationFunctionPsiChargeIndependent.C:666
 drawCorrelationFunctionPsiChargeIndependent.C:667
 drawCorrelationFunctionPsiChargeIndependent.C:668
 drawCorrelationFunctionPsiChargeIndependent.C:669
 drawCorrelationFunctionPsiChargeIndependent.C:670
 drawCorrelationFunctionPsiChargeIndependent.C:671
 drawCorrelationFunctionPsiChargeIndependent.C:672
 drawCorrelationFunctionPsiChargeIndependent.C:673
 drawCorrelationFunctionPsiChargeIndependent.C:674
 drawCorrelationFunctionPsiChargeIndependent.C:675
 drawCorrelationFunctionPsiChargeIndependent.C:676
 drawCorrelationFunctionPsiChargeIndependent.C:677
 drawCorrelationFunctionPsiChargeIndependent.C:678
 drawCorrelationFunctionPsiChargeIndependent.C:679
 drawCorrelationFunctionPsiChargeIndependent.C:680
 drawCorrelationFunctionPsiChargeIndependent.C:681
 drawCorrelationFunctionPsiChargeIndependent.C:682
 drawCorrelationFunctionPsiChargeIndependent.C:683
 drawCorrelationFunctionPsiChargeIndependent.C:684
 drawCorrelationFunctionPsiChargeIndependent.C:685
 drawCorrelationFunctionPsiChargeIndependent.C:686
 drawCorrelationFunctionPsiChargeIndependent.C:687
 drawCorrelationFunctionPsiChargeIndependent.C:688
 drawCorrelationFunctionPsiChargeIndependent.C:689
 drawCorrelationFunctionPsiChargeIndependent.C:690
 drawCorrelationFunctionPsiChargeIndependent.C:691
 drawCorrelationFunctionPsiChargeIndependent.C:692
 drawCorrelationFunctionPsiChargeIndependent.C:693
 drawCorrelationFunctionPsiChargeIndependent.C:694
 drawCorrelationFunctionPsiChargeIndependent.C:695
 drawCorrelationFunctionPsiChargeIndependent.C:696
 drawCorrelationFunctionPsiChargeIndependent.C:697
 drawCorrelationFunctionPsiChargeIndependent.C:698
 drawCorrelationFunctionPsiChargeIndependent.C:699
 drawCorrelationFunctionPsiChargeIndependent.C:700
 drawCorrelationFunctionPsiChargeIndependent.C:701
 drawCorrelationFunctionPsiChargeIndependent.C:702
 drawCorrelationFunctionPsiChargeIndependent.C:703
 drawCorrelationFunctionPsiChargeIndependent.C:704
 drawCorrelationFunctionPsiChargeIndependent.C:705
 drawCorrelationFunctionPsiChargeIndependent.C:706
 drawCorrelationFunctionPsiChargeIndependent.C:707
 drawCorrelationFunctionPsiChargeIndependent.C:708
 drawCorrelationFunctionPsiChargeIndependent.C:709
 drawCorrelationFunctionPsiChargeIndependent.C:710
 drawCorrelationFunctionPsiChargeIndependent.C:711
 drawCorrelationFunctionPsiChargeIndependent.C:712
 drawCorrelationFunctionPsiChargeIndependent.C:713
 drawCorrelationFunctionPsiChargeIndependent.C:714
 drawCorrelationFunctionPsiChargeIndependent.C:715
 drawCorrelationFunctionPsiChargeIndependent.C:716
 drawCorrelationFunctionPsiChargeIndependent.C:717
 drawCorrelationFunctionPsiChargeIndependent.C:718
 drawCorrelationFunctionPsiChargeIndependent.C:719
 drawCorrelationFunctionPsiChargeIndependent.C:720
 drawCorrelationFunctionPsiChargeIndependent.C:721
 drawCorrelationFunctionPsiChargeIndependent.C:722
 drawCorrelationFunctionPsiChargeIndependent.C:723
 drawCorrelationFunctionPsiChargeIndependent.C:724
 drawCorrelationFunctionPsiChargeIndependent.C:725
 drawCorrelationFunctionPsiChargeIndependent.C:726
 drawCorrelationFunctionPsiChargeIndependent.C:727
 drawCorrelationFunctionPsiChargeIndependent.C:728
 drawCorrelationFunctionPsiChargeIndependent.C:729
 drawCorrelationFunctionPsiChargeIndependent.C:730
 drawCorrelationFunctionPsiChargeIndependent.C:731
 drawCorrelationFunctionPsiChargeIndependent.C:732
 drawCorrelationFunctionPsiChargeIndependent.C:733
 drawCorrelationFunctionPsiChargeIndependent.C:734
 drawCorrelationFunctionPsiChargeIndependent.C:735
 drawCorrelationFunctionPsiChargeIndependent.C:736
 drawCorrelationFunctionPsiChargeIndependent.C:737
 drawCorrelationFunctionPsiChargeIndependent.C:738
 drawCorrelationFunctionPsiChargeIndependent.C:739
 drawCorrelationFunctionPsiChargeIndependent.C:740
 drawCorrelationFunctionPsiChargeIndependent.C:741
 drawCorrelationFunctionPsiChargeIndependent.C:742
 drawCorrelationFunctionPsiChargeIndependent.C:743
 drawCorrelationFunctionPsiChargeIndependent.C:744
 drawCorrelationFunctionPsiChargeIndependent.C:745
 drawCorrelationFunctionPsiChargeIndependent.C:746
 drawCorrelationFunctionPsiChargeIndependent.C:747
 drawCorrelationFunctionPsiChargeIndependent.C:748
 drawCorrelationFunctionPsiChargeIndependent.C:749
 drawCorrelationFunctionPsiChargeIndependent.C:750
 drawCorrelationFunctionPsiChargeIndependent.C:751
 drawCorrelationFunctionPsiChargeIndependent.C:752
 drawCorrelationFunctionPsiChargeIndependent.C:753
 drawCorrelationFunctionPsiChargeIndependent.C:754
 drawCorrelationFunctionPsiChargeIndependent.C:755
 drawCorrelationFunctionPsiChargeIndependent.C:756
 drawCorrelationFunctionPsiChargeIndependent.C:757
 drawCorrelationFunctionPsiChargeIndependent.C:758
 drawCorrelationFunctionPsiChargeIndependent.C:759
 drawCorrelationFunctionPsiChargeIndependent.C:760
 drawCorrelationFunctionPsiChargeIndependent.C:761
 drawCorrelationFunctionPsiChargeIndependent.C:762
 drawCorrelationFunctionPsiChargeIndependent.C:763
 drawCorrelationFunctionPsiChargeIndependent.C:764
 drawCorrelationFunctionPsiChargeIndependent.C:765
 drawCorrelationFunctionPsiChargeIndependent.C:766
 drawCorrelationFunctionPsiChargeIndependent.C:767
 drawCorrelationFunctionPsiChargeIndependent.C:768
 drawCorrelationFunctionPsiChargeIndependent.C:769
 drawCorrelationFunctionPsiChargeIndependent.C:770
 drawCorrelationFunctionPsiChargeIndependent.C:771
 drawCorrelationFunctionPsiChargeIndependent.C:772
 drawCorrelationFunctionPsiChargeIndependent.C:773
 drawCorrelationFunctionPsiChargeIndependent.C:774
 drawCorrelationFunctionPsiChargeIndependent.C:775
 drawCorrelationFunctionPsiChargeIndependent.C:776
 drawCorrelationFunctionPsiChargeIndependent.C:777
 drawCorrelationFunctionPsiChargeIndependent.C:778
 drawCorrelationFunctionPsiChargeIndependent.C:779
 drawCorrelationFunctionPsiChargeIndependent.C:780
 drawCorrelationFunctionPsiChargeIndependent.C:781
 drawCorrelationFunctionPsiChargeIndependent.C:782
 drawCorrelationFunctionPsiChargeIndependent.C:783
 drawCorrelationFunctionPsiChargeIndependent.C:784
 drawCorrelationFunctionPsiChargeIndependent.C:785
 drawCorrelationFunctionPsiChargeIndependent.C:786
 drawCorrelationFunctionPsiChargeIndependent.C:787
 drawCorrelationFunctionPsiChargeIndependent.C:788
 drawCorrelationFunctionPsiChargeIndependent.C:789
 drawCorrelationFunctionPsiChargeIndependent.C:790
 drawCorrelationFunctionPsiChargeIndependent.C:791
 drawCorrelationFunctionPsiChargeIndependent.C:792
 drawCorrelationFunctionPsiChargeIndependent.C:793
 drawCorrelationFunctionPsiChargeIndependent.C:794
 drawCorrelationFunctionPsiChargeIndependent.C:795
 drawCorrelationFunctionPsiChargeIndependent.C:796
 drawCorrelationFunctionPsiChargeIndependent.C:797
 drawCorrelationFunctionPsiChargeIndependent.C:798
 drawCorrelationFunctionPsiChargeIndependent.C:799
 drawCorrelationFunctionPsiChargeIndependent.C:800
 drawCorrelationFunctionPsiChargeIndependent.C:801
 drawCorrelationFunctionPsiChargeIndependent.C:802
 drawCorrelationFunctionPsiChargeIndependent.C:803
 drawCorrelationFunctionPsiChargeIndependent.C:804
 drawCorrelationFunctionPsiChargeIndependent.C:805
 drawCorrelationFunctionPsiChargeIndependent.C:806
 drawCorrelationFunctionPsiChargeIndependent.C:807
 drawCorrelationFunctionPsiChargeIndependent.C:808
 drawCorrelationFunctionPsiChargeIndependent.C:809
 drawCorrelationFunctionPsiChargeIndependent.C:810
 drawCorrelationFunctionPsiChargeIndependent.C:811
 drawCorrelationFunctionPsiChargeIndependent.C:812
 drawCorrelationFunctionPsiChargeIndependent.C:813
 drawCorrelationFunctionPsiChargeIndependent.C:814
 drawCorrelationFunctionPsiChargeIndependent.C:815
 drawCorrelationFunctionPsiChargeIndependent.C:816
 drawCorrelationFunctionPsiChargeIndependent.C:817
 drawCorrelationFunctionPsiChargeIndependent.C:818
 drawCorrelationFunctionPsiChargeIndependent.C:819
 drawCorrelationFunctionPsiChargeIndependent.C:820
 drawCorrelationFunctionPsiChargeIndependent.C:821
 drawCorrelationFunctionPsiChargeIndependent.C:822
 drawCorrelationFunctionPsiChargeIndependent.C:823
 drawCorrelationFunctionPsiChargeIndependent.C:824
 drawCorrelationFunctionPsiChargeIndependent.C:825
 drawCorrelationFunctionPsiChargeIndependent.C:826
 drawCorrelationFunctionPsiChargeIndependent.C:827
 drawCorrelationFunctionPsiChargeIndependent.C:828
 drawCorrelationFunctionPsiChargeIndependent.C:829
 drawCorrelationFunctionPsiChargeIndependent.C:830
 drawCorrelationFunctionPsiChargeIndependent.C:831
 drawCorrelationFunctionPsiChargeIndependent.C:832
 drawCorrelationFunctionPsiChargeIndependent.C:833
 drawCorrelationFunctionPsiChargeIndependent.C:834
 drawCorrelationFunctionPsiChargeIndependent.C:835
 drawCorrelationFunctionPsiChargeIndependent.C:836
 drawCorrelationFunctionPsiChargeIndependent.C:837
 drawCorrelationFunctionPsiChargeIndependent.C:838
 drawCorrelationFunctionPsiChargeIndependent.C:839
 drawCorrelationFunctionPsiChargeIndependent.C:840
 drawCorrelationFunctionPsiChargeIndependent.C:841
 drawCorrelationFunctionPsiChargeIndependent.C:842
 drawCorrelationFunctionPsiChargeIndependent.C:843
 drawCorrelationFunctionPsiChargeIndependent.C:844
 drawCorrelationFunctionPsiChargeIndependent.C:845
 drawCorrelationFunctionPsiChargeIndependent.C:846
 drawCorrelationFunctionPsiChargeIndependent.C:847
 drawCorrelationFunctionPsiChargeIndependent.C:848
 drawCorrelationFunctionPsiChargeIndependent.C:849
 drawCorrelationFunctionPsiChargeIndependent.C:850
 drawCorrelationFunctionPsiChargeIndependent.C:851
 drawCorrelationFunctionPsiChargeIndependent.C:852
 drawCorrelationFunctionPsiChargeIndependent.C:853
 drawCorrelationFunctionPsiChargeIndependent.C:854
 drawCorrelationFunctionPsiChargeIndependent.C:855
 drawCorrelationFunctionPsiChargeIndependent.C:856
 drawCorrelationFunctionPsiChargeIndependent.C:857
 drawCorrelationFunctionPsiChargeIndependent.C:858
 drawCorrelationFunctionPsiChargeIndependent.C:859
 drawCorrelationFunctionPsiChargeIndependent.C:860
 drawCorrelationFunctionPsiChargeIndependent.C:861
 drawCorrelationFunctionPsiChargeIndependent.C:862
 drawCorrelationFunctionPsiChargeIndependent.C:863
 drawCorrelationFunctionPsiChargeIndependent.C:864
 drawCorrelationFunctionPsiChargeIndependent.C:865
 drawCorrelationFunctionPsiChargeIndependent.C:866
 drawCorrelationFunctionPsiChargeIndependent.C:867
 drawCorrelationFunctionPsiChargeIndependent.C:868
 drawCorrelationFunctionPsiChargeIndependent.C:869
 drawCorrelationFunctionPsiChargeIndependent.C:870
 drawCorrelationFunctionPsiChargeIndependent.C:871
 drawCorrelationFunctionPsiChargeIndependent.C:872
 drawCorrelationFunctionPsiChargeIndependent.C:873
 drawCorrelationFunctionPsiChargeIndependent.C:874
 drawCorrelationFunctionPsiChargeIndependent.C:875
 drawCorrelationFunctionPsiChargeIndependent.C:876
 drawCorrelationFunctionPsiChargeIndependent.C:877
 drawCorrelationFunctionPsiChargeIndependent.C:878
 drawCorrelationFunctionPsiChargeIndependent.C:879
 drawCorrelationFunctionPsiChargeIndependent.C:880
 drawCorrelationFunctionPsiChargeIndependent.C:881
 drawCorrelationFunctionPsiChargeIndependent.C:882
 drawCorrelationFunctionPsiChargeIndependent.C:883
 drawCorrelationFunctionPsiChargeIndependent.C:884
 drawCorrelationFunctionPsiChargeIndependent.C:885
 drawCorrelationFunctionPsiChargeIndependent.C:886
 drawCorrelationFunctionPsiChargeIndependent.C:887
 drawCorrelationFunctionPsiChargeIndependent.C:888
 drawCorrelationFunctionPsiChargeIndependent.C:889
 drawCorrelationFunctionPsiChargeIndependent.C:890
 drawCorrelationFunctionPsiChargeIndependent.C:891
 drawCorrelationFunctionPsiChargeIndependent.C:892
 drawCorrelationFunctionPsiChargeIndependent.C:893
 drawCorrelationFunctionPsiChargeIndependent.C:894
 drawCorrelationFunctionPsiChargeIndependent.C:895
 drawCorrelationFunctionPsiChargeIndependent.C:896
 drawCorrelationFunctionPsiChargeIndependent.C:897
 drawCorrelationFunctionPsiChargeIndependent.C:898
 drawCorrelationFunctionPsiChargeIndependent.C:899
 drawCorrelationFunctionPsiChargeIndependent.C:900
 drawCorrelationFunctionPsiChargeIndependent.C:901
 drawCorrelationFunctionPsiChargeIndependent.C:902
 drawCorrelationFunctionPsiChargeIndependent.C:903
 drawCorrelationFunctionPsiChargeIndependent.C:904
 drawCorrelationFunctionPsiChargeIndependent.C:905
 drawCorrelationFunctionPsiChargeIndependent.C:906
 drawCorrelationFunctionPsiChargeIndependent.C:907
 drawCorrelationFunctionPsiChargeIndependent.C:908
 drawCorrelationFunctionPsiChargeIndependent.C:909
 drawCorrelationFunctionPsiChargeIndependent.C:910
 drawCorrelationFunctionPsiChargeIndependent.C:911
 drawCorrelationFunctionPsiChargeIndependent.C:912
 drawCorrelationFunctionPsiChargeIndependent.C:913
 drawCorrelationFunctionPsiChargeIndependent.C:914
 drawCorrelationFunctionPsiChargeIndependent.C:915
 drawCorrelationFunctionPsiChargeIndependent.C:916
 drawCorrelationFunctionPsiChargeIndependent.C:917
 drawCorrelationFunctionPsiChargeIndependent.C:918
 drawCorrelationFunctionPsiChargeIndependent.C:919
 drawCorrelationFunctionPsiChargeIndependent.C:920
 drawCorrelationFunctionPsiChargeIndependent.C:921
 drawCorrelationFunctionPsiChargeIndependent.C:922
 drawCorrelationFunctionPsiChargeIndependent.C:923
 drawCorrelationFunctionPsiChargeIndependent.C:924
 drawCorrelationFunctionPsiChargeIndependent.C:925
 drawCorrelationFunctionPsiChargeIndependent.C:926
 drawCorrelationFunctionPsiChargeIndependent.C:927
 drawCorrelationFunctionPsiChargeIndependent.C:928
 drawCorrelationFunctionPsiChargeIndependent.C:929
 drawCorrelationFunctionPsiChargeIndependent.C:930
 drawCorrelationFunctionPsiChargeIndependent.C:931
 drawCorrelationFunctionPsiChargeIndependent.C:932
 drawCorrelationFunctionPsiChargeIndependent.C:933
 drawCorrelationFunctionPsiChargeIndependent.C:934
 drawCorrelationFunctionPsiChargeIndependent.C:935
 drawCorrelationFunctionPsiChargeIndependent.C:936
 drawCorrelationFunctionPsiChargeIndependent.C:937
 drawCorrelationFunctionPsiChargeIndependent.C:938
 drawCorrelationFunctionPsiChargeIndependent.C:939
 drawCorrelationFunctionPsiChargeIndependent.C:940
 drawCorrelationFunctionPsiChargeIndependent.C:941
 drawCorrelationFunctionPsiChargeIndependent.C:942
 drawCorrelationFunctionPsiChargeIndependent.C:943
 drawCorrelationFunctionPsiChargeIndependent.C:944
 drawCorrelationFunctionPsiChargeIndependent.C:945
 drawCorrelationFunctionPsiChargeIndependent.C:946
 drawCorrelationFunctionPsiChargeIndependent.C:947
 drawCorrelationFunctionPsiChargeIndependent.C:948
 drawCorrelationFunctionPsiChargeIndependent.C:949
 drawCorrelationFunctionPsiChargeIndependent.C:950
 drawCorrelationFunctionPsiChargeIndependent.C:951
 drawCorrelationFunctionPsiChargeIndependent.C:952
 drawCorrelationFunctionPsiChargeIndependent.C:953
 drawCorrelationFunctionPsiChargeIndependent.C:954
 drawCorrelationFunctionPsiChargeIndependent.C:955
 drawCorrelationFunctionPsiChargeIndependent.C:956
 drawCorrelationFunctionPsiChargeIndependent.C:957
 drawCorrelationFunctionPsiChargeIndependent.C:958
 drawCorrelationFunctionPsiChargeIndependent.C:959
 drawCorrelationFunctionPsiChargeIndependent.C:960
 drawCorrelationFunctionPsiChargeIndependent.C:961
 drawCorrelationFunctionPsiChargeIndependent.C:962
 drawCorrelationFunctionPsiChargeIndependent.C:963
 drawCorrelationFunctionPsiChargeIndependent.C:964
 drawCorrelationFunctionPsiChargeIndependent.C:965
 drawCorrelationFunctionPsiChargeIndependent.C:966
 drawCorrelationFunctionPsiChargeIndependent.C:967
 drawCorrelationFunctionPsiChargeIndependent.C:968
 drawCorrelationFunctionPsiChargeIndependent.C:969
 drawCorrelationFunctionPsiChargeIndependent.C:970
 drawCorrelationFunctionPsiChargeIndependent.C:971
 drawCorrelationFunctionPsiChargeIndependent.C:972
 drawCorrelationFunctionPsiChargeIndependent.C:973
 drawCorrelationFunctionPsiChargeIndependent.C:974
 drawCorrelationFunctionPsiChargeIndependent.C:975
 drawCorrelationFunctionPsiChargeIndependent.C:976
 drawCorrelationFunctionPsiChargeIndependent.C:977
 drawCorrelationFunctionPsiChargeIndependent.C:978
 drawCorrelationFunctionPsiChargeIndependent.C:979
 drawCorrelationFunctionPsiChargeIndependent.C:980
 drawCorrelationFunctionPsiChargeIndependent.C:981
 drawCorrelationFunctionPsiChargeIndependent.C:982
 drawCorrelationFunctionPsiChargeIndependent.C:983
 drawCorrelationFunctionPsiChargeIndependent.C:984
 drawCorrelationFunctionPsiChargeIndependent.C:985
 drawCorrelationFunctionPsiChargeIndependent.C:986
 drawCorrelationFunctionPsiChargeIndependent.C:987
 drawCorrelationFunctionPsiChargeIndependent.C:988
 drawCorrelationFunctionPsiChargeIndependent.C:989
 drawCorrelationFunctionPsiChargeIndependent.C:990
 drawCorrelationFunctionPsiChargeIndependent.C:991
 drawCorrelationFunctionPsiChargeIndependent.C:992
 drawCorrelationFunctionPsiChargeIndependent.C:993
 drawCorrelationFunctionPsiChargeIndependent.C:994
 drawCorrelationFunctionPsiChargeIndependent.C:995
 drawCorrelationFunctionPsiChargeIndependent.C:996
 drawCorrelationFunctionPsiChargeIndependent.C:997
 drawCorrelationFunctionPsiChargeIndependent.C:998
 drawCorrelationFunctionPsiChargeIndependent.C:999
 drawCorrelationFunctionPsiChargeIndependent.C:1000
 drawCorrelationFunctionPsiChargeIndependent.C:1001
 drawCorrelationFunctionPsiChargeIndependent.C:1002
 drawCorrelationFunctionPsiChargeIndependent.C:1003
 drawCorrelationFunctionPsiChargeIndependent.C:1004
 drawCorrelationFunctionPsiChargeIndependent.C:1005
 drawCorrelationFunctionPsiChargeIndependent.C:1006
 drawCorrelationFunctionPsiChargeIndependent.C:1007
 drawCorrelationFunctionPsiChargeIndependent.C:1008
 drawCorrelationFunctionPsiChargeIndependent.C:1009
 drawCorrelationFunctionPsiChargeIndependent.C:1010
 drawCorrelationFunctionPsiChargeIndependent.C:1011
 drawCorrelationFunctionPsiChargeIndependent.C:1012
 drawCorrelationFunctionPsiChargeIndependent.C:1013
 drawCorrelationFunctionPsiChargeIndependent.C:1014
 drawCorrelationFunctionPsiChargeIndependent.C:1015
 drawCorrelationFunctionPsiChargeIndependent.C:1016
 drawCorrelationFunctionPsiChargeIndependent.C:1017
 drawCorrelationFunctionPsiChargeIndependent.C:1018
 drawCorrelationFunctionPsiChargeIndependent.C:1019
 drawCorrelationFunctionPsiChargeIndependent.C:1020
 drawCorrelationFunctionPsiChargeIndependent.C:1021
 drawCorrelationFunctionPsiChargeIndependent.C:1022
 drawCorrelationFunctionPsiChargeIndependent.C:1023
 drawCorrelationFunctionPsiChargeIndependent.C:1024
 drawCorrelationFunctionPsiChargeIndependent.C:1025
 drawCorrelationFunctionPsiChargeIndependent.C:1026
 drawCorrelationFunctionPsiChargeIndependent.C:1027
 drawCorrelationFunctionPsiChargeIndependent.C:1028
 drawCorrelationFunctionPsiChargeIndependent.C:1029
 drawCorrelationFunctionPsiChargeIndependent.C:1030
 drawCorrelationFunctionPsiChargeIndependent.C:1031
 drawCorrelationFunctionPsiChargeIndependent.C:1032
 drawCorrelationFunctionPsiChargeIndependent.C:1033
 drawCorrelationFunctionPsiChargeIndependent.C:1034
 drawCorrelationFunctionPsiChargeIndependent.C:1035
 drawCorrelationFunctionPsiChargeIndependent.C:1036
 drawCorrelationFunctionPsiChargeIndependent.C:1037
 drawCorrelationFunctionPsiChargeIndependent.C:1038
 drawCorrelationFunctionPsiChargeIndependent.C:1039
 drawCorrelationFunctionPsiChargeIndependent.C:1040
 drawCorrelationFunctionPsiChargeIndependent.C:1041
 drawCorrelationFunctionPsiChargeIndependent.C:1042
 drawCorrelationFunctionPsiChargeIndependent.C:1043
 drawCorrelationFunctionPsiChargeIndependent.C:1044
 drawCorrelationFunctionPsiChargeIndependent.C:1045
 drawCorrelationFunctionPsiChargeIndependent.C:1046
 drawCorrelationFunctionPsiChargeIndependent.C:1047
 drawCorrelationFunctionPsiChargeIndependent.C:1048
 drawCorrelationFunctionPsiChargeIndependent.C:1049
 drawCorrelationFunctionPsiChargeIndependent.C:1050
 drawCorrelationFunctionPsiChargeIndependent.C:1051
 drawCorrelationFunctionPsiChargeIndependent.C:1052
 drawCorrelationFunctionPsiChargeIndependent.C:1053
 drawCorrelationFunctionPsiChargeIndependent.C:1054
 drawCorrelationFunctionPsiChargeIndependent.C:1055
 drawCorrelationFunctionPsiChargeIndependent.C:1056
 drawCorrelationFunctionPsiChargeIndependent.C:1057
 drawCorrelationFunctionPsiChargeIndependent.C:1058
 drawCorrelationFunctionPsiChargeIndependent.C:1059
 drawCorrelationFunctionPsiChargeIndependent.C:1060
 drawCorrelationFunctionPsiChargeIndependent.C:1061
 drawCorrelationFunctionPsiChargeIndependent.C:1062
 drawCorrelationFunctionPsiChargeIndependent.C:1063
 drawCorrelationFunctionPsiChargeIndependent.C:1064
 drawCorrelationFunctionPsiChargeIndependent.C:1065
 drawCorrelationFunctionPsiChargeIndependent.C:1066
 drawCorrelationFunctionPsiChargeIndependent.C:1067
 drawCorrelationFunctionPsiChargeIndependent.C:1068
 drawCorrelationFunctionPsiChargeIndependent.C:1069
 drawCorrelationFunctionPsiChargeIndependent.C:1070
 drawCorrelationFunctionPsiChargeIndependent.C:1071
 drawCorrelationFunctionPsiChargeIndependent.C:1072
 drawCorrelationFunctionPsiChargeIndependent.C:1073
 drawCorrelationFunctionPsiChargeIndependent.C:1074
 drawCorrelationFunctionPsiChargeIndependent.C:1075
 drawCorrelationFunctionPsiChargeIndependent.C:1076
 drawCorrelationFunctionPsiChargeIndependent.C:1077
 drawCorrelationFunctionPsiChargeIndependent.C:1078
 drawCorrelationFunctionPsiChargeIndependent.C:1079
 drawCorrelationFunctionPsiChargeIndependent.C:1080
 drawCorrelationFunctionPsiChargeIndependent.C:1081
 drawCorrelationFunctionPsiChargeIndependent.C:1082
 drawCorrelationFunctionPsiChargeIndependent.C:1083
 drawCorrelationFunctionPsiChargeIndependent.C:1084
 drawCorrelationFunctionPsiChargeIndependent.C:1085
 drawCorrelationFunctionPsiChargeIndependent.C:1086
 drawCorrelationFunctionPsiChargeIndependent.C:1087
 drawCorrelationFunctionPsiChargeIndependent.C:1088
 drawCorrelationFunctionPsiChargeIndependent.C:1089
 drawCorrelationFunctionPsiChargeIndependent.C:1090
 drawCorrelationFunctionPsiChargeIndependent.C:1091
 drawCorrelationFunctionPsiChargeIndependent.C:1092
 drawCorrelationFunctionPsiChargeIndependent.C:1093
 drawCorrelationFunctionPsiChargeIndependent.C:1094
 drawCorrelationFunctionPsiChargeIndependent.C:1095
 drawCorrelationFunctionPsiChargeIndependent.C:1096
 drawCorrelationFunctionPsiChargeIndependent.C:1097
 drawCorrelationFunctionPsiChargeIndependent.C:1098
 drawCorrelationFunctionPsiChargeIndependent.C:1099
 drawCorrelationFunctionPsiChargeIndependent.C:1100
 drawCorrelationFunctionPsiChargeIndependent.C:1101
 drawCorrelationFunctionPsiChargeIndependent.C:1102
 drawCorrelationFunctionPsiChargeIndependent.C:1103
 drawCorrelationFunctionPsiChargeIndependent.C:1104
 drawCorrelationFunctionPsiChargeIndependent.C:1105
 drawCorrelationFunctionPsiChargeIndependent.C:1106
 drawCorrelationFunctionPsiChargeIndependent.C:1107
 drawCorrelationFunctionPsiChargeIndependent.C:1108
 drawCorrelationFunctionPsiChargeIndependent.C:1109
 drawCorrelationFunctionPsiChargeIndependent.C:1110
 drawCorrelationFunctionPsiChargeIndependent.C:1111
 drawCorrelationFunctionPsiChargeIndependent.C:1112
 drawCorrelationFunctionPsiChargeIndependent.C:1113
 drawCorrelationFunctionPsiChargeIndependent.C:1114
 drawCorrelationFunctionPsiChargeIndependent.C:1115
 drawCorrelationFunctionPsiChargeIndependent.C:1116
 drawCorrelationFunctionPsiChargeIndependent.C:1117
 drawCorrelationFunctionPsiChargeIndependent.C:1118
 drawCorrelationFunctionPsiChargeIndependent.C:1119
 drawCorrelationFunctionPsiChargeIndependent.C:1120
 drawCorrelationFunctionPsiChargeIndependent.C:1121
 drawCorrelationFunctionPsiChargeIndependent.C:1122
 drawCorrelationFunctionPsiChargeIndependent.C:1123
 drawCorrelationFunctionPsiChargeIndependent.C:1124
 drawCorrelationFunctionPsiChargeIndependent.C:1125
 drawCorrelationFunctionPsiChargeIndependent.C:1126
 drawCorrelationFunctionPsiChargeIndependent.C:1127
 drawCorrelationFunctionPsiChargeIndependent.C:1128
 drawCorrelationFunctionPsiChargeIndependent.C:1129
 drawCorrelationFunctionPsiChargeIndependent.C:1130
 drawCorrelationFunctionPsiChargeIndependent.C:1131
 drawCorrelationFunctionPsiChargeIndependent.C:1132
 drawCorrelationFunctionPsiChargeIndependent.C:1133
 drawCorrelationFunctionPsiChargeIndependent.C:1134
 drawCorrelationFunctionPsiChargeIndependent.C:1135
 drawCorrelationFunctionPsiChargeIndependent.C:1136
 drawCorrelationFunctionPsiChargeIndependent.C:1137
 drawCorrelationFunctionPsiChargeIndependent.C:1138
 drawCorrelationFunctionPsiChargeIndependent.C:1139
 drawCorrelationFunctionPsiChargeIndependent.C:1140
 drawCorrelationFunctionPsiChargeIndependent.C:1141
 drawCorrelationFunctionPsiChargeIndependent.C:1142
 drawCorrelationFunctionPsiChargeIndependent.C:1143
 drawCorrelationFunctionPsiChargeIndependent.C:1144
 drawCorrelationFunctionPsiChargeIndependent.C:1145
 drawCorrelationFunctionPsiChargeIndependent.C:1146
 drawCorrelationFunctionPsiChargeIndependent.C:1147
 drawCorrelationFunctionPsiChargeIndependent.C:1148
 drawCorrelationFunctionPsiChargeIndependent.C:1149
 drawCorrelationFunctionPsiChargeIndependent.C:1150
 drawCorrelationFunctionPsiChargeIndependent.C:1151
 drawCorrelationFunctionPsiChargeIndependent.C:1152
 drawCorrelationFunctionPsiChargeIndependent.C:1153
 drawCorrelationFunctionPsiChargeIndependent.C:1154
 drawCorrelationFunctionPsiChargeIndependent.C:1155
 drawCorrelationFunctionPsiChargeIndependent.C:1156
 drawCorrelationFunctionPsiChargeIndependent.C:1157
 drawCorrelationFunctionPsiChargeIndependent.C:1158
 drawCorrelationFunctionPsiChargeIndependent.C:1159
 drawCorrelationFunctionPsiChargeIndependent.C:1160
 drawCorrelationFunctionPsiChargeIndependent.C:1161
 drawCorrelationFunctionPsiChargeIndependent.C:1162
 drawCorrelationFunctionPsiChargeIndependent.C:1163
 drawCorrelationFunctionPsiChargeIndependent.C:1164
 drawCorrelationFunctionPsiChargeIndependent.C:1165
 drawCorrelationFunctionPsiChargeIndependent.C:1166
 drawCorrelationFunctionPsiChargeIndependent.C:1167
 drawCorrelationFunctionPsiChargeIndependent.C:1168
 drawCorrelationFunctionPsiChargeIndependent.C:1169
 drawCorrelationFunctionPsiChargeIndependent.C:1170
 drawCorrelationFunctionPsiChargeIndependent.C:1171
 drawCorrelationFunctionPsiChargeIndependent.C:1172
 drawCorrelationFunctionPsiChargeIndependent.C:1173
 drawCorrelationFunctionPsiChargeIndependent.C:1174
 drawCorrelationFunctionPsiChargeIndependent.C:1175
 drawCorrelationFunctionPsiChargeIndependent.C:1176
 drawCorrelationFunctionPsiChargeIndependent.C:1177
 drawCorrelationFunctionPsiChargeIndependent.C:1178
 drawCorrelationFunctionPsiChargeIndependent.C:1179
 drawCorrelationFunctionPsiChargeIndependent.C:1180
 drawCorrelationFunctionPsiChargeIndependent.C:1181
 drawCorrelationFunctionPsiChargeIndependent.C:1182
 drawCorrelationFunctionPsiChargeIndependent.C:1183
 drawCorrelationFunctionPsiChargeIndependent.C:1184
 drawCorrelationFunctionPsiChargeIndependent.C:1185
 drawCorrelationFunctionPsiChargeIndependent.C:1186
 drawCorrelationFunctionPsiChargeIndependent.C:1187
 drawCorrelationFunctionPsiChargeIndependent.C:1188
 drawCorrelationFunctionPsiChargeIndependent.C:1189
 drawCorrelationFunctionPsiChargeIndependent.C:1190
 drawCorrelationFunctionPsiChargeIndependent.C:1191