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
CastorDbService::CastorDbService
CastorDbService()
Definition: CastorDbService.cc:16
CastorDbService::mChannelQuality
const CastorChannelQuality * mChannelQuality
Definition: CastorDbService.h:69
CastorDbService::setData
void setData(const CastorQIEData *fItem)
Definition: CastorDbService.h:52
CastorGainWidths
Definition: CastorGainWidths.h:18
CastorDbService::mPedestals
const CastorPedestals * mPedestals
Definition: CastorDbService.h:64
CastorDbService::makeCastorCalibration
bool makeCastorCalibration(const HcalGenericDetId &fId, CastorCalibrations *fObject, bool pedestalInADC) const
Definition: CastorDbService.cc:25
HcalGenericDetId
Definition: HcalGenericDetId.h:15
CastorCoder.h
CastorDbService::mCalibSet
CastorCalibrationsSet mCalibSet
Definition: CastorDbService.h:71
CastorDbService::getPedestalWidth
const CastorPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:148
CastorDbService::getCastorCalibrations
const CastorCalibrations & getCastorCalibrations(const HcalGenericDetId &fId) const
Definition: CastorDbService.h:32
CastorDbService::mGainWidths
const CastorGainWidths * mGainWidths
Definition: CastorDbService.h:67
AllObjects.h
ESProducer.h
CastorChannelCoder.h
HcalGenericDetId.h
CastorDbService::getCastorCoder
const CastorQIECoder * getCastorCoder(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:169
CastorPedestal
Definition: CastorPedestal.h:16
CastorPedestalWidth
Definition: CastorPedestalWidth.h:16
CastorDbService::buildCalibrations
void buildCalibrations()
Definition: CastorDbService.cc:59
CastorCalibrationsSet
Definition: CastorCalibrationsSet.h:8
CastorDbService::getPedestal
const CastorPedestal * getPedestal(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:141
CastorDbService::setData
void setData(const CastorPedestalWidths *fItem)
Definition: CastorDbService.h:49
CastorCalibrations
Definition: CastorCalibrations.h:9
CastorDbService::setData
void setData(const CastorGainWidths *fItem)
Definition: CastorDbService.h:51
CastorDbService::mCalibWidthSet
CastorCalibrationWidthsSet mCalibWidthSet
Definition: CastorDbService.h:72
CastorDbService::mPedestalWidths
const CastorPedestalWidths * mPedestalWidths
Definition: CastorDbService.h:65
CastorDbService::buildCalibWidths
void buildCalibWidths()
Definition: CastorDbService.cc:82
CastorDbService::getGainWidth
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:162
CastorDbService::setData
void setData(const CastorGains *fItem)
Definition: CastorDbService.h:50
CastorPedestals
Definition: CastorPedestals.h:18
CastorGainWidth
Definition: CastorGainWidth.h:12
CastorCalibrationWidthsSet
Definition: CastorCalibrationWidthsSet.h:13
CastorCalibrationsSet.h
CastorDbService::getCastorShape
const CastorQIEShape * getCastorShape() const
Definition: CastorDbService.cc:176
CastorCalibrationsSet::getCalibrations
const CastorCalibrations & getCalibrations(const DetId id) const
Definition: CastorCalibrationsSet.cc:8
CastorDbService
Definition: CastorDbService.h:28
CastorGains
Definition: CastorGains.h:18
CastorGain
Definition: CastorGain.h:13
CastorDbService::getGain
const CastorGain * getGain(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:155
QieShape.h
CastorDbService::makeCastorCalibrationWidth
bool makeCastorCalibrationWidth(const HcalGenericDetId &fId, CastorCalibrationWidths *fObject, bool pedestalInADC) const
Definition: CastorDbService.cc:106
CastorDbService::setData
void setData(const CastorChannelQuality *fItem)
Definition: CastorDbService.h:53
CastorChannelQuality
Definition: CastorChannelQuality.h:17
CastorDbService::mQIEData
const CastorQIEData * mQIEData
Definition: CastorDbService.h:68
CastorDbService::setData
void setData(const CastorElectronicsMap *fItem)
Definition: CastorDbService.h:54
ModuleFactory.h
CastorChannelStatus
Definition: CastorChannelStatus.h:15
CastorDbService::mGains
const CastorGains * mGains
Definition: CastorDbService.h:66
CastorCalibrationWidthsSet::getCalibrationWidths
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: CastorCalibrationWidthsSet.cc:9
CastorDbService::mElectronicsMap
const CastorElectronicsMap * mElectronicsMap
Definition: CastorDbService.h:70
CastorDbService::getCastorChannelStatus
const CastorChannelStatus * getCastorChannelStatus(const HcalGenericDetId &fId) const
Definition: CastorDbService.cc:185
CastorCalibrationWidthsSet.h
CastorDbService::getCastorCalibrationWidths
const CastorCalibrationWidths & getCastorCalibrationWidths(const HcalGenericDetId &fId) const
Definition: CastorDbService.h:35
CastorPedestalWidths
Definition: CastorPedestalWidths.h:18
CastorQIECoder
Definition: CastorQIECoder.h:21
CastorCalibrationWidths
Definition: CastorCalibrationWidths.h:9
CastorElectronicsMap
Definition: CastorElectronicsMap.h:30
CastorDbService::getCastorMapping
const CastorElectronicsMap * getCastorMapping() const
Definition: CastorDbService.cc:183
CastorQIEData
Definition: CastorQIEData.h:25
CastorDbService::setData
void setData(const CastorPedestals *fItem)
Definition: CastorDbService.h:48
CastorQIEShape
Definition: CastorQIEShape.h:14