Hi! How can i pass an pointer to the Execute method of TInterpreter?
What i do :
TInterpreter* myint = TInterpreter::Instance();
TString arg ("->Print("")");
… a loop over all browsables that are TH1
TH1* histo = dynamic_cast<TH1*>(obj);
TString arg1 = “histo” + arg ;
myint->ProcessLine(arg.Data());
but histo identifier is not recognized
What am i trying to do :
Apply a method with argument(s) over all created histograms
Goal is being able to do :
ForEachH (“GetXaxis()->SetTitle(“my_new_title”)”);
while it works (which is good enough for me) i am still wondering if this is what you meant and if the code is ok (hope that i did not miss some obvious flaws)