<commit_before>AliAnalysisTaskSE *AddTaskSigma0Run2(bool isRun1 = false ,bool isMC = false, bool isHeavyIon = false,
                                     TString trigger = "kINT7",
                                     const char *cutVariation = "0") {
  TString suffix;
  suffix.Form("%s", cutVariation);

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTaskSigma0Run2()", "No analysis manager found.");
    return 0x0;
  }

  // ================== GetInputEventHandler =============================
  AliVEventHandler *inputHandler = mgr->GetInputEventHandler();
  AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();

  //=========  Set Cutnumber for V0Reader ================================
  TString cutnumberPhoton;
  cutnumberPhoton = "00200008400000002280920000";
  TString cutnumberEvent = "00000000";
  if (suffix == "1") {
    // Borissov cuts
    cutnumberPhoton = "00200008400020002282020000";
    cutnumberEvent = "00000003";
  }
  TString periodNameV0Reader = "";
  Bool_t enableV0findingEffi = kFALSE;
  Bool_t fillHistos = kTRUE;
  Bool_t runLightOutput = kFALSE;
  if (suffix != "0" && suffix != "999") {
    runLightOutput = kTRUE;
    fillHistos = kFALSE;
  }

  //========= Add V0 Reader to  ANALYSIS manager if not yet existent =====
  TString V0ReaderName =
      Form("V0ReaderV1_%s_%s", cutnumberEvent.Data(), cutnumberPhoton.Data());
  AliConvEventCuts *fEventCuts = NULL;

  if (!(AliV0ReaderV1 *)mgr->GetTask(V0ReaderName.Data())) {
    AliV0ReaderV1 *fV0ReaderV1 = new AliV0ReaderV1(V0ReaderName.Data());
    if (periodNameV0Reader.CompareTo("") != 0)
      fV0ReaderV1->SetPeriodName(periodNameV0Reader);
    fV0ReaderV1->SetUseOwnXYZCalculation(kTRUE);
    fV0ReaderV1->SetCreateAODs(kFALSE);  // AOD Output
    fV0ReaderV1->SetUseAODConversionPhoton(kTRUE);
    fV0ReaderV1->SetProduceV0FindingEfficiency(enableV0findingEffi);

    if (!mgr) {
      Error("AddTask_V0ReaderV1", "No analysis manager found.");
      return NULL;
    }

    if (cutnumberEvent != "") {
      fEventCuts =
          new AliConvEventCuts(cutnumberEvent.Data(), cutnumberEvent.Data());
      fEventCuts->SetPreSelectionCutFlag(kTRUE);
      fEventCuts->SetV0ReaderName(V0ReaderName);
      fEventCuts->SetLightOutput(runLightOutput);
      fEventCuts->SetFillCutHistograms("", fillHistos);
      if (periodNameV0Reader.CompareTo("") != 0)
        fEventCuts->SetPeriodEnum(periodNameV0Reader);
      fV0ReaderV1->SetEventCuts(fEventCuts);
    }

    // Set AnalysisCut Number
    AliConversionPhotonCuts *fCuts = NULL;
    if (cutnumberPhoton != "") {
      fCuts = new AliConversionPhotonCuts(cutnumberPhoton.Data(),
                                          cutnumberPhoton.Data());
      fCuts->SetPreSelectionCutFlag(kTRUE);
      fCuts->SetIsHeavyIon(isHeavyIon);
      fCuts->SetV0ReaderName(V0ReaderName);
      fCuts->SetLightOutput(runLightOutput);
      fCuts->SetFillCutHistograms("", fillHistos);
      if (fCuts->InitializeCutsFromCutString(cutnumberPhoton.Data())) {
        fV0ReaderV1->SetConversionCuts(fCuts);
      }
    }
    fV0ReaderV1->Init();
    AliLog::SetGlobalLogLevel(AliLog::kFatal);

    // connect input V0Reader
    mgr->AddTask(fV0ReaderV1);
    mgr->ConnectInput(fV0ReaderV1, 0, cinput);
  }

  //========= Init subtasks and start analyis ============================
  // Track Cuts

  AliSigma0V0Cuts *v0Cuts = AliSigma0V0Cuts::LambdaCuts();
  v0Cuts->SetIsMC(isMC);
  v0Cuts->SetPID(3122);
  v0Cuts->SetPosPID(AliPID::kProton, 2212);
  v0Cuts->SetNegPID(AliPID::kPion, -211);
  if (suffix == "1") {
    // Run1 cuts
    v0Cuts->SetPileUpRejectionMode(AliSigma0V0Cuts::None);
    v0Cuts->SetV0OnFlyStatus(true);
    v0Cuts->SetDaughterDCAtoPV(0.06);
    v0Cuts->SetDaughterDCAMax(1.5);
    v0Cuts->SetDaughterDCAtoPV(0.06);
    v0Cuts->SetV0CosPAMin(0.993);
    v0Cuts->SetV0RadiusMax(220.f);
    v0Cuts->SetV0RadiusMin(0.5);
    v0Cuts->SetArmenterosCut(0.01, 0.17, 0.2, 0.9);
    v0Cuts->SetPIDnSigma(100.f);
    v0Cuts->SetV0PtMin(0.);
    v0Cuts->SetK0Rejection(0., 0.);
    v0Cuts->SetLambdaSelection(1.110, 1.120);
    v0Cuts->SetTPCclusterMin(0.f);
    v0Cuts->SetEtaMax(0.9);
  }

  // TEMPORARY FIX TO GET MORE YIELD IN MC
  v0Cuts->SetV0OnFlyStatus(false);

  AliSigma0V0Cuts *antiv0Cuts = AliSigma0V0Cuts::LambdaCuts();
  antiv0Cuts->SetIsMC(isMC);
  antiv0Cuts->SetPID(-3122);
  antiv0Cuts->SetPosPID(AliPID::kPion, 211);
  antiv0Cuts->SetNegPID(AliPID::kProton, -2212);
  if (suffix == "1") {
    // Run1 cuts
    antiv0Cuts->SetPileUpRejectionMode(AliSigma0V0Cuts::None);
    antiv0Cuts->SetV0OnFlyStatus(true);
    antiv0Cuts->SetDaughterDCAtoPV(0.06);
    antiv0Cuts->SetDaughterDCAMax(1.5);
    antiv0Cuts->SetDaughterDCAtoPV(0.06);
    antiv0Cuts->SetV0CosPAMin(0.993);
    antiv0Cuts->SetV0RadiusMax(220.f);
    antiv0Cuts->SetV0RadiusMin(0.5);
    antiv0Cuts->SetArmenterosCut(0.01, 0.17, 0.2, 0.9);
    antiv0Cuts->SetPIDnSigma(100.f);
    antiv0Cuts->SetV0PtMin(0.);
    antiv0Cuts->SetK0Rejection(0., 0.);
    antiv0Cuts->SetLambdaSelection(1.110, 1.120);
    antiv0Cuts->SetTPCclusterMin(0.f);
    antiv0Cuts->SetEtaMax(0.9);
  }
  // TEMPORARY FIX TO GET MORE YIELD IN MC
  antiv0Cuts->SetV0OnFlyStatus(false);

  if (suffix != "0") {
    v0Cuts->SetLightweight(true);
    antiv0Cuts->SetLightweight(true);
  }
  if (suffix == "999") {
    v0Cuts->SetCheckCutsMC(true);
    antiv0Cuts->SetCheckCutsMC(true);
    v0Cuts->SetLightweight(false);
    antiv0Cuts->SetLightweight(false);
  }

  AliSigma0PhotonMotherCuts *sigmaCuts =
      AliSigma0PhotonMotherCuts::DefaultCuts();
  sigmaCuts->SetIsMC(isMC);
  sigmaCuts->SetPDG(3212, 3122, 22);
  sigmaCuts->SetLambdaCuts(v0Cuts);
  sigmaCuts->SetV0ReaderName(V0ReaderName.Data());
  if (suffix == "1"){
  sigmaCuts->SetArmenterosCut(0,0.12,0.6,1);
  }
  if (suffix != "0" && suffix != "999") {
    sigmaCuts->SetLightweight(true);
    sigmaCuts->SetIsSpectrum(false);
  }

  AliSigma0PhotonMotherCuts *antiSigmaCuts =
      AliSigma0PhotonMotherCuts::DefaultCuts();
  antiSigmaCuts->SetIsMC(isMC);
  antiSigmaCuts->SetPDG(-3212, -3122, 22);
  antiSigmaCuts->SetLambdaCuts(antiv0Cuts);
  antiSigmaCuts->SetV0ReaderName(V0ReaderName.Data());
  if (suffix == "1"){
  antiSigmaCuts->SetArmenterosCut(0,0.12,0.6,1);
  }
  if (suffix != "0" && suffix != "999") {
    antiSigmaCuts->SetLightweight(true);
    antiSigmaCuts->SetIsSpectrum(false);
  }

  if (trigger == "kINT7") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
  } else if (trigger == "kHighMultV0") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kHighMultV0);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kHighMultV0);
  } else if (trigger == "AliVEvent::kMB") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
  }

  AliAnalysisTaskSigma0Run2 *task =
      new AliAnalysisTaskSigma0Run2("AnalysisTaskSigma0Run2");
  if (trigger == "kINT7") {
    task->SetTrigger(AliVEvent::kINT7);
    task->SetMultiplicityMode(AliVEvent::kINT7);
    task->SelectCollisionCandidates(AliVEvent::kINT7);
  } else if (trigger == "kHighMultV0") {
    if (isMC) {<commit_msg>Fix of Train config.<commit_after>AliAnalysisTaskSE *AddTaskSigma0Run2(bool isRun1 = false, bool isMC = false, bool isHeavyIon = false,
                                     TString trigger = "kINT7",
                                     const char *cutVariation = "0") {
  TString suffix;
  suffix.Form("%s", cutVariation);

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTaskSigma0Run2()", "No analysis manager found.");
    return 0x0;
  }

  // ================== GetInputEventHandler =============================
  AliVEventHandler *inputHandler = mgr->GetInputEventHandler();
  AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();

  //=========  Set Cutnumber for V0Reader ================================
  TString cutnumberPhoton;
  cutnumberPhoton = "00200008400000002280920000";
  TString cutnumberEvent = "00000000";
  if (suffix == "0") {
    // Borissov cuts
    cutnumberPhoton = "00200008400020002282020000";
    cutnumberEvent = "00000003";
  }
  TString periodNameV0Reader = "";
  Bool_t enableV0findingEffi = kFALSE;
  Bool_t fillHistos = kTRUE;
  Bool_t runLightOutput = kFALSE;
  if (suffix != "0" && suffix != "999") {
    runLightOutput = kTRUE;
    fillHistos = kFALSE;
  }

  //========= Add V0 Reader to  ANALYSIS manager if not yet existent =====
  TString V0ReaderName =
      Form("V0ReaderV1_%s_%s", cutnumberEvent.Data(), cutnumberPhoton.Data());
  AliConvEventCuts *fEventCuts = NULL;

  if (!(AliV0ReaderV1 *)mgr->GetTask(V0ReaderName.Data())) {
    AliV0ReaderV1 *fV0ReaderV1 = new AliV0ReaderV1(V0ReaderName.Data());
    if (periodNameV0Reader.CompareTo("") != 0)
      fV0ReaderV1->SetPeriodName(periodNameV0Reader);
    fV0ReaderV1->SetUseOwnXYZCalculation(kTRUE);
    fV0ReaderV1->SetCreateAODs(kFALSE);  // AOD Output
    fV0ReaderV1->SetUseAODConversionPhoton(kTRUE);
    fV0ReaderV1->SetProduceV0FindingEfficiency(enableV0findingEffi);

    if (!mgr) {
      Error("AddTask_V0ReaderV1", "No analysis manager found.");
      return NULL;
    }

    if (cutnumberEvent != "") {
      fEventCuts =
          new AliConvEventCuts(cutnumberEvent.Data(), cutnumberEvent.Data());
      fEventCuts->SetPreSelectionCutFlag(kTRUE);
      fEventCuts->SetV0ReaderName(V0ReaderName);
      fEventCuts->SetLightOutput(runLightOutput);
      fEventCuts->SetFillCutHistograms("", fillHistos);
      if (periodNameV0Reader.CompareTo("") != 0)
        fEventCuts->SetPeriodEnum(periodNameV0Reader);
      fV0ReaderV1->SetEventCuts(fEventCuts);
    }

    // Set AnalysisCut Number
    AliConversionPhotonCuts *fCuts = NULL;
    if (cutnumberPhoton != "") {
      fCuts = new AliConversionPhotonCuts(cutnumberPhoton.Data(),
                                          cutnumberPhoton.Data());
      fCuts->SetPreSelectionCutFlag(kTRUE);
      fCuts->SetIsHeavyIon(isHeavyIon);
      fCuts->SetV0ReaderName(V0ReaderName);
      fCuts->SetLightOutput(runLightOutput);
      fCuts->SetFillCutHistograms("", fillHistos);
      if (fCuts->InitializeCutsFromCutString(cutnumberPhoton.Data())) {
        fV0ReaderV1->SetConversionCuts(fCuts);
      }
    }
    fV0ReaderV1->Init();
    AliLog::SetGlobalLogLevel(AliLog::kFatal);

    // connect input V0Reader
    mgr->AddTask(fV0ReaderV1);
    mgr->ConnectInput(fV0ReaderV1, 0, cinput);
  }

  //========= Init subtasks and start analyis ============================
  // Track Cuts

  AliSigma0V0Cuts *v0Cuts = AliSigma0V0Cuts::LambdaCuts();
  v0Cuts->SetIsMC(isMC);
  v0Cuts->SetPID(3122);
  v0Cuts->SetPosPID(AliPID::kProton, 2212);
  v0Cuts->SetNegPID(AliPID::kPion, -211);
  if (suffix == "0") {
    // Run1 cuts
    v0Cuts->SetPileUpRejectionMode(AliSigma0V0Cuts::None);
    v0Cuts->SetV0OnFlyStatus(true);
    v0Cuts->SetDaughterDCAtoPV(0.06);
    v0Cuts->SetDaughterDCAMax(1.5);
    v0Cuts->SetDaughterDCAtoPV(0.06);
    v0Cuts->SetV0CosPAMin(0.993);
    v0Cuts->SetV0RadiusMax(220.f);
    v0Cuts->SetV0RadiusMin(0.5);
    v0Cuts->SetArmenterosCut(0.01, 0.17, 0.2, 0.9);
    v0Cuts->SetPIDnSigma(100.f);
    v0Cuts->SetV0PtMin(0.);
    v0Cuts->SetK0Rejection(0., 0.);
    v0Cuts->SetLambdaSelection(1.110, 1.120);
    v0Cuts->SetTPCclusterMin(0.f);
    v0Cuts->SetEtaMax(0.9);
  }

  // TEMPORARY FIX TO GET MORE YIELD IN MC
  v0Cuts->SetV0OnFlyStatus(false);

  AliSigma0V0Cuts *antiv0Cuts = AliSigma0V0Cuts::LambdaCuts();
  antiv0Cuts->SetIsMC(isMC);
  antiv0Cuts->SetPID(-3122);
  antiv0Cuts->SetPosPID(AliPID::kPion, 211);
  antiv0Cuts->SetNegPID(AliPID::kProton, -2212);
  if (suffix == "0") {
    // Run1 cuts
    antiv0Cuts->SetPileUpRejectionMode(AliSigma0V0Cuts::None);
    antiv0Cuts->SetV0OnFlyStatus(true);
    antiv0Cuts->SetDaughterDCAtoPV(0.06);
    antiv0Cuts->SetDaughterDCAMax(1.5);
    antiv0Cuts->SetDaughterDCAtoPV(0.06);
    antiv0Cuts->SetV0CosPAMin(0.993);
    antiv0Cuts->SetV0RadiusMax(220.f);
    antiv0Cuts->SetV0RadiusMin(0.5);
    antiv0Cuts->SetArmenterosCut(0.01, 0.17, 0.2, 0.9);
    antiv0Cuts->SetPIDnSigma(100.f);
    antiv0Cuts->SetV0PtMin(0.);
    antiv0Cuts->SetK0Rejection(0., 0.);
    antiv0Cuts->SetLambdaSelection(1.110, 1.120);
    antiv0Cuts->SetTPCclusterMin(0.f);
    antiv0Cuts->SetEtaMax(0.9);
  }
  // TEMPORARY FIX TO GET MORE YIELD IN MC
  antiv0Cuts->SetV0OnFlyStatus(false);

  if (suffix != "0") {
    v0Cuts->SetLightweight(true);
    antiv0Cuts->SetLightweight(true);
  }
  if (suffix == "999") {
    v0Cuts->SetCheckCutsMC(true);
    antiv0Cuts->SetCheckCutsMC(true);
    v0Cuts->SetLightweight(false);
    antiv0Cuts->SetLightweight(false);
  }

  AliSigma0PhotonMotherCuts *sigmaCuts =
      AliSigma0PhotonMotherCuts::DefaultCuts();
  sigmaCuts->SetIsMC(isMC);
  sigmaCuts->SetPDG(3212, 3122, 22);
  sigmaCuts->SetLambdaCuts(v0Cuts);
  sigmaCuts->SetV0ReaderName(V0ReaderName.Data());
  if (suffix == "0"){
  sigmaCuts->SetArmenterosCut(0,0.12,-1,-0.6);
  }
  if (suffix != "0" && suffix != "999") {
    sigmaCuts->SetLightweight(true);
    sigmaCuts->SetIsSpectrum(false);
  }

  AliSigma0PhotonMotherCuts *antiSigmaCuts =
      AliSigma0PhotonMotherCuts::DefaultCuts();
  antiSigmaCuts->SetIsMC(isMC);
  antiSigmaCuts->SetPDG(-3212, -3122, 22);
  antiSigmaCuts->SetLambdaCuts(antiv0Cuts);
  antiSigmaCuts->SetV0ReaderName(V0ReaderName.Data());
  if (suffix == "0"){
  antiSigmaCuts->SetArmenterosCut(0,0.12,-1,-0.6);
  }
  if (suffix != "0" && suffix != "999") {
    antiSigmaCuts->SetLightweight(true);
    antiSigmaCuts->SetIsSpectrum(false);
  }

  if (trigger == "kINT7") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
  } else if (trigger == "kHighMultV0") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kHighMultV0);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kHighMultV0);
  } else if (trigger == "AliVEvent::kMB") {
    sigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
    antiSigmaCuts->SetMultiplicityMode(AliVEvent::kINT7);
  }

  AliAnalysisTaskSigma0Run2 *task =
      new AliAnalysisTaskSigma0Run2("AnalysisTaskSigma0Run2");
  if (trigger == "kINT7") {
    task->SetTrigger(AliVEvent::kINT7);
    task->SetMultiplicityMode(AliVEvent::kINT7);
    task->SelectCollisionCandidates(AliVEvent::kINT7);
  } else if (trigger == "kHighMultV0") {
    if (isMC) {
{'fraction_non_alphanumeric': 0.15689119170984456, 'fraction_numerical': 0.055267702936096716, 'mean_word_length': 4.146107358691788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3506202', 'n_tokens_mistral': 5928, 'n_tokens_neox': 5489, 'n_words': 699}