CMS 3D CMS Logo

CastorDbService.h
Go to the documentation of this file.
1 
2 //
3 // F.Ratnikov (UMd), Aug. 9, 2005
4 // Adapted for CASTOR by L. Mundim
5 //
6 
7 #ifndef CastorDbService_h
8 #define CastorDbService_h
9 
10 #include <memory>
11 #include <map>
12 
19 
22 
24 
25 class CastorCalibrations;
27 
29 public:
31 
33  return mCalibSet.getCalibrations(fId);
34  }
37  }
38 
39  const CastorPedestal* getPedestal(const HcalGenericDetId& fId) const;
40  const CastorPedestalWidth* getPedestalWidth(const HcalGenericDetId& fId) const;
41  const CastorGain* getGain(const HcalGenericDetId& fId) const;
42  const CastorGainWidth* getGainWidth(const HcalGenericDetId& fId) const;
43  const CastorQIECoder* getCastorCoder(const HcalGenericDetId& fId) const;
44  const CastorQIEShape* getCastorShape() const;
47 
48  void setData(const CastorPedestals* fItem) { mPedestals = fItem; }
49  void setData(const CastorPedestalWidths* fItem) { mPedestalWidths = fItem; }
50  void setData(const CastorGains* fItem) { mGains = fItem; }
51  void setData(const CastorGainWidths* fItem) { mGainWidths = fItem; }
52  void setData(const CastorQIEData* fItem) { mQIEData = fItem; }
53  void setData(const CastorChannelQuality* fItem) { mChannelQuality = fItem; }
54  void setData(const CastorElectronicsMap* fItem) { mElectronicsMap = fItem; }
55 
56  void buildCalibrations();
57  void buildCalibWidths();
58 
59 private:
60  bool makeCastorCalibration(const HcalGenericDetId& fId, CastorCalibrations* fObject, bool pedestalInADC) const;
62  CastorCalibrationWidths* fObject,
63  bool pedestalInADC) const;
73 };
74 
75 #endif
void setData(const CastorElectronicsMap *fItem)
void setData(const CastorGains *fItem)
bool makeCastorCalibration(const HcalGenericDetId &fId, CastorCalibrations *fObject, bool pedestalInADC) const
const CastorPedestal * getPedestal(const HcalGenericDetId &fId) const
const CastorChannelStatus * getCastorChannelStatus(const HcalGenericDetId &fId) const
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const
const CastorQIEData * mQIEData
const CastorCalibrations & getCastorCalibrations(const HcalGenericDetId &fId) const
const CastorPedestals * mPedestals
const CastorGainWidths * mGainWidths
const CastorCalibrations & getCalibrations(const DetId id) const
void setData(const CastorPedestalWidths *fItem)
bool makeCastorCalibrationWidth(const HcalGenericDetId &fId, CastorCalibrationWidths *fObject, bool pedestalInADC) const
const CastorElectronicsMap * mElectronicsMap
CastorCalibrationsSet mCalibSet
const CastorQIEShape * getCastorShape() const
void setData(const CastorChannelQuality *fItem)
const CastorGain * getGain(const HcalGenericDetId &fId) const
const CastorElectronicsMap * getCastorMapping() const
const CastorPedestalWidths * mPedestalWidths
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
void setData(const CastorPedestals *fItem)
const CastorPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
const CastorChannelQuality * mChannelQuality
const CastorGains * mGains
void setData(const CastorGainWidths *fItem)
CastorCalibrationWidthsSet mCalibWidthSet
const CastorCalibrationWidths & getCastorCalibrationWidths(const HcalGenericDetId &fId) const
void setData(const CastorQIEData *fItem)
const CastorQIECoder * getCastorCoder(const HcalGenericDetId &fId) const