]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliClustersArray.cxx
removed obsolete AliTPCDigitsDisplay.C
[u/mrichter/AliRoot.git] / TPC / AliClustersArray.cxx
CommitLineData
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$
18Revision 1.1.4.2 2000/04/10 11:34:02 kowal2
19
20Clusters handling in a new data structure
21
22*/
23
24///////////////////////////////////////////////////////////////////////////////
25// //
26// AliClustersArray object //
27//
28// Origin: Marian Ivanov , GSI Darmstadt
29// //
30// //
31///////////////////////////////////////////////////////////////////////////////
32
33#include "TObject.h"
34#include "TClass.h"
35#include <TROOT.h>
36#include "AliSegmentID.h"
37#include "TObjArray.h"
38#include "AliSegmentArray.h"
39
40#include "AliCluster.h"
41#include "AliClusters.h"
42#include "AliClusterFinder.h"
43#include "AliDetectorParam.h"
44#include "AliClustersArray.h"
45
46
47
48ClassImp(AliClustersArray)
49//
50
51AliClustersArray::AliClustersArray()
52{
53 //
54 //Default constructor
55 //
56 fParam = 0;
57 fClusterType = 0;
58}
59
60Bool_t AliClustersArray::SetClusterType(Text_t * classname)
61{
62 //
63 //set type of Clusters
64 //
65 if ( fClusterType !=0 ) {
66 delete fClusterType;
67 fClusterType = 0;
68 }
69
70 if (!gROOT)
71 ::Fatal("AliTPCClustersArray", "ROOT system not initialized");
72
73 fClusterType = gROOT->GetClass(classname);
74 if (!fClusterType) {
75 Error("AliTPCClustersArray", "%s is not a valid class name", classname);
76 return kFALSE;
77 }
78 if (!fClusterType->InheritsFrom(AliCluster::Class())) {
79 Error("AliTPCClustersArray", "%s does not inherit from AliCluster", classname);
80 return kFALSE;
81 }
82 return kTRUE;
83}
84
85Bool_t AliClustersArray::Setup(AliDetectorParam *param)
86{
87 //
88 //make copy of param object
89
90 return kTRUE;
91}
92
93Bool_t AliClustersArray::SetParam(AliDetectorParam * param)
94{
95 return kTRUE;
96}
97
98Bool_t AliClustersArray::SetFinder(AliClustersFinder * finder)
99{
100 return kTRUE;
101}