CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
21 
22 class CastorCalibrations;
24 
26 public:
28 
30  return mCalibSet.getCalibrations(fId);
31  }
34  }
35 
36  const CastorPedestal* getPedestal(const HcalGenericDetId& fId) const;
37  const CastorPedestalWidth* getPedestalWidth(const HcalGenericDetId& fId) const;
38  const CastorGain* getGain(const HcalGenericDetId& fId) const;
39  const CastorGainWidth* getGainWidth(const HcalGenericDetId& fId) const;
40  const CastorQIECoder* getCastorCoder(const HcalGenericDetId& fId) const;
41  const CastorQIEShape* getCastorShape() const;
44 
45  void setData(const CastorPedestals* fItem) { mPedestals = fItem; }
46  void setData(const CastorPedestalWidths* fItem) { mPedestalWidths = fItem; }
47  void setData(const CastorGains* fItem) { mGains = fItem; }
48  void setData(const CastorGainWidths* fItem) { mGainWidths = fItem; }
49  void setData(const CastorQIEData* fItem) { mQIEData = fItem; }
50  void setData(const CastorChannelQuality* fItem) { mChannelQuality = fItem; }
51  void setData(const CastorElectronicsMap* fItem) { mElectronicsMap = fItem; }
52 
53  void buildCalibrations();
54  void buildCalibWidths();
55 
56 private:
57  bool makeCastorCalibration(const HcalGenericDetId& fId, CastorCalibrations* fObject, bool pedestalInADC) const;
59  CastorCalibrationWidths* fObject,
60  bool pedestalInADC) const;
70 };
71 
72 #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