Imagine the following scenario: A program is creating a .root file and is filling it with histograms. Is it possible to view the histograms inside the .root file while the program is still running?
The code above should create the rootfile “test.root”, which contains the histogram “hpxpy”. I want to open this file inside a root session and look at the histogram. Unfortunatly the histogram is empty and stays empty all the time. I was thinking that as soon as the function “rootfile->Flush()” is called the information in the memory is synchronized with test.root?
How do I have to rewrite the code above to archive what I want? Or is it not possible?
thank you for your solution. Unfortunatly the script lutzr.c always gives the error Error: illegal pointer to class object hpxpy 0x0 636 C:\test\lutzr.c(5)
*** Interpreter error recovered ***
I am using rootversion[code]
*
W E L C O M E to R O O T *
*
Version 5.12/00 10 July 2006 *
*
You are welcome to visit our Web site *
http://root.cern.ch *
*
Compiled on 11 July 2006 for win32.
CINT/ROOT C/C++ Interpreter version 5.16.13, June 8, 2006
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.[/code]