<commit_before>
void AddTaskCMWPU2018eqAchdca(Int_t gFilterBit = 768, Double_t fPtMin=0.2, Double_t fPtMax=10.0,Double_t fdcaxy=2.4, Double_t fdcaz=3.2, Double_t fChi2=4.0,Double_t fSlope=3.45, Float_t fConst=100, Int_t bdataset=0, Double_t fEtaMin=-0.8, Double_t fEtaMax=0.8, Int_t gNclustTPC=70, TString sCentEstimator="V0M", Double_t fCentralityMin=0., Double_t fCentralityMax=90.,Float_t fVzMin = -10.0, Float_t fVzMax = 10.0, TString sTrigger="kINT7", Int_t fparticle=3,Double_t nSigTPC = 3.0, Double_t nSigTOF = 3.0, Int_t vnHarmonic=2,Double_t fEtaGapNeg=-0.1,Double_t fEtaGapPos=0.1,TString sMCfilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/HijingMC_LHC18q_FB768_DeftCut.root",TString sNUAFilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/wgtCharge_NUAFB768NoPUcutRun296244.root",TString sEVNTWGTFilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/wgtCharge_NUAFB768NoPUcutRun296244.root",const char *suffix = "")
{
  // standard with task
  printf("===================================================================================\n");
  printf("\n                PID: Initialising AliAnalysisTaskCMWPU                             \n");
  printf("===================================================================================\n");


  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  TString     outfileName = AliAnalysisManager::GetCommonFileName();
  AliAnalysisDataContainer  *cinput = mgr->GetCommonInputContainer();  // AOD event


  TString list1OutName = outfileName;        // common outfile filename
  list1OutName        += ":Results";         // This directory contains result histograms

  Int_t gCentMin = fCentralityMin;
  Int_t gCentMax = fCentralityMax;

  TString TaskCMWPID;
  TaskCMWPID.Form("gTaskCMWCent%d_%d_%s", gCentMin, gCentMax, suffix);

  AliAnalysisTaskCMWPU2018eqAchdca *task_CMW = new AliAnalysisTaskCMWPU2018eqAchdca(TaskCMWPID);

  ///-------> Analysis Object Created, now pass the arguments
  if(sTrigger=="kMB" || sTrigger=="kmb" || sTrigger=="MB"){   // if We want MB Trigger
    task_CMW->SelectCollisionCandidates(AliVEvent::kMB);
    printf("\n =========> AddTaskCMW::Info() Trigger = kMB  \n");
  }
  else if(sTrigger=="kSemiCentral" || sTrigger=="SemiCentral" || sTrigger=="semicentral"){
    task_CMW->SelectCollisionCandidates(AliVEvent::kSemiCentral);
    printf("\n =========> AddTaskCMW::Info() Trigger = kSemiCentral \n");
  }
  else if(sTrigger=="kCentral" || sTrigger=="Central" || sTrigger=="central"){
    task_CMW->SelectCollisionCandidates(AliVEvent::kCentral);
    printf("\n =========> AddTaskCMW::Info() Trigger = kCentral \n");
  }
  else if(sTrigger=="kAll"){
   task_CMW->SelectCollisionCandidates(AliVEvent::kINT7 | AliVEvent::kCentral | AliVEvent::kSemiCentral ); 
    printf("\n =========> AddTaskCMW::Info() Trigger = kCentral \n");
  }
  else{
    task_CMW->SelectCollisionCandidates(AliVEvent::kINT7);      // default is kINT7
    printf("\n =========> AddTaskCMW::Info() Trigger = kINT7 \n");
  }
  
  
  ///Event cuts:
  task_CMW->SetCentralityPercentileMin(fCentralityMin);
  task_CMW->SetCentralityPercentileMax(fCentralityMax);
  task_CMW->SetVzRangeMin(fVzMin);
  task_CMW->SetVzRangeMax(fVzMax);
  task_CMW->SetParticle(fparticle);
  task_CMW->SetPileUpCutParam(fSlope,fConst);
  //task_CMW->SetFlagSkipPileUpCuts(bSkipNUA);  
  task_CMW->SetDataset(bdataset);  
  
  //

  if(sCentEstimator=="V0" || sCentEstimator=="V0M"){ 
    task_CMW->SetCentralityEstimator("V0M");    
  }
  else{
    task_CMW->SetCentralityEstimator(sCentEstimator);          //  use the Estimator provided in AddTask.
  }
     

  //Track cuts:<commit_msg>triggers added for dca in sys<commit_after>
void AddTaskCMWPU2018eqAchdca(Int_t gFilterBit = 768, Double_t fPtMin=0.2, Double_t fPtMax=10.0,Double_t fdcaxy=2.4, Double_t fdcaz=3.2, Double_t fChi2=4.0,Double_t fSlope=3.45, Float_t fConst=100, Int_t bdataset=0, Double_t fEtaMin=-0.8, Double_t fEtaMax=0.8, Int_t gNclustTPC=70, TString sCentEstimator="V0M", Double_t fCentralityMin=0., Double_t fCentralityMax=90.,Float_t fVzMin = -10.0, Float_t fVzMax = 10.0, TString sTrigger="kINT7", Int_t fparticle=3,Double_t nSigTPC = 3.0, Double_t nSigTOF = 3.0, Int_t vnHarmonic=2,Double_t fEtaGapNeg=-0.1,Double_t fEtaGapPos=0.1,TString sMCfilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/HijingMC_LHC18q_FB768_DeftCut.root",TString sNUAFilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/wgtCharge_NUAFB768NoPUcutRun296244.root",TString sEVNTWGTFilePath = "alien:///alice/cern.ch/user/m/mhaque/nuanue18/wgtCharge_NUAFB768NoPUcutRun296244.root",const char *suffix = "")
{
  // standard with task
  printf("===================================================================================\n");
  printf("\n                PID: Initialising AliAnalysisTaskCMWPU                             \n");
  printf("===================================================================================\n");


  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  TString     outfileName = AliAnalysisManager::GetCommonFileName();
  AliAnalysisDataContainer  *cinput = mgr->GetCommonInputContainer();  // AOD event


  TString list1OutName = outfileName;        // common outfile filename
  list1OutName        += ":Results";         // This directory contains result histograms

  Int_t gCentMin = fCentralityMin;
  Int_t gCentMax = fCentralityMax;

  TString TaskCMWPID;
  TaskCMWPID.Form("gTaskCMWCent%d_%d_%s", gCentMin, gCentMax, suffix);

  AliAnalysisTaskCMWPU2018eqAchdca *task_CMW = new AliAnalysisTaskCMWPU2018eqAchdca(TaskCMWPID);

  ///-------> Analysis Object Created, now pass the arguments
  if(sTrigger=="kMB" || sTrigger=="kmb" || sTrigger=="MB"){   // if We want MB Trigger
    task_CMW->SelectCollisionCandidates(AliVEvent::kMB);
    printf("\n =========> AddTaskCMW::Info() Trigger = kMB  \n");
  }
  else if(sTrigger=="kSemiCentral" || sTrigger=="SemiCentral" || sTrigger=="semicentral"){
    task_CMW->SelectCollisionCandidates(AliVEvent::kSemiCentral);
    printf("\n =========> AddTaskCMW::Info() Trigger = kSemiCentral \n");
  }
  else if(sTrigger=="kCentral" || sTrigger=="Central" || sTrigger=="central"){
    task_CMW->SelectCollisionCandidates(AliVEvent::kCentral);
    printf("\n =========> AddTaskCMW::Info() Trigger = kCentral \n");
  }
  else if(sTrigger=="kAll"){
   task_CMW->SelectCollisionCandidates(AliVEvent::kINT7 | AliVEvent::kCentral | AliVEvent::kSemiCentral ); 
    printf("\n =========> AddTaskCMW::Info() Trigger = kCentral \n");
  }
  else{
    task_CMW->SelectCollisionCandidates(AliVEvent::kINT7);  
    printf("\n =========> AddTaskCMW::Info() Trigger = kINT7 \n");
  }
  
  
  ///Event cuts:
  task_CMW->SetCentralityPercentileMin(fCentralityMin);
  task_CMW->SetCentralityPercentileMax(fCentralityMax);
  task_CMW->SetVzRangeMin(fVzMin);
  task_CMW->SetVzRangeMax(fVzMax);
  task_CMW->SetParticle(fparticle);
  task_CMW->SetPileUpCutParam(fSlope,fConst);
  //task_CMW->SetFlagSkipPileUpCuts(bSkipNUA);  
  task_CMW->SetDataset(bdataset);  
  
  //

  if(sCentEstimator=="V0" || sCentEstimator=="V0M"){ 
    task_CMW->SetCentralityEstimator("V0M");    
  }
  else{
    task_CMW->SetCentralityEstimator(sCentEstimator);          //  use the Estimator provided in AddTask.
  }
     

  //Track cuts:
{'fraction_non_alphanumeric': 0.18899358186535573, 'fraction_numerical': 0.02690154308343575, 'mean_word_length': 4.988552739165986, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3390315', 'n_tokens_mistral': 2870, 'n_tokens_neox': 2679, 'n_words': 383}