new classes for resonance and V0 analysis (from R. Vernet)
[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),
fb4dfab9 42fNoise(0),
43fGain(0),
44fBadChannels(0),
e56160b8 45fGainP(0),
46fGainN(0),
47fNoisP(0),
48fNoisN(0),
49fNoisePThreshold(0),
50fNoisyPChannelsList(0),
51fNoiseNThreshold(0),
52fNoisyNChannelsList(0),
53fDeadNChannelsList(0),
54fDeadPChannelsList(0){
fcf95fc7 55 // Default Constructor
56
fcf95fc7 57 SetNoiseParam(fgkNoisePDefault,fgkNoiseNDefault);
58}
59//______________________________________________________________________
e56160b8 60AliITSCalibrationSSD::AliITSCalibrationSSD(const char *dataType):
61fNPar(0),
62fDetPar(0),
63fNoiseP(0),
64fNoiseN(0),
65fSigmaP(0),
66fSigmaN(0),
fb4dfab9 67fNoise(0),
68fGain(0),
69fBadChannels(0),
e56160b8 70fGainP(0),
71fGainN(0),
72fNoisP(0),
73fNoisN(0),
74fNoisePThreshold(0),
75fNoisyPChannelsList(0),
76fNoiseNThreshold(0),
77fNoisyNChannelsList(0),
78fDeadNChannelsList(0),
79fDeadPChannelsList(0){
fcf95fc7 80 // constructor
81
82 SetNoiseParam(fgkNoisePDefault,fgkNoiseNDefault);
83 SetDataType(dataType);
84 SetSigmaSpread(fgkSigmaPDefault,fgkSigmaNDefault);
85 SetNDetParam(fgkNParDefault); // Sets fNPar=6 by default.
86 fDetPar = new Double_t[fNPar];
87 if (fNPar==6) {
88 fDetPar[0]=10.;
89 fDetPar[1]=5.;
90 fDetPar[2]=0.02;
91 fDetPar[3]=0.02;
92 fDetPar[4]=0.02;
93 fDetPar[5]=0.03;
94 } // end if
95}
96//______________________________________________________________________
97AliITSCalibrationSSD::~AliITSCalibrationSSD(){
98 // destructor
99
100 delete [] fDetPar;
101}
102//______________________________________________________________________
fcf95fc7 103void AliITSCalibrationSSD::SetDetParam(Double_t *par){
104 // set det param
105 Int_t i;
106
107 for (i=0; i<fNPar; i++) {
108 fDetPar[i]=par[i];
109 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
110 } // end for i
111}
112//______________________________________________________________________
113void AliITSCalibrationSSD::GetDetParam(Double_t *par) const {
114 // get det param
115 Int_t i;
116
117 for (i=0; i<fNPar; i++) {
118 par[i]=fDetPar[i];
119 } // end for i
120}