gDirectory->Get("electron_Pt") does not work

o search a specific histogram in a root file, I tried gDirectory->Get(“electron_Pt”) but this does not work? The electron_Pt is exist in that root file but the command is not able to find it. Please suggest.

Not worked still. Here is the output, where hist-ttbar.root is the root file in which i am searching for a electron_Pt histrogram.

root [8] gDirectory->ls(“electron_Pt”);
TFile** hist-ttbar.root
TFile* hist-ttbar.root

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