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