@@ -250,9 +250,9 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
250250 string pathstr = filePath;
251251 const string pathalien = " /alice/cern.ch/" ;
252252 const string pathccdb = " /alice-ccdb.cern.ch/" ;
253- if (pathstr.find (pathalien) == 0 ) {
253+ if (pathstr.starts_with (pathalien)) {
254254 bFileIsInAliEn = true ;
255- } else if (pathstr.find (pathccdb) == 0 ) {
255+ } else if (pathstr.starts_with (pathccdb)) {
256256 bFileIsInCCDB = true ;
257257 }
258258 LOGF (info, " bFileIsInCCDB= %d" , bFileIsInCCDB);
@@ -408,7 +408,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
408408 return four;
409409 } // TComplex Four(Int_t n1, Int_t n2, Int_t n3, Int_t n4)
410410
411- static double pdf (double * x, double * par)
411+ static double pdf (const double * x, const double * par)
412412 {
413413 double y = 1 ;
414414 int harm = 6 ;
@@ -430,7 +430,16 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
430430 auto it = phih.histMap .find (currentRun);
431431 auto histweight = wh.weightsmap .find (currentRun);
432432 float centr = 0 , M = 0 ., msel = 0 .;
433- TF1 * f = new TF1 (" f" , pdf, 0 , TMath::TwoPi (), 1 );
433+ // TF1* f = new TF1("f", pdf, 0, TMath::TwoPi(), 1);
434+ TF1 * f = new TF1 (" f" ,
435+ " 1 +"
436+ " 2 * (0.05) * cos(1 * (x - [0])) +"
437+ " 2 * (0.06) * cos(2 * (x - [0])) +"
438+ " 2 * (0.07) * cos(3 * (x - [0])) +"
439+ " 2 * (0.08) * cos(4 * (x - [0])) +"
440+ " 2 * (0.09) * cos(5 * (x - [0])) +"
441+ " 2 * (0.10) * cos(6 * (x - [0]))" ,
442+ 0 , TMath::TwoPi ());
434443 f->SetParameters (0 .);
435444
436445 if constexpr (rs == eRec || rs == eRecAndSim) {
0 commit comments