RE: [ROOT] Truncating a TClonesArray

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Jul 30 2003 - 18:39:37 MEST


Hi Hamlet,

What are you trying to accomplish?

Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Hamlet
Sent: Wednesday, July 30, 2003 5:41 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Truncating a TClonesArray


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