1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 Revision 1.1.4.2 2000/04/10 11:34:02 kowal2
20 Clusters handling in a new data structure
24 ///////////////////////////////////////////////////////////////////////////////
26 // AliClustersArray object //
28 // Origin: Marian Ivanov , GSI Darmstadt
31 ///////////////////////////////////////////////////////////////////////////////
36 #include "AliSegmentID.h"
37 #include "TObjArray.h"
38 #include "AliSegmentArray.h"
40 #include "AliCluster.h"
41 #include "AliClusters.h"
42 #include "AliClusterFinder.h"
43 #include "AliDetectorParam.h"
44 #include "AliClustersArray.h"
48 ClassImp(AliClustersArray)
51 AliClustersArray::AliClustersArray()
60 Bool_t AliClustersArray::SetClusterType(Text_t * classname)
63 //set type of Clusters
65 if ( fClusterType !=0 ) {
71 ::Fatal("AliTPCClustersArray", "ROOT system not initialized");
73 fClusterType = gROOT->GetClass(classname);
75 Error("AliTPCClustersArray", "%s is not a valid class name", classname);
78 if (!fClusterType->InheritsFrom(AliCluster::Class())) {
79 Error("AliTPCClustersArray", "%s does not inherit from AliCluster", classname);
85 Bool_t AliClustersArray::Setup(AliDetectorParam *param)
88 //make copy of param object
93 Bool_t AliClustersArray::SetParam(AliDetectorParam * param)
98 Bool_t AliClustersArray::SetFinder(AliClustersFinder * finder)