@@ -4271,7 +4271,7 @@ struct AnalysisDileptonTrack {
42714271 auto groupedMCTracks = mcTracks.sliceBy (perReducedMcEvent, event.reducedMCeventId ());
42724272 groupedMCTracks.bindInternalIndicesTo (&mcTracks);
42734273 for (auto & t1 : groupedMCTracks) {
4274- auto t1_raw = groupedMCTracks .rawIteratorAt (t1.globalIndex ());
4274+ auto t1_raw = mcTracks .rawIteratorAt (t1.globalIndex ());
42754275 // apply kinematic cuts for signal
42764276 if ((t1_raw.pt () < fConfigDileptonLowpTCut || t1_raw.pt () > fConfigDileptonHighpTCut ))
42774277 continue ;
@@ -4304,6 +4304,10 @@ struct AnalysisDileptonTrack {
43044304 void processMCGenEnergyCorrelators (soa::Filtered<MyEventsVtxCovSelected> const & events,
43054305 ReducedMCEvents const & /* mcEvents*/ , ReducedMCTracks const & mcTracks)
43064306 {
4307+ if (events.size () == 0 ) {
4308+ LOG (warning) << " No events in this TF, going to the next one ..." ;
4309+ return ;
4310+ }
43074311 for (auto & event : events) {
43084312 if (!event.isEventSelected_bit (0 )) {
43094313 continue ;
@@ -4318,6 +4322,10 @@ struct AnalysisDileptonTrack {
43184322 void processMCGenEnergyCorrelatorsPion (soa::Filtered<MyEventsVtxCovSelected> const & events,
43194323 ReducedMCEvents const & /* mcEvents*/ , ReducedMCTracks const & mcTracks)
43204324 {
4325+ if (events.size () == 0 ) {
4326+ LOG (warning) << " No events in this TF, going to the next one ..." ;
4327+ return ;
4328+ }
43214329 for (auto & event : events) {
43224330 if (!event.isEventSelected_bit (0 )) {
43234331 continue ;
0 commit comments