Copying TClonesArray

is there option of copying TClonesArray elements? Except doing this in loop. I noticed that there are some “absorb methods” but I want to copy objects not move them.

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

I must admit I never used TClonesArray, so my reply might be completely off, but… copy constructor?

The problem is that I want to copy some elements from array to array, not entire array.

I see, then I think a for loop is the way to go, I don’t think there is a method to copy specific elements from one TClonesArray to another.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.