]>
Commit | Line | Data |
---|---|---|
54c3cb53 | 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 | ||
faa87e39 | 16 | /* $Id: AliTRDCalDCSGTU.cxx 18952 2007-06-08 11:36:12Z cblume $ */ |
54c3cb53 | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // TRD calibration class for TRD DCS GTU parameters // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | #include "AliTRDCalDCSGTU.h" | |
75bbe3c8 | 25 | #include "AliTRDCalDCSGTUTgu.h" |
26 | #include <TObjArray.h> | |
54c3cb53 | 27 | |
28 | ClassImp(AliTRDCalDCSGTU) | |
29 | ||
30 | //_____________________________________________________________________________ | |
31 | AliTRDCalDCSGTU::AliTRDCalDCSGTU() | |
32 | :TNamed() | |
3821ce70 | 33 | ,fRunNumber(0) |
34 | ,fSORFlag(0) | |
35 | ,fSerial(0) | |
36 | ,fDNR(-1) | |
37 | ,fSegmentsArr(new TObjArray()) | |
38 | ,fTgu(new AliTRDCalDCSGTUTgu()) | |
54c3cb53 | 39 | { |
40 | // | |
41 | // AliTRDCalDCSGTU default constructor | |
42 | // | |
3821ce70 | 43 | fSegmentsArr->SetOwner(); |
54c3cb53 | 44 | } |
45 | ||
46 | //_____________________________________________________________________________ | |
47 | AliTRDCalDCSGTU::AliTRDCalDCSGTU(const char *name, const char *title) | |
48 | :TNamed(name,title) | |
3821ce70 | 49 | ,fRunNumber(0) |
50 | ,fSORFlag(0) | |
51 | ,fSerial(0) | |
52 | ,fDNR(-1) | |
53 | ,fSegmentsArr(new TObjArray()) | |
54 | ,fTgu(new AliTRDCalDCSGTUTgu()) | |
54c3cb53 | 55 | { |
56 | // | |
57 | // AliTRDCalDCSGTU constructor | |
58 | // | |
54c3cb53 | 59 | } |
60 | ||
61 | //_____________________________________________________________________________ | |
3821ce70 | 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()) | |
54c3cb53 | 70 | { |
3821ce70 | 71 | // |
72 | // AliTRDCalDCSGTU constructor | |
73 | // | |
54c3cb53 | 74 | } |
75 | ||
99586a9d | 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 | ||
54c3cb53 | 96 | //_____________________________________________________________________________ |
3821ce70 | 97 | AliTRDCalDCSGTU& AliTRDCalDCSGTU::operator=(const AliTRDCalDCSGTU& sh) |
54c3cb53 | 98 | { |
3821ce70 | 99 | // |
100 | // AliTRDCalDCSGTU constructor | |
101 | // | |
102 | if (&sh == this) return *this; | |
103 | ||
104 | new (this) AliTRDCalDCSGTU(sh); | |
105 | return *this; | |
106 | } | |
54c3cb53 | 107 | |
54c3cb53 | 108 | |
54c3cb53 | 109 |