/*
$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
#include "AliTPC.h"
#include "AliTPCParam.h"
#include "AliSegmentArray.h"
-#include "AliCluster.h"
+#include "AliComplexCluster.h"
#include "AliClusters.h"
#include "AliClustersArray.h"
#include "AliTPCClustersRow.h"
#include "AliTPCClustersArray.h"
#include "TClonesArray.h"
#include "TDirectory.h"
+#include <TClass.h>
AliTPCClustersArray::~AliTPCClustersArray()
{
//
- //object is only owner of fParam
- //
- if (fParam) delete fParam;
}
-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());
}
}
-/*
-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()
{
//