]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 1 | #ifndef ALIITSRESPONSESPD_H |
2 | #define ALIITSRESPONSESPD_H | |
3 | ||
b0f5e3fc | 4 | #include "AliITSresponse.h" |
e8189707 | 5 | |
b0f5e3fc | 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 | // | |
e8189707 | 21 | virtual void SetDiffCoeff(Float_t p1=0.00433,Float_t dummy=0.) { |
b0f5e3fc | 22 | // Diffusion coefficient |
23 | fDiffCoeff=p1; | |
24 | } | |
e8189707 | 25 | virtual void DiffCoeff(Float_t &diffc,Float_t &dummy) { |
b0f5e3fc | 26 | // Get diffusion coefficient |
e8189707 | 27 | diffc= fDiffCoeff; |
b0f5e3fc | 28 | } |
e8189707 | 29 | virtual void SetNoiseParam(Float_t n=200., Float_t b=0.) { |
30 | // set noise and baseline | |
b0f5e3fc | 31 | fNoise=n; fBaseline=b; |
32 | } | |
33 | virtual void GetNoiseParam(Float_t &n, Float_t &b) { | |
e8189707 | 34 | // get noise and baseline |
b0f5e3fc | 35 | n=fNoise; b=fBaseline; |
36 | } | |
e8189707 | 37 | virtual void SetMinVal(Int_t p1=2000) { |
b0f5e3fc | 38 | // Zero-suppression option threshold |
39 | fThreshold=p1; | |
40 | } | |
41 | virtual Int_t MinVal() { | |
42 | // Get zero-suppression threshold | |
43 | return fThreshold; | |
44 | } | |
e8189707 | 45 | virtual void SetDataType(const char *data="simulated") { |
b0f5e3fc | 46 | // Type of data - real or simulated |
47 | fDataType=data; | |
48 | } | |
e8189707 | 49 | virtual const char *DataType() const { |
b0f5e3fc | 50 | // Get data typer |
e8189707 | 51 | return fDataType.Data(); |
b0f5e3fc | 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 | ||
e8189707 | 63 | TString fDataType; // Type of data - real or simulated |
b0f5e3fc | 64 | }; |
65 | ||
66 | #endif |