]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalDet.cxx
First round of effc++ changes
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDet.cxx
CommitLineData
7754cd1f 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$ */
17
18///////////////////////////////////////////////////////////////////////////////
19// //
20// TRD calibration class for parameters which saved per detector //
21// //
22///////////////////////////////////////////////////////////////////////////////
23
24#include "AliTRDCalDet.h"
25
26ClassImp(AliTRDCalDet)
27
28//_____________________________________________________________________________
29AliTRDCalDet::AliTRDCalDet():TNamed()
30{
31 //
32 // AliTRDCalDet default constructor
33 //
34
35 for (Int_t idet = 0; idet < kNdet; idet++) {
36 fData[idet] = 0;
37 }
38
39}
40
41//_____________________________________________________________________________
42AliTRDCalDet::AliTRDCalDet(const Text_t *name, const Text_t *title)
43 :TNamed(name,title)
44{
45 //
46 // AliTRDCalDet constructor
47 //
48
49 for (Int_t idet = 0; idet < kNdet; idet++) {
50 fData[idet] = 0;
51 }
52
53}
54
7754cd1f 55//_____________________________________________________________________________
56AliTRDCalDet::AliTRDCalDet(const AliTRDCalDet &c):TNamed(c)
57{
58 //
59 // AliTRDCalDet copy constructor
60 //
61
62 ((AliTRDCalDet &) c).Copy(*this);
63
64}
65
66///_____________________________________________________________________________
67AliTRDCalDet::~AliTRDCalDet()
68{
69 //
70 // AliTRDCalDet destructor
71 //
72
73}
74
75//_____________________________________________________________________________
76AliTRDCalDet &AliTRDCalDet::operator=(const AliTRDCalDet &c)
77{
78 //
79 // Assignment operator
80 //
81
82 if (this != &c) ((AliTRDCalDet &) c).Copy(*this);
83 return *this;
84
85}
86
87//_____________________________________________________________________________
88void AliTRDCalDet::Copy(TObject &c) const
89{
90 //
91 // Copy function
92 //
93
94 for (Int_t idet = 0; idet < kNdet; idet++) {
95 ((AliTRDCalDet &) c).fData[idet] = fData[idet];
96 }
97
98 TObject::Copy(c);
99
100}
101