<commit_before>#include "AliNuclexEventCuts.h"

#include <TH1D.h>
#include <TH1I.h>
#include <TH2D.h>
#include <TList.h>

#include <AliAnalysisManager.h>
#include <AliCentrality.h>
#include <AliInputEventHandler.h>
#include <AliMultSelection.h>
#include <AliVEventHandler.h>
#include <AliVMultiplicity.h>

const string AliNuclexEventCuts::fgkLabels[2] = {"raw","selected"};

ClassImp(AliNuclexEventCuts);

/// Standard constructor with null selection
///
AliNuclexEventCuts::AliNuclexEventCuts() : TNamed("AliNuclexEventCuts","AliNuclexEventCuts"),
  fRequireTrackVertex{false},
  fMinVtz{-1000.f},
  fMaxVtz{1000.f},
  fMaxDeltaSpdTrackAbsolute{1000.f},
  fMaxDeltaSpdTrackNsigmaSPD{1000.f},
  fMaxDeltaSpdTrackNsigmaTrack{20000.f},
  //fMaxDispersionSPDvertex{0.03f},
  fMaxResolutionSPDvertex{1000.f},
  fRejectDAQincomplete{false},
  fSPDpileupMinContributors{1000},
  fSPDpileupMinZdist{-1.f},
  fSPDpileupNsigmaZdist{-1.f},
  fSPDpileupNsigmaDiamXY{-1.f},
  fSPDpileupNsigmaDiamZ{-1.f},
  fCentralityFramework{0},
  fMinCentrality{-1000.f},
  fMaxCentrality{1000.f},
  fMaxDeltaEstimators{1000.f},
  fRequireExactTriggerMask{false},
  fTriggerMask{AliVEvent::kAny},
  fCentEstimators{"V0M","CL0"},
  fCentPercentiles{-1.f},
  fPrimaryVertex{nullptr}
{
}

void AliNuclexEventCuts::SetupLHC15o() {
  fRequireTrackVertex = true;
  fMinVtz = -10.f;
  fMaxVtz = 10.f;
  fMaxDeltaSpdTrackAbsolute = 0.2f;
  fMaxDeltaSpdTrackNsigmaSPD = 10.f;
  fMaxDeltaSpdTrackNsigmaTrack = 20.f;
  //fMaxDispersionSPDvertex = 0.03f;
  fMaxResolutionSPDvertex = 0.25f;

  fRejectDAQincomplete = true;

  fSPDpileupMinContributors = 5;
  fSPDpileupMinZdist = 0.8;
  fSPDpileupNsigmaZdist = 3.;
  fSPDpileupNsigmaDiamXY = 2.;
  fSPDpileupNsigmaDiamZ = 5.;

  fCentralityFramework = 2;
  fCentEstimators[0] = "V0M";
  fCentEstimators[1] = "CL0";
  fMinCentrality = 0.f;
  fMaxCentrality = 90.f;
  fMaxDeltaEstimators = 7.5f;

  fTriggerMask = AliVEvent::kINT7;

}

bool AliNuclexEventCuts::AcceptEvent(AliVEvent *ev, TList *qaList) {
  TH1I* fCutStats = nullptr;
  TH1D* fVtz[2] = {nullptr};
  TH1D* fDeltaTrackSPDvtz[2] = {nullptr};
  TH1D* fCentrality[2] = {nullptr};
  TH2D* fEstimCorrelation[2] = {nullptr};
  TH2D* fMultCentCorrelation[2] = {nullptr};
  if (qaList) {
    fCutStats = (TH1I*)qaList->FindObject("fCutStats");
    for (int iS = 0; iS < 2; ++iS) {
      fVtz[iS] = (TH1D*)qaList->FindObject(Form("Vtz_%s",fgkLabels[iS].data()));
      fDeltaTrackSPDvtz[iS] = (TH1D*)qaList->FindObject(Form("DeltaVtz_%s",fgkLabels[iS].data()));
      fCentrality[iS] = (TH1D*)qaList->FindObject(Form("Centrality_%s",fgkLabels[iS].data()));
      fEstimCorrelation[iS] = (TH2D*)qaList->FindObject(Form("EstimCorrelation_%s",fgkLabels[iS].data()));<commit_msg>V0M-CL0 removed from the standard 2015 event cuts<commit_after>#include "AliNuclexEventCuts.h"

#include <TH1D.h>
#include <TH1I.h>
#include <TH2D.h>
#include <TList.h>

#include <AliAnalysisManager.h>
#include <AliCentrality.h>
#include <AliInputEventHandler.h>
#include <AliMultSelection.h>
#include <AliVEventHandler.h>
#include <AliVMultiplicity.h>

const string AliNuclexEventCuts::fgkLabels[2] = {"raw","selected"};

ClassImp(AliNuclexEventCuts);

/// Standard constructor with null selection
///
AliNuclexEventCuts::AliNuclexEventCuts() : TNamed("AliNuclexEventCuts","AliNuclexEventCuts"),
  fRequireTrackVertex{false},
  fMinVtz{-1000.f},
  fMaxVtz{1000.f},
  fMaxDeltaSpdTrackAbsolute{1000.f},
  fMaxDeltaSpdTrackNsigmaSPD{1000.f},
  fMaxDeltaSpdTrackNsigmaTrack{20000.f},
  //fMaxDispersionSPDvertex{0.03f},
  fMaxResolutionSPDvertex{1000.f},
  fRejectDAQincomplete{false},
  fSPDpileupMinContributors{1000},
  fSPDpileupMinZdist{-1.f},
  fSPDpileupNsigmaZdist{-1.f},
  fSPDpileupNsigmaDiamXY{-1.f},
  fSPDpileupNsigmaDiamZ{-1.f},
  fCentralityFramework{0},
  fMinCentrality{-1000.f},
  fMaxCentrality{1000.f},
  fMaxDeltaEstimators{1000.f},
  fRequireExactTriggerMask{false},
  fTriggerMask{AliVEvent::kAny},
  fCentEstimators{"V0M","CL0"},
  fCentPercentiles{-1.f},
  fPrimaryVertex{nullptr}
{
}

void AliNuclexEventCuts::SetupLHC15o() {
  fRequireTrackVertex = true;
  fMinVtz = -10.f;
  fMaxVtz = 10.f;
  fMaxDeltaSpdTrackAbsolute = 0.2f;
  fMaxDeltaSpdTrackNsigmaSPD = 10.f;
  fMaxDeltaSpdTrackNsigmaTrack = 20.f;
  //fMaxDispersionSPDvertex = 0.03f;
  fMaxResolutionSPDvertex = 0.25f;

  fRejectDAQincomplete = true;

  fSPDpileupMinContributors = 5;
  fSPDpileupMinZdist = 0.8;
  fSPDpileupNsigmaZdist = 3.;
  fSPDpileupNsigmaDiamXY = 2.;
  fSPDpileupNsigmaDiamZ = 5.;

  fCentralityFramework = 2;
  fCentEstimators[0] = "V0M";
  fCentEstimators[1] = "CL0";
  fMinCentrality = 0.f;
  fMaxCentrality = 90.f;
  //fMaxDeltaEstimators = 7.5f;

  fTriggerMask = AliVEvent::kINT7;

}

bool AliNuclexEventCuts::AcceptEvent(AliVEvent *ev, TList *qaList) {
  TH1I* fCutStats = nullptr;
  TH1D* fVtz[2] = {nullptr};
  TH1D* fDeltaTrackSPDvtz[2] = {nullptr};
  TH1D* fCentrality[2] = {nullptr};
  TH2D* fEstimCorrelation[2] = {nullptr};
  TH2D* fMultCentCorrelation[2] = {nullptr};
  if (qaList) {
    fCutStats = (TH1I*)qaList->FindObject("fCutStats");
    for (int iS = 0; iS < 2; ++iS) {
      fVtz[iS] = (TH1D*)qaList->FindObject(Form("Vtz_%s",fgkLabels[iS].data()));
      fDeltaTrackSPDvtz[iS] = (TH1D*)qaList->FindObject(Form("DeltaVtz_%s",fgkLabels[iS].data()));
      fCentrality[iS] = (TH1D*)qaList->FindObject(Form("Centrality_%s",fgkLabels[iS].data()));
      fEstimCorrelation[iS] = (TH2D*)qaList->FindObject(Form("EstimCorrelation_%s",fgkLabels[iS].data()));
{'fraction_non_alphanumeric': 0.15096049293222183, 'fraction_numerical': 0.04059441826748822, 'mean_word_length': 5.8051787916152895, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 33, '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': '2976028', 'n_tokens_mistral': 2498, 'n_tokens_neox': 2347, 'n_words': 292}