]>
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 | ||
16 | /* | |
17 | $Log$ | |
7775178f | 18 | Revision 1.4 2000/10/05 15:59:31 kowal2 |
19 | Forward declarations. Changes due to a new class AliComplexCluster. | |
20 | ||
446ab814 | 21 | Revision 1.3 2000/06/30 12:07:49 kowal2 |
22 | Updated from the TPC-PreRelease branch | |
23 | ||
73042f01 | 24 | Revision 1.2.4.4 2000/06/26 07:39:42 kowal2 |
25 | Changes to obey the coding rules | |
26 | ||
27 | Revision 1.2.4.3 2000/06/25 08:38:41 kowal2 | |
28 | Splitted from AliTPCtracking | |
29 | ||
30 | Revision 1.2.4.2 2000/06/14 16:45:13 kowal2 | |
31 | Improved algorithms. Compiler warnings removed. | |
32 | ||
33 | Revision 1.2.4.1 2000/06/09 07:09:29 kowal2 | |
34 | ||
35 | Clustering and tracking classes are splitted from the simulation ones | |
36 | ||
37 | Revision 1.2 2000/04/17 09:37:33 kowal2 | |
38 | removed obsolete AliTPCDigitsDisplay.C | |
39 | ||
cc80f89e | 40 | Revision 1.1.4.2 2000/04/10 11:34:02 kowal2 |
41 | ||
42 | Clusters handling in a new data structure | |
43 | ||
44 | */ | |
45 | ||
46 | /////////////////////////////////////////////////////////////////////////////// | |
47 | // // | |
73042f01 | 48 | // AliClustersArray object // |
cc80f89e | 49 | // |
73042f01 | 50 | // Origin: Marian Ivanov , GSI Darmstadt // |
cc80f89e | 51 | // // |
52 | // // | |
53 | /////////////////////////////////////////////////////////////////////////////// | |
54 | ||
55 | #include "TObject.h" | |
56 | #include "TClass.h" | |
57 | #include <TROOT.h> | |
58 | #include "AliSegmentID.h" | |
59 | #include "TObjArray.h" | |
cc80f89e | 60 | |
cc80f89e | 61 | #include "AliClusters.h" |
cc80f89e | 62 | #include "AliDetectorParam.h" |
63 | #include "AliClustersArray.h" | |
64 | ||
65 | ||
66 | ||
67 | ClassImp(AliClustersArray) | |
68 | // | |
69 | ||
70 | AliClustersArray::AliClustersArray() | |
71 | { | |
72 | // | |
73 | //Default constructor | |
74 | // | |
75 | fParam = 0; | |
76 | fClusterType = 0; | |
7775178f | 77 | fClFinder = 0; |
cc80f89e | 78 | } |
79 | ||
80 | Bool_t AliClustersArray::SetClusterType(Text_t * classname) | |
81 | { | |
82 | // | |
83 | //set type of Clusters | |
84 | // | |
85 | if ( fClusterType !=0 ) { | |
86 | delete fClusterType; | |
87 | fClusterType = 0; | |
88 | } | |
89 | ||
90 | if (!gROOT) | |
73042f01 | 91 | ::Fatal("AliClustersArray", "ROOT system not initialized"); |
cc80f89e | 92 | |
93 | fClusterType = gROOT->GetClass(classname); | |
94 | if (!fClusterType) { | |
73042f01 | 95 | Error("AliClustersArray", "%s is not a valid class name", classname); |
cc80f89e | 96 | return kFALSE; |
97 | } | |
73042f01 | 98 | if (!fClusterType->InheritsFrom(TObject::Class())) { |
99 | Error("AliClustersArray", "%s does not inherit from TObject", classname); | |
cc80f89e | 100 | return kFALSE; |
101 | } | |
102 | return kTRUE; | |
103 | } | |
104 | ||
73042f01 | 105 | Bool_t AliClustersArray::Setup(const AliDetectorParam *param) |
cc80f89e | 106 | { |
107 | // | |
108 | //make copy of param object | |
109 | ||
110 | return kTRUE; | |
111 | } | |
112 | ||
113 | Bool_t AliClustersArray::SetParam(AliDetectorParam * param) | |
114 | { | |
115 | return kTRUE; | |
116 | } | |
117 | ||
118 | Bool_t AliClustersArray::SetFinder(AliClustersFinder * finder) | |
119 | { | |
120 | return kTRUE; | |
121 | } |