]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSPD.h
update info about cvs installation using cvs account
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSPD.h
1 #ifndef ALIITSRESPONSESPD_H
2 #define ALIITSRESPONSESPD_H
3
4 #include "AliITSresponse.h"
5
6 //----------------------------------------------
7 //
8 // ITS response class for SPD
9 //
10 class AliITSresponseSPD :
11   public AliITSresponse {
12 public:
13   
14   AliITSresponseSPD();
15   virtual ~AliITSresponseSPD() { 
16     // destructror
17   }
18   //
19   // Configuration methods
20   //
21   virtual void    SetDiffCoeff(Float_t p1=0.00433,Float_t dummy=0.) {
22     // Diffusion coefficient
23     fDiffCoeff=p1;
24   }
25   virtual void DiffCoeff(Float_t &diffc,Float_t &dummy) {
26     // Get diffusion coefficient
27     diffc= fDiffCoeff;
28   }
29   virtual  void   SetNoiseParam(Float_t n=200., Float_t b=0.) {
30     // set noise and baseline
31     fNoise=n; fBaseline=b;
32   }   
33   virtual  void   GetNoiseParam(Float_t &n, Float_t &b) {
34     // get noise and baseline
35     n=fNoise; b=fBaseline;
36   }   
37   virtual void     SetMinVal(Int_t p1=2000) {
38     // Zero-suppression option threshold 
39     fThreshold=p1;
40   }
41   virtual Int_t MinVal() {
42     // Get zero-suppression threshold
43     return fThreshold;
44   }
45   virtual void    SetDataType(const char *data="simulated") {
46     // Type of data - real or simulated
47     fDataType=data;
48   }
49   virtual const char  *DataType() const {
50     // Get data typer
51     return fDataType.Data();
52   } 
53   
54   ClassDef(AliITSresponseSPD,1) // SPD response
55     
56     protected:
57   
58   Float_t fDiffCoeff;       // Diffusion Coefficient
59   Float_t fNoise;           // Noise value
60   Float_t fBaseline;        // Baseline value
61   Int_t fThreshold;         // Zero-Suppression threshold
62   
63   TString fDataType;        // Type of data - real or simulated
64 };
65
66 #endif