FW: Problem writing histograms in Maker

Valery Fine (fine@bnl.gov)
Mon, 8 Mar 1999 16:27:04 -0500


-----Original Message-----
From: owner-starsofi-l@bnl.gov [mailto:owner-starsofi-l@bnl.gov] On
Behalf Of David Hardtke
Sent: Monday, March 08, 1999 4:10 PM
To: starsofi-l@bnl.gov
Subject: Problem writing histograms in Maker

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