1 #ifndef ALITRDCALONLINEGAINTABLEMCM_H
2 #define ALITRDCALONLINEGAINTABLEMCM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //////////////////////////////////////////////////////////////////////////////////////////////
10 // Data structure to store gaintables of the online calibration in the OCDB
11 // consisting of three classes:
12 // AliTRDCalOnlineGainTable
13 // AliTRDCalOnlineGainTableROC
14 // AliTRDCalOnlineGainTableMCM
16 // AliTRDCalOnlineGainTable is the main class from which all stored data can be accessed.
17 // The two sub-classes AliTRDCalOnlineGainTableROC and AliTRDCalOnlineGainTableMCM
18 // contain the gaintables on ROC level and on the MCM level respectively.
20 // The online calibration is used to compensate gain deviations on the pad level.
21 // For the offline reconstruction the online calibration has to be undone.
22 // The corresponding gain correction factor that was used by the online gain filter can be accessed
23 // via the functions AliTRDCalOnlineGainTable::GetGainCorrectionFactor(Int_t det, Int_t row, Int_t col)
24 // and AliTRDCalOnlineGainTable::GetGainCorrectionFactor(Int_t sector, Int_t stack, Int_t layer, Int_t row, Int_t col).
26 // With the class AliTRDCalOnlineGainTablesMCM all values used for the
27 // online calibration can be set and accessed on the MCM/channel level
29 //////////////////////////////////////////////////////////////////////////////////////////////
31 class AliTRDCalOnlineGainTableMCM: public TObject
35 AliTRDCalOnlineGainTableMCM();
36 ~AliTRDCalOnlineGainTableMCM();
38 Float_t GetGainCorrectionFactor(Int_t channel);
41 Short_t GetFGAN(Int_t channel);
42 Short_t GetFGFN(Int_t channel);
44 void SetAdcdac(Short_t x) {fAdcdac = x;} // Sets fAdcdac to the given value
45 void SetMCMGain(Float_t x) {fMCMGain = x;} // Sets fMCMGain to the given value
47 void SetFGFN(Short_t ch, Short_t x) {fFGFN[ch] = x;} // Sets fFGFN to the given value
48 void SetFGAN(Short_t ch, Short_t x) {fFGAN[ch] = x;} // Sets fFGAN to the given value
52 Short_t fAdcdac; // Reference voltage of the ADCs U_Ref = (1.05V + (fAdcdac/31)*0.4V
54 Short_t fFGFN[21]; // Gain Correction Filter Factor
55 Short_t fFGAN[21]; // Gain Correction Filter Additive
57 Float_t fMCMGain; // Gain Factor which would lead to a Correction Factor of 1.0 within the MCM
60 ClassDef(AliTRDCalOnlineGainTableMCM,1); // TRD online gain table of a MCM