]>
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; | |
de487b6e | 26 | class AliMUONRecoParam; |
861d6ce8 | 27 | class TExMap; |
d99769c3 | 28 | |
42825ed9 | 29 | class AliMUONDigitCalibrator : public TObject |
d99769c3 | 30 | { |
31 | public: | |
de487b6e | 32 | |
33 | AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, | |
34 | const AliMUONRecoParam* recoParams, | |
35 | const char* calibMode="NOGAIN"); | |
36 | ||
37 | AliMUONDigitCalibrator(const AliMUONCalibrationData& calib, | |
38 | const char* calibMode="NOGAIN"); | |
42825ed9 | 39 | |
d99769c3 | 40 | virtual ~AliMUONDigitCalibrator(); |
41 | ||
42825ed9 | 42 | virtual void Calibrate(AliMUONVDigitStore& digitStore); |
f51d54cb | 43 | |
de487b6e | 44 | Bool_t IsValidDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, |
45 | Int_t* statusMap=0x0) const; | |
46 | ||
47 | Float_t CalibrateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, | |
48 | Float_t adc, Float_t nsigmas, | |
49 | Bool_t* isSaturated=0x0) const; | |
50 | ||
51 | Int_t PadStatus(Int_t detElemId, Int_t manuId, Int_t manuChannel) const; | |
52 | ||
53 | Int_t StatusMap(Int_t detElemId, Int_t manuId, Int_t manuChannel) const; | |
42825ed9 | 54 | |
de487b6e | 55 | private: |
56 | ||
57 | /// Not implemented | |
58 | AliMUONDigitCalibrator(const AliMUONDigitCalibrator& other); | |
59 | /// Not implemented | |
60 | AliMUONDigitCalibrator& operator=(const AliMUONDigitCalibrator& other); | |
61 | ||
62 | void Ctor(const char* calibMode, | |
63 | const AliMUONCalibrationData& calib, | |
64 | const AliMUONRecoParam* recoParams); | |
65 | ||
42825ed9 | 66 | private: |
de487b6e | 67 | AliMUONLogger* fLogger; //!< to log repeated messages |
68 | AliMUONPadStatusMaker* fStatusMaker; //!< to build pad statuses | |
69 | AliMUONPadStatusMapMaker* fStatusMapMaker; //!< to build status map | |
70 | AliMUONVStore* fPedestals; //!< pedestal values | |
71 | AliMUONVStore* fGains; //!< gain values | |
72 | Int_t fApplyGains; //!< whether we should apply gains or not, capa or not... | |
73 | AliMUONVStore* fCapacitances; //!< capa values | |
74 | Double_t fNumberOfBadPads; //!< # of times we've rejected a bad pad | |
75 | Double_t fNumberOfPads; //!< # of pads we've seen | |
170f4046 | 76 | Double_t fChargeSigmaCut; //!< number of sigmas to cut on |
411a502a | 77 | UInt_t fMask; //!< mask used to cut bad channels |
170f4046 | 78 | |
de487b6e | 79 | static const Int_t fgkNoGain; //!< do not apply gain calib at all |
80 | static const Int_t fgkGainConstantCapa; //!< apply gain (from OCDB) with constant capa | |
81 | static const Int_t fgkGain; //!< apply gain and capa (from OCDB) | |
66cdf5b3 | 82 | static const Int_t fgkInjectionGain; //!< apply injection gain (from OCDB) |
de487b6e | 83 | |
411a502a | 84 | ClassDef(AliMUONDigitCalibrator,10) // Calibrate raw digit |
d99769c3 | 85 | }; |
86 | ||
87 | #endif |