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