From ccd83e022c7958a3de3af93aed6d20c303b4d715 Mon Sep 17 00:00:00 2001 From: giacomo-santoni Date: Wed, 22 Jul 2026 16:27:45 +0200 Subject: [PATCH] ghep tree takes the entry corresponding to the EventId --- run-spill-build/overlaySinglesIntoSpillsSortedWithNuIntTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-spill-build/overlaySinglesIntoSpillsSortedWithNuIntTime.cpp b/run-spill-build/overlaySinglesIntoSpillsSortedWithNuIntTime.cpp index f3c0d79..d8bfe10 100644 --- a/run-spill-build/overlaySinglesIntoSpillsSortedWithNuIntTime.cpp +++ b/run-spill-build/overlaySinglesIntoSpillsSortedWithNuIntTime.cpp @@ -347,7 +347,7 @@ void overlaySinglesIntoSpillsSortedWithNuIntTime( auto entry = is_sampleA ? evt_it + i : evt_it_B_sequence.at(evt_it + i - Nevts_this_spill_A); in_tree->GetEntry(entry); gn_tree->GetEntry(entry); - ghep_tree->GetEntry(entry); + ghep_tree->GetEntry(edep_evt->EventId); gRooTracker& genie_evt = is_sampleA ? genie_evts_A_data : genie_evts_B_data;