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 
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
CastorDbService::CastorDbService
CastorDbService()
Definition: CastorDbService.cc:16
CastorDbService::mChannelQuality
const CastorChannelQuality * mChannelQuality
Definition: CastorDbService.h:66
CastorDbService::setData
void setData(const CastorQIEData *fItem)
Definition: CastorDbService.h:49
CastorGainWidths
Definition: CastorGainWidths.h:18
CastorDbService::mPedestals
const CastorPedestals * mPedestals
Definition: CastorDbService.h:61
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:68
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:29
CastorDbService::mGainWidths
const CastorGainWidths * mGainWidths
Definition: CastorDbService.h:64
AllObjects.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:46
CastorCalibrations
Definition: CastorCalibrations.h:9
CastorDbService::setData
void setData(const CastorGainWidths *fItem)
Definition: CastorDbService.h:48
CastorDbService::mCalibWidthSet
CastorCalibrationWidthsSet mCalibWidthSet
Definition: CastorDbService.h:69
CastorDbService::mPedestalWidths
const CastorPedestalWidths * mPedestalWidths
Definition: CastorDbService.h:62
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:47
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:25
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:50
CastorChannelQuality
Definition: CastorChannelQuality.h:17
CastorDbService::mQIEData
const CastorQIEData * mQIEData
Definition: CastorDbService.h:65
CastorDbService::setData
void setData(const CastorElectronicsMap *fItem)
Definition: CastorDbService.h:51
CastorChannelStatus
Definition: CastorChannelStatus.h:15
CastorDbService::mGains
const CastorGains * mGains
Definition: CastorDbService.h:63
CastorCalibrationWidthsSet::getCalibrationWidths
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: CastorCalibrationWidthsSet.cc:9
CastorDbService::mElectronicsMap
const CastorElectronicsMap * mElectronicsMap
Definition: CastorDbService.h:67
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:32
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:45
CastorQIEShape
Definition: CastorQIEShape.h:14