@@ -428,7 +428,8 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
428428 }
429429
430430 // *) Event cuts:
431- if (!EventCuts<rs>(collision) || centr > 80 .) { // Main call for event cuts
431+ float centrcut = 80 .;
432+ if (!EventCuts<rs>(collision) || centr > centrcut) { // Main call for event cuts
432433 return ;
433434 }
434435 event.fEventHistograms [eVertexZ][eRec][1 ]->Fill (zrec);
@@ -437,14 +438,13 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
437438 }
438439
439440 // before loop over particles
440- float eta = 0 ;
441441 float phi = 0 ;
442442 for (int ih = 0 ; ih < maxHarmonic; ih++) {
443443 cor.Qvector [ih] = TComplex (0 ., 0 .);
444444 }
445445
446446 // Main loop over particles:
447- for (auto track : tracks) {
447+ for (const auto & track : tracks) {
448448
449449 // Fill reconstructed ...:
450450 float ptrec = 0 ., ptsim = 0 .;
@@ -453,7 +453,6 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
453453 pc.fHistPt [eRec]->Fill (track.pt ());
454454 event.fEventHistograms [ePt][eRec][0 ]->Fill (track.pt ());
455455 ptrec = track.pt ();
456- eta = track.eta ();
457456 phi = track.phi ();
458457 pc.fHistPhi [eRec]->Fill (track.phi ());
459458 pc.fHistCharge [eRec]->Fill (track.sign ());
@@ -473,7 +472,6 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
473472 pc.fHistPt [eSim]->Fill (mcparticle.pt ());
474473 event.fEventHistograms [ePt][eSim][0 ]->Fill (mcparticle.pt ());
475474 ptsim = mcparticle.pt ();
476- eta = mcparticle.eta ();
477475 phi = mcparticle.phi ();
478476 pc.fHistPhi [eSim]->Fill (mcparticle.phi ());
479477 // pc.fHistCharge[eSim]->Fill(mcparticle.sign());
0 commit comments