From 2ce7c96b1804867c6a4cd1179d96c93f5872828b Mon Sep 17 00:00:00 2001 From: Alvaro Ezquerro Date: Thu, 21 Nov 2024 19:43:34 +0100 Subject: [PATCH] fix bug when selecting event by ID --- source/framework/core/src/TRestBrowser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/framework/core/src/TRestBrowser.cxx b/source/framework/core/src/TRestBrowser.cxx index b26c9d2a7..16db4685e 100644 --- a/source/framework/core/src/TRestBrowser.cxx +++ b/source/framework/core/src/TRestBrowser.cxx @@ -301,7 +301,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t eventID, Int_t subEventID) { if (fRestRun->GetAnalysisTree() != nullptr && fRestRun->GetAnalysisTree()->GetEntries() > 0) { TRestEvent* event = fRestRun->GetEventWithID(eventID, subEventID); - if (event != nullptr) { + if (event == nullptr) { RESTWarning << "Event ID : " << eventID << " with sub ID : " << subEventID << " not found!" << RESTendl; return kFALSE;