]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSresponseSPD.h
f89ce96b4f7277855ba5de2092db9338d82a35a7
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSPD.h
1 #ifndef ALIITSRESPONSESPD_H
2 #define ALIITSRESPONSESPD_H
3
4 #include "AliITSsegmentation.h"
5 #include "AliITSresponse.h"
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) {
22     // Diffusion coefficient
23     fDiffCoeff=p1;
24   }
25   virtual Float_t DiffCoeff() {
26     // Get diffusion coefficient
27     return fDiffCoeff;
28   }
29   virtual  void   SetNoiseParam(Float_t n=0., Float_t b=0.) {
30     // set noise
31     fNoise=n; fBaseline=b;
32   }   
33   virtual  void   GetNoiseParam(Float_t &n, Float_t &b) {
34     // get noise
35     n=fNoise; b=fBaseline;
36   }   
37   virtual void     SetMinVal(Int_t p1=0) {
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(char *data="simulated") {
46     // Type of data - real or simulated
47     fDataType=data;
48   }
49   virtual char  *DataType() {
50     // Get data typer
51     return fDataType;
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   char* fDataType;        // Type of data - real or simulated
64 };
65
66 #endif