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;
28 class AliMUONDigitCalibrator : public TObject
31 AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, const char* calibMode="NOGAIN");
33 virtual ~AliMUONDigitCalibrator();
35 virtual void Calibrate(AliMUONVDigitStore& digitStore);
39 AliMUONDigitCalibrator(const AliMUONDigitCalibrator& other);
41 AliMUONDigitCalibrator& operator=(const AliMUONDigitCalibrator& other);
43 virtual void CalibrateDigit(AliMUONVDigit& digit, Double_t nsigmas);
46 AliMUONLogger* fLogger; //!< to log repeated messages
47 AliMUONPadStatusMaker* fStatusMaker; //!< to build pad statuses
48 AliMUONPadStatusMapMaker* fStatusMapMaker; //!< to build status map
49 AliMUONVStore* fPedestals; //!< pedestal values
50 AliMUONVStore* fGains; //!< gain values
51 Int_t fApplyGains; //!< whether we should apply gains or not, capa or not...
52 AliMUONVStore* fCapacitances; //!< capa values
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)
58 ClassDef(AliMUONDigitCalibrator,7) // Calibrate raw digit