ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/FastArrayBasic.h
(Generate patch)

Comparing UserCode/MitAna/DataCont/interface/FastArrayBasic.h (file contents):
Revision 1.9 by loizides, Mon Mar 23 22:15:09 2009 UTC vs.
Revision 1.10 by loizides, Mon Apr 6 13:44:08 2009 UTC

# Line 7 | Line 7
7   // but there is an optimization in the read streamer similar to the TClonesArray
8   // where the heap memory of an existing object is reused.  
9   // This class is meant to be used as a datamember for objects which are contained
10 < // inside a TClonesArray.
11 < // For various reasons, the array cannot be written in split mode.
10 > // inside a TClonesArray. For various reasons, the array cannot be written in split mode.
11 > // This means you have to make sure that you declare it using "||" if you write out with
12 > // high split level.
13   // Array is meant to store basic data types as opposed to FastArray
14   // which can hold arbitrary (non-heap using) classes.
15   // Since it stores basic types it can not derive from the Collection<ArrayElement>
# Line 157 | Line 158 | inline void mithep::FastArrayBasic<Array
158      return;
159      
160    fArray = static_cast<ArrayElement*>(TStorage::ReAlloc(fArray, s * sizeof(ArrayElement),
161 <                                        fCapacity * sizeof(ArrayElement)));
161 >                                                        fCapacity * sizeof(ArrayElement)));
162    fCapacity = s;
163   }
164  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines