]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCClustersArray.cxx
AliSHILv2 added correctly
[u/mrichter/AliRoot.git] / TPC / AliTPCClustersArray.cxx
index d9c38c858e4a0c6061f5731854ac6fdb1a9f5316..ff5e7ab82fc2a3a417112fe69d8b8223bdee3873 100644 (file)
 
 /*
 $Log$
+Revision 1.3  2000/06/30 12:07:49  kowal2
+Updated from the TPC-PreRelease branch
+
+Revision 1.2.4.1  2000/06/09 07:09:29  kowal2
+
+Clustering and tracking classes are splitted from the simulation ones
+
+Revision 1.2  2000/04/17 09:37:33  kowal2
+removed obsolete AliTPCDigitsDisplay.C
+
 Revision 1.1.4.2  2000/04/10 11:34:02  kowal2
 
 Clusters handling in a new data structure
@@ -33,7 +43,7 @@ Clusters handling in a new data structure
 #include "AliTPC.h"
 #include "AliTPCParam.h" 
 #include "AliSegmentArray.h" 
-#include "AliCluster.h"
+#include "AliComplexCluster.h"
 #include "AliClusters.h"
 #include "AliClustersArray.h" 
 #include "AliTPCClustersRow.h" 
@@ -41,6 +51,7 @@ Clusters handling in a new data structure
 #include "AliTPCClustersArray.h"
 #include "TClonesArray.h"
 #include "TDirectory.h"
+#include <TClass.h>
 
 
 
@@ -57,9 +68,6 @@ AliTPCClustersArray::AliTPCClustersArray()
 AliTPCClustersArray::~AliTPCClustersArray()
 {
   //
-  //object is only owner of fParam
-  //
-  if (fParam) delete fParam;
 }
 
 
@@ -124,13 +132,13 @@ Bool_t  AliTPCClustersArray::ClearRow(Int_t sector,Int_t row)
 
 
 
-Bool_t AliTPCClustersArray::Setup(AliDetectorParam *param)
+Bool_t AliTPCClustersArray::Setup(const AliDetectorParam *param)
 {
   //
   //setup  function to adjust array parameters
   //
   if (param==0) return kFALSE;
-  fParam = param;
+  fParam = (AliDetectorParam *)param;
   return MakeArray(((AliTPCParam*)fParam)->GetNRowsTotal());
 
 }
@@ -146,23 +154,6 @@ Bool_t AliTPCClustersArray::Update()
 }
 
 
-/*
-void AliTPCClustersArray::MakeTree()
-{
-  //  AliSegmentID  segment;
-  if (fClusterType==0) {
-    Error("AliTPCCLustersArray", "cluster type isn't adjusted");
-    return;
-  }
-  AliClusters * psegment = (AliClusters *)NewSegment();  
-  psegment->SetClass(fClusterType->GetName());  
-  psegment->SetArray(100);
-  if (fTree) delete fTree;
-  fTree = new TTree("Segment Tree","Tree with segments");
-  fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000,1);
-  delete psegment;
-}              
-*/
 AliSegmentID * AliTPCClustersArray::NewSegment()
 {
   //