]>
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 | // | |
f74211b0 | 11 | class AliITSresponseSPDdubna : public AliITSresponse { |
12 | public: | |
13 | AliITSresponseSPDdubna(); | |
14 | virtual ~AliITSresponseSPDdubna() { | |
15 | // destructror | |
16 | } | |
17 | // | |
18 | // Configuration methods | |
19 | // | |
ac74f489 | 20 | virtual void SetDiffCoeff(Float_t p1=7.877e-3/*0.00433*/,Float_t dummy=0.){ |
f74211b0 | 21 | // Diffusion coefficient |
ac74f489 | 22 | fDiffCoeff = p1;dummy = 0.;} |
f74211b0 | 23 | virtual Double_t DiffusionSigma(Double_t dy); |
24 | virtual void DiffCoeff(Float_t &diffc,Float_t &dummy) { | |
25 | // Get diffusion coefficient | |
ac74f489 | 26 | diffc= fDiffCoeff;dummy = 0.0; |
f74211b0 | 27 | } |
28 | virtual void SetNoiseParam(Float_t n=200., Float_t b=0.) { | |
29 | // set noise and baseline | |
30 | fNoise=n; fBaseline=b; | |
31 | } | |
32 | virtual void GetNoiseParam(Float_t &n, Float_t &b) { | |
33 | // get noise and baseline | |
34 | n=fNoise; b=fBaseline; | |
35 | } | |
36 | virtual void SetMinVal(Int_t p1=2000) { | |
37 | // Zero-suppression option threshold | |
38 | fThreshold=p1; | |
39 | } | |
40 | virtual Int_t MinVal() { | |
41 | // Get zero-suppression threshold | |
42 | return fThreshold; | |
43 | } | |
44 | virtual void SetDataType(const char *data="simulated") { | |
45 | // Type of data - real or simulated | |
46 | fDataType=data; | |
47 | } | |
48 | virtual const char *DataType() const { | |
49 | // Get data typer | |
50 | return fDataType.Data(); | |
51 | } | |
52 | virtual void SetGeVToCharge(Float_t e = 2.778E+08) { | |
53 | // sets the conversion factor to go from Energy GeV to charge | |
54 | // (electrons). | |
55 | fGeVtoElec = e; | |
56 | } | |
57 | virtual Float_t GetGeVToCharge() { | |
58 | // Returns the conversion factor to go from Energy GeV to charge | |
59 | // (electrons). | |
60 | return fGeVtoElec; | |
61 | } | |
62 | virtual const Float_t GeVToCharge(Float_t e) const { | |
63 | // Converts deposited energy into electrons in Si. | |
64 | return e*fGeVtoElec; | |
65 | } | |
66 | ||
67 | protected: | |
68 | Float_t fDiffCoeff; // Diffusion Coefficient | |
69 | Float_t fNoise; // Noise value | |
70 | Float_t fBaseline; // Baseline value | |
71 | Int_t fThreshold; // Zero-Suppression threshold | |
72 | Float_t fGeVtoElec; // Conversion factor from GeV to electons | |
73 | TString fDataType; // Type of data - real or simulated | |
409f8c84 | 74 | |
f74211b0 | 75 | ClassDef(AliITSresponseSPDdubna,2) // SPD response |
76 | }; | |
409f8c84 | 77 | #endif |