]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliClustersArray.cxx
afd98b74d0e23f377114f55b9941d0200c454600
[u/mrichter/AliRoot.git] / TPC / AliClustersArray.cxx
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()
43 {
44   //
45   //Default constructor
46   //
47   fParam = 0;
48   fClusterType = 0;
49   fClFinder = 0;
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)
63     ::Fatal("AliClustersArray", "ROOT system not initialized");
64    
65    fClusterType = gROOT->GetClass(classname);
66    if (!fClusterType) {
67       Error("AliClustersArray", "%s is not a valid class name", classname);
68       return kFALSE;
69    }
70    if (!fClusterType->InheritsFrom(TObject::Class())) {
71       Error("AliClustersArray", "%s does not inherit from TObject", classname);
72       return kFALSE;
73    }     
74   return kTRUE;
75 }
76
77 Bool_t AliClustersArray::Setup(const AliDetectorParam *param)
78 {
79   //
80   //make copy of param object
81   
82   return kTRUE;
83 }
84
85 Bool_t AliClustersArray::SetParam(AliDetectorParam * param)
86 {
87   return kTRUE;
88 }
89
90 Bool_t AliClustersArray::SetFinder(AliClustersFinder * finder)
91 {
92   return kTRUE;
93 }