1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 #include "AliITSresponseSSD.h"
20 #include "AliITSgeom.h"
22 ClassImp(AliITSresponseSSD)
23 //----------------------------------------------------------
24 AliITSresponseSSD::AliITSresponseSSD()
33 fDetPar = new Float_t[fNPar];
46 //----------------------------------------------------------
47 AliITSresponseSSD::~AliITSresponseSSD()
55 //__________________________________________________________________________
56 AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &source){
58 if(&source == this) return;
59 this->fNPar = source.fNPar;
60 this->fDetPar = source.fDetPar;
61 this->fNoiseP = source.fNoiseP;
62 this->fNoiseN = source.fNoiseN;
63 this->fSigmaP = source.fSigmaP;
64 this->fSigmaN = source.fSigmaN;
65 this->fDiffCoeff = source.fDiffCoeff;
66 this->fOption1 = source.fOption1;
67 this->fOption2 = source.fOption2;
68 this->fDataType = source.fDataType;
72 //_________________________________________________________________________
74 AliITSresponseSSD::operator=(const AliITSresponseSSD &source) {
75 // Assignment operator
76 if(&source == this) return *this;
77 this->fNPar = source.fNPar;
78 this->fDetPar = source.fDetPar;
79 this->fNoiseP = source.fNoiseP;
80 this->fNoiseN = source.fNoiseN;
81 this->fSigmaP = source.fSigmaP;
82 this->fSigmaN = source.fSigmaN;
83 this->fDiffCoeff = source.fDiffCoeff;
84 this->fOption1 = source.fOption1;
85 this->fOption2 = source.fOption2;
86 this->fDataType = source.fDataType;
90 //----------------------------------------------------------
91 void AliITSresponseSSD::SetDetParam(Float_t *par)
95 for (i=0; i<fNPar; i++) {
97 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
101 void AliITSresponseSSD::GetDetParam(Float_t *par)
105 for (i=0; i<fNPar; i++) {