When I execute the following macro using “.x” I can’t get my histogram to be shown (the histo I draw in myselector::Terminate method).
{
TDSet *set;
set = new TDSet("TTree","h42");
set->Add("root://depc218.gsi.de//tmp/dstarmb.root");
TProof::Open("localhost");
set->Process("myselector.C");
}
But everything works as expected, if I copy&paste lines of this macro to ROOT console. Actually, it is enough to just execute this:
set = new TDSet("TTree","h42");
in the console and the rest from unnamed macro.
Well, this is not a way I would expect it to work
If experts can explain this behavior to me I will be very grateful.
Thank you very much in advance.