<commit_before>AliAnalysisTask *AddTaskTRDPIDTree(Int_t trigger=0, Int_t system=0){
  //get the current analysis manager
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTask_pachmay_PIDTRDTree", "No analysis manager found.");
    return 0;
  }


  //========= Add task to the ANALYSIS manager =====
  AliTRDPIDTree *task = new AliTRDPIDTree("TRDPIDTree");
  if(trigger==0) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kINT1 | AliVEvent::kINT5 | AliVEvent::kINT7 | AliVEvent::kINT8);
  if(trigger==1) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kINT7 | AliVEvent::kINT8);
  if(trigger==2) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral);
  if(trigger==3) task->SelectCollisionCandidates(AliVEvent::kTRD);
  if(system==1) task->SetppAnalysis();
  if(system==2) task->SetpPbAnalysis();
  if(system==3) task->SetPbPbAnalysis();
//  task->SetPbPbAnalysis();
  mgr->AddTask(task);


  //================================================
  //              data containers
  //================================================
  //            find input container
  //below the trunk version
  AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();

  //dumm output container
  AliAnalysisDataContainer *coutput1 =
      mgr->CreateContainer("TRDPIDTree_tree",
                           TTree::Class(),
                           AliAnalysisManager::kOutputContainer,
                           "TRDPIDTree_tree.root");
  AliAnalysisDataContainer *coutput2 =
      mgr->CreateContainer("TRDPIDTree_list",
                           TList::Class(),
                           AliAnalysisManager::kOutputContainer,
                           "TRDPIDTree_hists.root");

  //connect containers
  mgr->ConnectInput(task,  0, cinput );
  mgr->ConnectOutput(task,  1, coutput1);
  mgr->ConnectOutput(task,  2, coutput2);

  return task;
}<commit_msg>Files become a name, that depends on the used trigger<commit_after>AliAnalysisTask *AddTaskTRDPIDTree(Int_t trigger=0, Int_t system=0){
  //get the current analysis manager
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTask_pachmay_PIDTRDTree", "No analysis manager found.");
    return 0;
  }


  //========= Add task to the ANALYSIS manager =====
  AliTRDPIDTree *task = new AliTRDPIDTree("TRDPIDTree");
  if(trigger==0) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kINT1 | AliVEvent::kINT5 | AliVEvent::kINT7 | AliVEvent::kINT8);
  if(trigger==1) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kINT7 | AliVEvent::kINT8);
  if(trigger==2) task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral);
  if(trigger==3) task->SelectCollisionCandidates(AliVEvent::kTRD);
  if(system==1) task->SetppAnalysis();
  if(system==2) task->SetpPbAnalysis();
  if(system==3) task->SetPbPbAnalysis();
//  task->SetPbPbAnalysis();
  mgr->AddTask(task);


  //================================================
   //              data containers
   //================================================
   //            find input container
   //below the trunk version
   AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();

   //dumm output container
   AliAnalysisDataContainer *coutput1 =
       mgr->CreateContainer("TRDPIDTree_tree",
                            TTree::Class(),
                            AliAnalysisManager::kOutputContainer,
                            Form("TRDPIDTree_tree_T%i.root",trigger));
   AliAnalysisDataContainer *coutput2 =
       mgr->CreateContainer("TRDPIDTree_list",
                            TList::Class(),
                            AliAnalysisManager::kOutputContainer,
                            Form("TRDPIDTree_hists_T%i.root",trigger));

  //connect containers
  mgr->ConnectInput(task,  0, cinput );
  mgr->ConnectOutput(task,  1, coutput1);
  mgr->ConnectOutput(task,  2, coutput2);

  return task;
}
{'fraction_non_alphanumeric': 0.17334322453016815, 'fraction_numerical': 0.011374876360039565, 'mean_word_length': 3.55518018018018, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '7476168', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1197, 'n_words': 201}