Adding the AliAnalysisGUI class which is the main class that controls the GUI.
[u/mrichter/AliRoot.git] / ITS / AliITSCalibrationSSD.cxx
CommitLineData
fcf95fc7 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
17#include "AliITSCalibrationSSD.h"
18//////////////////////////////////////////////////////
19// Calibration class for set:ITS //
20// Specific subdetector implementation //
21// for silicon strips detectors //
22// //
23// //
24//////////////////////////////////////////////////////
25
26const Double_t AliITSCalibrationSSD::fgkNoiseNDefault = 625.;
27const Double_t AliITSCalibrationSSD::fgkNoisePDefault = 420.;
28const Int_t AliITSCalibrationSSD::fgkNParDefault = 6;
29const Double_t AliITSCalibrationSSD::fgkSigmaPDefault = 3.;
30const Double_t AliITSCalibrationSSD::fgkSigmaNDefault = 2.;
31
32ClassImp(AliITSCalibrationSSD)
33
34//______________________________________________________________________
e56160b8 35AliITSCalibrationSSD::AliITSCalibrationSSD():
36fNPar(0),
37fDetPar(0),
38fNoiseP(0),
39fNoiseN(0),
40fSigmaP(0),
41fSigmaN(0),
42fGainP(0),
43fGainN(0),
44fNoisP(0),
45fNoisN(0),
46fNoisePThreshold(0),
47fNoisyPChannelsList(0),
48fNoiseNThreshold(0),
49fNoisyNChannelsList(0),
50fDeadNChannelsList(0),
51fDeadPChannelsList(0){
fcf95fc7 52 // Default Constructor
53
fcf95fc7 54 SetNoiseParam(fgkNoisePDefault,fgkNoiseNDefault);
55}
56//______________________________________________________________________
e56160b8 57AliITSCalibrationSSD::AliITSCalibrationSSD(const char *dataType):
58fNPar(0),
59fDetPar(0),
60fNoiseP(0),
61fNoiseN(0),
62fSigmaP(0),
63fSigmaN(0),
64fGainP(0),
65fGainN(0),
66fNoisP(0),
67fNoisN(0),
68fNoisePThreshold(0),
69fNoisyPChannelsList(0),
70fNoiseNThreshold(0),
71fNoisyNChannelsList(0),
72fDeadNChannelsList(0),
73fDeadPChannelsList(0){
fcf95fc7 74 // constructor
75
76 SetNoiseParam(fgkNoisePDefault,fgkNoiseNDefault);
77 SetDataType(dataType);
78 SetSigmaSpread(fgkSigmaPDefault,fgkSigmaNDefault);
79 SetNDetParam(fgkNParDefault); // Sets fNPar=6 by default.
80 fDetPar = new Double_t[fNPar];
81 if (fNPar==6) {
82 fDetPar[0]=10.;
83 fDetPar[1]=5.;
84 fDetPar[2]=0.02;
85 fDetPar[3]=0.02;
86 fDetPar[4]=0.02;
87 fDetPar[5]=0.03;
88 } // end if
89}
90//______________________________________________________________________
91AliITSCalibrationSSD::~AliITSCalibrationSSD(){
92 // destructor
93
94 delete [] fDetPar;
95}
96//______________________________________________________________________
fcf95fc7 97void AliITSCalibrationSSD::SetDetParam(Double_t *par){
98 // set det param
99 Int_t i;
100
101 for (i=0; i<fNPar; i++) {
102 fDetPar[i]=par[i];
103 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
104 } // end for i
105}
106//______________________________________________________________________
107void AliITSCalibrationSSD::GetDetParam(Double_t *par) const {
108 // get det param
109 Int_t i;
110
111 for (i=0; i<fNPar; i++) {
112 par[i]=fDetPar[i];
113 } // end for i
114}