message: AliFemtoEventReaderESDChainKineKK - Replace raw pointer with std::vector
diff: #include "AliPID.h"
  +#include <vector>
  +
  #ifdef __ROOT__
  /// \cond CLASSIMP
  ClassImp(AliFemtoEventReaderESDChainKineKK);
  @@ -317,10 +319,13 @@ AliFemtoEvent* AliFemtoEventReaderESDChainKineKK::ReturnHbtEvent()
  // hbtEvent->SetMultiplicityEstimateITSPure(tITSPure);
  hbtEvent->SetMultiplicityEstimateITSPure(fEvent->GetMultiplicity()->GetNumberOfITSClusters(1));
  - Int_t *motherids;
  - if (fStack) {
  - motherids = new Int_t[fStack->GetNtrack()];
  - for (int ip=0; ip<fStack->GetNtrack(); ip++) motherids[ip] = 0;
  + if (!fStack) {
  + printf("No Stack ???\n");
  + delete hbtEvent;
  + return nullptr;
  + }
  +
  + std::vector<Int_t> motherids(fStack->GetNtrack(), 0);
  // Read in mother ids
  TParticle *motherpart;
  @@ -342,23 +347,15 @@ AliFemtoEvent* AliFemtoEventReaderESDChainKineKK::ReturnHbtEvent()
  // }
  }
  - }
  - else {
  - printf ("No Stack ???\n");
  - delete hbtEvent;
  - return 0;
  - }
  for (int i=0;i<nofTracks;i++)
  {
  // cout << "Reading track " << i << endl;
  bool tGoodMomentum=true; //flaga to chcek if we can read momentum of this track
  -
  const AliESDtrack *esdtrack=fEvent->GetTrack(i);//getting next track
  // const AliESDfriendTrack *tESDfriendTrack = esdtrack->GetFriendTrack();
  -
  if ((esdtrack->GetStatus() & AliESDtrack::kTPCrefit) &&
  (esdtrack->GetStatus() & AliESDtrack::kITSrefit)) {
  if (esdtrack->GetTPCNcls() > 70)
  @@ -853,8 +850,6 @@ AliFemtoEvent* AliFemtoEventReaderESDChainKineKK::ReturnHbtEvent()
  }
  - delete [] motherids;
  -
  hbtEvent->SetNumberOfTracks(realnofTracks);//setting number of track which we read in event
  AliCentrality *cent = fEvent->GetCentrality();
  