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