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 **************************************************************************/
16 #include "AliITSresponseSDD.h"
19 //___________________________________________
20 ClassImp(AliITSresponseSDD)
22 AliITSresponseSDD::AliITSresponseSDD()
28 SetNSigmaIntegration();
41 //__________________________________________________________________________
42 AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
44 if(&source == this) return;
46 for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
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;
52 this->fNsigmas = source.fNsigmas;
53 this->fMaxAdc = source.fMaxAdc;
54 this->fDiffCoeff = source.fDiffCoeff;
55 this->fDiffCoeff1 = source.fDiffCoeff1;
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;
64 //_________________________________________________________________________
66 AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
67 // Assignment operator
68 if(&source == this) return *this;
70 for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
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;
76 this->fNsigmas = source.fNsigmas;
77 this->fMaxAdc = source.fMaxAdc;
78 this->fDiffCoeff = source.fDiffCoeff;
79 this->fDiffCoeff1 = source.fDiffCoeff1;
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;
88 void AliITSresponseSDD::SetCompressParam(Int_t cp[8])
90 // set compression param
95 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
99 void AliITSresponseSDD::GiveCompressParam(Int_t cp[8])
101 // give compression param
104 for (i=0; i<8; i++) {