Hi Piero, Simply move your statement HistoManager pippo(); after the creation of the file, as: main(int argc, char **argv) { TROOT simple("simple","Test of histogramming and I/O"); TFile hfile("hsimple.root","RECREATE","Demo ROOT file with histograms"); HistoManager pippo(); for (int i=0;i<10;) pippo.test(); // Save all objects in this file hfile.Write(); hfile.Close(); } Rene Brun Piero Zucchelli wrote: > > Part 1.1 Type: Plain Text (text/plain) > Encoding: 7bit
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET