]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSDD.cxx
Coding convention rules obeyed
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSDD.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 #include <TString.h>
17
18 #include "AliITSresponseSDD.h"
19
20
21 //___________________________________________
22 ClassImp(AliITSresponseSDD)     
23
24 AliITSresponseSDD::AliITSresponseSDD()
25 {
26   // constructor
27    SetMaxAdc();
28    SetDiffCoeff();
29    SetDriftSpeed();
30    SetNSigmaIntegration();
31    // SetClock();
32    SetNoiseParam();
33    SetMagicValue();
34    SetMinVal();
35    SetParamOptions();
36    SetZeroSupp();
37    SetDataType();
38    SetFilenames();
39    SetOutputOption();
40    SetDo10to8();
41
42 }
43
44 //__________________________________________________________________________
45 AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
46   //     Copy Constructor 
47   if(&source == this) return;
48   Int_t i;
49   for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
50   this->fNoise = source.fNoise;
51   this->fBaseline = source.fBaseline;
52   this->fTopValue = source.fTopValue;
53   this->fTemperature = source.fTemperature;
54   this->fDriftSpeed = source.fDriftSpeed;
55   this->fNsigmas = source.fNsigmas;
56   this->fMaxAdc = source.fMaxAdc;
57   this->fDiffCoeff = source.fDiffCoeff;
58   this->fDiffCoeff1 = source.fDiffCoeff1;
59   this->fZeroSuppFlag = source.fZeroSuppFlag;
60   this->fMinVal = source.fMinVal;
61   this->fWrite = source.fWrite;
62   this->fBitComp = source.fBitComp;
63   this->fOption = source.fOption;
64   this->fParam1 = source.fParam1;
65   return;
66 }
67
68 //_________________________________________________________________________
69 AliITSresponseSDD& 
70   AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
71   //    Assignment operator
72   if(&source == this) return *this;
73   Int_t i;
74   for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
75   this->fNoise = source.fNoise;
76   this->fBaseline = source.fBaseline;
77   this->fTopValue = source.fTopValue;
78   this->fTemperature = source.fTemperature;
79   this->fDriftSpeed = source.fDriftSpeed;
80   this->fNsigmas = source.fNsigmas;
81   this->fMaxAdc = source.fMaxAdc;
82   this->fDiffCoeff = source.fDiffCoeff;
83   this->fDiffCoeff1 = source.fDiffCoeff1;
84   this->fZeroSuppFlag = source.fZeroSuppFlag;
85   this->fMinVal = source.fMinVal;
86   this->fWrite = source.fWrite;
87   this->fBitComp = source.fBitComp;
88   this->fOption = source.fOption;
89   this->fParam1 = source.fParam1;
90   return *this;
91 }
92
93 void AliITSresponseSDD::SetCompressParam(Int_t  cp[8])
94 {
95   // set compression param
96
97     Int_t i;
98     for (i=0; i<8; i++) {
99         fCPar[i]=cp[i];
100         //printf("\n CompressPar %d %d \n",i,fCPar[i]);
101         
102     }
103 }
104 void AliITSresponseSDD::GiveCompressParam(Int_t  cp[8])
105 {
106   // give compression param
107
108     Int_t i;
109     for (i=0; i<8; i++) {
110         cp[i]=fCPar[i];
111     }
112 }