* 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$ */
///////////////////////////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////////////////////////
-#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()
{
//