TMapFile opened in update mode ...

From: Valeriy Onuchin (onuchin@emcal06.rhic.bnl.gov)
Date: Mon Nov 02 1998 - 11:55:56 MET


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET