<commit_before>AliAnalysisTaskCharmDecayTracks* AddTaskCharmDecayTracks(Int_t pdgCode=421,
							 Int_t optMeth=0,
							 Int_t filterMask = 16){
  
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    ::Error("AddTaskCharmDecayTracks", "No analysis manager to connect to.");
  }
  
  AliAnalysisTaskCharmDecayTracks *dTask = new AliAnalysisTaskCharmDecayTracks();
  dTask->SetReadMC(kTRUE);
  dTask->SetFilterMask(filterMask);
  dTask->SetSelectedHadron(pdgCode);
  if(optMeth==0) dTask->SetUseCharmedHadronsFromKine();
  else dTask->SetUseCandidatesFromDeltaAOD();

  // Create containers for input/output
  TString baseName="CharmDecayTracks";
  TString containerStr="";
  if(pdgCode==421) containerStr="Dzero";
  else if(pdgCode==411) containerStr="Dplus";
  else if(pdgCode==431) containerStr="Ds";
  else if(pdgCode==4122) containerStr="Lc";
  TString inname = Form("cinput%s%s",baseName.Data(),containerStr.Data());
  TString outname = Form("coutput%s%s",baseName.Data(),containerStr.Data());
  TString treename = Form("coutput%sTree%s",baseName.Data(),containerStr.Data());
  
  AliAnalysisDataContainer *cinput = mgr->CreateContainer(inname,TChain::Class(),
                                                          AliAnalysisManager::kInputContainer);
  TString outputfile = AliAnalysisManager::GetCommonFileName();<commit_msg>Option to select method in the AddTask<commit_after>AliAnalysisTaskCharmDecayTracks* AddTaskCharmDecayTracks(Int_t pdgCode=421,
							 TString optMeth="kine",
							 Int_t filterMask = 16){
  
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    ::Error("AddTaskCharmDecayTracks", "No analysis manager to connect to.");
  }
  
  AliAnalysisTaskCharmDecayTracks *dTask = new AliAnalysisTaskCharmDecayTracks();
  dTask->SetReadMC(kTRUE);
  dTask->SetFilterMask(filterMask);
  dTask->SetSelectedHadron(pdgCode);
  optMeth.ToLower();
  if(optMeth.Contains("cand") || optMeth.Contains("delta")) dTask->SetUseCandidatesFromDeltaAOD();
  else dTask->SetUseCharmedHadronsFromKine();


  // Create containers for input/output
  TString baseName="CharmDecayTracks";
  TString containerStr="";
  if(pdgCode==421) containerStr="Dzero";
  else if(pdgCode==411) containerStr="Dplus";
  else if(pdgCode==431) containerStr="Ds";
  else if(pdgCode==4122) containerStr="Lc";
  TString inname = Form("cinput%s%s",baseName.Data(),containerStr.Data());
  TString outname = Form("coutput%s%s",baseName.Data(),containerStr.Data());
  TString treename = Form("coutput%sTree%s",baseName.Data(),containerStr.Data());
  
  AliAnalysisDataContainer *cinput = mgr->CreateContainer(inname,TChain::Class(),
                                                          AliAnalysisManager::kInputContainer);
  TString outputfile = AliAnalysisManager::GetCommonFileName();
{'fraction_non_alphanumeric': 0.1327713382507903, 'fraction_numerical': 0.013347383210396909, 'mean_word_length': 5.191304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3101405', 'n_tokens_mistral': 966, 'n_tokens_neox': 906, 'n_words': 139}