]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSGainSSDv2.cxx
store additional info in the diagnostics tree
[u/mrichter/AliRoot.git] / ITS / AliITSGainSSDv2.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 "AliITSGainSSDv2.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 AliITSGainSSD::fgkDefaultNModulesSSD = 1698;
28 //const Int_t AliITSGainSSD::fgkDefaultNStripsSSD = 768;
29
30 ClassImp(AliITSGainSSDv2)
31   
32 //______________________________________________________________________
33   AliITSGainSSDv2::AliITSGainSSDv2() 
34 {
35     // Default Constructor  
36     for(Int_t i=0; i<2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD; i++) 
37       fGain[i]=0;    
38 }
39
40 //______________________________________________________________________
41 AliITSGainSSDv2::AliITSGainSSDv2(const AliITSGainSSDv2 &source): 
42   TObject(source)
43 {
44     // copy Constructor
45   memcpy(fGain,source.fGain,
46          2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(UShort_t));
47 }
48
49 //______________________________________________________________________
50 AliITSGainSSDv2::~AliITSGainSSDv2(){
51     // destructor
52
53 }
54
55 //______________________________________________________________________
56 AliITSGainSSDv2& AliITSGainSSDv2::operator=(const AliITSGainSSDv2 &source) {
57  // ass. op.
58     if (this == &source)return *this;
59
60     memcpy(fGain,source.fGain,
61          2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD*sizeof(UShort_t));
62     
63     return *this;
64 }