[ROOT] map i/o problem

From: Susan Kasahara (schubert@physics.umn.edu)
Date: Tue May 20 2003 - 18:42:29 MEST


Hi roottalk,
I've noticed that a data member in one of our root persistable classes,
a fixed size array of mutable map<Int_t,Double_t> objects, does not
i/o correctly.  The class is of the form:

class CandTrack: public CandReco {
...
protected:
   ...
   mutable map<Int_t,Float_t> fdS;  // this data member i/o's okay
   mutable map<Int_t,Double_t> fTime[2];  // problematic data member

ClassDef(CandTrack,1)
};
In this example,  the fdS data member i/o's okay, but the fTime[2]
data member is read back in with 0 entries in both the fTime[0]
and fTime[1] maps, despite these maps having non-zero entries on
output.
I can prepare a simple example to demonstrate this if necessary, but
I'm wondering if this is a known limitation or if there is some sort of
expression that needs to go in the comment field following the fTime[2]
data member, e.g.:
  mutable map<Int_t,Double_t> fTime[2]; //?something needs to go here?
to make this work?
I am using root cvs 5/12/03 with gcc 3.2 on rh. linux 8.0.
Thanks in advance for your help.
-Sue



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET