]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCClustersRow.cxx
Correction in Binaries().
[u/mrichter/AliRoot.git] / TPC / AliTPCClustersRow.cxx
index 17e5a5fcb3ab556f899c1a9e6bfed079e4ba9fdd..ef5fe67b3dd762d2a0cdb44ac3af1e602fd783fd 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+ /*
+    $Log$
+ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -26,7 +30,8 @@
 #include <TClass.h>
 #include "AliClusters.h"
 #include "AliTPCClustersRow.h"
-#include "TDirectory.h"
+#include <TDirectory.h>
+#include <TClonesArray.h>
 
 
 const Int_t kDefSize = 1;  //defalut size
@@ -59,5 +64,11 @@ TObject *AliTPCClustersRow::InsertCluster(const TObject *c)
   TClonesArray &lclusters = *fClusters;
   return new(lclusters[fNclusters++]) AliTPCcluster(*((AliTPCcluster*)c));
 }
+//__________________________________________________________________________
 
 
+TObject *AliTPCClustersRow::Append(){
+ //create new object return pointer to this object
+ return fClusters->operator[](fClusters->GetEntriesFast());
+}
+