<commit_before>AliAnalysisTaskSE *AddTaskFemtoDreamPhi(bool isMC = false,
                                        TString CentEst = "kInt7",
                                        const char *cutVariation = "0") {

  TString suffix = TString::Format("%s", cutVariation);

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();

  if (!mgr) {
    printf("No analysis manager to connect to!\n");
    return nullptr;
  }
  if (!mgr->GetInputEventHandler()) {
    printf("This task requires an input event handler!\n");
    return nullptr;
  }

  AliFemtoDreamEventCuts *evtCuts = AliFemtoDreamEventCuts::StandardCutsRun2();
  evtCuts->CleanUpMult(false, false, false, true);

  if (suffix == "1") {
  evtCuts->SetSphericityCuts(0,1);
  }
  if (suffix == "2") {
  evtCuts->SetSphericityCuts(0,0.3);
  }
  if (suffix == "3") {
  evtCuts->SetSphericityCuts(0.3,0.7);
  }
  if (suffix == "4") {
  evtCuts->SetSphericityCuts(0.7,1);
  }

  AliFemtoDreamTrackCuts *TrackCuts =
      AliFemtoDreamTrackCuts::PrimProtonCuts(isMC, true, false, false);
  TrackCuts->SetCutCharge(1);

  AliFemtoDreamTrackCuts *AntiTrackCuts =
      AliFemtoDreamTrackCuts::PrimProtonCuts(isMC, true, false, false);
  AntiTrackCuts->SetCutCharge(-1);

//  if (suffix != "0") {
//    TrackCuts->SetMinimalBooking(true);
//    AntiTrackCuts->SetMinimalBooking(true);
//  }

  AliFemtoDreamTrackCuts *TrackPosKaonCuts = AliFemtoDreamTrackCuts::PrimKaonCuts(isMC);
  TrackPosKaonCuts->SetCutCharge(1);

  AliFemtoDreamTrackCuts *TrackNegKaonCuts = AliFemtoDreamTrackCuts::PrimKaonCuts(isMC);
  TrackNegKaonCuts->SetCutCharge(-1);

//  if (suffix != "0") {
//    TrackPosKaonCuts->SetMinimalBooking(true);
//    TrackNegKaonCuts->SetMinimalBooking(true);
//  }

  AliFemtoDreamv0Cuts *TrackCutsPhi = new AliFemtoDreamv0Cuts();
  TrackCutsPhi->SetIsMonteCarlo(isMC);
  TrackCutsPhi->SetAxisInvMassPlots(400, 0.9, 1.2);
  TrackCutsPhi->SetCutInvMass(0.008);
  AliFemtoDreamTrackCuts *dummyCutsPos = new AliFemtoDreamTrackCuts();
  dummyCutsPos->SetIsMonteCarlo(isMC);
  AliFemtoDreamTrackCuts *dummyCutsNeg = new AliFemtoDreamTrackCuts();
  dummyCutsNeg->SetIsMonteCarlo(isMC);
  TrackCutsPhi->SetPosDaugterTrackCuts(dummyCutsPos);
  TrackCutsPhi->SetNegDaugterTrackCuts(dummyCutsNeg);
  TrackCutsPhi->SetPDGCodePosDaug(321);
  TrackCutsPhi->SetPDGCodeNegDaug(321);
  TrackCutsPhi->SetPDGCodev0(333);

//  if (suffix != "0") {
//    TrackCutsPhi->SetMinimalBooking(true);
//  }

<commit_msg>New cutvariation inv mass for background correlation<commit_after>AliAnalysisTaskSE *AddTaskFemtoDreamPhi(bool isMC = false,
                                        TString CentEst = "kInt7",
                                        const char *cutVariation = "0") {

  TString suffix = TString::Format("%s", cutVariation);

  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();

  if (!mgr) {
    printf("No analysis manager to connect to!\n");
    return nullptr;
  }
  if (!mgr->GetInputEventHandler()) {
    printf("This task requires an input event handler!\n");
    return nullptr;
  }

  AliFemtoDreamEventCuts *evtCuts = AliFemtoDreamEventCuts::StandardCutsRun2();
  evtCuts->CleanUpMult(false, false, false, true);
  evtCuts->SetSphericityCuts(0.7,1);

  AliFemtoDreamTrackCuts *TrackCuts =
      AliFemtoDreamTrackCuts::PrimProtonCuts(isMC, true, false, false);
  TrackCuts->SetCutCharge(1);

  AliFemtoDreamTrackCuts *AntiTrackCuts =
      AliFemtoDreamTrackCuts::PrimProtonCuts(isMC, true, false, false);
  AntiTrackCuts->SetCutCharge(-1);

//  if (suffix != "0") {
//    TrackCuts->SetMinimalBooking(true);
//    AntiTrackCuts->SetMinimalBooking(true);
//  }

  AliFemtoDreamTrackCuts *TrackPosKaonCuts = AliFemtoDreamTrackCuts::PrimKaonCuts(isMC);
  TrackPosKaonCuts->SetCutCharge(1);

  AliFemtoDreamTrackCuts *TrackNegKaonCuts = AliFemtoDreamTrackCuts::PrimKaonCuts(isMC);
  TrackNegKaonCuts->SetCutCharge(-1);

//  if (suffix != "0") {
//    TrackPosKaonCuts->SetMinimalBooking(true);
//    TrackNegKaonCuts->SetMinimalBooking(true);
//  }

  AliFemtoDreamv0Cuts *TrackCutsPhi = new AliFemtoDreamv0Cuts();
  TrackCutsPhi->SetIsMonteCarlo(isMC);
  TrackCutsPhi->SetAxisInvMassPlots(400, 0.9, 1.2);
  TrackCutsPhi->SetCutInvMass(0.008);
  AliFemtoDreamTrackCuts *dummyCutsPos = new AliFemtoDreamTrackCuts();
  dummyCutsPos->SetIsMonteCarlo(isMC);
  AliFemtoDreamTrackCuts *dummyCutsNeg = new AliFemtoDreamTrackCuts();
  dummyCutsNeg->SetIsMonteCarlo(isMC);
  TrackCutsPhi->SetPosDaugterTrackCuts(dummyCutsPos);
  TrackCutsPhi->SetNegDaugterTrackCuts(dummyCutsNeg);
  TrackCutsPhi->SetPDGCodePosDaug(321);
  TrackCutsPhi->SetPDGCodeNegDaug(321);
  TrackCutsPhi->SetPDGCodev0(333);

  //cutwindow 50 MeV
  if (suffix == "1") {
    TrackCutsPhi->SetCutWindow(1.08,1.13);
  }
  if (suffix == "2") {
    TrackCutsPhi->SetCutWindow(1.13,1.18);
  }
  //cutwindow 100MeV
  if (suffix == "3") {
    TrackCutsPhi->SetCutWindow(1.08,1.18);
  }

//  if (suffix != "0") {
//    TrackCutsPhi->SetMinimalBooking(true);
//  }


{'fraction_non_alphanumeric': 0.1339321357285429, 'fraction_numerical': 0.02215568862275449, 'mean_word_length': 4.393972012917115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 53, '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': '519979', 'n_tokens_mistral': 1992, 'n_tokens_neox': 1919, 'n_words': 252}