<commit_before>AliAnalysisTaskSEpPbCorrelationsJetV2* AddTaskpPbCorrelationsJetV2(
								       TString  fListName      ="pPbCorrelations_1",
								       TString  fListName1     ="Corr_1",
								       TString  fListName2     ="QA_1",
								       TString  fCollisiontype ="pPb",
								       Bool_t fDataType        =kTRUE,//TRUE=real data, FALSE=MC
								       Bool_t frun2            =kTRUE,
								       Bool_t fFMDcut          =kTRUE,
								       TString anamode         ="TPCFMD",//TPCTPC, TPCV0A, TPCV0C, V0AV0C,TPCFMD, TPCFMDC, FMDFMD, SECA
								       TString anacent         ="V0A",//"SPDTracklets",
								       TString assomode        ="hadron",
								       Int_t ffilterbit        =5,
								       Int_t fFMDcutpar        =7,
								       Bool_t fmakehole        =kFALSE,
								       Bool_t fptdiff          =kTRUE,
                                                                       Bool_t fReduceDphi      =kTRUE,
								       Float_t fmaxpt          =5.,
								       Int_t fMinNTracksInPool =5000,
								       Int_t fMinNEventsInPool =5, 
								       Double_t dCenMin = 0.,
								       Double_t dCenMax = 10.
                                                                      )
{
  // Get the current analysis manager.
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {Error("AddTaskpPbCorrelationsJetV2.C", "No Analysis Manager");return 0;}

  //PVz Binning for pool PP or PbPb
  //Double_t pvzbinlimits[] = {-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12};
  Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
  Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;

  //Mult Binning for pool pbpb
  Double_t cent_mult_binlimitsPbPb[] = {  0, 10, 20, 30, 40, 50, 60, 70, 80, 90,
					100,110,120,130,140,150,160,170,180,190,
					200,210,220,230,240,250,260,270,280,290,
					300,500,1000,2000};
  Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;

  //Cent Binning for pool pp

  /*Double_t cent_mult_binlimitsPP[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,
					 14,15,16,17,18,19,20,21,22,23,24,25,26,27,
					 28,29,30,31,32,33,34,35,36,37,38,39,40,42,
					 44,46,48,50,52,54,56,58,60,65,70,75,80,90};
  */
  Double_t cent_mult_binlimitsPP[] = {0,1,2,3,4,5,10,20,30,40,50,60,70,80,90,100,120,140,160,180,200};
  Int_t cent_mult_bin_numbPP = sizeof(cent_mult_binlimitsPP)/sizeof(Double_t) - 1;

  //Cent Binning for pool	pPb
  Double_t cent_mult_binlimitspPb[] = {0,1,2,3,4,5,10,20,30,40,50,60,70,80,90,100};
  Int_t cent_mult_bin_numbpPb = sizeof(cent_mult_binlimitspPb)/sizeof(Double_t) - 1;


  //  Double_t cent_mult_binlimitsHMPP[] = { 0.,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1};
  Double_t cent_mult_binlimitsHMPP[] = {0,0.001,0.0033,0.01,0.02,0.033,0.05,0.1,0.2,0.5,1,2,5,10,15,20,30,40,50,70,80,90,100};
  Int_t cent_mult_bin_numbHMPP = sizeof(cent_mult_binlimitsHMPP)/sizeof(Double_t) - 1;
  

// For Grid
// Remove side band of delta phi

  if (!TGrid::Connect("alien://")) {
    ::Error("ERROR","Can not connect to the Grid!");
    return;
  }
  
  TFile * file = TFile::Open("alien:///alice/cern.ch/user/s/sitang/Jet_V2/TPCTPC/TPCTPC_Fit_Results.root");

// For local
//  TFile * file = TFile::Open("../FMD_Corr/Original/result/TPCTPC_Fit_Results.root");

  if(!file) {
      printf("ERROR: TPCTPC_Fit_Results file is not available!\n");
      return 0;
   }

  TList *TPCTPC_Fit = 0x0;
  TPCTPC_Fit = (TList*)file->Get(Form("list_TPCTPC_Fit")); 

  //Correlation task
  AliAnalysisTaskSEpPbCorrelationsJetV2 *myTask = new AliAnalysisTaskSEpPbCorrelationsJetV2(fListName.Data());

  myTask->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
  myTask->SetFilterBit(ffilterbit);
  myTask->SetAnalysisMode(anamode);<commit_msg>update for root6<commit_after>AliAnalysisTaskSEpPbCorrelationsJetV2* AddTaskpPbCorrelationsJetV2(
								       TString  fListName      ="pPbCorrelations_1",
								       TString  fListName1     ="Corr_1",
								       TString  fListName2     ="QA_1",
								       TString  fCollisiontype ="pPb",
								       Bool_t fDataType        =kTRUE,//TRUE=real data, FALSE=MC
								       Bool_t frun2            =kTRUE,
								       Bool_t fFMDcut          =kTRUE,
								       TString anamode         ="TPCFMD",//TPCTPC, TPCV0A, TPCV0C, V0AV0C,TPCFMD, TPCFMDC, FMDFMD, SECA
								       TString anacent         ="V0A",//"SPDTracklets",
								       TString assomode        ="hadron",
								       Int_t ffilterbit        =5,
								       Int_t fFMDcutpar        =7,
								       Bool_t fmakehole        =kFALSE,
								       Bool_t fptdiff          =kTRUE,
                                                                       Bool_t fReduceDphi      =kTRUE,
								       Float_t fmaxpt          =5.,
								       Int_t fMinNTracksInPool =5000,
								       Int_t fMinNEventsInPool =5, 
								       Double_t dCenMin = 0.,
								       Double_t dCenMax = 10.
                                                                      )
{
  // Get the current analysis manager.
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {Error("AddTaskpPbCorrelationsJetV2.C", "No Analysis Manager");return 0x0;}

  //PVz Binning for pool PP or PbPb
  //Double_t pvzbinlimits[] = {-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12};
  Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
  Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;

  //Mult Binning for pool pbpb
  Double_t cent_mult_binlimitsPbPb[] = {  0, 10, 20, 30, 40, 50, 60, 70, 80, 90,
					100,110,120,130,140,150,160,170,180,190,
					200,210,220,230,240,250,260,270,280,290,
					300,500,1000,2000};
  Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;

  //Cent Binning for pool pp

  /*Double_t cent_mult_binlimitsPP[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,
					 14,15,16,17,18,19,20,21,22,23,24,25,26,27,
					 28,29,30,31,32,33,34,35,36,37,38,39,40,42,
					 44,46,48,50,52,54,56,58,60,65,70,75,80,90};
  */
  Double_t cent_mult_binlimitsPP[] = {0,1,2,3,4,5,10,20,30,40,50,60,70,80,90,100,120,140,160,180,200};
  Int_t cent_mult_bin_numbPP = sizeof(cent_mult_binlimitsPP)/sizeof(Double_t) - 1;

  //Cent Binning for pool	pPb
  Double_t cent_mult_binlimitspPb[] = {0,1,2,3,4,5,10,20,30,40,50,60,70,80,90,100};
  Int_t cent_mult_bin_numbpPb = sizeof(cent_mult_binlimitspPb)/sizeof(Double_t) - 1;


  //  Double_t cent_mult_binlimitsHMPP[] = { 0.,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1};
  Double_t cent_mult_binlimitsHMPP[] = {0,0.001,0.0033,0.01,0.02,0.033,0.05,0.1,0.2,0.5,1,2,5,10,15,20,30,40,50,70,80,90,100};
  Int_t cent_mult_bin_numbHMPP = sizeof(cent_mult_binlimitsHMPP)/sizeof(Double_t) - 1;
  

// For Grid
// Remove side band of delta phi

  if (!TGrid::Connect("alien://")) {
    ::Error("ERROR","Can not connect to the Grid!");
    return 0x0;
  }
  
  TFile * file = TFile::Open("alien:///alice/cern.ch/user/s/sitang/Jet_V2/TPCTPC/TPCTPC_Fit_Results.root");

// For local
//  TFile * file = TFile::Open("../FMD_Corr/Original/result/TPCTPC_Fit_Results.root");

  if(!file) {
      printf("ERROR: TPCTPC_Fit_Results file is not available!\n");
      return 0x0;
   }

  TList *TPCTPC_Fit = 0x0;
  TPCTPC_Fit = (TList*)file->Get(Form("list_TPCTPC_Fit")); 

  //Correlation task
  AliAnalysisTaskSEpPbCorrelationsJetV2 *myTask = new AliAnalysisTaskSEpPbCorrelationsJetV2(fListName.Data());

  myTask->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
  myTask->SetFilterBit(ffilterbit);
  myTask->SetAnalysisMode(anamode);
{'fraction_non_alphanumeric': 0.14817718541748334, 'fraction_numerical': 0.11093688749509996, 'mean_word_length': 2.606974552309142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '830692', 'n_tokens_mistral': 3950, 'n_tokens_neox': 3042, 'n_words': 448}