CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDbService.h
Go to the documentation of this file.
1 
2 //
3 // F.Ratnikov (UMd), Aug. 9, 2005
4 //
5 
6 #ifndef HcalDbService_h
7 #define HcalDbService_h
8 
9 #include <memory>
10 #include <map>
11 
18 
21 
23 
24 class HcalCalibrations;
26 
28  public:
30 
31  const HcalCalibrations& getHcalCalibrations(const HcalGenericDetId& fId) const;
33 
34  const HcalPedestal* getPedestal (const HcalGenericDetId& fId) const;
35  const HcalPedestalWidth* getPedestalWidth (const HcalGenericDetId& fId) const;
36  const HcalGain* getGain (const HcalGenericDetId& fId) const;
37  const HcalGainWidth* getGainWidth (const HcalGenericDetId& fId) const;
38  const HcalQIECoder* getHcalCoder (const HcalGenericDetId& fId) const;
39  const HcalQIEShape* getHcalShape () const;
40  const HcalElectronicsMap* getHcalMapping () const;
41  const HcalRespCorr* getHcalRespCorr (const HcalGenericDetId& fId) const;
42  const HcalTimeCorr* getHcalTimeCorr (const HcalGenericDetId& fId) const;
45  const HcalZSThreshold* getHcalZSThreshold (const HcalGenericDetId& fId) const;
46  const HcalLUTCorr* getHcalLUTCorr (const HcalGenericDetId& fId) const;
47  const HcalPFCorr* getHcalPFCorr (const HcalGenericDetId& fId) const;
48  const HcalLutMetadata* getHcalLutMetadata () const;
49 
50  void setData (const HcalPedestals* fItem) {mPedestals = fItem; mUpdateCalibrations = true; }
51  void setData (const HcalPedestalWidths* fItem) {mPedestalWidths = fItem; mUpdateCalibWidths = true; }
52  void setData (const HcalGains* fItem) {mGains = fItem; mUpdateCalibrations = true; }
53  void setData (const HcalGainWidths* fItem) {mGainWidths = fItem; mUpdateCalibWidths = true; }
54  void setData (const HcalQIEData* fItem) {mQIEData = fItem; mUpdateCalibrations = true; mUpdateCalibWidths = true; }
55  void setData (const HcalChannelQuality* fItem) {mChannelQuality = fItem;}
56  void setData (const HcalElectronicsMap* fItem) {mElectronicsMap = fItem;}
57  void setData (const HcalRespCorrs* fItem) {mRespCorrs = fItem; mUpdateCalibrations = true; }
58  void setData (const HcalTimeCorrs* fItem) {mTimeCorrs = fItem; mUpdateCalibrations = true; }
59  void setData (const HcalZSThresholds* fItem) {mZSThresholds = fItem;}
60  void setData (const HcalL1TriggerObjects* fItem) {mL1TriggerObjects = fItem;}
61  void setData (const HcalLUTCorrs* fItem) {mLUTCorrs = fItem; mUpdateCalibrations = true; }
62  void setData (const HcalPFCorrs* fItem) {mPFCorrs = fItem; }
63  void setData (const HcalLutMetadata* fItem) {mLutMetadata = fItem;}
64 
65  private:
66  bool makeHcalCalibration (const HcalGenericDetId& fId, HcalCalibrations* fObject,
67  bool pedestalInADC) const;
68  void buildCalibrations() const;
70  bool pedestalInADC) const;
71  void buildCalibWidths() const;
74  const HcalGains* mGains;
87  // bool mPedestalInADC;
91 };
92 
93 #endif
const HcalLUTCorrs * mLUTCorrs
Definition: HcalDbService.h:84
const HcalGainWidth * getGainWidth(const HcalGenericDetId &fId) const
bool mUpdateCalibWidths
Definition: HcalDbService.h:90
bool mUpdateCalibrations
Definition: HcalDbService.h:90
const HcalChannelStatus * getHcalChannelStatus(const HcalGenericDetId &fId) const
const HcalL1TriggerObjects * mL1TriggerObjects
Definition: HcalDbService.h:82
const HcalPFCorrs * mPFCorrs
Definition: HcalDbService.h:85
void setData(const HcalPedestalWidths *fItem)
Definition: HcalDbService.h:51
const HcalGains * mGains
Definition: HcalDbService.h:74
const HcalChannelQuality * mChannelQuality
Definition: HcalDbService.h:78
const HcalLutMetadata * mLutMetadata
Definition: HcalDbService.h:86
const HcalPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
const HcalRespCorr * getHcalRespCorr(const HcalGenericDetId &fId) const
void setData(const HcalElectronicsMap *fItem)
Definition: HcalDbService.h:56
const HcalLUTCorr * getHcalLUTCorr(const HcalGenericDetId &fId) const
void setData(const HcalGainWidths *fItem)
Definition: HcalDbService.h:53
const HcalTimeCorr * getHcalTimeCorr(const HcalGenericDetId &fId) const
void setData(const HcalPFCorrs *fItem)
Definition: HcalDbService.h:62
void buildCalibWidths() const
void setData(const HcalTimeCorrs *fItem)
Definition: HcalDbService.h:58
HcalCalibrationsSet mCalibSet
Definition: HcalDbService.h:88
void setData(const HcalZSThresholds *fItem)
Definition: HcalDbService.h:59
void setData(const HcalRespCorrs *fItem)
Definition: HcalDbService.h:57
const HcalL1TriggerObject * getHcalL1TriggerObject(const HcalGenericDetId &fId) const
bool makeHcalCalibration(const HcalGenericDetId &fId, HcalCalibrations *fObject, bool pedestalInADC) const
const HcalLutMetadata * getHcalLutMetadata() const
bool makeHcalCalibrationWidth(const HcalGenericDetId &fId, HcalCalibrationWidths *fObject, bool pedestalInADC) const
void setData(const HcalLutMetadata *fItem)
Definition: HcalDbService.h:63
const HcalPedestalWidths * mPedestalWidths
Definition: HcalDbService.h:73
const HcalRespCorrs * mRespCorrs
Definition: HcalDbService.h:80
const HcalCalibrationWidths & getHcalCalibrationWidths(const HcalGenericDetId &fId) const
HcalDbService(const edm::ParameterSet &)
void setData(const HcalGains *fItem)
Definition: HcalDbService.h:52
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
const HcalElectronicsMap * mElectronicsMap
Definition: HcalDbService.h:79
const HcalGainWidths * mGainWidths
Definition: HcalDbService.h:75
const HcalTimeCorrs * mTimeCorrs
Definition: HcalDbService.h:83
void setData(const HcalLUTCorrs *fItem)
Definition: HcalDbService.h:61
HcalCalibrationWidthsSet mCalibWidthSet
Definition: HcalDbService.h:89
const HcalPFCorr * getHcalPFCorr(const HcalGenericDetId &fId) const
const HcalZSThresholds * mZSThresholds
Definition: HcalDbService.h:81
const HcalQIEData * mQIEData
Definition: HcalDbService.h:77
const HcalGain * getGain(const HcalGenericDetId &fId) const
void setData(const HcalPedestals *fItem)
Definition: HcalDbService.h:50
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
void setData(const HcalL1TriggerObjects *fItem)
Definition: HcalDbService.h:60
void buildCalibrations() const
void setData(const HcalChannelQuality *fItem)
Definition: HcalDbService.h:55
const HcalElectronicsMap * getHcalMapping() const
const HcalPedestals * mPedestals
Definition: HcalDbService.h:72
QieShape * mQieShapeCache
Definition: HcalDbService.h:76
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
void setData(const HcalQIEData *fItem)
Definition: HcalDbService.h:54
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
const HcalQIEShape * getHcalShape() const