1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // TPC calibration class for parameters which saved per pad //
22 ///////////////////////////////////////////////////////////////////////////////
24 #include "AliTPCCalPad.h"
25 #include "AliTPCCalROC.h"
27 ClassImp(AliTPCCalPad)
29 //_____________________________________________________________________________
30 AliTPCCalPad::AliTPCCalPad():TNamed()
33 // AliTPCCalPad default constructor
36 for (Int_t isec = 0; isec < kNsec; isec++) {
42 //_____________________________________________________________________________
43 AliTPCCalPad::AliTPCCalPad(const Text_t *name, const Text_t *title)
47 // AliTPCCalPad constructor
49 for (Int_t isec = 0; isec < kNsec; isec++) {
50 fROC[isec] = new AliTPCCalROC(isec);
55 //_____________________________________________________________________________
56 AliTPCCalPad::AliTPCCalPad(const AliTPCCalPad &c):TNamed(c)
59 // AliTPCCalPad copy constructor
62 ((AliTPCCalPad &) c).Copy(*this);
66 ///_____________________________________________________________________________
67 AliTPCCalPad::~AliTPCCalPad()
70 // AliTPCCalPad destructor
73 for (Int_t isec = 0; isec < kNsec; isec++) {
82 //_____________________________________________________________________________
83 AliTPCCalPad &AliTPCCalPad::operator=(const AliTPCCalPad &c)
86 // Assignment operator
89 if (this != &c) ((AliTPCCalPad &) c).Copy(*this);
94 //_____________________________________________________________________________
95 void AliTPCCalPad::Copy(TObject &c) const
101 for (Int_t isec = 0; isec < kNsec; isec++) {
103 fROC[isec]->Copy(*((AliTPCCalPad &) c).fROC[isec]);