Skip to content

Commit 39b457e

Browse files
authored
fix bug when selecting event by ID (#541)
1 parent 817ca26 commit 39b457e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/framework/core/src/TRestBrowser.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t eventID, Int_t subEventID) {
301301

302302
if (fRestRun->GetAnalysisTree() != nullptr && fRestRun->GetAnalysisTree()->GetEntries() > 0) {
303303
TRestEvent* event = fRestRun->GetEventWithID(eventID, subEventID);
304-
if (event != nullptr) {
304+
if (event == nullptr) {
305305
RESTWarning << "Event ID : " << eventID << " with sub ID : " << subEventID << " not found!"
306306
<< RESTendl;
307307
return kFALSE;

0 commit comments

Comments
 (0)