* コード自体はうまく動いているのに最後に以下のようなエラーが出た *** Error in `./src/ReconDistribution/MomchDraw': corrupted double-linked list: 0x0000000003de8110 *** * ''file->Close()'' を忘れていた * ファイルに TObject を詰めた際に,ROOT セッションで開いたファイル中のオブジェクトをうまく指定できない * 例えば, TGraph が ''Graph;1'' のように現れてうまく開けない \\ これはオブジェクトの名前をつけていないのが原因だった. TFile *file = new TFile("test,root", "recreate"); TGraph *g = new TGraph(); g->SetName("g"); // これが必要 file->cd(); g->Write(); file->Close();