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 ///////////////////////////////////////////////////////////////////////////////
20 // AliClustersArray object //
22 // Origin: Marian Ivanov , GSI Darmstadt //
25 ///////////////////////////////////////////////////////////////////////////////
30 #include "AliSegmentID.h"
31 #include "TObjArray.h"
33 #include "AliClusters.h"
34 #include "AliDetectorParam.h"
35 #include "AliClustersArray.h"
39 ClassImp(AliClustersArray)
42 AliClustersArray::AliClustersArray()
52 Bool_t AliClustersArray::SetClusterType(Text_t * classname)
55 //set type of Clusters
57 if ( fClusterType !=0 ) {
63 ::Fatal("AliClustersArray", "ROOT system not initialized");
65 fClusterType = gROOT->GetClass(classname);
67 Error("AliClustersArray", "%s is not a valid class name", classname);
70 if (!fClusterType->InheritsFrom(TObject::Class())) {
71 Error("AliClustersArray", "%s does not inherit from TObject", classname);
77 Bool_t AliClustersArray::Setup(const AliDetectorParam *param)
80 //make copy of param object
85 Bool_t AliClustersArray::SetParam(AliDetectorParam * param)
90 Bool_t AliClustersArray::SetFinder(AliClustersFinder * finder)