message: AliFemtoEventCutEstimators - Remove snprintf from Report
diff: @@ -116,19 +116,17 @@ bool AliFemtoEventCutEstimators::Pass(const AliFemtoEvent* event){
  goodEvent ? fNEventsPassed++ : fNEventsFailed++ ;
  // cout << "AliFemtoEventCutEstimators:: return : " << goodEvent << endl;
  // (fAcceptBadVertex || (event->PrimVertCov()[4] > -1000.0)) &&
  - return (goodEvent);
  + return goodEvent;
  }
  +
  //------------------------------
  -AliFemtoString AliFemtoEventCutEstimators::Report(){
  +AliFemtoString AliFemtoEventCutEstimators::Report()
  +{
  // Prepare report
  - string stemp;
  - char ctemp[100];
  - snprintf(ctemp , 100, "\nMultiplicity:\t %d-%d",fEventMultEst2[0],fEventMultEst2[1]);
  - stemp = ctemp;
  - snprintf(ctemp , 100, "\nVertex Z-position:\t %E-%E",fVertZPos[0],fVertZPos[1]);
  - stemp += ctemp;
  - snprintf(ctemp , 100, "\nNumber of events which passed:\t%ld Number which failed:\t%ld",fNEventsPassed,fNEventsFailed);
  - stemp += ctemp;
  - AliFemtoString returnThis = stemp;
  - return returnThis;
  + AliFemtoString report("AliFemtoEventCutEstimators Report:");
  + report += Form("\nMultiplicity:\t %d-%d",fEventMultEst2[0],fEventMultEst2[1]);
  + report += Form("\nVertex Z-position:\t %E-%E",fVertZPos[0],fVertZPos[1]);
  + report += Form("\nNumber of events which passed:\t%ld Number which failed:\t%ld",fNEventsPassed,fNEventsFailed);
  +
  + return report;
  }
  