message: AliFemtoSimpleAnalysis - Avoid string comparison in pair loop
diff: @@ -585,8 +585,12 @@ void AliFemtoSimpleAnalysis::MakePairs(const char* typeIn,
  /// AddMixedPair() methods. If no second particle collection is
  /// specfied, make pairs within first particle collection.
  - const string type = typeIn;
  + bool these_are_real_pairs = 0 == strcmp(typeIn, "real");
  + if (!these_are_real_pairs && strcmp(typeIn, "mixed")) {
  + std::cerr << "Problem with pair type, type = " << typeIn << "\n";
  + return;
  + }
  // int swpart = ((long int) partCollection1) % 2;
  // Used to swap particle 1 & 2 in identical-particle analysis
  @@ -662,13 +666,11 @@ void AliFemtoSimpleAnalysis::MakePairs(const char* typeIn,
  // If pair passes cut, loop over CF's and add pair to real/mixed
  if (tmpPassPair) {
  for (auto &tCorrFctn : *fCorrFctnCollection) {
  - if (type == "real")
  + if (these_are_real_pairs)
  tCorrFctn->AddRealPair(tPair);
  - else if(type == "mixed")
  - tCorrFctn->AddMixedPair(tPair);
  else
  - cout << "Problem with pair type, type = " << type << endl;
  - } // loop over corellatoin functions
  + tCorrFctn->AddMixedPair(tPair);
  + } // loop over correlation functions
  }
  } // loop over second particle
  