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 channelQualityCallback (const HcalChannelQualityRcd& fRecord);
51  void zsThresholdsCallback (const HcalZSThresholdsRcd& fRecord);
52  void respCorrsCallback (const HcalRespCorrsRcd& fRecord);
54  void electronicsMapCallback (const HcalElectronicsMapRcd& fRecord);
55  void timeCorrsCallback (const HcalTimeCorrsRcd& fRecord);
56  void LUTCorrsCallback (const HcalLUTCorrsRcd& fRecord);
57  void PFCorrsCallback (const HcalPFCorrsRcd& fRecord);
58  void lutMetadataCallback (const HcalLutMetadataRcd& fRecord);
59 
60  private:
61  // ----------member data ---------------------------
62  boost::shared_ptr<HcalDbService> mService;
63  std::vector<std::string> mDumpRequest;
64  std::ostream* mDumpStream;
65 
66  std::unique_ptr<HcalPedestals> mPedestals;
67  std::unique_ptr<HcalPedestalWidths> mPedestalWidths;
68  std::unique_ptr<HcalGains> mGains;
69  std::unique_ptr<HcalGainWidths> mGainWidths;
70  std::unique_ptr<HcalQIEData> mQIEData;
71  std::unique_ptr<HcalRespCorrs> mRespCorrs;
72  std::unique_ptr<HcalLUTCorrs> mLUTCorrs;
73  std::unique_ptr<HcalPFCorrs> mPFCorrs;
74  std::unique_ptr<HcalTimeCorrs> mTimeCorrs;
75  std::unique_ptr<HcalZSThresholds> mZSThresholds;
76  std::unique_ptr<HcalL1TriggerObjects> mL1TriggerObjects;
77  std::unique_ptr<HcalLutMetadata> mLutMetadata;
78 
79 };
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)
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)