]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSDD.cxx
Release version of ITS code
[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 "AliITSresponseSDD.h"
17
18
19 //___________________________________________
20 ClassImp(AliITSresponseSDD)     
21
22 AliITSresponseSDD::AliITSresponseSDD()
23 {
24   // constructor
25    SetMaxAdc();
26    SetDiffCoeff();
27    SetDriftSpeed();
28    SetNSigmaIntegration();
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;
45   Int_t i;
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;
61   return;
62 }
63
64 //_________________________________________________________________________
65 AliITSresponseSDD& 
66   AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
67   //    Assignment operator
68   if(&source == this) return *this;
69   Int_t i;
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;
85   return *this;
86 }
87
88 void AliITSresponseSDD::SetCompressParam(Int_t  cp[8])
89 {
90   // set compression param
91
92     Int_t i;
93     for (i=0; i<8; i++) {
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
102
103     Int_t i;
104     for (i=0; i<8; i++) {
105         cp[i]=fCPar[i];
106     }
107 }