Display/presenter of histogram being updated

Dear all.
I’m looking for an example on how to develop a macro or an executable that

  • saves into a root file an histogram being updated (during data acquisition)
    and another macro or executable that
  • display the content of the updated histogram

I tried the tutorials and google with no luck…
Any advise?
alessio

Hi,

Use something like//Writer obj1.Write(); obj2.Write(); myfile->SaveSelf();and[code]// reader
myfile->ReadKeys();
myfile->GetObject(“obj2”,obj2);
obj2->Draw();[code]

Cheers,
Philippe