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