CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
22 
24 
25 class CastorCalibrations;
27 
29  public:
31 
33  { return mCalibSet.getCalibrations(fId); }
35  { return mCalibWidthSet.getCalibrationWidths(fId); }
36 
37  const CastorPedestal* getPedestal (const HcalGenericDetId& fId) const;
38  const CastorPedestalWidth* getPedestalWidth (const HcalGenericDetId& fId) const;
39  const CastorGain* getGain (const HcalGenericDetId& fId) const;
40  const CastorGainWidth* getGainWidth (const HcalGenericDetId& fId) const;
41  const CastorQIECoder* getCastorCoder (const HcalGenericDetId& fId) const;
42  const CastorQIEShape* getCastorShape () const;
43  const CastorElectronicsMap* getCastorMapping () const;
45 
46  void setData (const CastorPedestals* fItem) {mPedestals = fItem; buildCalibrations(); }
47  void setData (const CastorPedestalWidths* fItem) {mPedestalWidths = fItem; buildCalibWidths(); }
48  void setData (const CastorGains* fItem) {mGains = fItem; buildCalibrations(); }
49  void setData (const CastorGainWidths* fItem) {mGainWidths = fItem; }
50  void setData (const CastorQIEData* fItem) {mQIEData = fItem; }
51  void setData (const CastorChannelQuality* fItem) {mChannelQuality = fItem;}
52  void setData (const CastorElectronicsMap* fItem) {mElectronicsMap = fItem;}
53 
54  private:
55  bool makeCastorCalibration (const HcalGenericDetId& fId, CastorCalibrations* fObject,
56  bool pedestalInADC) const;
57  void buildCalibrations();
59  bool pedestalInADC) const;
60  void buildCalibWidths();
71 };
72 
73 #endif
void setData(const CastorElectronicsMap *fItem)
reco::castor::QieShape * mQieShapeCache
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
CastorDbService(const edm::ParameterSet &)
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