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