@@ -412,11 +412,14 @@ struct PhiStrangenessCorrelation {
412412 if (analysisMode == kMassvsMass ) {
413413 processCorrelations (
414414 [&](const auto & k0s, float w) {
415- histos.fill (HIST (" phiK0S/h6PhiK0SData" ), multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), phiCand.m (), k0s.m (), w);
415+ auto histID = HIST (" phiK0S/h6PhiK0SData" );
416+ histos.fill (histID, multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), phiCand.m (), k0s.m (), w);
416417 },
417418 [&](const auto & pion, float w) {
418- histos.fill (HIST (" phiPi/h6PhiPiTPCData" ), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTPC (), w);
419- histos.fill (HIST (" phiPi/h6PhiPiTOFData" ), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTOF (), w);
419+ auto histID1 = HIST (" phiPi/h6PhiPiTPCData" );
420+ histos.fill (histID1, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTPC (), w);
421+ auto histID2 = HIST (" phiPi/h6PhiPiTOFData" );
422+ histos.fill (histID2, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTOF (), w);
420423 });
421424 } else if (analysisMode == kDeltaYvsDeltaPhi ) {
422425 static_for<0 , phiMassRegionLabels.size () - 1 >([&](auto i_idx) {
@@ -428,10 +431,12 @@ struct PhiStrangenessCorrelation {
428431
429432 processCorrelations (
430433 [&](const auto & k0s, float w) {
431- histos.fill (HIST (" phiK0S/h5PhiK0SData" ) + HIST (phiMassRegionLabels[i]), multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), getDeltaPhi (phiCand.phi (), k0s.phi ()), w);
434+ auto histID = HIST (" phiK0S/h5PhiK0SData" ) + HIST (phiMassRegionLabels[i]);
435+ histos.fill (histID, multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), getDeltaPhi (phiCand.phi (), k0s.phi ()), w);
432436 },
433437 [&](const auto & pion, float w) {
434- histos.fill (HIST (" phiPi/h5PhiPiData" ) + HIST (phiMassRegionLabels[i]), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), getDeltaPhi (phiCand.phi (), pion.phi ()), w);
438+ auto histID = HIST (" phiPi/h5PhiPiData" ) + HIST (phiMassRegionLabels[i]);
439+ histos.fill (histID, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), getDeltaPhi (phiCand.phi (), pion.phi ()), w);
435440 });
436441 });
437442 }
@@ -522,7 +527,8 @@ struct PhiStrangenessCorrelation {
522527 if (analysisMode == kMassvsMass ) {
523528 processCorrelations (
524529 [&](const auto & k0s, float w) {
525- histos.fill (HIST (" phiK0S/h6PhiK0SDataMe" ), multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), phiCand.m (), k0s.m (), w);
530+ auto histID = HIST (" phiK0S/h6PhiK0SDataME" );
531+ histos.fill (histID, multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), phiCand.m (), k0s.m (), w);
526532 });
527533 } else if (analysisMode == kDeltaYvsDeltaPhi ) {
528534 static_for<0 , phiMassRegionLabels.size () - 1 >([&](auto i_idx) {
@@ -534,7 +540,8 @@ struct PhiStrangenessCorrelation {
534540
535541 processCorrelations (
536542 [&](const auto & k0s, float w) {
537- histos.fill (HIST (" phiK0S/h5PhiK0SDataME" ) + HIST (phiMassRegionLabels[i]), multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), getDeltaPhi (phiCand.phi (), k0s.phi ()), w);
543+ auto histID = HIST (" phiK0S/h5PhiK0SDataME" ) + HIST (phiMassRegionLabels[i]);
544+ histos.fill (histID, multiplicity, phiCand.pt (), k0s.pt (), phiCand.y () - k0s.y (), getDeltaPhi (phiCand.phi (), k0s.phi ()), w);
538545 });
539546 });
540547 }
@@ -611,8 +618,10 @@ struct PhiStrangenessCorrelation {
611618 if (analysisMode == kMassvsMass ) {
612619 processCorrelations (
613620 [&](const auto & pion, float w) {
614- histos.fill (HIST (" phiPi/h6PhiPiTPCDataME" ), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTPC (), w);
615- histos.fill (HIST (" phiPi/h6PhiPiTOFDataME" ), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTOF (), w);
621+ auto histID1 = HIST (" phiPi/h6PhiPiTPCDataME" );
622+ histos.fill (histID1, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTPC (), w);
623+ auto histID2 = HIST (" phiPi/h6PhiPiTOFDataME" );
624+ histos.fill (histID2, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), phiCand.m (), pion.nSigmaTOF (), w);
616625 });
617626 } else if (analysisMode == kDeltaYvsDeltaPhi ) {
618627 static_for<0 , phiMassRegionLabels.size () - 1 >([&](auto i_idx) {
@@ -624,7 +633,8 @@ struct PhiStrangenessCorrelation {
624633
625634 processCorrelations (
626635 [&](const auto & pion, float w) {
627- histos.fill (HIST (" phiPi/h5PhiPiDataME" ) + HIST (phiMassRegionLabels[i]), multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), getDeltaPhi (phiCand.phi (), pion.phi ()), w);
636+ auto histID = HIST (" phiPi/h5PhiPiDataME" ) + HIST (phiMassRegionLabels[i]);
637+ histos.fill (histID, multiplicity, phiCand.pt (), pion.pt (), phiCand.y () - pion.y (), getDeltaPhi (phiCand.phi (), pion.phi ()), w);
628638 });
629639 });
630640 }
0 commit comments