1 #ifndef ALIITS_FOEFFICIENCYSPD_H
2 #define ALIITS_FOEFFICIENCYSPD_H
4 /////////////////////////////////////////////////////////////////////
5 // Author: Henrik Tydesjo //
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 //
13 /////////////////////////////////////////////////////////////////////
18 class AliITSFOEfficiencySPD : public TObject {
21 AliITSFOEfficiencySPD();
22 AliITSFOEfficiencySPD(const AliITSFOEfficiencySPD& foEff);
23 virtual ~AliITSFOEfficiencySPD();
24 AliITSFOEfficiencySPD& operator=(const AliITSFOEfficiencySPD& foEff);
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!");}
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);}
38 Float_t fChipEfficiency[20][6][10]; // efficiency values per chip
40 ClassDef(AliITSFOEfficiencySPD,1) // FO Efficiency Base