]>
Commit | Line | Data |
---|---|---|
ad7f2bfa | 1 | #ifndef ALIITS_FOEFFICIENCYSPD_H |
2 | #define ALIITS_FOEFFICIENCYSPD_H | |
3 | ||
4 | ///////////////////////////////////////////////////////////////////// | |
5 | // Author: Henrik Tydesjo // | |
6 | // // | |
7 | // This class is used to store Fast-OR efficiency values in OCDB. // | |
8 | // One value per pixel chip in this base class (if per column // | |
9 | // accuracy is needed, use AliITSFOEfficiencySPDColumn class). // | |
10 | // The values are the probability that a pixel hit will generate a // | |
11 | // fast-OR signal. // | |
12 | // // | |
13 | ///////////////////////////////////////////////////////////////////// | |
14 | ||
15 | #include <TObject.h> | |
16 | #include <TError.h> | |
17 | ||
18 | class AliITSFOEfficiencySPD : public TObject { | |
19 | ||
20 | public: | |
21 | AliITSFOEfficiencySPD(); | |
22 | AliITSFOEfficiencySPD(const AliITSFOEfficiencySPD& foEff); | |
23 | virtual ~AliITSFOEfficiencySPD(); | |
24 | AliITSFOEfficiencySPD& operator=(const AliITSFOEfficiencySPD& foEff); | |
25 | ||
26 | virtual void ResetValues(); | |
27 | virtual void SetChipEfficiency(UInt_t eq, UInt_t hs, UInt_t chip, Float_t value); | |
28 | virtual void SetColumnEfficiency(UInt_t /*eq*/, UInt_t /*hs*/, UInt_t /*chip*/, UInt_t /*col*/, Float_t /*value*/) | |
29 | {Error("AliITSFOEfficiencySPD::SetColumnEfficiency","You need daughter class to set column efficiencies!");} | |
30 | ||
31 | virtual Float_t GetChipEfficiency(UInt_t eq, UInt_t hs, UInt_t chip) const; | |
32 | virtual Float_t GetColumnEfficiency(UInt_t eq, UInt_t hs, UInt_t chip, UInt_t /*col*/) const | |
33 | {return GetChipEfficiency(eq,hs,chip);} | |
34 | virtual Float_t GetEfficiency(UInt_t eq, UInt_t hs, UInt_t chip, UInt_t /*col*/, UInt_t /*row*/) const | |
35 | {return GetChipEfficiency(eq,hs,chip);} | |
36 | ||
37 | protected: | |
38 | Float_t fChipEfficiency[20][6][10]; // efficiency values per chip | |
39 | ||
40 | ClassDef(AliITSFOEfficiencySPD,1) // FO Efficiency Base | |
41 | }; | |
42 | ||
43 | #endif |