TRefArray :: accessing elements

From: Adrian Sevcenco <Adrian.Sevcenco_at_cern.ch>
Date: Thu, 18 Aug 2011 21:19:15 +0300


Hi! it is written in http://root.cern.ch/root/html/TRefArray.html that elements can be accessed with TObject *obj = array.At(i);

  1. if TRefArray* array ; elements are still accessed with array.At(i) or with array->At(i) (as with any other pointer)?
  2. if i know the type of obj (a derived class of TObject) can i do directly a cast like lets say AliAODTrack* track = (AliAODTrack*) array->At(i) ?

Thanks,
Adrian

Received on Thu Aug 18 2011 - 20:18:36 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 18 2011 - 23:50:01 CEST