]>
Commit | Line | Data |
---|---|---|
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 | /* $Id$ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // AliClustersArray object // | |
21 | // | |
22 | // Origin: Marian Ivanov , GSI Darmstadt // | |
23 | // // | |
24 | // // | |
25 | /////////////////////////////////////////////////////////////////////////////// | |
26 | ||
27 | #include "TObject.h" | |
28 | #include "TClass.h" | |
29 | #include <TROOT.h> | |
30 | #include "AliSegmentID.h" | |
31 | #include "TObjArray.h" | |
32 | ||
33 | #include "AliClusters.h" | |
34 | #include "AliDetectorParam.h" | |
35 | #include "AliClustersArray.h" | |
36 | ||
37 | ||
38 | ||
39 | ClassImp(AliClustersArray) | |
40 | // | |
41 | ||
42 | AliClustersArray::AliClustersArray():AliSegmentArray(), | |
43 | fParam(0), | |
44 | fClFinder(0), | |
45 | fClusterType(0) | |
46 | { | |
47 | // | |
48 | //Default constructor | |
49 | // | |
50 | ||
51 | } | |
52 | ||
53 | Bool_t AliClustersArray::SetClusterType(const char * classname) | |
54 | { | |
55 | // | |
56 | //set type of Clusters | |
57 | // | |
58 | if ( fClusterType !=0 ) { | |
59 | delete fClusterType; | |
60 | fClusterType = 0; | |
61 | } | |
62 | ||
63 | if (!gROOT) | |
64 | ::Fatal("AliClustersArray", "ROOT system not initialized"); | |
65 | ||
66 | fClusterType = gROOT->GetClass(classname); | |
67 | if (!fClusterType) { | |
68 | Error("AliClustersArray", "%s is not a valid class name", classname); | |
69 | return kFALSE; | |
70 | } | |
71 | if (!fClusterType->InheritsFrom(TObject::Class())) { | |
72 | Error("AliClustersArray", "%s does not inherit from TObject", classname); | |
73 | return kFALSE; | |
74 | } | |
75 | return kTRUE; | |
76 | } | |
77 | ||
78 | Bool_t AliClustersArray::Setup(const AliDetectorParam */*param*/) | |
79 | { | |
80 | // | |
81 | //make copy of param object | |
82 | ||
83 | return kTRUE; | |
84 | } | |
85 | ||
86 | Bool_t AliClustersArray::SetParam(AliDetectorParam * /*param*/) | |
87 | { | |
88 | return kTRUE; | |
89 | } | |
90 | ||
91 | Bool_t AliClustersArray::SetFinder(AliClustersFinder * /*finder*/) | |
92 | { | |
93 | return kTRUE; | |
94 | } |