]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSEmcBadChannelsMap.cxx
Adding statistical function (Marian)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSEmcBadChannelsMap.cxx
CommitLineData
52ee9a4c 1/**************************************************************************
2 * Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18///////////////////////////////////////////////////////////////////////////////
19// //
20// PHOS EmCal bad channels map. //
21// //
22///////////////////////////////////////////////////////////////////////////////
23
24#include "AliPHOSEmcBadChannelsMap.h"
25
26ClassImp(AliPHOSEmcBadChannelsMap)
27
28//________________________________________________________________
29
30 AliPHOSEmcBadChannelsMap::AliPHOSEmcBadChannelsMap() : fBads(-1)
31{
32 Reset();
33}
34
35//________________________________________________________________
36
37void AliPHOSEmcBadChannelsMap::Reset()
38{
39 //Set all channels as good.
40
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;
45
46 fBads=0;
47
48}
49
50//________________________________________________________________
51
52AliPHOSEmcBadChannelsMap::AliPHOSEmcBadChannelsMap(const AliPHOSEmcBadChannelsMap &map):
53 TObject(map),fBads(map.fBads)
54{
55 //Copy constructor.
56
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];
61
62}
63
64//________________________________________________________________
65
66AliPHOSEmcBadChannelsMap& AliPHOSEmcBadChannelsMap::operator= (const AliPHOSEmcBadChannelsMap &map)
67{
68 //Assignment operator.
69
70 if(this != &map) {
71 fBads = map.fBads;
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];
76 }
77
78 return *this;
79}