Rootls for subfolders of root file

ROOT Version: 6.18/04
Platform: Linux

I am new here, so I am sorry if this is a bit unclear!

I am trying to get a histogram that is stored in a root file (testoutput.root). This root file is divided into different subcategories, such as Output1, Output2, … these subcategories are again each divided into different categories, let’s say SubOutput1, SubOutput 2… These categories each consist of different histograms. Let’s say that the histogram (h1) that I am interested in is in Output1 --> SubOutput 2. I want to use rootls to see all the histograms that are stored in SubOutput 2. So I tried
$ rootls testoutput.root/Output1/SubOutput2, which doesn’t work (error: No such file (or extension not supported). So I tried adding a dash before testouput.root and after SubOutput2, which still doesn’t work. Does anyone know what I am doing wrong?

rootls --help

gives the answer

1 Like

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