]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSDD.cxx
New ITS test macro. This will run AliRoot to create the hits, run
[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    SetDo10to8();
39
40 }
41
42 //__________________________________________________________________________
43 AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
44   //     Copy Constructor 
45   if(&source == this) return;
46   Int_t i;
47   for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
48   this->fNoise = source.fNoise;
49   this->fBaseline = source.fBaseline;
50   this->fTopValue = source.fTopValue;
51   this->fTemperature = source.fTemperature;
52   this->fDriftSpeed = source.fDriftSpeed;
53   this->fNsigmas = source.fNsigmas;
54   this->fMaxAdc = source.fMaxAdc;
55   this->fDiffCoeff = source.fDiffCoeff;
56   this->fDiffCoeff1 = source.fDiffCoeff1;
57   this->fZeroSuppFlag = source.fZeroSuppFlag;
58   this->fMinVal = source.fMinVal;
59   this->fWrite = source.fWrite;
60   this->fBitComp = source.fBitComp;
61   this->fOption = source.fOption;
62   this->fParam1 = source.fParam1;
63   return;
64 }
65
66 //_________________________________________________________________________
67 AliITSresponseSDD& 
68   AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
69   //    Assignment operator
70   if(&source == this) return *this;
71   Int_t i;
72   for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
73   this->fNoise = source.fNoise;
74   this->fBaseline = source.fBaseline;
75   this->fTopValue = source.fTopValue;
76   this->fTemperature = source.fTemperature;
77   this->fDriftSpeed = source.fDriftSpeed;
78   this->fNsigmas = source.fNsigmas;
79   this->fMaxAdc = source.fMaxAdc;
80   this->fDiffCoeff = source.fDiffCoeff;
81   this->fDiffCoeff1 = source.fDiffCoeff1;
82   this->fZeroSuppFlag = source.fZeroSuppFlag;
83   this->fMinVal = source.fMinVal;
84   this->fWrite = source.fWrite;
85   this->fBitComp = source.fBitComp;
86   this->fOption = source.fOption;
87   this->fParam1 = source.fParam1;
88   return *this;
89 }
90
91 void AliITSresponseSDD::SetCompressParam(Int_t  cp[8])
92 {
93   // set compression param
94
95     Int_t i;
96     for (i=0; i<8; i++) {
97         fCPar[i]=cp[i];
98         //printf("\n CompressPar %d %d \n",i,fCPar[i]);
99         
100     }
101 }
102 void AliITSresponseSDD::GiveCompressParam(Int_t  cp[8])
103 {
104   // give compression param
105
106     Int_t i;
107     for (i=0; i<8; i++) {
108         cp[i]=fCPar[i];
109     }
110 }