message: Reject OOB pileup
diff: #include "AdditionalFunctions.h"
  #include "AliAnalysisManager.h"
  #include "AliAODHeader.h"
  +#include "AliAODMCHeader.h"
  #include "AliCentrality.h"
  #include "AliPWGFunc.h"
  #include "AliPDG.h"
  @@ -555,6 +556,10 @@ void AliAnalysisTaskNucleiYield::UserExec(Option_t *){
  TClonesArray *stack = nullptr;
  fRejectedParticles.clear();
  if (fIsMC || fPtShape) {
  + AliAODMCHeader *mcHeader = (AliAODMCHeader *)ev->GetList()->FindObject(AliAODMCHeader::StdBranchName());
  + if (!mcHeader){
  + ::Fatal("AliAnalysisTaskNucleiYield::UserExec","MC header branch not found.");
  + }
  // get branch "mcparticles"
  stack = (TClonesArray*)ev->GetList()->FindObject(AliAODMCParticle::StdBranchName());
  if (!stack)
  @@ -562,6 +567,9 @@ void AliAnalysisTaskNucleiYield::UserExec(Option_t *){
  /// Making the list of the deuterons we want to measure
  for (int iMC = 0; iMC < stack->GetEntriesFast(); ++iMC) {
  + if (AliAnalysisUtils::IsParticleFromOutOfBunchPileupCollision(iMC, mcHeader, stack)) {
  + continue;
  + }
  AliAODMCParticle *part = (AliAODMCParticle*)stack->UncheckedAt(iMC);
  const int pdg = std::abs(part->GetPdgCode());
  const int iC = part->Charge() > 0 ? 1 : 0;
  