<commit_before>AliAnalysisTaskSEDs *AddTaskDs(Int_t storeNtuple=0,Bool_t readMC=kFALSE,
				     TString filename="DstoKKpiCuts.root")
{
  //                                                                                                                                    
  // Test macro for the AliAnalysisTaskSE for Ds candidates 

  //Invariant mass histogram and                                                 
  // association with MC truth (using MC info in AOD)                                                                                   
  // Origin: <NAME>, <EMAIL>         
  // Modified for Ds meson: <NAME> <EMAIL>
  // Get the pointer to the existing analysis manager via the static access method.                                                     
  //==============================================================================                                                      

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    ::Error("AddTaskDs", "No analysis manager to connect to.");
  }


  TFile* filecuts=TFile::Open(filename.Data());
  if(!filecuts ||(filecuts&& !filecuts->IsOpen())){
    cout<<"Error: Input file not found!"<<endl;
    return 0;
  }
  
  
  //Analysis Task

  
  AliRDHFCutsDstoKKpi* analysiscuts=new AliRDHFCutsDstoKKpi();
  analysiscuts = (AliRDHFCutsDstoKKpi*)filecuts->Get("AnalysisCuts");

  AliRDHFCutsDstoKKpi* prodcuts=new AliRDHFCutsDstoKKpi();
  prodcuts = (AliRDHFCutsDstoKKpi*)filecuts->Get("ProdCuts");
  
  //AliRDHFCutsDstoKKpi *prodcuts = (AliRDHFCutsDstoKKpi*)fileCuts->Get("ProdCuts");
  //AliRDHFCutsDstoKKpi *analysiscuts = (AliRDHFCutsDstoKKpi*)fileCuts->Get("AnalysisCuts");

  AliAnalysisTaskSEDs *dsTask = new AliAnalysisTaskSEDs("DsAnalysis",prodcuts,analysiscuts,storeNtuple);
  dsTask->SetReadMC(readMC);
  //dsTask->SetDoLikeSign(kTRUE);
  //  dsTask->SetUseTPCpid(kTRUE);
  //dsTask->SetUseTOFpid(kTRUE);
  dsTask->SetDebugLevel(10);
  //dsTask->SetMassLimits(0.2);<commit_msg>Add setting for selection but (Gian Michele)<commit_after>AliAnalysisTaskSEDs *AddTaskDs(Int_t storeNtuple=0,Bool_t readMC=kFALSE,
				     TString filename="DstoKKpiCuts.root")
{
  //                                                                                                                                    
  // Test macro for the AliAnalysisTaskSE for Ds candidates 

  //Invariant mass histogram and                                                 
  // association with MC truth (using MC info in AOD)                                                                                   
  // Origin: <NAME>, <EMAIL>         
  // Modified for Ds meson: <NAME> <EMAIL>
  // Get the pointer to the existing analysis manager via the static access method.                                                     
  //==============================================================================                                                      

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    ::Error("AddTaskDs", "No analysis manager to connect to.");
  }


  TFile* filecuts=TFile::Open(filename.Data());
  if(!filecuts ||(filecuts&& !filecuts->IsOpen())){
    cout<<"Error: Input file not found!"<<endl;
    return 0;
  }
  
  
  //Analysis Task

  
  AliRDHFCutsDstoKKpi* analysiscuts=new AliRDHFCutsDstoKKpi();
  analysiscuts = (AliRDHFCutsDstoKKpi*)filecuts->Get("AnalysisCuts");

  AliRDHFCutsDstoKKpi* prodcuts=new AliRDHFCutsDstoKKpi();
  prodcuts = (AliRDHFCutsDstoKKpi*)filecuts->Get("ProdCuts");
  
  //AliRDHFCutsDstoKKpi *prodcuts = (AliRDHFCutsDstoKKpi*)fileCuts->Get("ProdCuts");
  //AliRDHFCutsDstoKKpi *analysiscuts = (AliRDHFCutsDstoKKpi*)fileCuts->Get("AnalysisCuts");

  AliAnalysisTaskSEDs *dsTask = new AliAnalysisTaskSEDs("DsAnalysis",prodcuts,analysiscuts,storeNtuple);
  dsTask->SetReadMC(readMC);
  //dsTask->SetDoLikeSign(kTRUE);
  //  dsTask->SetUseTPCpid(kTRUE);
  //dsTask->SetUseTOFpid(kTRUE);
  dsTask->SetDebugLevel(10);
  dsTask->SetUseSelectionBit(kTRUE);
  //dsTask->SetMassLimits(0.2);
{'fraction_non_alphanumeric': 0.1454857703631011, 'fraction_numerical': 0.002944062806673209, 'mean_word_length': 2.148262548262548, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4651688', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1134, 'n_words': 208}