ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/
 
/* $Id$ */

///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//  Time Projection Chamber AliTPCClusterRow  objects
//  -   clusters for given segment of TPC                                //
//
//  Origin: Marian Ivanov , GSI Darmstadt
//                                                                           //
//                                                                          //
///////////////////////////////////////////////////////////////////////////////
#include <TClass.h>
#include "AliClusters.h"
#include "AliTPCclusterMI.h"
#include "AliTPCClustersRow.h"
#include <TDirectory.h>
#include <TClonesArray.h>


const Int_t kDefSize = 1;  //defalut size


ClassImp(AliTPCClustersRow) 


//*****************************************************************************
//
//_____________________________________________________________________________
AliTPCClustersRow::AliTPCClustersRow() 
{  
  //
  //default constructor
  fNclusters=0;
}

//____________________________________________________________________________
AliTPCClustersRow::AliTPCClustersRow(const char *classname) : AliClusters(classname)
{
 // special constructor
 fNclusters=0;
}

//_____________________________________________________________________________
TObject *AliTPCClustersRow::InsertCluster(const TObject *c) 
{    
  //
  // Add a simulated cluster copy to the list
  //
  if (fClass==0) {
    Error("AliClusters", "class type not specified");
    return 0;
  }
  if(!fClusters) fClusters=new TClonesArray(fClass->GetName(),1000);
  TClonesArray &lclusters = *fClusters;
  return new(lclusters[fNclusters++]) AliTPCclusterMI(*((AliTPCclusterMI*)c));
}
//__________________________________________________________________________


TObject *AliTPCClustersRow::Append(){
 //create new object return pointer to this object
 return fClusters->operator[](fClusters->GetEntriesFast());
}

 AliTPCClustersRow.cxx:1
 AliTPCClustersRow.cxx:2
 AliTPCClustersRow.cxx:3
 AliTPCClustersRow.cxx:4
 AliTPCClustersRow.cxx:5
 AliTPCClustersRow.cxx:6
 AliTPCClustersRow.cxx:7
 AliTPCClustersRow.cxx:8
 AliTPCClustersRow.cxx:9
 AliTPCClustersRow.cxx:10
 AliTPCClustersRow.cxx:11
 AliTPCClustersRow.cxx:12
 AliTPCClustersRow.cxx:13
 AliTPCClustersRow.cxx:14
 AliTPCClustersRow.cxx:15
 AliTPCClustersRow.cxx:16
 AliTPCClustersRow.cxx:17
 AliTPCClustersRow.cxx:18
 AliTPCClustersRow.cxx:19
 AliTPCClustersRow.cxx:20
 AliTPCClustersRow.cxx:21
 AliTPCClustersRow.cxx:22
 AliTPCClustersRow.cxx:23
 AliTPCClustersRow.cxx:24
 AliTPCClustersRow.cxx:25
 AliTPCClustersRow.cxx:26
 AliTPCClustersRow.cxx:27
 AliTPCClustersRow.cxx:28
 AliTPCClustersRow.cxx:29
 AliTPCClustersRow.cxx:30
 AliTPCClustersRow.cxx:31
 AliTPCClustersRow.cxx:32
 AliTPCClustersRow.cxx:33
 AliTPCClustersRow.cxx:34
 AliTPCClustersRow.cxx:35
 AliTPCClustersRow.cxx:36
 AliTPCClustersRow.cxx:37
 AliTPCClustersRow.cxx:38
 AliTPCClustersRow.cxx:39
 AliTPCClustersRow.cxx:40
 AliTPCClustersRow.cxx:41
 AliTPCClustersRow.cxx:42
 AliTPCClustersRow.cxx:43
 AliTPCClustersRow.cxx:44
 AliTPCClustersRow.cxx:45
 AliTPCClustersRow.cxx:46
 AliTPCClustersRow.cxx:47
 AliTPCClustersRow.cxx:48
 AliTPCClustersRow.cxx:49
 AliTPCClustersRow.cxx:50
 AliTPCClustersRow.cxx:51
 AliTPCClustersRow.cxx:52
 AliTPCClustersRow.cxx:53
 AliTPCClustersRow.cxx:54
 AliTPCClustersRow.cxx:55
 AliTPCClustersRow.cxx:56
 AliTPCClustersRow.cxx:57
 AliTPCClustersRow.cxx:58
 AliTPCClustersRow.cxx:59
 AliTPCClustersRow.cxx:60
 AliTPCClustersRow.cxx:61
 AliTPCClustersRow.cxx:62
 AliTPCClustersRow.cxx:63
 AliTPCClustersRow.cxx:64
 AliTPCClustersRow.cxx:65
 AliTPCClustersRow.cxx:66
 AliTPCClustersRow.cxx:67
 AliTPCClustersRow.cxx:68
 AliTPCClustersRow.cxx:69
 AliTPCClustersRow.cxx:70
 AliTPCClustersRow.cxx:71
 AliTPCClustersRow.cxx:72
 AliTPCClustersRow.cxx:73
 AliTPCClustersRow.cxx:74
 AliTPCClustersRow.cxx:75
 AliTPCClustersRow.cxx:76
 AliTPCClustersRow.cxx:77
 AliTPCClustersRow.cxx:78
 AliTPCClustersRow.cxx:79