]>
Commit | Line | Data |
---|---|---|
d99769c3 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | // $Id$ | |
5 | ||
6 | /// \ingroup rec | |
7 | /// \class AliMUONDigitCalibrator | |
8 | /// \brief Class to calibrate the digits | |
9 | /// | |
78649106 | 10 | // Author Laurent Aphecetche |
d99769c3 | 11 | |
d1c20d08 | 12 | #ifndef ALIMUONDIGITCALIBRATOR_H |
13 | #define ALIMUONDIGITCALIBRATOR_H | |
d99769c3 | 14 | |
42825ed9 | 15 | #ifndef ROOT_TObject |
16 | #include "TObject.h" | |
d99769c3 | 17 | #endif |
18 | ||
19 | class AliMUONCalibrationData; | |
fe6ed686 | 20 | class AliMUONLogger; |
42825ed9 | 21 | class AliMUONVStore; |
22 | class AliMUONVDigitStore; | |
23 | class AliMUONVDigit; | |
49e396d9 | 24 | class AliMUONPadStatusMaker; |
25 | class AliMUONPadStatusMapMaker; | |
861d6ce8 | 26 | class TExMap; |
d99769c3 | 27 | |
42825ed9 | 28 | class AliMUONDigitCalibrator : public TObject |
d99769c3 | 29 | { |
30 | public: | |
de98fdc9 | 31 | AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, const char* calibMode="NOGAIN"); |
42825ed9 | 32 | |
d99769c3 | 33 | virtual ~AliMUONDigitCalibrator(); |
34 | ||
42825ed9 | 35 | virtual void Calibrate(AliMUONVDigitStore& digitStore); |
36 | ||
d99769c3 | 37 | private: |
71a2d3aa | 38 | /// Not implemented |
f51d54cb | 39 | AliMUONDigitCalibrator(const AliMUONDigitCalibrator& other); |
71a2d3aa | 40 | /// Not implemented |
f51d54cb | 41 | AliMUONDigitCalibrator& operator=(const AliMUONDigitCalibrator& other); |
42 | ||
861d6ce8 | 43 | virtual void CalibrateDigit(AliMUONVDigit& digit, Double_t nsigmas); |
42825ed9 | 44 | |
45 | private: | |
fe6ed686 | 46 | AliMUONLogger* fLogger; //!< to log repeated messages |
49e396d9 | 47 | AliMUONPadStatusMaker* fStatusMaker; //!< to build pad statuses |
48 | AliMUONPadStatusMapMaker* fStatusMapMaker; //!< to build status map | |
49 | AliMUONVStore* fPedestals; //!< pedestal values | |
50 | AliMUONVStore* fGains; //!< gain values | |
de98fdc9 | 51 | Int_t fApplyGains; //!< whether we should apply gains or not, capa or not... |
52 | AliMUONVStore* fCapacitances; //!< capa values | |
d1c20d08 | 53 | |
de98fdc9 | 54 | static const Int_t fgkNoGain; //!< do not apply gain calib at all |
55 | static const Int_t fgkGainConstantCapa; //!< apply gain (from OCDB) with constant capa | |
56 | static const Int_t fgkGain; //!< apply gain and capa (from OCDB) | |
57 | ||
630711ed | 58 | ClassDef(AliMUONDigitCalibrator,7) // Calibrate raw digit |
d99769c3 | 59 | }; |
60 | ||
61 | #endif |