Hello everybody, I am using a TObjArray to store Objects and am mainly concentrating on the TObjArray::Sort() method. I defined a class derivating from TObject with Compare() an IsSortable() method. When sorting the objects in the TObjArray, everything appears to work fine : almost all but the last object are sorted according to appropriate (increasing mass) sorting criterion. Has anyone of you encountered a similar problem or did I missed something ? Thanks for your help I use ROOT relese 3.03/09 ------------------- Output of my test program ------------ *********** Event Attributes ************* mass : 38 | charge : 15 8 clusters in this event Content Flag : 4 ******************************************** 8 clusters in this event Cluster index : Cluster Mass : Cluster Charge 0 : 1 : 2 1 : 2 : 1 2 : 4 : 2 3 : 4 : 1 4 : 6 : 3 5 : 6 : 5 6 : 10 : 1 7 : 5 : 0 <- HERE IS THE PROBLEM ----------------------- PS : If necessary I can provide some bits of source code. -- , , / \ ((__-^^-,-^^-__)) `-_---' `---_-' `--|o` 'o|--' \ ` / ): :( :o_o: http://www.calvix.org "-" http://www.gnu.org
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:18 MET