[ROOT] Truncating a TClonesArray

From: Hamlet (_hamlet@libero.it)
Date: Wed Jul 30 2003 - 12:41:12 MEST


Greetings!

I need to roughly (and temporary) truncate a TClonesArray (CA).
I see that SetLast() method can do this except that it can't set CA to 
be empty (it would be SetLast(-1), but -1 is refused as an invalid 
index - well, it actually is invalid). Clear() method is slower, and I 
would simply need something that sets that fLast internal variable to 
-1.
How can I achieve this? Wouldn't be safe to allow SetLast() to handle 
"-1" value?

-- 
Hamlet



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