@@ -574,8 +574,8 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
574574 // / process function for to call doSameEvent with Data
575575 // / \param col subscribe to the collision table (Data)
576576 // / \param parts subscribe to the femtoUniverseParticleTable
577- void processSameEvent (FilteredFDCollision& col,
578- FilteredFemtoFullParticles& parts)
577+ void processSameEvent (FilteredFDCollision const & col,
578+ FilteredFemtoFullParticles const & parts)
579579 {
580580 fillCollision (col, ConfIsCent);
581581
@@ -585,16 +585,26 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
585585 bool fillQA = true ;
586586 randgen = new TRandom2 (0 );
587587
588- if (cfgProcessPM) {
589- doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 1 , fillQA);
590- }
591-
592- if (cfgProcessPP) {
593- doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multV0M (), 2 , fillQA);
594- }
595-
596- if (cfgProcessMM) {
597- doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 3 , fillQA);
588+ if (ConfIsCent) {
589+ if (cfgProcessPM) {
590+ doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 1 , fillQA);
591+ }
592+ if (cfgProcessPP) {
593+ doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multV0M (), 2 , fillQA);
594+ }
595+ if (cfgProcessMM) {
596+ doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 3 , fillQA);
597+ }
598+ } else {
599+ if (cfgProcessPM) {
600+ doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multNtr (), 1 , fillQA);
601+ }
602+ if (cfgProcessPP) {
603+ doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multNtr (), 2 , fillQA);
604+ }
605+ if (cfgProcessMM) {
606+ doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multNtr (), 3 , fillQA);
607+ }
598608 }
599609 delete randgen;
600610 }
@@ -604,9 +614,9 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
604614 // / \param col subscribe to the collision table (Monte Carlo Reconstructed reconstructed)
605615 // / \param parts subscribe to joined table FemtoUniverseParticles and FemtoUniverseMCLables to access Monte Carlo truth
606616 // / \param FemtoUniverseMCParticles subscribe to the Monte Carlo truth table
607- void processSameEventMC (o2::aod::FdCollision& col,
608- soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>& parts,
609- o2::aod::FdMCParticles&)
617+ void processSameEventMC (o2::aod::FdCollision const & col,
618+ soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels> const & parts,
619+ o2::aod::FdMCParticles const &)
610620 {
611621 fillCollision (col, ConfIsCent);
612622
@@ -616,16 +626,26 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
616626 bool fillQA = true ;
617627 randgen = new TRandom2 (0 );
618628
619- if (cfgProcessPM) {
620- doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 1 , fillQA);
621- }
622-
623- if (cfgProcessPP) {
624- doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multV0M (), 2 , fillQA);
625- }
626-
627- if (cfgProcessMM) {
628- doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 3 , fillQA);
629+ if (ConfIsCent) {
630+ if (cfgProcessPM) {
631+ doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 1 , fillQA);
632+ }
633+ if (cfgProcessPP) {
634+ doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multV0M (), 2 , fillQA);
635+ }
636+ if (cfgProcessMM) {
637+ doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multV0M (), 3 , fillQA);
638+ }
639+ } else {
640+ if (cfgProcessPM) {
641+ doSameEvent<false >(thegroupPartsOne, thegroupPartsTwo, parts, col.magField (), col.multNtr (), 1 , fillQA);
642+ }
643+ if (cfgProcessPP) {
644+ doSameEvent<false >(thegroupPartsOne, thegroupPartsOne, parts, col.magField (), col.multNtr (), 2 , fillQA);
645+ }
646+ if (cfgProcessMM) {
647+ doSameEvent<false >(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField (), col.multNtr (), 3 , fillQA);
648+ }
629649 }
630650 delete randgen;
631651 }
@@ -736,8 +756,8 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
736756 // / process function for to call doMixedEvent with Data
737757 // / @param cols subscribe to the collisions table (Data)
738758 // / @param parts subscribe to the femtoUniverseParticleTable
739- void processMixedEventCent (FilteredFDCollisions& cols,
740- FilteredFemtoFullParticles& parts)
759+ void processMixedEventCent (FilteredFDCollisions const & cols,
760+ FilteredFemtoFullParticles const & parts)
741761 {
742762 randgen = new TRandom2 (0 );
743763
@@ -777,9 +797,9 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
777797 // / @param cols subscribe to the collisions table (Monte Carlo Reconstructed reconstructed)
778798 // / @param parts subscribe to joined table FemtoUniverseParticles and FemtoUniverseMCLables to access Monte Carlo truth
779799 // / @param FemtoUniverseMCParticles subscribe to the Monte Carlo truth table
780- void processMixedEventMCCent (o2::aod::FdCollisions& cols,
781- soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>& parts,
782- o2::aod::FdMCParticles&)
800+ void processMixedEventMCCent (o2::aod::FdCollisions const & cols,
801+ soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels> const & parts,
802+ o2::aod::FdMCParticles const &)
783803 {
784804 randgen = new TRandom2 (0 );
785805
0 commit comments