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 // AliTOFDCSmaps class //
21 // container for HV&&LV maps //
22 // as found during a run //
24 ///////////////////////////////
26 #include "AliTOFDCSmaps.h"
28 ClassImp(AliTOFDCSmaps)
30 ////////////////////////////////////////////////////////////////////////
31 AliTOFDCSmaps::AliTOFDCSmaps() :
38 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=-1;
42 ////////////////////////////////////////////////////////////////////////
43 AliTOFDCSmaps::AliTOFDCSmaps(Int_t time, Short_t array[]) :
50 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=array[ii];
53 ////////////////////////////////////////////////////////////////////////
54 AliTOFDCSmaps::AliTOFDCSmaps(const AliTOFDCSmaps & digit):
61 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=digit.fArray[ii];
65 ////////////////////////////////////////////////////////////////////////
66 AliTOFDCSmaps& AliTOFDCSmaps::operator=(const AliTOFDCSmaps & digit)
75 TObject::operator=(digit);
78 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=digit.fArray[ii];
83 ////////////////////////////////////////////////////////////////////////
84 AliTOFDCSmaps::~AliTOFDCSmaps()
91 ////////////////////////////////////////////////////////////////////////
92 void AliTOFDCSmaps::Update(AliTOFDCSmaps *object)
100 for (Int_t ii=0; ii<91*96*18; ii++) {
101 value = object->GetCellValue(ii);
102 if (fArray[ii]==-1 && value!=-1)