]>
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: AliTRDCalDCSGTU.cxx 18952 2007-06-08 11:36:12Z cblume $ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // TRD calibration class for TRD DCS GTU parameters // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | #include "AliTRDCalDCSGTU.h" | |
25 | #include "AliTRDCalDCSGTUTgu.h" | |
26 | #include <TObjArray.h> | |
27 | ||
28 | ClassImp(AliTRDCalDCSGTU) | |
29 | ||
30 | //_____________________________________________________________________________ | |
31 | AliTRDCalDCSGTU::AliTRDCalDCSGTU() | |
32 | :TNamed() | |
33 | ,fRunNumber(0) | |
34 | ,fSORFlag(0) | |
35 | ,fSerial(0) | |
36 | ,fDNR(-1) | |
37 | ,fSegmentsArr(new TObjArray()) | |
38 | ,fTgu(new AliTRDCalDCSGTUTgu()) | |
39 | { | |
40 | // | |
41 | // AliTRDCalDCSGTU default constructor | |
42 | // | |
43 | fSegmentsArr->SetOwner(); | |
44 | } | |
45 | ||
46 | //_____________________________________________________________________________ | |
47 | AliTRDCalDCSGTU::AliTRDCalDCSGTU(const char *name, const char *title) | |
48 | :TNamed(name,title) | |
49 | ,fRunNumber(0) | |
50 | ,fSORFlag(0) | |
51 | ,fSerial(0) | |
52 | ,fDNR(-1) | |
53 | ,fSegmentsArr(new TObjArray()) | |
54 | ,fTgu(new AliTRDCalDCSGTUTgu()) | |
55 | { | |
56 | // | |
57 | // AliTRDCalDCSGTU constructor | |
58 | // | |
59 | } | |
60 | ||
61 | //_____________________________________________________________________________ | |
62 | AliTRDCalDCSGTU::AliTRDCalDCSGTU(const AliTRDCalDCSGTU&) | |
63 | :TNamed("","") | |
64 | ,fRunNumber(0) | |
65 | ,fSORFlag(0) | |
66 | ,fSerial(0) | |
67 | ,fDNR(-1) | |
68 | ,fSegmentsArr(new TObjArray()) | |
69 | ,fTgu(new AliTRDCalDCSGTUTgu()) | |
70 | { | |
71 | // | |
72 | // AliTRDCalDCSGTU constructor | |
73 | // | |
74 | } | |
75 | ||
76 | //_____________________________________________________________________________ | |
77 | AliTRDCalDCSGTU::~AliTRDCalDCSGTU() | |
78 | { | |
79 | // | |
80 | // AliTRDCalDCSGTU destructor | |
81 | // | |
82 | ||
83 | if (fSegmentsArr) { | |
84 | fSegmentsArr->Delete(); | |
85 | delete fSegmentsArr; | |
86 | fSegmentsArr = 0x0; | |
87 | } | |
88 | ||
89 | if (fTgu) { | |
90 | delete fTgu; | |
91 | fTgu = 0x0; | |
92 | } | |
93 | ||
94 | } | |
95 | ||
96 | //_____________________________________________________________________________ | |
97 | AliTRDCalDCSGTU& AliTRDCalDCSGTU::operator=(const AliTRDCalDCSGTU& sh) | |
98 | { | |
99 | // | |
100 | // AliTRDCalDCSGTU constructor | |
101 | // | |
102 | if (&sh == this) return *this; | |
103 | ||
104 | new (this) AliTRDCalDCSGTU(sh); | |
105 | return *this; | |
106 | } | |
107 | ||
108 | ||
109 |