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)
24 //______________________________________________________________________
25 AliITSresponseSSD::AliITSresponseSSD(){
26 // Default Constructor
37 //______________________________________________________________________
38 AliITSresponseSSD::AliITSresponseSSD(const char *dataType){
43 SetDataType(dataType);
46 SetNDetParam(); // Sets fNPar=6 by default.
48 fDetPar = new Float_t[fNPar];
58 //______________________________________________________________________
59 AliITSresponseSSD::~AliITSresponseSSD(){
64 //______________________________________________________________________
65 AliITSresponseSSD& AliITSresponseSSD::operator=(const AliITSresponseSSD &src) {
68 if(&src == this) return *this;
70 this->fNPar = src.fNPar;
71 for(Int_t i=0;i<this->fNPar;i++) this->fDetPar[i] = src.fDetPar[i];
72 this->fNoiseP = src.fNoiseP;
73 this->fNoiseN = src.fNoiseN;
74 this->fSigmaP = src.fSigmaP;
75 this->fSigmaN = src.fSigmaN;
76 this->fDiffCoeff = src.fDiffCoeff;
77 this->fADCpereV = src.fADCpereV;
78 this->fOption1 = src.fOption1;
79 this->fOption2 = src.fOption2;
80 this->fDataType = src.fDataType;
84 //_________________________________________________________________________
85 AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &src) {
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]);
100 //______________________________________________________________________
101 void AliITSresponseSSD::GetDetParam(Float_t *par){
105 for (i=0; i<fNPar; i++) {