]>
Commit | Line | Data |
---|---|---|
fb4dfab9 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
ced4d9bc | 3 | * * |
fb4dfab9 | 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 | ||
17 | #include "AliITSBadChannelsSSD.h" | |
29e923a3 | 18 | #include <cstring> |
fb4dfab9 | 19 | |
ced4d9bc | 20 | ////////////////////////////////////////////////////// |
21 | // Author: Enrico Fragiacomo | |
22 | // Date: 23/08/2007 | |
23 | // Modified: 08/07/2008 | |
24 | // // | |
25 | ////////////////////////////////////////////////////// | |
fb4dfab9 | 26 | |
ced4d9bc | 27 | //const Int_t AliITSBadChannelsSSD::fgkDefaultNModulesSSD = 1698; |
28 | //const Int_t AliITSBadChannelsSSD::fgkDefaultNStripsSSD = 768; | |
29 | ||
30 | ClassImp(AliITSBadChannelsSSD) | |
31 | ||
fb4dfab9 | 32 | //______________________________________________________________________ |
ced4d9bc | 33 | AliITSBadChannelsSSD::AliITSBadChannelsSSD() |
34 | // Default Constructor | |
35 | { | |
36 | for(Int_t i=0; i<2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD; i++) | |
37 | fBadChannels[i]=0; | |
38 | } | |
fb4dfab9 | 39 | |
ced4d9bc | 40 | //______________________________________________________________________ |
41 | AliITSBadChannelsSSD::AliITSBadChannelsSSD(const AliITSBadChannelsSSD &source): | |
42 | TObject(source) | |
43 | { | |
44 | // copy Constructor | |
45 | memcpy(fBadChannels,source.fBadChannels, | |
46 | 2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(Char_t)); | |
fb4dfab9 | 47 | } |
48 | ||
49 | //______________________________________________________________________ | |
50 | AliITSBadChannelsSSD::~AliITSBadChannelsSSD(){ | |
51 | // destructor | |
fb4dfab9 | 52 | } |
53 | ||
ced4d9bc | 54 | //______________________________________________________________________ |
55 | AliITSBadChannelsSSD& AliITSBadChannelsSSD::operator=(const AliITSBadChannelsSSD &source) { | |
56 | // ass. op. | |
57 | if (this == &source)return *this; | |
58 | memcpy(fBadChannels,source.fBadChannels, | |
59 | 2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(Char_t)); | |
60 | ||
61 | return *this; | |
62 | } |