Addedmethod Append
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 3 Nov 2001 13:31:47 +0000 (13:31 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 3 Nov 2001 13:31:47 +0000 (13:31 +0000)
TPC/AliTPCClustersRow.cxx
TPC/AliTPCClustersRow.h

index 4a418d5..ef5fe67 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+ /*
+    $Log$
+ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -60,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());
+}
+
index 521fd41..ce906d8 100644 (file)
@@ -19,6 +19,7 @@ class AliTPCClustersRow : public AliClusters{
 public:
   AliTPCClustersRow();
   virtual TObject *InsertCluster(const TObject *c);
+  virtual TObject *Append();  //create new object return pointer to this object
 
 public: