]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDigitCalibrator.h
Adding a switch to turn on/off the gain calibration
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitCalibrator.h
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 /// 
10 //  Author Laurent Aphecetche
11
12 #ifndef ALIMUONDIGITCALIBRATOR_H
13 #define ALIMUONDIGITCALIBRATOR_H
14
15 #ifndef ROOT_TObject
16 #include "TObject.h"
17 #endif
18
19 class AliMUONCalibrationData;
20 class AliMUONLogger;
21 class AliMUONVStore;
22 class AliMUONVDigitStore;
23 class AliMUONVDigit;
24 class AliMUONPadStatusMaker;
25 class AliMUONPadStatusMapMaker;
26
27 class AliMUONDigitCalibrator : public TObject
28 {
29 public:
30   AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, const char* calibMode="NOGAIN");
31   
32   virtual ~AliMUONDigitCalibrator();
33   
34   virtual void Calibrate(AliMUONVDigitStore& digitStore);
35     
36 private:    
37     /// Not implemented
38     AliMUONDigitCalibrator(const AliMUONDigitCalibrator& other);
39     /// Not implemented
40     AliMUONDigitCalibrator& operator=(const AliMUONDigitCalibrator& other);
41
42     virtual void CalibrateDigit(AliMUONVDigit& digit);
43
44 private:
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
52     
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)
56     
57   ClassDef(AliMUONDigitCalibrator,5) // Calibrate raw digit
58 };
59
60 #endif