> I have a problem which I don't quite know how to solve.
> The thing is, when I try to do the following:
>
> ---
> TMapFile *mfile = TMapFile::Create("simple.map", "RECREATE",
> 100000,"test");
> TH1F *h1 = new TH1F("h1","Example",100,-4,4);
> mfile->Add(h1,"h1");
> mfile->ls();
> ---
>
> I get:
>
> ---
>
> Object Class Size
>
> *** Break *** segmentation violation
> ---
this I dont understand, for me with 2.21/06 on Linux I get
Object Class Size
h1 (null) 0
h1 (null) 0
this is ok, only after Update() things are on the mapped area
>
> On the other hand, when I try the following:
> ---
> TMapFile *mfile = TMapFile::Create("simple.map", "RECREATE",
> 100000,"test");
> TH1F *h1 = new TH1F("h1","Example",100,-4,4);
^
|
this already adds the hist to the CWD which is mfile
> mfile->Add(h1,"h1");
^
|
here you add it again
> mfile->Update();
> ---
only after Update() the objects are really filled as I understand
things
>
cheers
----------------------------------------------------------------------------
Otto Schaile Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany
FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE