]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSresponseSPD.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSPD.h
index 73e4f24ff8d781a1c85dceddfc2cbe1db85dd77d..4d26e4d236e619144c88474c96e6f5e39888a1dd 100644 (file)
@@ -1,67 +1,40 @@
 #ifndef ALIITSRESPONSESPD_H
 #define ALIITSRESPONSESPD_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
 
-#include "AliITSsegmentation.h"
 #include "AliITSresponse.h"
-//----------------------------------------------
-//
-// ITS response class for SPD
-//
-class AliITSresponseSPD :
-  public AliITSresponse {
-public:
-  
-  AliITSresponseSPD();
-  virtual ~AliITSresponseSPD() { 
-    // destructror
-  }
-  //
-  // Configuration methods
-  //
-  virtual void    SetDiffCoeff(Float_t p1=0.00433) {
-    // Diffusion coefficient
-    fDiffCoeff=p1;
-  }
-  virtual Float_t DiffCoeff() {
-    // Get diffusion coefficient
-    return fDiffCoeff;
-  }
-  virtual  void   SetNoiseParam(Float_t n=0., Float_t b=0.) {
-    // set noise
-    fNoise=n; fBaseline=b;
-  }   
-  virtual  void   GetNoiseParam(Float_t &n, Float_t &b) {
-    // get noise
-    n=fNoise; b=fBaseline;
-  }   
-  virtual void     SetMinVal(Int_t p1=0) {
-    // Zero-suppression option threshold 
-    fThreshold=p1;
-  }
-  virtual Int_t MinVal() {
-    // Get zero-suppression threshold
-    return fThreshold;
-  }
-  virtual void    SetDataType(char *data="simulated") {
-    // Type of data - real or simulated
-    fDataType=data;
-  }
-  virtual char  *DataType() {
-    // Get data typer
-    return fDataType;
-  } 
-  
-  ClassDef(AliITSresponseSPD,1) // SPD response
-    
-    protected:
+///////////////////////////////////////////
+//                                       //
+// ITS response class for SPD            //
+///////////////////////////////////////////
   
-  Float_t fDiffCoeff;       // Diffusion Coefficient
-  Float_t fNoise;           // Noise value
-  Float_t fBaseline;        // Baseline value
-  Int_t fThreshold;         // Zero-Suppression threshold
-  
-  char* fDataType;          //!
-                            // Type of data - real or simulated
+class AliITSresponseSPD :  public AliITSresponse {
+ public:
+    AliITSresponseSPD(); // default constructor
+    virtual ~AliITSresponseSPD() {;} // destructror
+
+    virtual void SetCouplingOption(const char *opt) {   // Options: "old" or "new"
+        fCouplOpt=opt;}
+    virtual void CouplingOption(char *opt) const {
+      strncpy(opt,fCouplOpt.Data(),fCouplOpt.Sizeof());}
+    virtual  void   SetSigmaDiffusionAsymmetry(Double_t ecc)
+        {fEccDiff=ecc;}   
+    virtual  void   GetSigmaDiffusionAsymmetry(Double_t &ecc) const 
+        {ecc=fEccDiff;}
+
+ protected:
+
+    static const Float_t fgkDiffCoeffDefault;  //default for fDiffCoeff
+    static const TString fgkCouplingOptDefault;  // type of pixel Coupling (old or new)
+    static const Float_t fgkEccentricityDiffDefault;//default for fCouplRow 
+
+    TString fCouplOpt;        // Coupling Option
+    Float_t fEccDiff;         // Eccentricity (i.e. asymmetry parameter) in the Gaussian Diffusion
+
+
+    ClassDef(AliITSresponseSPD,6) // SPD base response class
 };
 
 #endif