you try to get the histogram h_JetEta … and it seems you do the listing of the file supposing containing it before doing the Get … but in the listing there is not just name … just look at the screen dump you sent…
i am sorry.
This is my first experience with the overlap method so i have no idea how can i solve the problem.
I understood your sentence but still cant find the problem.
Because i am really stranger to listing the file, get method etc. @couet
I do not have the root file you are trying to read… so it is hard to help further …
Your macro looks quite complex and is not at the beginner level you claimed to be.
So it might be that you took it from a colleague ? … if so you might ask her/him to help you ?
i see.
yes my colleague gave me but he wants me to solve. So, i cannot ask him for now.
I want to compare pythia6 and pythia8 data’s for ATLAS detector.
is there a simpler method to open two root files and get jet-eta in one histo ?
f.ls() lists the contain of the file. As you see it does not show any histogram nor any subdirectories.
That’s why the Get(0 method is not able to find the histogram ‘h_JetEta’ (it is not listed) … So either your file is somehow corrupted or you do not have the right file. I guess you should go back to your colleague and ask him …
when i try to access with::
f.cd(“Delphes”);
it says, “unknown directory Delphes”
What is wrong with it.
Should i write something else?
Why i cannot go to Delphes Directory.
So probably the problem with the macro is same.
if i solve it on root probably i can also solve macro.
Thank you so much @couet
I solved it.
It’s about the root file as you said.
First, i used a macro which stores all histograms in a root file.
Then, i used this root file.
Thank you again.