]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCClustersRow.cxx
Compatibility with the Root trunk
[u/mrichter/AliRoot.git] / TPC / AliTPCClustersRow.cxx
index 4a418d5a514d96d8abb2b465056f7a127e472b80..b997ba375e268d2e5b0549c6ae3b63a5d4ce8dcc 100644 (file)
@@ -12,6 +12,8 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -46,6 +48,13 @@ AliTPCClustersRow::AliTPCClustersRow()
   fNclusters=0;
 }
 
+//____________________________________________________________________________
+AliTPCClustersRow::AliTPCClustersRow(const char *classname) : AliClusters(classname)
+{
+ // special constructor
+ fNclusters=0;
+}
+
 //_____________________________________________________________________________
 TObject *AliTPCClustersRow::InsertCluster(const TObject *c) 
 {    
@@ -60,5 +69,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());
+}
+