X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCClustersArray.cxx;h=e53db4c494003cf65661bf7f4c482bacbc43206f;hb=88dee377a06d92de569aeae9645f9b01d45a0e47;hp=d9c38c858e4a0c6061f5731854ac6fdb1a9f5316;hpb=cc80f89ead2e03e663aa5c2e2330945097ba3ffd;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCClustersArray.cxx b/TPC/AliTPCClustersArray.cxx index d9c38c858e4..e53db4c4940 100644 --- a/TPC/AliTPCClustersArray.cxx +++ b/TPC/AliTPCClustersArray.cxx @@ -13,13 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.1.4.2 2000/04/10 11:34:02 kowal2 - -Clusters handling in a new data structure - -*/ +/* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // @@ -30,10 +24,9 @@ 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 +34,7 @@ Clusters handling in a new data structure #include "AliTPCClustersArray.h" #include "TClonesArray.h" #include "TDirectory.h" +#include @@ -57,9 +51,6 @@ AliTPCClustersArray::AliTPCClustersArray() AliTPCClustersArray::~AliTPCClustersArray() { // - //object is only owner of fParam - // - if (fParam) delete fParam; } @@ -124,13 +115,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 +137,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() { //