CMS 3D CMS Logo

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 
23 // user include files
26 
27 class HcalDbService;
28 class HcalDbRecord;
29 
32 
33 
35  public:
38 
39  std::shared_ptr<HcalDbService> produce( const HcalDbRecord& );
40 
41  std::shared_ptr<HcalChannelQuality> produceChannelQualityWithTopo( const HcalChannelQualityRcd&);
42 
43  // callbacks
44  void pedestalsCallback (const HcalPedestalsRcd& fRecord);
45  void pedestalWidthsCallback (const HcalPedestalWidthsRcd& fRecord);
46  void gainsCallback (const HcalGainsRcd& fRecord);
47  void gainWidthsCallback (const HcalGainWidthsRcd& fRecord);
48  void QIEDataCallback (const HcalQIEDataRcd& fRecord);
49  void QIETypesCallback (const HcalQIETypesRcd& 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 frontEndMapCallback (const HcalFrontEndMapRcd& 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  void SiPMParametersCallback (const HcalSiPMParametersRcd& fRecord);
63  void TPParametersCallback (const HcalTPParametersRcd& fRecord);
64  void MCParamsCallback (const HcalMCParamsRcd& fRecord);
65 
66 private:
67  // ----------member data ---------------------------
68  std::shared_ptr<HcalDbService> mService;
69  std::vector<std::string> mDumpRequest;
70  std::ostream* mDumpStream;
71 
72  std::unique_ptr<HcalPedestals> mPedestals;
73  std::unique_ptr<HcalPedestalWidths> mPedestalWidths;
74  std::unique_ptr<HcalGains> mGains;
75  std::unique_ptr<HcalGainWidths> mGainWidths;
76  std::unique_ptr<HcalQIEData> mQIEData;
77  std::unique_ptr<HcalQIETypes> mQIETypes;
78  std::unique_ptr<HcalRespCorrs> mRespCorrs;
79  std::unique_ptr<HcalLUTCorrs> mLUTCorrs;
80  std::unique_ptr<HcalPFCorrs> mPFCorrs;
81  std::unique_ptr<HcalTimeCorrs> mTimeCorrs;
82  std::unique_ptr<HcalZSThresholds> mZSThresholds;
83  std::unique_ptr<HcalL1TriggerObjects> mL1TriggerObjects;
84  std::unique_ptr<HcalLutMetadata> mLutMetadata;
85  std::unique_ptr<HcalSiPMParameters> mSiPMParameters;
86  std::unique_ptr<HcalSiPMCharacteristics> mSiPMCharacteristics;
87  std::unique_ptr<HcalTPChannelParameters> mTPChannelParameters;
88  std::unique_ptr<HcalTPParameters> mTPParameters;
89  std::unique_ptr<HcalMCParams> mMCParams;
90 
91 };
std::unique_ptr< HcalPFCorrs > mPFCorrs
void LUTCorrsCallback(const HcalLUTCorrsRcd &fRecord)
void TPParametersCallback(const HcalTPParametersRcd &fRecord)
std::unique_ptr< HcalSiPMCharacteristics > mSiPMCharacteristics
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 frontEndMapCallback(const HcalFrontEndMapRcd &fRecord)
void pedestalsCallback(const HcalPedestalsRcd &fRecord)
void TPChannelParametersCallback(const HcalTPChannelParametersRcd &fRecord)
std::unique_ptr< HcalPedestals > mPedestals
void gainWidthsCallback(const HcalGainWidthsRcd &fRecord)
std::unique_ptr< HcalMCParams > mMCParams
void QIEDataCallback(const HcalQIEDataRcd &fRecord)
std::shared_ptr< HcalDbService > mService
void SiPMParametersCallback(const HcalSiPMParametersRcd &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
void MCParamsCallback(const HcalMCParamsRcd &fRecord)
std::unique_ptr< HcalTimeCorrs > mTimeCorrs
void respCorrsCallback(const HcalRespCorrsRcd &fRecord)
std::shared_ptr< HcalChannelQuality > produceChannelQualityWithTopo(const HcalChannelQualityRcd &)
void QIETypesCallback(const HcalQIETypesRcd &fRecord)
std::unique_ptr< HcalQIETypes > mQIETypes
std::unique_ptr< HcalLUTCorrs > mLUTCorrs
std::unique_ptr< HcalTPChannelParameters > mTPChannelParameters
std::unique_ptr< HcalPedestalWidths > mPedestalWidths
void gainsCallback(const HcalGainsRcd &fRecord)
std::unique_ptr< HcalLutMetadata > mLutMetadata
void zsThresholdsCallback(const HcalZSThresholdsRcd &fRecord)
void SiPMCharacteristicsCallback(const HcalSiPMCharacteristicsRcd &fRecord)
void timeCorrsCallback(const HcalTimeCorrsRcd &fRecord)
std::unique_ptr< HcalL1TriggerObjects > mL1TriggerObjects
std::ostream * mDumpStream
void pedestalWidthsCallback(const HcalPedestalWidthsRcd &fRecord)
std::shared_ptr< HcalDbService > produce(const HcalDbRecord &)
std::unique_ptr< HcalTPParameters > mTPParameters
std::unique_ptr< HcalSiPMParameters > mSiPMParameters
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)