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