]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSGainSSD.cxx
Revision of SSD calibration classes (E. Fragiacomo)
[u/mrichter/AliRoot.git] / ITS / AliITSGainSSD.cxx
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 "AliITSGainSSD.h"
18
19 //////////////////////////////////////////////////////
20 // Author: Enrico Fragiacomo
21 // Date: 23/08/2007
22 // Modified: 08/07/2008
23 //                                                  //
24 //////////////////////////////////////////////////////
25
26 //const Int_t AliITSGainSSD::fgkDefaultNModulesSSD = 1698;
27 //const Int_t AliITSGainSSD::fgkDefaultNStripsSSD = 768;
28
29 ClassImp(AliITSGainSSD)
30   
31 //______________________________________________________________________
32   AliITSGainSSD::AliITSGainSSD() 
33 {
34     // Default Constructor  
35     for(Int_t i=0; i<2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD; i++) 
36       fGain[i]=0;    
37 }
38
39 //______________________________________________________________________
40 AliITSGainSSD::AliITSGainSSD(const AliITSGainSSD &source): 
41   TObject(source)
42 {
43     // copy Constructor
44   memcpy(fGain,source.fGain,
45          2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(UShort_t));
46 }
47
48 //______________________________________________________________________
49 AliITSGainSSD::~AliITSGainSSD(){
50     // destructor
51
52 }
53
54 //______________________________________________________________________
55 AliITSGainSSD& AliITSGainSSD::operator=(const AliITSGainSSD &source) {
56  // ass. op.
57     if (this == &source)return *this;
58
59     memcpy(fGain,source.fGain,
60          2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(UShort_t));
61     
62     return *this;
63 }