]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSresponseSDD.cxx
Conversion code moved to AliG3toRoot
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSDD.cxx
CommitLineData
b0f5e3fc 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
1ca7869b 16#include <TString.h>
17
b0f5e3fc 18#include "AliITSresponseSDD.h"
b0f5e3fc 19
b0f5e3fc 20
21//___________________________________________
22ClassImp(AliITSresponseSDD)
23
24AliITSresponseSDD::AliITSresponseSDD()
25{
26 // constructor
27 SetMaxAdc();
28 SetDiffCoeff();
b0f5e3fc 29 SetDriftSpeed();
e8189707 30 SetNSigmaIntegration();
7551c5b2 31 SetNLookUp();
b0f5e3fc 32 // SetClock();
33 SetNoiseParam();
7551c5b2 34 SetNoiseAfterElectronics();
35 SetElectronics();
36 SetDynamicRange();
37 SetChargeLoss();
b0f5e3fc 38 SetMinVal();
39 SetParamOptions();
40 SetZeroSupp();
41 SetDataType();
42 SetFilenames();
43 SetOutputOption();
fa1750f9 44 SetDo10to8();
b0f5e3fc 45}
03898a57 46AliITSresponseSDD::~AliITSresponseSDD() {
b0f5e3fc 47
03898a57 48 if(fGaus) delete fGaus;
b0f5e3fc 49
b0f5e3fc 50}
51
52void AliITSresponseSDD::SetCompressParam(Int_t cp[8])
53{
54 // set compression param
e8189707 55
b0f5e3fc 56 Int_t i;
e8189707 57 for (i=0; i<8; i++) {
b0f5e3fc 58 fCPar[i]=cp[i];
59 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
60
61 }
62}
63void AliITSresponseSDD::GiveCompressParam(Int_t cp[8])
64{
65 // give compression param
e8189707 66
b0f5e3fc 67 Int_t i;
e8189707 68 for (i=0; i<8; i++) {
b0f5e3fc 69 cp[i]=fCPar[i];
70 }
71}
7551c5b2 72
73void 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
7551c5b2 100 cout << "**************************************************" << endl;
101
102
103
104}
105
106
107