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 // TRD calibration class for MCM status //
22 ///////////////////////////////////////////////////////////////////////////////
24 #include "AliTRDCalMCMStatus.h"
25 #include "AliTRDCalSingleChamberStatus.h"
27 ClassImp(AliTRDCalMCMStatus)
29 //_____________________________________________________________________________
30 AliTRDCalMCMStatus::AliTRDCalMCMStatus():TNamed()
33 // AliTRDCalMCMStatus default constructor
36 for (Int_t idet = 0; idet < kNdet; idet++) {
42 //_____________________________________________________________________________
43 AliTRDCalMCMStatus::AliTRDCalMCMStatus(const Text_t *name, const Text_t *title)
47 // AliTRDCalMCMStatus constructor
50 for (Int_t isec = 0; isec < kNsect; isec++) {
51 for (Int_t ipla = 0; ipla < kNplan; ipla++) {
52 for (Int_t icha = 0; icha < kNcham; icha++) {
53 Int_t idet = AliTRDgeometry::GetDetector(ipla,icha,isec);
54 fROC[idet] = new AliTRDCalSingleChamberStatus(ipla,icha,8);
62 //_____________________________________________________________________________
63 AliTRDCalMCMStatus::AliTRDCalMCMStatus(const AliTRDCalMCMStatus &c):TNamed(c)
66 // AliTRDCalMCMStatus copy constructor
69 ((AliTRDCalMCMStatus &) c).Copy(*this);
73 ///_____________________________________________________________________________
74 AliTRDCalMCMStatus::~AliTRDCalMCMStatus()
77 // AliTRDCalMCMStatus destructor
80 for (Int_t idet = 0; idet < kNdet; idet++) {
89 //_____________________________________________________________________________
90 AliTRDCalMCMStatus &AliTRDCalMCMStatus::operator=(const AliTRDCalMCMStatus &c)
93 // Assignment operator
96 if (this != &c) ((AliTRDCalMCMStatus &) c).Copy(*this);
101 //_____________________________________________________________________________
102 void AliTRDCalMCMStatus::Copy(TObject &c) const
108 for (Int_t idet = 0; idet < kNdet; idet++) {
110 fROC[idet]->Copy(*((AliTRDCalMCMStatus &) c).fROC[idet]);