]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSSD.cxx
SSD QA - Updates from Panos Christakoglou and Boris Hippolyte
[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
17 #include "AliITSresponseSSD.h"
18 //////////////////////////////////////////////////
19 //  Base response class for ITS                 //
20 //  It is used to set static data members       //
21 //  connected to parameters equal for all       //
22 //  the SSD modules                             //
23 //////////////////////////////////////////////////
24
25
26 const Float_t AliITSresponseSSD::fgkDiffCoeffDefault = 0.;
27 const TString AliITSresponseSSD::fgkOption1Default = "";
28 const TString AliITSresponseSSD::fgkOption2Default = "";
29 const Double_t AliITSresponseSSD::fgkfCouplingPR = 0.01;
30 const Double_t AliITSresponseSSD::fgkfCouplingPL = 0.01;
31 const Double_t AliITSresponseSSD::fgkfCouplingNR = 0.01;
32 const Double_t AliITSresponseSSD::fgkfCouplingNL = 0.01;
33 const Int_t AliITSresponseSSD::fgkZSThreshold = 3;
34
35
36 ClassImp(AliITSresponseSSD)
37
38 //______________________________________________________________________
39 AliITSresponseSSD::AliITSresponseSSD():AliITSresponse(),
40 fADCpereV(0),
41 fKeVperADC(0),
42 fCouplingPR(0),
43 fCouplingPL(0),
44 fCouplingNR(0),
45 fCouplingNL(9),
46 fZSThreshold(0),
47 fOption1(),
48 fOption2(){
49     // Default Constructor
50
51   SetDiffCoeff(fgkDiffCoeffDefault,0.);
52   SetParamOptions(fgkOption1Default.Data(),fgkOption2Default.Data());
53   SetADCpereV();
54   SetKeVperADC();
55   SetCouplings(fgkfCouplingPR,fgkfCouplingPL,fgkfCouplingNR,fgkfCouplingNL);
56   SetZSThreshold(fgkZSThreshold);
57 }
58
59 //______________________________________________________________________
60 AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &ob) : AliITSresponse(ob),
61 fADCpereV(ob.fADCpereV),
62 fKeVperADC(ob.fKeVperADC),
63 fCouplingPR(ob.fCouplingPR),
64 fCouplingPL(ob.fCouplingPL),
65 fCouplingNR(ob.fCouplingNR),
66 fCouplingNL(ob.fCouplingNL),
67 fZSThreshold(ob.fZSThreshold),
68 fOption1(ob.fOption1),
69 fOption2(ob.fOption2) {
70   // Copy constructor
71
72 }
73
74 //______________________________________________________________________
75 AliITSresponseSSD& AliITSresponseSSD::operator=(const AliITSresponseSSD& ob){
76   // Assignment operator
77   this->~AliITSresponseSSD();
78   new(this) AliITSresponseSSD(ob);
79   return *this;
80 }
81