1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "AliITSresponseSDD.h"
21 //___________________________________________
22 ClassImp(AliITSresponseSDD)
24 AliITSresponseSDD::AliITSresponseSDD()
30 SetNSigmaIntegration();
44 //__________________________________________________________________________
45 AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
47 if(&source == this) return;
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;
68 //_________________________________________________________________________
70 AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
71 // Assignment operator
72 if(&source == this) return *this;
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;
93 void AliITSresponseSDD::SetCompressParam(Int_t cp[8])
95 // set compression param
100 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
104 void AliITSresponseSDD::GiveCompressParam(Int_t cp[8])
106 // give compression param
109 for (i=0; i<8; i++) {