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:
37  ~HcalDbProducer() override;
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 effectivePedestalsCallback (const HcalPedestalsRcd& fRecord);
48  void gainsCallback (const HcalGainsRcd& fRecord);
49  void gainWidthsCallback (const HcalGainWidthsRcd& fRecord);
50  void QIEDataCallback (const HcalQIEDataRcd& fRecord);
51  void QIETypesCallback (const HcalQIETypesRcd& fRecord);
52  void channelQualityCallback (const HcalChannelQualityRcd& fRecord);
53  void zsThresholdsCallback (const HcalZSThresholdsRcd& fRecord);
54  void respCorrsCallback (const HcalRespCorrsRcd& fRecord);
56  void electronicsMapCallback (const HcalElectronicsMapRcd& fRecord);
57  void frontEndMapCallback (const HcalFrontEndMapRcd& fRecord);
58  void timeCorrsCallback (const HcalTimeCorrsRcd& fRecord);
59  void LUTCorrsCallback (const HcalLUTCorrsRcd& fRecord);
60  void PFCorrsCallback (const HcalPFCorrsRcd& fRecord);
61  void lutMetadataCallback (const HcalLutMetadataRcd& fRecord);
62  void SiPMParametersCallback (const HcalSiPMParametersRcd& fRecord);
65  void TPParametersCallback (const HcalTPParametersRcd& fRecord);
66  void MCParamsCallback (const HcalMCParamsRcd& fRecord);
67 
68 private:
69  // ----------member data ---------------------------
70  std::shared_ptr<HcalDbService> mService;
71  std::vector<std::string> mDumpRequest;
72  std::ostream* mDumpStream;
73 
74  std::unique_ptr<HcalPedestals> mPedestals;
75  std::unique_ptr<HcalPedestalWidths> mPedestalWidths;
76  std::unique_ptr<HcalPedestals> mEffectivePedestals;
77  std::unique_ptr<HcalPedestalWidths> mEffectivePedestalWidths;
78  std::unique_ptr<HcalGains> mGains;
79  std::unique_ptr<HcalGainWidths> mGainWidths;
80  std::unique_ptr<HcalQIEData> mQIEData;
81  std::unique_ptr<HcalQIETypes> mQIETypes;
82  std::unique_ptr<HcalRespCorrs> mRespCorrs;
83  std::unique_ptr<HcalLUTCorrs> mLUTCorrs;
84  std::unique_ptr<HcalPFCorrs> mPFCorrs;
85  std::unique_ptr<HcalTimeCorrs> mTimeCorrs;
86  std::unique_ptr<HcalZSThresholds> mZSThresholds;
87  std::unique_ptr<HcalL1TriggerObjects> mL1TriggerObjects;
88  std::unique_ptr<HcalLutMetadata> mLutMetadata;
89  std::unique_ptr<HcalSiPMParameters> mSiPMParameters;
90  std::unique_ptr<HcalSiPMCharacteristics> mSiPMCharacteristics;
91  std::unique_ptr<HcalTPChannelParameters> mTPChannelParameters;
92  std::unique_ptr<HcalTPParameters> mTPParameters;
93  std::unique_ptr<HcalMCParams> mMCParams;
94 
95 };
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)
std::unique_ptr< HcalPedestalWidths > mEffectivePedestalWidths
std::unique_ptr< HcalPedestals > mEffectivePedestals
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
void effectivePedestalWidthsCallback(const HcalPedestalWidthsRcd &fRecord)
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)
~HcalDbProducer() override
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
void effectivePedestalsCallback(const HcalPedestalsRcd &fRecord)
std::unique_ptr< HcalSiPMParameters > mSiPMParameters
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)