]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 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 | ||
1ca7869b | 16 | #include <TString.h> |
17 | ||
b0f5e3fc | 18 | #include "AliITSresponseSDD.h" |
b0f5e3fc | 19 | |
b0f5e3fc | 20 | |
21 | //___________________________________________ | |
22 | ClassImp(AliITSresponseSDD) | |
23 | ||
24 | AliITSresponseSDD::AliITSresponseSDD() | |
25 | { | |
26 | // constructor | |
27 | SetMaxAdc(); | |
28 | SetDiffCoeff(); | |
b0f5e3fc | 29 | SetDriftSpeed(); |
e8189707 | 30 | SetNSigmaIntegration(); |
b0f5e3fc | 31 | // SetClock(); |
32 | SetNoiseParam(); | |
33 | SetMagicValue(); | |
34 | SetMinVal(); | |
35 | SetParamOptions(); | |
36 | SetZeroSupp(); | |
37 | SetDataType(); | |
38 | SetFilenames(); | |
39 | SetOutputOption(); | |
fa1750f9 | 40 | SetDo10to8(); |
b0f5e3fc | 41 | |
42 | } | |
43 | ||
44 | //__________________________________________________________________________ | |
45 | AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){ | |
46 | // Copy Constructor | |
47 | if(&source == this) return; | |
e8189707 | 48 | Int_t i; |
7e2ac9e7 | 49 | for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];} |
b0f5e3fc | 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; | |
e8189707 | 55 | this->fNsigmas = source.fNsigmas; |
b0f5e3fc | 56 | this->fMaxAdc = source.fMaxAdc; |
57 | this->fDiffCoeff = source.fDiffCoeff; | |
e8189707 | 58 | this->fDiffCoeff1 = source.fDiffCoeff1; |
b0f5e3fc | 59 | this->fZeroSuppFlag = source.fZeroSuppFlag; |
60 | this->fMinVal = source.fMinVal; | |
61 | this->fWrite = source.fWrite; | |
fa1750f9 | 62 | this->fBitComp = source.fBitComp; |
b0f5e3fc | 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; | |
e8189707 | 73 | Int_t i; |
7e2ac9e7 | 74 | for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];} |
b0f5e3fc | 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; | |
e8189707 | 80 | this->fNsigmas = source.fNsigmas; |
b0f5e3fc | 81 | this->fMaxAdc = source.fMaxAdc; |
82 | this->fDiffCoeff = source.fDiffCoeff; | |
e8189707 | 83 | this->fDiffCoeff1 = source.fDiffCoeff1; |
b0f5e3fc | 84 | this->fZeroSuppFlag = source.fZeroSuppFlag; |
85 | this->fMinVal = source.fMinVal; | |
86 | this->fWrite = source.fWrite; | |
fa1750f9 | 87 | this->fBitComp = source.fBitComp; |
b0f5e3fc | 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 | |
e8189707 | 96 | |
b0f5e3fc | 97 | Int_t i; |
e8189707 | 98 | for (i=0; i<8; i++) { |
b0f5e3fc | 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 | |
e8189707 | 107 | |
b0f5e3fc | 108 | Int_t i; |
e8189707 | 109 | for (i=0; i<8; i++) { |
b0f5e3fc | 110 | cp[i]=fCPar[i]; |
111 | } | |
112 | } |