]>
Commit | Line | Data |
---|---|---|
cc80f89e | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
88cb7938 | 16 | /* $Id$ */ |
cc80f89e | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
73042f01 | 20 | // AliClustersArray object // |
cc80f89e | 21 | // |
73042f01 | 22 | // Origin: Marian Ivanov , GSI Darmstadt // |
cc80f89e | 23 | // // |
24 | // // | |
25 | /////////////////////////////////////////////////////////////////////////////// | |
26 | ||
27 | #include "TObject.h" | |
28 | #include "TClass.h" | |
29 | #include <TROOT.h> | |
30 | #include "AliSegmentID.h" | |
31 | #include "TObjArray.h" | |
cc80f89e | 32 | |
cc80f89e | 33 | #include "AliClusters.h" |
cc80f89e | 34 | #include "AliDetectorParam.h" |
35 | #include "AliClustersArray.h" | |
36 | ||
37 | ||
38 | ||
39 | ClassImp(AliClustersArray) | |
40 | // | |
41 | ||
42 | AliClustersArray::AliClustersArray() | |
43 | { | |
44 | // | |
45 | //Default constructor | |
46 | // | |
47 | fParam = 0; | |
48 | fClusterType = 0; | |
7775178f | 49 | fClFinder = 0; |
cc80f89e | 50 | } |
51 | ||
52 | Bool_t AliClustersArray::SetClusterType(Text_t * classname) | |
53 | { | |
54 | // | |
55 | //set type of Clusters | |
56 | // | |
57 | if ( fClusterType !=0 ) { | |
58 | delete fClusterType; | |
59 | fClusterType = 0; | |
60 | } | |
61 | ||
62 | if (!gROOT) | |
73042f01 | 63 | ::Fatal("AliClustersArray", "ROOT system not initialized"); |
cc80f89e | 64 | |
65 | fClusterType = gROOT->GetClass(classname); | |
66 | if (!fClusterType) { | |
73042f01 | 67 | Error("AliClustersArray", "%s is not a valid class name", classname); |
cc80f89e | 68 | return kFALSE; |
69 | } | |
73042f01 | 70 | if (!fClusterType->InheritsFrom(TObject::Class())) { |
71 | Error("AliClustersArray", "%s does not inherit from TObject", classname); | |
cc80f89e | 72 | return kFALSE; |
73 | } | |
74 | return kTRUE; | |
75 | } | |
76 | ||
176aff27 | 77 | Bool_t AliClustersArray::Setup(const AliDetectorParam */*param*/) |
cc80f89e | 78 | { |
79 | // | |
80 | //make copy of param object | |
81 | ||
82 | return kTRUE; | |
83 | } | |
84 | ||
176aff27 | 85 | Bool_t AliClustersArray::SetParam(AliDetectorParam * /*param*/) |
cc80f89e | 86 | { |
87 | return kTRUE; | |
88 | } | |
89 | ||
176aff27 | 90 | Bool_t AliClustersArray::SetFinder(AliClustersFinder * /*finder*/) |
cc80f89e | 91 | { |
92 | return kTRUE; | |
93 | } |