Problem with TObjArray::GetSize()

From: Hovhannes Khandanyan <khandan_at_cern.ch>
Date: Sat, 30 Oct 2010 22:39:25 +0200

   Dear ROOTers,

I ran into a problem with TObjArray::GetSize() which showed unexpected behavior, details on which are in the snippet below. Please let me know if this is in fact how it should be.

root [0]
root [0] TObjArray* histArray = new TObjArray(0)
root [1] histArray->GetSize()

(const Int_t)16

root [2] TObjArray* histArray = new TObjArray(1) root [3] histArray->GetSize()
(const Int_t)1

root [4] TObjArray* histArray = new TObjArray(0) root [5] histArray->GetSize()
(const Int_t)16

root [6] .!echo $ROOTSYS
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00/slc4_amd64_gcc34/root root [7]

Thanks,
Hovhannes Received on Sat Oct 30 2010 - 22:40:01 CEST

This archive was generated by hypermail 2.2.0 : Sun Oct 31 2010 - 11:50:01 CET