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 // Author: A. De Caro //
25 // Email: decaro@sa.innf.it //
27 ///////////////////////////////
29 #include "AliTOFDCSmaps.h"
31 ClassImp(AliTOFDCSmaps)
33 ////////////////////////////////////////////////////////////////////////
34 AliTOFDCSmaps::AliTOFDCSmaps() :
41 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=-1;
45 ////////////////////////////////////////////////////////////////////////
46 AliTOFDCSmaps::AliTOFDCSmaps(Int_t time, Short_t array[]) :
53 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=array[ii];
56 ////////////////////////////////////////////////////////////////////////
57 AliTOFDCSmaps::AliTOFDCSmaps(const AliTOFDCSmaps & digit):
64 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=digit.fArray[ii];
68 ////////////////////////////////////////////////////////////////////////
69 AliTOFDCSmaps& AliTOFDCSmaps::operator=(const AliTOFDCSmaps & digit)
78 TObject::operator=(digit);
81 for (Int_t ii=0; ii<91*96*18; ii++) fArray[ii]=digit.fArray[ii];
86 ////////////////////////////////////////////////////////////////////////
87 AliTOFDCSmaps::~AliTOFDCSmaps()
94 ////////////////////////////////////////////////////////////////////////
95 void AliTOFDCSmaps::Update(AliTOFDCSmaps *object)
98 // Update aready exsisting AliTOFDCSmap
99 // with the value of the passed object
104 for (Int_t ii=0; ii<91*96*18; ii++) {
105 value = object->GetCellValue(ii);
106 if (fArray[ii]==-1 && value!=-1)