]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSresponseSSD.h
Run number initialized to -1.
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSSD.h
index fa94495bc585339d2650503a1653529e832b39ca..15ee0d8ecf9440153b467e7dab021d19d6c77e13 100644 (file)
@@ -4,7 +4,7 @@
  * See cxx source for full Copyright notice                               */
 
 #include "AliITSresponse.h"
-
+#include <Riostream.h>
 
 /////////////////////////////////////////////////// 
 // Response class for SSD                        //
@@ -24,19 +24,51 @@ class AliITSresponseSSD : public AliITSresponse {
        // options
        strcpy(opt1,fOption1.Data());  strcpy(opt2,fOption2.Data());
     }
-    void SetADCpereV(Double_t a=50./30000.0){fADCpereV = a;}
+    void SetADCpereV(Double_t a=120./24888.9){fADCpereV = a;}
     Double_t DEvToADC(Double_t eV) const {return eV*fADCpereV;}
     Int_t IEvToADC(Double_t eV) const { // Converts electron-hole pairs to
       return ((Int_t) DEvToADC(eV)); }
       
- protected:
+    void SetKeVperADC(Double_t a=86.4/120.){fKeVperADC = a;}
+    Double_t ADCToKeV(Double_t adc) const {return adc*fKeVperADC;}
+
+    Double_t  GetCouplingPR() const {// couplings
+      return fCouplingPR;}
+    Double_t  GetCouplingPL() const {// couplings
+      return fCouplingPL;}
+    Double_t  GetCouplingNR() const {// couplings
+      return fCouplingNR;}
+    Double_t  GetCouplingNL() const {// couplings
+      return fCouplingNL;}
+    virtual void SetCouplings(Double_t pr, Double_t pl, Double_t nr, Double_t nl) {
+      fCouplingPR=pr; fCouplingPL=pl; fCouplingNR=nr; fCouplingNL=nl; }
+
+    Int_t GetZSThreshold() const { // ZS threshold
+      return fZSThreshold; }
+    virtual void SetZSThreshold(Int_t zsth) { fZSThreshold = zsth; }
+
+protected:
     static const Float_t fgkDiffCoeffDefault; //default for fDiffCoeff
     static const TString fgkOption1Default; // default for fOption1
     static const TString fgkOption2Default; // default for fOption2
 
+    static const Double_t fgkfCouplingPR;  // default value for couplings
+    static const Double_t fgkfCouplingPL;  // default value for couplings
+    static const Double_t fgkfCouplingNR;  // default value for couplings
+    static const Double_t fgkfCouplingNL;  // default value for couplings
+
     Double_t fADCpereV;        // Constant to convert eV to ADC.
+    Double_t fKeVperADC;       // Constant to convert ADC to keV
+
+    Double_t  fCouplingPR;  // couplings
+    Double_t  fCouplingPL;  // couplings
+    Double_t  fCouplingNR;  // couplings
+    Double_t  fCouplingNL;  // couplings   
+
+    static const Int_t fgkZSThreshold; // threshold for the zero suppresion
+    Int_t fZSThreshold; 
 
-    TString fOption1;         // Simulate invalid strips option
+     TString fOption1;         // Simulate invalid strips option
     TString fOption2;         // Not used for the moment
 
  private: