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