1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONCalibrationData
8 /// \brief Single entry point to access MUON calibration data.
10 /// For the moment, this class stores pedestals, gains and deadchannels
11 /// that are fetched from the CDB.
13 /// \author Laurent Aphecetche
15 #ifndef ALIMUONCALIBRATIONDATA_H
16 #define ALIMUONCALIBRATIONDATA_H
23 class AliMUONVCalibParam;
24 class AliMUONV2DStore;
26 class AliMUONCalibrationData : public TObject
30 * @param runNumber is used as a key to the CDB
31 * @param deferredInitialization if kFALSE, all the calibrations are fetched
32 * regardless of whether you'll use them or not.
34 AliMUONCalibrationData(Int_t runNumber=-1, Bool_t deferredInitialization=kTRUE);
35 virtual ~AliMUONCalibrationData();
37 /// Get the DeadChannel calibration object for channels within (detElemId,manuId).
38 AliMUONVCalibParam* DeadChannel(Int_t detElemId, Int_t manuId) const;
40 /// Get the Gain calibration object for channels within (detElemId,manuId).
41 AliMUONVCalibParam* Gain(Int_t detElemId, Int_t manuId) const;
43 /// Whether this object is valid or not (might be invalid if fetching from CDB failed).
44 Bool_t IsValid() const { return fIsValid; }
46 /// Get the Pedestal calibration object for channels within (detElemId,manuId).
47 AliMUONVCalibParam* Pedestal(Int_t detElemId, Int_t manuId) const;
50 virtual void Print(Option_t* opt="") const;
52 /// The runnumber used by this object.
53 Int_t RunNumber() const { return fRunNumber; }
56 AliCDBEntry* GetEntry(const char* path) const;
57 AliMUONV2DStore* Gains() const;
58 AliMUONV2DStore* Pedestals() const;
59 AliMUONV2DStore* DeadChannels() const;
62 mutable Bool_t fIsValid;
64 mutable AliMUONV2DStore* fGains; //!
65 mutable AliMUONV2DStore* fPedestals; //!
66 mutable AliMUONV2DStore* fDeadChannels; //!
68 ClassDef(AliMUONCalibrationData,2) // Storage for all MUON calibration data.