Re: FW: Problem writing histograms in Maker

Fons Rademakers (rdm@pcsalo.cern.ch)
Mon, 8 Mar 1999 23:15:40 +0100 (MET)


Hi Dave,

must be some memory problem. Your original TH2F is about 400 MB big.
This is very likely to cause memory allocation problems.

Cheers, Fons.

>
> This problem seems to be related to the size of the two dimensional
> histogram involved. Originally, my TH2F was 10000 X 10000 entries and
> root aborts. When I reduce that to 1000 X 1000, root has no problems.
>
> Dave
>
> >
> > Hi,
> >
> > I have a few histograms defined in my Maker. I want to write them out, so
> > I use:
> >
> > Int_t StDaveMaker::Finish() {
> > TFile* out = new TFile("dave.root","RECREATE","Dedx Histograms");
> > out->cd();
> > m_dedx_vs_rigidity->Write();
> > out->Close();
> > return kStOK;
> > }
> >
> > where m_dedx_vs_rigidity is a pointer to a TH2F.
> >
> > For some reason, when I run this ROOT aborts. Does anyone know what might
> > be going on?
> >
> > Thanks,
> >
> > dave
> >
> >
> >
> >
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910