TMapFile opened in update mode ...

Valeriy Onuchin (onuchin@emcal06.rhic.bnl.gov)
Mon, 02 Nov 1998 05:55:56 -0500


Hello Rooters!
I would like to update objects in TMapFile,
it seemed to me that changing option from
"RECREATE" -> "UPDATE" should do the work.

hprod.c
>>
>> mfile = TMapFile::Create("hsimple.map","UPDATE", 100000,
>> "Demo memory mapped file with histograms");

but running hprod.C doesn't update histos in hsimple.map ???

Does that mean that the only way to do that is
1. open existing map file in READ mode
2. copy histos from file to memory
3. close file
4. recreate the same file
5. add histos from memory to map file

???
With best regards. Valery