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