]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSresponseSSD.cxx
Cosmetic changes.
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSSD.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
16#include <TMath.h>
1ca7869b 17#include <TString.h>
b0f5e3fc 18
19#include "AliITSresponseSSD.h"
20#include "AliITSgeom.h"
21
6a407881 22ClassImp(AliITSresponseSSD)
23
24//______________________________________________________________________
25AliITSresponseSSD::AliITSresponseSSD(){
26 // constructor
b0f5e3fc 27
6a407881 28 SetDiffCoeff();
29 SetNoiseParam();
30 SetDataType();
31 SetSigmaSpread();
32 SetParamOptions();
33 SetNDetParam();
34 SetADCpereV();
35 fDetPar = new Float_t[fNPar];
36 if (fNPar==6) {
37 fDetPar[0]=10.;
38 fDetPar[1]=5.;
39 fDetPar[2]=0.02;
40 fDetPar[3]=0.02;
41 fDetPar[4]=0.02;
42 fDetPar[5]=0.03;
43 } // end if
b0f5e3fc 44}
6a407881 45//______________________________________________________________________
46AliITSresponseSSD::~AliITSresponseSSD(){
47 // destructor
b0f5e3fc 48
6a407881 49 delete [] fDetPar;
b0f5e3fc 50}
6a407881 51//______________________________________________________________________
52AliITSresponseSSD& AliITSresponseSSD::operator=(const AliITSresponseSSD &src) {
53 // = operator.
54
55 if(&src == this) return *this;
56
57 this->fNPar = src.fNPar;
58 for(Int_t i=0;i<this->fNPar;i++) this->fDetPar[i] = src.fDetPar[i];
59 this->fNoiseP = src.fNoiseP;
60 this->fNoiseN = src.fNoiseN;
61 this->fSigmaP = src.fSigmaP;
62 this->fSigmaN = src.fSigmaN;
63 this->fDiffCoeff = src.fDiffCoeff;
64 this->fADCpereV = src.fADCpereV;
65 this->fOption1 = src.fOption1;
66 this->fOption2 = src.fOption2;
67 this->fDataType = src.fDataType;
b0f5e3fc 68
6a407881 69 return *this;
70}
b0f5e3fc 71//_________________________________________________________________________
6a407881 72AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &src) {
73 // copy constructor
74
75 *this = src;
b0f5e3fc 76}
6a407881 77//______________________________________________________________________
78void AliITSresponseSSD::SetDetParam(Float_t *par){
79 // set det param
80 Int_t i;
b0f5e3fc 81
6a407881 82 for (i=0; i<fNPar; i++) {
83 fDetPar[i]=par[i];
84 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
85 } // end for i
b0f5e3fc 86}
6a407881 87//______________________________________________________________________
88void AliITSresponseSSD::GetDetParam(Float_t *par){
89 // get det param
90 Int_t i;
91
92 for (i=0; i<fNPar; i++) {
93 par[i]=fDetPar[i];
94 } // end for i
b0f5e3fc 95}