1 /**************************************************************************
2 * Copyright(c) 2007, 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 // PHOS EmCal bad channels map. //
22 ///////////////////////////////////////////////////////////////////////////////
24 #include "AliPHOSEmcBadChannelsMap.h"
26 ClassImp(AliPHOSEmcBadChannelsMap)
28 //________________________________________________________________
30 AliPHOSEmcBadChannelsMap::AliPHOSEmcBadChannelsMap() : fBads(-1)
35 //________________________________________________________________
37 void AliPHOSEmcBadChannelsMap::Reset()
39 //Set all channels as good.
41 for(Int_t module=0; module<5; module++)
42 for(Int_t column=0; column<56; column++)
43 for(Int_t row=0; row<64; row++)
44 fBadChannelEmc[module][column][row] = kFALSE;
50 //________________________________________________________________
52 AliPHOSEmcBadChannelsMap::AliPHOSEmcBadChannelsMap(const AliPHOSEmcBadChannelsMap &map):
53 TObject(map),fBads(map.fBads)
57 for(Int_t module=0; module<5; module++)
58 for(Int_t column=0; column<56; column++)
59 for(Int_t row=0; row<64; row++)
60 fBadChannelEmc[module][column][row] = map.fBadChannelEmc[module][column][row];
64 //________________________________________________________________
66 AliPHOSEmcBadChannelsMap& AliPHOSEmcBadChannelsMap::operator= (const AliPHOSEmcBadChannelsMap &map)
68 //Assignment operator.
72 for(Int_t module=0; module<5; module++)
73 for(Int_t column=0; column<56; column++)
74 for(Int_t row=0; row<64; row++)
75 fBadChannelEmc[module][column][row] = map.fBadChannelEmc[module][column][row];