RE: Adding several histos

From: Manuel Mussini <Manuel.Mussini_at_bo.infn.it>
Date: Mon, 19 Nov 2007 09:12:36 +0100

TFile**         TMC.root
 TFile*         TMC.root
  KEY: TDirectoryFile   Generic;1       Generic plots
  KEY: TDirectoryFile   Beam;1  Beam's plots
  KEY: TDirectoryFile   Vertices;1      Vertices plots
  KEY: TDirectoryFile   Tracks;1        Track's plots
  KEY: TDirectoryFile K0sL0;1 K0s's and L0's plots   KEY: TDirectoryFile OBS;1 OBS plots

I only have directories!
hadd.C works fine if I rebin the new TH2s before to add them! This is why I supposed a memory issue!

Bye...

> -----Original Message-----
> From: Rene Brun [mailto:Rene.Brun_at_cern.ch]
> Sent: Sunday, November 18, 2007 16:37
> To: Manuel Mussini
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: Re: [ROOT] Adding several histos
>
> It is likely that your files contain memory resident Trees.
> Could you send the output of mytree.Print() ? or myfile.ls()
>
> Rene Brun
>
> Manuel Mussini wrote:
> >
> > Hi all,
> >
> > I have many files (~70) with the same directories structure and each
> > one contains a lot of histograms (~1000).
> >
> > I always used hadd.C to merge these files but I've recently added some
> > TH2s (thickly binned) that create a memory problem while merging!
> >
> > I tried to use the hadd application instead of the script on only 2
> > files and it worked fine but the memory was anyway almost filled (I
> > don't know what could happen with 70 files)!
> >
> > What could be the reason of this high memory usage? Copies of histos
> > created during the adding procedure?
> >
> > Is there a way to workaround the problem?
> >
> > I have to run it on different machines with different characteristics
> > so I'm not interested in the high speed but in the low memory usage!
> >
> > Thanks a lot for any idea! :-)
> >
> > Bye.
> >
Received on Mon Nov 19 2007 - 09:13:16 CET

This archive was generated by hypermail 2.2.0 : Mon Nov 19 2007 - 11:50:02 CET