CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDbProducer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalDbProducer
4 // Class: HcalDbProducer
5 //
13 //
14 // Original Author: Fedor Ratnikov
15 // Created: Tue Aug 9 19:10:10 CDT 2005
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include "boost/shared_ptr.hpp"
23 
24 // user include files
27 
28 class HcalDbService;
29 class HcalDbRecord;
30 
33 
34 
36  public:
39 
40  boost::shared_ptr<HcalDbService> produce( const HcalDbRecord& );
41 
42  boost::shared_ptr<HcalChannelQuality> produceChannelQualityWithTopo( const HcalChannelQualityRcd&);
43 
44  // callbacks
45  void pedestalsCallback (const HcalPedestalsRcd& fRecord);
46  void pedestalWidthsCallback (const HcalPedestalWidthsRcd& fRecord);
47  void gainsCallback (const HcalGainsRcd& fRecord);
48  void gainWidthsCallback (const HcalGainWidthsRcd& fRecord);
49  void QIEDataCallback (const HcalQIEDataRcd& fRecord);
50  void QIETypesCallback (const HcalQIETypesRcd& fRecord);
51  void channelQualityCallback (const HcalChannelQualityRcd& fRecord);
52  void zsThresholdsCallback (const HcalZSThresholdsRcd& fRecord);
53  void respCorrsCallback (const HcalRespCorrsRcd& fRecord);
55  void electronicsMapCallback (const HcalElectronicsMapRcd& fRecord);
56  void timeCorrsCallback (const HcalTimeCorrsRcd& fRecord);
57  void LUTCorrsCallback (const HcalLUTCorrsRcd& fRecord);
58  void PFCorrsCallback (const HcalPFCorrsRcd& fRecord);
59  void lutMetadataCallback (const HcalLutMetadataRcd& fRecord);
60 
61  private:
62  // ----------member data ---------------------------
63  boost::shared_ptr<HcalDbService> mService;
64  std::vector<std::string> mDumpRequest;
65  std::ostream* mDumpStream;
66 
67  std::unique_ptr<HcalPedestals> mPedestals;
68  std::unique_ptr<HcalPedestalWidths> mPedestalWidths;
69  std::unique_ptr<HcalGains> mGains;
70  std::unique_ptr<HcalGainWidths> mGainWidths;
71  std::unique_ptr<HcalQIEData> mQIEData;
72  std::unique_ptr<HcalQIETypes> mQIETypes;
73  std::unique_ptr<HcalRespCorrs> mRespCorrs;
74  std::unique_ptr<HcalLUTCorrs> mLUTCorrs;
75  std::unique_ptr<HcalPFCorrs> mPFCorrs;
76  std::unique_ptr<HcalTimeCorrs> mTimeCorrs;
77  std::unique_ptr<HcalZSThresholds> mZSThresholds;
78  std::unique_ptr<HcalL1TriggerObjects> mL1TriggerObjects;
79  std::unique_ptr<HcalLutMetadata> mLutMetadata;
80 
81 };
std::unique_ptr< HcalPFCorrs > mPFCorrs
void LUTCorrsCallback(const HcalLUTCorrsRcd &fRecord)
void electronicsMapCallback(const HcalElectronicsMapRcd &fRecord)
std::unique_ptr< HcalZSThresholds > mZSThresholds
std::unique_ptr< HcalRespCorrs > mRespCorrs
std::unique_ptr< HcalGainWidths > mGainWidths
HcalDbProducer(const edm::ParameterSet &)
void pedestalsCallback(const HcalPedestalsRcd &fRecord)
std::unique_ptr< HcalPedestals > mPedestals
void gainWidthsCallback(const HcalGainWidthsRcd &fRecord)
void QIEDataCallback(const HcalQIEDataRcd &fRecord)
std::vector< std::string > mDumpRequest
void L1triggerObjectsCallback(const HcalL1TriggerObjectsRcd &fRecord)
std::unique_ptr< HcalGains > mGains
void PFCorrsCallback(const HcalPFCorrsRcd &fRecord)
void channelQualityCallback(const HcalChannelQualityRcd &fRecord)
std::unique_ptr< HcalQIEData > mQIEData
boost::shared_ptr< HcalDbService > mService
std::unique_ptr< HcalTimeCorrs > mTimeCorrs
void respCorrsCallback(const HcalRespCorrsRcd &fRecord)
void QIETypesCallback(const HcalQIETypesRcd &fRecord)
std::unique_ptr< HcalQIETypes > mQIETypes
std::unique_ptr< HcalLUTCorrs > mLUTCorrs
std::unique_ptr< HcalPedestalWidths > mPedestalWidths
void gainsCallback(const HcalGainsRcd &fRecord)
std::unique_ptr< HcalLutMetadata > mLutMetadata
void zsThresholdsCallback(const HcalZSThresholdsRcd &fRecord)
void timeCorrsCallback(const HcalTimeCorrsRcd &fRecord)
boost::shared_ptr< HcalDbService > produce(const HcalDbRecord &)
std::unique_ptr< HcalL1TriggerObjects > mL1TriggerObjects
std::ostream * mDumpStream
void pedestalWidthsCallback(const HcalPedestalWidthsRcd &fRecord)
boost::shared_ptr< HcalChannelQuality > produceChannelQualityWithTopo(const HcalChannelQualityRcd &)
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)