Navigating between 2 root files in a interactive ROOT sesion

I start a root session with “root -l sample0.root -l sample1.root”
ROOT seems to accept this and tells me:
Attaching file sample0.root as _file0…
Attaching file sample1.root as _file1…

However, when I do “.ls” now, it informs me in the “sample1.root” TFile directory. How do I navigate to the “sample0.root” directory? What I want is, to print something from sample0 with a certain line-color, then go to sample1 and print the same thing on top of the sample0 plot with a different line-color

_ROOT Version: 5.34
_Platform: Ubuntu

_file0->ls();
_file1->ls();
_file0->cd();
.ls
_file1->cd();
.ls

BTW. In order to see available options, try to execute: root --help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.