]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSSD.h
Update rawdata format for trigger (Christian)
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSSD.h
1 #ifndef ALIITSRESPONSESSD_H
2 #define ALIITSRESPONSESSD_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include "AliITSresponse.h"
7
8
9 /////////////////////////////////////////////////// 
10 // Response class for SSD                        //
11 //                                               //
12 ///////////////////////////////////////////////////
13
14 class AliITSresponseSSD : public AliITSresponse {
15
16  public:
17     AliITSresponseSSD();
18     virtual ~AliITSresponseSSD() {;}
19     virtual void    SetParamOptions(const char *opt1, const char *opt2) {
20         // parameters: "SetInvalid" to simulate the invalid strips
21         fOption1=opt1; fOption2=opt2;
22     }
23     virtual void    ParamOptions(char *opt1,char *opt2) const {
24         // options
25         strcpy(opt1,fOption1.Data());  strcpy(opt2,fOption2.Data());
26     }
27     void SetADCpereV(Double_t a=200./30000.0){fADCpereV = a;}
28     Double_t DEvToADC(Double_t eV) const {return eV*fADCpereV;}
29     Int_t IEvToADC(Double_t eV) const { // Converts electron-hole pairs to
30       return ((Int_t) DEvToADC(eV)); }
31       
32     Double_t  GetCouplingPR() const {// couplings
33       return fCouplingPR;}
34     Double_t  GetCouplingPL() const {// couplings
35       return fCouplingPL;}
36     Double_t  GetCouplingNR() const {// couplings
37       return fCouplingNR;}
38     Double_t  GetCouplingNL() const {// couplings
39       return fCouplingNL;}
40     virtual void SetCouplings(Double_t pr, Double_t pl, Double_t nr, Double_t nl) {
41       fCouplingPR=pr; fCouplingPL=pl; fCouplingNR=nr; fCouplingNL=nl; }
42
43     Int_t GetZSThreshold() const { // ZS threshold
44       return fZSThreshold; }
45     virtual void SetZSThreshold(Int_t zsth) { fZSThreshold = zsth; }
46
47 protected:
48     static const Float_t fgkDiffCoeffDefault; //default for fDiffCoeff
49     static const TString fgkOption1Default; // default for fOption1
50     static const TString fgkOption2Default; // default for fOption2
51
52     static const Double_t fgkfCouplingPR;
53     static const Double_t fgkfCouplingPL;
54     static const Double_t fgkfCouplingNR;
55     static const Double_t fgkfCouplingNL;
56
57     Double_t fADCpereV;        // Constant to convert eV to ADC.
58
59     Double_t  fCouplingPR;  // couplings
60     Double_t  fCouplingPL;  // couplings
61     Double_t  fCouplingNR;  // couplings
62     Double_t  fCouplingNL;  // couplings   
63
64     static const Int_t fgkZSThreshold; // threshold for the zero suppresion
65     Int_t fZSThreshold; 
66
67      TString fOption1;         // Simulate invalid strips option
68     TString fOption2;         // Not used for the moment
69
70  private:
71     AliITSresponseSSD(const AliITSresponseSSD &source); // copy constructor
72     AliITSresponseSSD& operator=(const AliITSresponseSSD &source); // ass. op.
73
74     ClassDef(AliITSresponseSSD,4) //Response class for SSD
75 };
76 #endif