It's not the end.
I'd like to have ordered arrays. In TObjArray we find the function
virtual Bool_t IsSortable() const { return kFALSE; }.
TClonesArray inherits from TObjArray, so I could redefine it to
virtual Bool_t IsSortable() const { return kTUE; }.
In addition, TClonesArray has a Sort() function, that sorts the elements
guided by their fSize (their dimension, roughly speaking).
This is not what I need. My classes have a data member that I would like
to use as an index for the sorting.
I guess I must write my own algorithm for this sorting, using TObjArray
instead of TClonesArray. Do you think there is another possibility?
Best regards
Diego Casadei
casadei@bo.infn.it
casadei@cern.ch