]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSRESPONSESDD_H | |
2 | #define ALIITSRESPONSESDD_H | |
3 | ||
4 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | ||
8 | #include <AliITSresponse.h> | |
9 | #include <TArrayF.h> | |
10 | ||
11 | /* $Id$ */ | |
12 | ||
13 | ///////////////////////////////////////////////////////////// | |
14 | // Base settings for the ITS response classes. // | |
15 | // The data member of this class are static and set once // | |
16 | // for all the modules. // | |
17 | ///////////////////////////////////////////////////////////// | |
18 | ||
19 | class AliITSresponseSDD : public AliITSresponse { | |
20 | public: | |
21 | ||
22 | AliITSresponseSDD(); | |
23 | virtual ~AliITSresponseSDD(){}; | |
24 | ||
25 | static Float_t DefaultDriftSpeed() {return fgkDriftSpeedDefault;} | |
26 | ||
27 | virtual void SetTimeOffset(Float_t to){fTimeOffset = to;} | |
28 | virtual Float_t TimeOffset()const {return fTimeOffset;} | |
29 | static Float_t DefaultTimeOffset() {return fgkTimeOffsetDefault;} | |
30 | ||
31 | virtual void SetADC2keV(Float_t conv){fADC2keV=conv;} | |
32 | virtual Float_t ADC2keV()const {return fADC2keV;} | |
33 | static Float_t DefaulttADC2keV() {return fgkADC2keVDefault;} | |
34 | ||
35 | ||
36 | void SetZeroSupp (const char *opt) { | |
37 | // Zero-suppression option - could be ZS or NOTSUPP | |
38 | fOption=opt;} | |
39 | const char *ZeroSuppOption() const {// Get zero-suppression option | |
40 | return fOption.Data();} | |
41 | // Detector type response methods | |
42 | ||
43 | protected: | |
44 | ||
45 | static const TString fgkOptionDefault; // default for fOption | |
46 | static const Float_t fgkDriftSpeedDefault; // default for drift speed | |
47 | static const Float_t fgkTimeOffsetDefault; // default for fTimeOffset | |
48 | static const Float_t fgkADC2keVDefault; // default for fADC2keV | |
49 | ||
50 | Float_t fTimeOffset; // Time offset due to electronic delays | |
51 | Float_t fADC2keV; // Conversion factor from ADC to keV | |
52 | TString fOption; // Zero-suppresion option (ZS or non-ZS) | |
53 | ||
54 | private: | |
55 | ||
56 | AliITSresponseSDD(const AliITSresponseSDD &ob); // copy constructor | |
57 | AliITSresponseSDD& operator=(const AliITSresponseSDD & /* source */); // ass. op. | |
58 | ||
59 | ClassDef(AliITSresponseSDD,13) // Base response class | |
60 | ||
61 | }; | |
62 | #endif |