GetEventWithID, GetAnalysisTree problem, not automatically connected when reading a file

REST version : v2.2.12_dev
REST commit : 0f0a7eae

There is a problem again when I use directly the method TRestRun::GetEventWithID, the problem seems related to some connectivity with the analysisTree that does not return the analysisTree.

root [0] TRestRun *run = new TRestRun("Run01142_NLDBD_Test.root")

root [1] run->GetEntry(4);

root [2] run->GetAnalysisTree()->PrintObservables();

Error in PrintObservables, please connect or create the tree branch first!

This issue was also discussed in this topic

Also, when I launch restRoot Run01142_NLDBD_Test.root I get into troubles, but not sure if this is connected to this problem, I have to investigate that.

The NLDBD file has no observables. That makes PrintObservables() problematic.

Indeed, if there is no observables, the AnalysisTree never get connected. This is a bug and I have fixed it.

Ok, thanks, now GetEventWithID is working again.