]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSSD.cxx
Remove Process_t
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSSD.cxx
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>
17 #include <TString.h>
18
19 #include "AliITSresponseSSD.h"
20 #include "AliITSgeom.h"
21
22 ClassImp(AliITSresponseSSD)     
23 //----------------------------------------------------------
24 AliITSresponseSSD::AliITSresponseSSD()
25 {
26   // constructor
27   SetDiffCoeff();
28   SetNoiseParam();
29   SetDataType();
30   SetSigmaSpread();
31   SetParamOptions();
32   SetNDetParam();
33   fDetPar = new Float_t[fNPar];
34   if (fNPar==6) {
35     fDetPar[0]=10.;
36     fDetPar[1]=5.;
37     fDetPar[2]=0.02;
38     fDetPar[3]=0.02;
39     fDetPar[4]=0.02;
40     fDetPar[5]=0.03;
41   }
42   
43   
44 }
45
46 //----------------------------------------------------------
47 AliITSresponseSSD::~AliITSresponseSSD()
48 {
49   // destructor
50   delete [] fDetPar;
51   delete fDetPar;
52   
53 }
54
55 //__________________________________________________________________________
56 AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &source){
57   //     Copy Constructor 
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;
69   return;
70 }
71
72 //_________________________________________________________________________
73 AliITSresponseSSD& 
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;
87   return *this;
88 }
89
90 //----------------------------------------------------------
91 void AliITSresponseSSD::SetDetParam(Float_t  *par)
92 {
93   // set det param
94   Int_t i;
95   for (i=0; i<fNPar; i++) {
96     fDetPar[i]=par[i];
97     //printf("\n CompressPar %d %d \n",i,fCPar[i]);
98     
99   } 
100 }
101 void AliITSresponseSSD::GetDetParam(Float_t  *par)
102 {
103   // get det param  
104   Int_t i;  
105   for (i=0; i<fNPar; i++) {
106     par[i]=fDetPar[i];
107   }
108 }