]>
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 | ||
88cb7938 | 16 | /* $Id$ */ |
cc80f89e | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // AliDigitsArray object // | |
21 | // | |
22 | // Origin: Marian Ivanov , GSI Darmstadt | |
23 | // // | |
24 | // // | |
25 | /////////////////////////////////////////////////////////////////////////////// | |
26 | ||
27 | #include "TObject.h" | |
28 | #include "AliSegmentID.h" | |
29 | #include "TObjArray.h" | |
cc80f89e | 30 | |
31 | #include "TError.h" | |
32 | #include "AliDigits.h" | |
33 | #include "AliDetectorParam.h" | |
34 | #include "AliDigitsArray.h" | |
35 | ||
36 | ||
37 | ||
38 | ClassImp(AliDigitsArray) | |
39 | // | |
40 | ||
41 | AliDigitsArray::AliDigitsArray() | |
179c6296 | 42 | :AliSegmentArray(), |
43 | fParam(0) | |
cc80f89e | 44 | { |
179c6296 | 45 | // |
46 | // default constructor | |
47 | // | |
cc80f89e | 48 | } |
179c6296 | 49 | AliDigitsArray::AliDigitsArray(const AliDigitsArray ¶m) |
50 | :AliSegmentArray(), | |
51 | fParam(0) | |
52 | { | |
53 | // | |
54 | // dummy | |
55 | // | |
56 | fParam = param.fParam; | |
57 | } | |
58 | // | |
59 | AliDigitsArray & AliDigitsArray::operator =(const AliDigitsArray & param) | |
60 | { | |
61 | // | |
62 | // dummy | |
04420071 | 63 | // |
64 | if (this == ¶m) return (*this); | |
179c6296 | 65 | fParam = param.fParam; |
66 | return (*this); | |
67 | } | |
68 | // | |
cc80f89e | 69 | AliDigitsArray::~AliDigitsArray() |
70 | { | |
afc42102 | 71 | // if (fParam != 0) delete fParam; |
cc80f89e | 72 | } |
73 | ||
74 | Bool_t AliDigitsArray::Setup(AliDetectorParam *param) | |
75 | { | |
76 | // | |
77 | //setup array according parameters | |
78 | SetParam(param); | |
79 | return kTRUE; | |
80 | } | |
81 | ||
82 | ||
83 | Bool_t AliDigitsArray::SetParam(AliDetectorParam * param) | |
84 | { | |
85 | fParam = param; | |
86 | return kTRUE; | |
87 | } |