message: Feat: update GetPointers method
  Now ReTerminate works with symmetric cumulants
diff: * File : AliAnalysisTaskAR.cxx
  * Author : Anton Riedel <anton.riedel@tum.de>
  * Date : 07.05.2021
  - * Last Modified Date: 27.10.2021
  + * Last Modified Date: 28.10.2021
  * Last Modified By : Anton Riedel <anton.riedel@tum.de>
  */
  #include <TRandom3.h>
  #include <TSystem.h>
  #include <algorithm>
  +#include <boost/algorithm/string.hpp>
  #include <cstdlib>
  #include <iostream>
  #include <numeric>
  @@ -4150,7 +4151,7 @@ void AliAnalysisTaskAR::GetPointersForFinalResults() {
  }
  }
  - // get pointers for fFinalResultProfilesList
  + // get pointers for fFinalResultCorrelatorsList
  fFinalResultCorrelatorsList = dynamic_cast<TList *>(
  fFinalResultsList->FindObject(fFinalResultCorrelatorsListName));
  if (!fFinalResultCorrelatorsList) {
  @@ -4158,4 +4159,49 @@ void AliAnalysisTaskAR::GetPointersForFinalResults() {
  << std::endl;
  Fatal("GetPointersForFinalResults", "Invalid Pointer");
  }
  +
  + // get pointers for fFinalResultCorrelatorsList
  + fFinalResultSymmetricCumulantsList = dynamic_cast<TList *>(
  + fFinalResultsList->FindObject(fFinalResultSymmetricCumulantsListName));
  + if (!fFinalResultSymmetricCumulantsList) {
  + std::cout << __LINE__ << ": Did not get "
  + << fFinalResultSymmetricCumulantsListName << std::endl;
  + Fatal("GetPointersForFinalResults", "Invalid Pointer");
  + }
  +
  + // initialize vectors
  + std::string name;
  + std::vector<Int_t> sc;
  + fSymmetricCumulants.clear();
  + fCorrelators.clear();
  + fMapSCtoCor.clear();
  + // initalize vectors for computation of symmetric cumulants
  + for (auto list : *fFinalResultSymmetricCumulantsList) {
  + sc.clear();
  + name = std::string(list->GetName());
  + boost::erase_all(name, "SC(");
  + boost::erase_all(name, ")");
  + boost::erase_all(name, ",");
  + for (char c : name) {
  + sc.push_back(std::atoi(&c));
  + }
  + fSymmetricCumulants.push_back(sc);
  + }
  +
  + Int_t Index = 0;
  + std::vector<std::vector<Int_t>> correlators;
  + for (std::size_t j = 0; j < fSymmetricCumulants.size(); j++) {
  + correlators = MapSCToCor(fSymmetricCumulants.at(j));
  + fMapSCtoCor.insert({fSymmetricCumulants.at(j), correlators});
  + for (auto cor : correlators) {
  + if (std::find(fCorrelators.begin(), fCorrelators.end(), cor) !=
  + fCorrelators.end()) {
  + continue;
  + } else {
  + fCorrelators.push_back(cor);
  + fMapCorToIndex.insert({cor, Index});
  + Index++;
  + }
  + }
  + }
  }
  