<commit_before>/***************************************************************************
              <EMAIL> - last modified on 06/08/2012
//
// General macro to configure the RSN analysis task.
// It calls all configs desired by the user, by means
// of the boolean switches defined in the first lines.
// ---
// Inputs:
//  1) flag to know if running on MC or data
//  2) path where all configs are stored
// ---
// Returns:
//  kTRUE  --> initialization successful
//  kFALSE --> initialization failed (some config gave errors)
//
****************************************************************************/

AliRsnMiniAnalysisTask * AddAnalysisTaskD0
(
   Bool_t      isMC,
   Bool_t      isPP,
   Bool_t      ispPb,
   TString     centrality = "V0M",
   Float_t     cutV = 10.0,
   Int_t       aodFilterBit = 5,  
   Float_t     nsigmaTPCPi = 3.0,
   Float_t     nsigmaTPCKa = 3.0,
   Float_t     nsigmaTOFPi = 2.0,
   Float_t     nsigmaTOFKa = 2.0,
   Float_t     trackDCAcutMax = 7.0,
   Float_t     trackDCAcutMin = 0.0,
   Float_t     trackDCAZcutMax = 2.0,
   Int_t       NTPCcluster = 70,
   Int_t       minSPDclt = 0,
   Double_t    minpt = 0.15,
   TString     triggerMask = AliVEvent::kMB,
   Short_t     maxSisters = 2,
   Bool_t      checkP = kTRUE,
   Bool_t      minDCAcutFixed = kFALSE,
   Bool_t      maxDCAcutFixed = kFALSE,
   Bool_t      ptdepPIDcut = kFALSE,
   Bool_t      fixedYcut = kTRUE,
   Bool_t      SPDpileup = kTRUE,
   Bool_t      checkFeedDown = kTRUE,
   Bool_t      checkQuark = kTRUE,
   UShort_t    originDselection = 0,
   Int_t       nmix = 5,
   Double_t    minYlab =  -0.5,
   Double_t    maxYlab =  0.5,
   Float_t     mineta = -0.8,
   Float_t     maxeta = 0.8,
   Float_t     min_inv_mass = 0.6,
   Float_t     max_inv_mass = 2.2,
   Int_t       bins = 320,
   Double_t    dcaProduct = -1E-4,
   Float_t     maxDiffVzMix = 1.0,
   Float_t     maxDiffMultMix = 10.0,
   Float_t     maxDiffAngleMixDeg = 20.0,
   Int_t       aodN = 0,
   TString     outNameSuffix = "D0"
)
{  
  //
  // -- INITIALIZATION ----------------------------------------------------------------------------
  // retrieve analysis manager
  //
  
  UInt_t trigger = 0;
  
  
  
  TString eventType = "";
   if(triggerMask=="AliVEvent::kMB | AliVEvent::kCentral") {trigger = AliVEvent::kMB | AliVEvent::kCentral; eventType+="Central";}
   else if(triggerMask=="AliVEvent::kMB | AliVEvent::kSemiCentral") {trigger = AliVEvent::kMB | AliVEvent::kSemiCentral; eventType+="SemiCentral";}
   else if(triggerMask=="AliVEvent::kINT7") {trigger = AliVEvent::kINT7; eventType+="kINT7";}
   else if(triggerMask=="AliVEvent::kMB") {trigger = AliVEvent::kMB; eventType+="MinimumBias";}

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

   // create the task and configure 
   TString taskName = Form("D0%s%s_%.1f_%d_%d_%.1f_%.1f_%.1f_%.1f_%.1f_%.4f_%.1f_%.5f_%.2f_%d_%s", (isPP? "pp" : ispPb? "pPB": "PbPb"), (isMC ? "MC" : "Data"), cutV, NTPCcluster, minSPDclt, nsigmaTPCPi, nsigmaTPCKa, nsigmaTOFPi, nsigmaTOFKa, trackDCAcutMax, trackDCAcutMin, trackDCAZcutMax, dcaProduct, minpt, originDselection, eventType.Data());
   AliRsnMiniAnalysisTask *task = new AliRsnMiniAnalysisTask(taskName.Data(), isMC);
   if (!isMC && !isPP){
     Printf(Form("========== SETTING USE CENTRALITY PATCH AOD049 : %s", (aodN==49)? "yes" : "no"));
     task->SetUseCentralityPatch(aodN==49);<commit_msg>Fixed number of arguments in macro (Massimo)<commit_after>/***************************************************************************
              <EMAIL> - last modified on 06/08/2012
//
// General macro to configure the RSN analysis task.
// It calls all configs desired by the user, by means
// of the boolean switches defined in the first lines.
// ---
// Inputs:
//  1) flag to know if running on MC or data
//  2) path where all configs are stored
// ---
// Returns:
//  kTRUE  --> initialization successful
//  kFALSE --> initialization failed (some config gave errors)
//
****************************************************************************/

AliRsnMiniAnalysisTask * AddAnalysisTaskD0
(
   Bool_t      isMC,
   Bool_t      isPP,
   Bool_t      ispPb,
   TString     centrality = "V0M",
   Int_t       aodFilterBit = 5,  
   Float_t     nsigmaTPCPi = 3.0,
   Float_t     nsigmaTPCKa = 3.0,
   Float_t     nsigmaTOFPi = 2.0,
   Float_t     nsigmaTOFKa = 2.0,
   Float_t     trackDCAcutMax = 7.0,
   Float_t     trackDCAcutMin = 0.0,
   Float_t     trackDCAZcutMax = 2.0,
   Int_t       NTPCcluster = 70,
   Int_t       minSPDclt = 0,
   Double_t    minpt = 0.15,
   TString     triggerMask = AliVEvent::kMB,
   Short_t     maxSisters = 2,
   Bool_t      checkP = kTRUE,
   Bool_t      minDCAcutFixed = kFALSE,
   Bool_t      maxDCAcutFixed = kFALSE,
   Bool_t      ptdepPIDcut = kFALSE,
   Bool_t      fixedYcut = kTRUE,
   Bool_t      SPDpileup = kTRUE,
   Bool_t      checkFeedDown = kTRUE,
   Bool_t      checkQuark = kTRUE,
   UShort_t    originDselection = 0,
   Int_t       nmix = 5,
   Double_t    minYlab =  -0.5,
   Double_t    maxYlab =  0.5,
   Float_t     mineta = -0.8,
   Float_t     maxeta = 0.8,
   Float_t     min_inv_mass = 0.6,
   Float_t     max_inv_mass = 2.2,
   Int_t       bins = 320,
   Double_t    dcaProduct = -1E-4,
   Float_t     maxDiffVzMix = 1.0,
   Float_t     maxDiffMultMix = 10.0,
   Float_t     maxDiffAngleMixDeg = 20.0,
   TString     outNameSuffix = "D0"  
)
{  
  //
  // -- INITIALIZATION ----------------------------------------------------------------------------
  // retrieve analysis manager
  //
  Float_t     cutV = 10.0;
  Int_t       aodN = 0;
  
  
  UInt_t trigger = 0;
  
  
  
  TString eventType = "";
   if(triggerMask=="AliVEvent::kMB | AliVEvent::kCentral") {trigger = AliVEvent::kMB | AliVEvent::kCentral; eventType+="Central";}
   else if(triggerMask=="AliVEvent::kMB | AliVEvent::kSemiCentral") {trigger = AliVEvent::kMB | AliVEvent::kSemiCentral; eventType+="SemiCentral";}
   else if(triggerMask=="AliVEvent::kINT7") {trigger = AliVEvent::kINT7; eventType+="kINT7";}
   else if(triggerMask=="AliVEvent::kMB") {trigger = AliVEvent::kMB; eventType+="MinimumBias";}

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

   // create the task and configure 
   TString taskName = Form("D0%s%s_%.1f_%d_%d_%.1f_%.1f_%.1f_%.1f_%.1f_%.4f_%.1f_%.5f_%.2f_%d_%s", (isPP? "pp" : ispPb? "pPB": "PbPb"), (isMC ? "MC" : "Data"), cutV, NTPCcluster, minSPDclt, nsigmaTPCPi, nsigmaTPCKa, nsigmaTOFPi, nsigmaTOFKa, trackDCAcutMax, trackDCAcutMin, trackDCAZcutMax, dcaProduct, minpt, originDselection, eventType.Data());
   AliRsnMiniAnalysisTask *task = new AliRsnMiniAnalysisTask(taskName.Data(), isMC);
   if (!isMC && !isPP){
     Printf(Form("========== SETTING USE CENTRALITY PATCH AOD049 : %s", (aodN==49)? "yes" : "no"));
     task->SetUseCentralityPatch(aodN==49);
{'fraction_non_alphanumeric': 0.18286841363764442, 'fraction_numerical': 0.025077486615948153, 'mean_word_length': 2.7245540398740817, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 11, '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': '4035469', 'n_tokens_mistral': 2717, 'n_tokens_neox': 2551, 'n_words': 563}