@@ -162,8 +162,11 @@ struct FemtoKinkQa {
162162
163163 void processSigma (FilteredFemtoCollision const & col, FemtoSigmas const & /* sigmas*/ , FemtoTracks const & tracks)
164164 {
165- colHistManager.fill <modes::Mode::kAnalysis_Qa >(col);
166165 auto sigmaSlice = sigmaPartition->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
166+ if (sigmaSlice.size () == 0 ) {
167+ return ;
168+ }
169+ colHistManager.fill <modes::Mode::kAnalysis_Qa >(col);
167170 for (auto const & sigma : sigmaSlice) {
168171 sigmaHistManager.fill <modes::Mode::kAnalysis_Qa >(sigma, tracks);
169172 }
@@ -172,8 +175,11 @@ struct FemtoKinkQa {
172175
173176 void processSigmaMc (FilteredFemtoCollisionWithLabel const & col, o2::aod::FMcCols const & mcCols, FemtoTracksWithLabel const & tracks, FemtoSigmasWithLabel const & /* sigmas*/ , o2::aod::FMcParticles const & mcParticles, o2::aod::FMcMothers const & mcMothers, o2::aod::FMcPartMoths const & mcPartonicMothers)
174177 {
175- colHistManager.fill <modes::Mode::kAnalysis_Qa_Mc >(col, mcCols);
176178 auto sigmaSlice = sigmaWithLabelPartition->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
179+ if (sigmaSlice.size () == 0 ) {
180+ return ;
181+ }
182+ colHistManager.fill <modes::Mode::kAnalysis_Qa_Mc >(col, mcCols);
177183 for (auto const & sigma : sigmaSlice) {
178184 if (!sigmaCleaner.isClean (sigma, mcParticles, mcMothers, mcPartonicMothers)) {
179185 continue ;
@@ -185,20 +191,24 @@ struct FemtoKinkQa {
185191
186192 void processSigmaPlus (FilteredFemtoCollision const & col, FemtoSigmaPlus const & /* sigmaplus*/ , FemtoTracks const & tracks)
187193 {
194+ auto sigmaPlusSlice = sigmaPlusPartition->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
195+ if (sigmaPlusSlice.size () == 0 ) {
196+ return ;
197+ }
188198 colHistManager.fill <modes::Mode::kAnalysis_Qa >(col);
189-
190- auto sigmaplusSlice = sigmaPlusPartition->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
191-
192- for (auto const & sp : sigmaplusSlice) {
199+ for (auto const & sp : sigmaPlusSlice) {
193200 sigmaPlusHistManager.fill <modes::Mode::kAnalysis_Qa >(sp, tracks);
194201 }
195202 }
196203 PROCESS_SWITCH (FemtoKinkQa, processSigmaPlus, " Process sigma plus" , false );
197204
198205 void processSigmaPlusMc (FilteredFemtoCollisionWithLabel const & col, o2::aod::FMcCols const & mcCols, FemtoTracksWithLabel const & tracks, FemtoSigmaPlusWithLabel const & /* sigmaPlus*/ , o2::aod::FMcParticles const & mcParticles, o2::aod::FMcMothers const & mcMothers, o2::aod::FMcPartMoths const & mcPartonicMothers)
199206 {
200- colHistManager.fill <modes::Mode::kAnalysis_Qa_Mc >(col, mcCols);
201207 auto sigmaPlusSlice = sigmaPlusWithLabelPartition->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
208+ if (sigmaPlusSlice.size () == 0 ) {
209+ return ;
210+ }
211+ colHistManager.fill <modes::Mode::kAnalysis_Qa_Mc >(col, mcCols);
202212 for (auto const & sigmaPlus : sigmaPlusSlice) {
203213 if (!sigmaPlusCleaner.isClean (sigmaPlus, mcParticles, mcMothers, mcPartonicMothers)) {
204214 continue ;
0 commit comments