1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONDigitCalibrator
8 /// \brief Class to calibrate the digits
10 // Author Laurent Aphecetche
12 #ifndef ALIMUONDIGITCALIBRATOR_H
13 #define ALIMUONDIGITCALIBRATOR_H
19 class AliMUONCalibrationData;
22 class AliMUONVDigitStore;
24 class AliMUONPadStatusMaker;
25 class AliMUONPadStatusMapMaker;
27 class AliMUONDigitCalibrator : public TObject
30 AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, const char* calibMode="NOGAIN");
32 virtual ~AliMUONDigitCalibrator();
34 virtual void Calibrate(AliMUONVDigitStore& digitStore);
38 AliMUONDigitCalibrator(const AliMUONDigitCalibrator& other);
40 AliMUONDigitCalibrator& operator=(const AliMUONDigitCalibrator& other);
42 virtual void CalibrateDigit(AliMUONVDigit& digit);
45 AliMUONLogger* fLogger; //!< to log repeated messages
46 AliMUONPadStatusMaker* fStatusMaker; //!< to build pad statuses
47 AliMUONPadStatusMapMaker* fStatusMapMaker; //!< to build status map
48 AliMUONVStore* fPedestals; //!< pedestal values
49 AliMUONVStore* fGains; //!< gain values
50 Int_t fApplyGains; //!< whether we should apply gains or not, capa or not...
51 AliMUONVStore* fCapacitances; //!< capa values
53 static const Int_t fgkNoGain; //!< do not apply gain calib at all
54 static const Int_t fgkGainConstantCapa; //!< apply gain (from OCDB) with constant capa
55 static const Int_t fgkGain; //!< apply gain and capa (from OCDB)
57 ClassDef(AliMUONDigitCalibrator,5) // Calibrate raw digit