<commit_before>
void AddTaskv2pt(Int_t gFilterBit = 768, Double_t fPtMin=0.2, Double_t fPtMax=10.0, Double_t maxevpt=2.0, Double_t fEtaMin=-0.8, Double_t fEtaMax=0.8,Int_t gNclustTPC=70, Double_t fSlope=3.45, Float_t fConst=100, 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,Int_t puswitch=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",const char *suffix = "")
{
  // standard with task
  printf("===================================================================================\n");
  printf("\n                PID: Initialising AliAnalysisTaskCVE                             \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 TaskCVEPID;
  TaskCVEPID.Form("gTaskCVECent%d_%d_%s", gCentMin, gCentMax, suffix);

  AliAnalysisTaskv2pt *task_CVE = new AliAnalysisTaskv2pt(TaskCVEPID);

  ///-------> Analysis Object Created, now pass the arguments
  
  task_CVE->SelectCollisionCandidates(AliVEvent::kINT7 | AliVEvent::kCentral | AliVEvent::kSemiCentral );      // default is kINT7
  if(sTrigger=="kMB" || sTrigger=="kmb" || sTrigger=="MB"){   // if We want MB Trigger for LHC10h
    task_CVE->SelectCollisionCandidates(AliVEvent::kMB);
  }
  ///Event cuts:<commit_msg>added triggers for v2 vs pt<commit_after>
void AddTaskv2pt(Int_t gFilterBit = 768, Double_t fPtMin=0.2, Double_t fPtMax=10.0, Double_t maxevpt=2.0, Double_t fEtaMin=-0.8, Double_t fEtaMax=0.8,Int_t gNclustTPC=70, Double_t fSlope=3.45, Float_t fConst=100, 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,Int_t puswitch=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",const char *suffix = "")
{
  // standard with task
  printf("===================================================================================\n");
  printf("\n                PID: Initialising AliAnalysisTaskCVE                             \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 TaskCVEPID;
  TaskCVEPID.Form("gTaskCVECent%d_%d_%s", gCentMin, gCentMax, suffix);

  AliAnalysisTaskv2pt *task_CVE = new AliAnalysisTaskv2pt(TaskCVEPID);

  ///-------> Analysis Object Created, now pass the arguments

  if(sTrigger=="kAll")   // if We want MB Trigger for LHC10h
    task_CVE->SelectCollisionCandidates(AliVEvent::kINT7 | AliVEvent::kCentral | AliVEvent::kSemiCentral );      // default is kINT7
  else if(sTrigger=="kINT7" || sTrigger=="kint7" || sTrigger=="KINT7")   // if We want MB Trigger for LHC10h
    task_CVE->SelectCollisionCandidates(AliVEvent::kINT7);
  else if(sTrigger=="kCentral")   // if We want MB Trigger for LHC10h
    task_CVE->SelectCollisionCandidates(AliVEvent::kCentral);
  else if(sTrigger=="kMB" || sTrigger=="kmb" || sTrigger=="MB"){   // if We want MB Trigger for LHC10h
    task_CVE->SelectCollisionCandidates(AliVEvent::kMB);
  }
  ///Event cuts:
{'fraction_non_alphanumeric': 0.1892361111111111, 'fraction_numerical': 0.033203125, 'mean_word_length': 4.819444444444445, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 13, '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': '2738724', 'n_tokens_mistral': 1725, 'n_tokens_neox': 1598, 'n_words': 291}