]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSDD.cxx
Corrections for memory leaks, random numbers, hit number; also some data members...
[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 <TString.h>
17
18 #include "AliITSresponseSDD.h"
19
20
21 //___________________________________________
22 ClassImp(AliITSresponseSDD)     
23
24 AliITSresponseSDD::AliITSresponseSDD()
25 {
26   // constructor
27    SetMaxAdc();
28    SetDiffCoeff();
29    SetDriftSpeed();
30    SetNSigmaIntegration();
31    SetNLookUp();
32    // SetClock();
33    SetNoiseParam();
34    SetNoiseAfterElectronics();
35    SetElectronics();
36    SetDynamicRange();
37    SetChargeLoss();
38    SetMinVal();
39    SetParamOptions();
40    SetZeroSupp();
41    SetDataType();
42    SetFilenames();
43    SetOutputOption();
44    SetDo10to8();
45 }
46 AliITSresponseSDD::~AliITSresponseSDD() { 
47
48   if(fGaus) delete fGaus;
49
50 }
51
52 void AliITSresponseSDD::SetCompressParam(Int_t  cp[8])
53 {
54   // set compression param
55
56     Int_t i;
57     for (i=0; i<8; i++) {
58         fCPar[i]=cp[i];
59         //printf("\n CompressPar %d %d \n",i,fCPar[i]);
60         
61     }
62 }
63 void AliITSresponseSDD::GiveCompressParam(Int_t  cp[8])
64 {
65   // give compression param
66
67     Int_t i;
68     for (i=0; i<8; i++) {
69         cp[i]=fCPar[i];
70     }
71 }
72
73 void AliITSresponseSDD::Print()
74 {
75   // Print SDD response Parameters
76
77    cout << "**************************************************" << endl;
78    cout << "   Silicon Drift Detector Response Parameters    " << endl;
79    cout << "**************************************************" << endl;
80    cout << "Diffusion Coefficients: " << fDiffCoeff << ", " << fDiffCoeff1 << endl;
81
82    cout << "Hardware compression parameters: " << endl; 
83    for(Int_t i=0; i<8; i++) cout << "fCPar[" << i << "] = " << fCPar[i] << endl;
84    cout << "Noise before electronics (arbitrary units): " << fNoise << endl;
85    cout << "Baseline (ADC units): " << fBaseline << endl;
86    cout << "Noise after electronics (ADC units): " << fNoiseAfterEl << endl;
87
88    cout << "Dynamic Range: " << fDynamicRange << endl;
89    cout << "Charge Loss: " << fChargeLoss << endl;
90    cout << "Temperature: " << fTemperature << endl;
91    cout << "Drift Speed: " << fDriftSpeed << endl;
92    cout << "Electronics (1=PASCAL, 2=OLA): " << fElectronics << endl;
93
94    cout << "N. of Sigma for signal integration: " << fNsigmas << endl;
95    cout << "N. of bins in lookup table: " << fNcomps << endl;
96
97    cout << "Max. ADC Value: " << fMaxAdc << endl;
98    cout << "Min. Value: " << fMinVal << endl;
99
100    cout << "**************************************************" << endl;
101   
102
103
104 }
105
106
107