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