Skip to content

Commit

Permalink
fix bug when selecting event by ID (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroEzq authored Nov 25, 2024
1 parent 817ca26 commit 39b457e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/framework/core/src/TRestBrowser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 39b457e

Please sign in to comment.