CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalDbProducer Class Reference

#include <CalibFormats/HcalDbProducer/interface/HcalDbProducer.h>

Inheritance diagram for HcalDbProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

void channelQualityCallback (const HcalChannelQualityRcd &fRecord)
 
void electronicsMapCallback (const HcalElectronicsMapRcd &fRecord)
 
void frontEndMapCallback (const HcalFrontEndMapRcd &fRecord)
 
void gainsCallback (const HcalGainsRcd &fRecord)
 
void gainWidthsCallback (const HcalGainWidthsRcd &fRecord)
 
 HcalDbProducer (const edm::ParameterSet &)
 
void L1triggerObjectsCallback (const HcalL1TriggerObjectsRcd &fRecord)
 
void LUTCorrsCallback (const HcalLUTCorrsRcd &fRecord)
 
void lutMetadataCallback (const HcalLutMetadataRcd &fRecord)
 
void MCParamsCallback (const HcalMCParamsRcd &fRecord)
 
void pedestalsCallback (const HcalPedestalsRcd &fRecord)
 
void pedestalWidthsCallback (const HcalPedestalWidthsRcd &fRecord)
 
void PFCorrsCallback (const HcalPFCorrsRcd &fRecord)
 
std::shared_ptr< HcalDbServiceproduce (const HcalDbRecord &)
 
std::shared_ptr< HcalChannelQualityproduceChannelQualityWithTopo (const HcalChannelQualityRcd &)
 
void QIEDataCallback (const HcalQIEDataRcd &fRecord)
 
void QIETypesCallback (const HcalQIETypesRcd &fRecord)
 
void respCorrsCallback (const HcalRespCorrsRcd &fRecord)
 
void SiPMCharacteristicsCallback (const HcalSiPMCharacteristicsRcd &fRecord)
 
void SiPMParametersCallback (const HcalSiPMParametersRcd &fRecord)
 
void timeCorrsCallback (const HcalTimeCorrsRcd &fRecord)
 
void TPChannelParametersCallback (const HcalTPChannelParametersRcd &fRecord)
 
void TPParametersCallback (const HcalTPParametersRcd &fRecord)
 
void zsThresholdsCallback (const HcalZSThresholdsRcd &fRecord)
 
 ~HcalDbProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

std::vector< std::string > mDumpRequest
 
std::ostream * mDumpStream
 
std::unique_ptr< HcalGainsmGains
 
std::unique_ptr< HcalGainWidthsmGainWidths
 
std::unique_ptr< HcalL1TriggerObjectsmL1TriggerObjects
 
std::unique_ptr< HcalLUTCorrsmLUTCorrs
 
std::unique_ptr< HcalLutMetadatamLutMetadata
 
std::unique_ptr< HcalMCParamsmMCParams
 
std::unique_ptr< HcalPedestalsmPedestals
 
std::unique_ptr< HcalPedestalWidthsmPedestalWidths
 
std::unique_ptr< HcalPFCorrsmPFCorrs
 
std::unique_ptr< HcalQIEDatamQIEData
 
std::unique_ptr< HcalQIETypesmQIETypes
 
std::unique_ptr< HcalRespCorrsmRespCorrs
 
std::shared_ptr< HcalDbServicemService
 
std::unique_ptr< HcalSiPMCharacteristicsmSiPMCharacteristics
 
std::unique_ptr< HcalSiPMParametersmSiPMParameters
 
std::unique_ptr< HcalTimeCorrsmTimeCorrs
 
std::unique_ptr< HcalTPChannelParametersmTPChannelParameters
 
std::unique_ptr< HcalTPParametersmTPParameters
 
std::unique_ptr< HcalZSThresholdsmZSThresholds
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 34 of file HcalDbProducer.h.

Constructor & Destructor Documentation

HcalDbProducer::HcalDbProducer ( const edm::ParameterSet fConfig)

Definition at line 35 of file HcalDbProducer.cc.

References channelQualityCallback(), gather_cfg::cout, edm::eventsetup::dependsOn(), electronicsMapCallback(), frontEndMapCallback(), gainsCallback(), gainWidthsCallback(), edm::ParameterSet::getUntrackedParameter(), L1triggerObjectsCallback(), LUTCorrsCallback(), lutMetadataCallback(), MCParamsCallback(), mDumpRequest, mDumpStream, pedestalsCallback(), pedestalWidthsCallback(), PFCorrsCallback(), produceChannelQualityWithTopo(), QIEDataCallback(), QIETypesCallback(), respCorrsCallback(), edm::ESProducer::setWhatProduced(), SiPMCharacteristicsCallback(), SiPMParametersCallback(), AlCaHLTBitMon_QueryRunRegistry::string, timeCorrsCallback(), TPChannelParametersCallback(), TPParametersCallback(), and zsThresholdsCallback().

36  : ESProducer(),
37  mService (new HcalDbService (fConfig)),
38  mDumpRequest (),
39  mDumpStream(0)
40 {
41  //the following line is needed to tell the framework what data is being produced
42  // comments of dependsOn:
43  // 1) There are two ways one can use 'dependsOn' the first is passing it up to three arguments.
44  // However, one can also extend the dependencies by first calling 'dependsOn() and then using '&' to add additional dependencies. So
45  // dependsOn(&FooProd::func1, &FooProd::func2, &FooProd::func3)
46  // gives the same result as
47  // dependsOn(&FooProd::func1) & (&FooProd::func2) & (&FooProd::func3)
48  // 2) Upon IOV change, all callbacks are called, in the inverse order of their specification below (tested).
70  )
71  );
72 
74  //now do what ever other initialization is needed
75 
76  mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
77  if (!mDumpRequest.empty()) {
78  std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
79  mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
80  }
81 }
T getUntrackedParameter(std::string const &, T const &) const
void LUTCorrsCallback(const HcalLUTCorrsRcd &fRecord)
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
void TPParametersCallback(const HcalTPParametersRcd &fRecord)
void electronicsMapCallback(const HcalElectronicsMapRcd &fRecord)
void frontEndMapCallback(const HcalFrontEndMapRcd &fRecord)
void pedestalsCallback(const HcalPedestalsRcd &fRecord)
void TPChannelParametersCallback(const HcalTPChannelParametersRcd &fRecord)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void gainWidthsCallback(const HcalGainWidthsRcd &fRecord)
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)
void PFCorrsCallback(const HcalPFCorrsRcd &fRecord)
void channelQualityCallback(const HcalChannelQualityRcd &fRecord)
void MCParamsCallback(const HcalMCParamsRcd &fRecord)
void respCorrsCallback(const HcalRespCorrsRcd &fRecord)
std::shared_ptr< HcalChannelQuality > produceChannelQualityWithTopo(const HcalChannelQualityRcd &)
void QIETypesCallback(const HcalQIETypesRcd &fRecord)
void gainsCallback(const HcalGainsRcd &fRecord)
void zsThresholdsCallback(const HcalZSThresholdsRcd &fRecord)
void SiPMCharacteristicsCallback(const HcalSiPMCharacteristicsRcd &fRecord)
void timeCorrsCallback(const HcalTimeCorrsRcd &fRecord)
std::ostream * mDumpStream
void pedestalWidthsCallback(const HcalPedestalWidthsRcd &fRecord)
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)
HcalDbProducer::~HcalDbProducer ( )

Definition at line 84 of file HcalDbProducer.cc.

References gather_cfg::cout, and mDumpStream.

84  {
85 
86  // do anything here that needs to be done at desctruction time
87  // (e.g. close files, deallocate resources etc.)
88  if (mDumpStream != &std::cout) delete mDumpStream;
89 }
std::ostream * mDumpStream

Member Function Documentation

void HcalDbProducer::channelQualityCallback ( const HcalChannelQualityRcd fRecord)

Definition at line 229 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), mDumpRequest, mDumpStream, mService, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

229  {
231  fRecord.get ("withTopo", item );
232 
233  mService->setData (item.product());
234  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ChannelQuality")) != mDumpRequest.end()) {
235  *mDumpStream << "New HCAL ChannelQuality set" << std::endl;
237  }
238 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
T const * product() const
Definition: ESHandle.h:86
void HcalDbProducer::electronicsMapCallback ( const HcalElectronicsMapRcd fRecord)

Definition at line 348 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), mDumpRequest, mDumpStream, mService, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

348  {
350  fRecord.get (item);
351  mService->setData (item.product ());
352  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ElectronicsMap")) != mDumpRequest.end()) {
353  *mDumpStream << "New HCAL Electronics Map set" << std::endl;
355  }
356 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
T const * product() const
Definition: ESHandle.h:86
void HcalDbProducer::frontEndMapCallback ( const HcalFrontEndMapRcd fRecord)

Definition at line 358 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), mDumpRequest, mDumpStream, mService, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

358  {
360  fRecord.get (item);
361  mService->setData (item.product ());
362  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("FrontEndMap")) != mDumpRequest.end()) {
363  *mDumpStream << "New HCAL FrontEnd Map set" << std::endl;
365  }
366 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
T const * product() const
Definition: ESHandle.h:86
void HcalDbProducer::gainsCallback ( const HcalGainsRcd fRecord)

Definition at line 155 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mGains, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

155  {
157  fRecord.get (item);
158 
159  mGains.reset( new HcalGains(*item) );
161  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
162  const HcalTopology* topo=&(*htopo);
163  mGains->setTopo(topo);
164 
165 
166  mService->setData (mGains.get());
167  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Gains")) != mDumpRequest.end()) {
168  *mDumpStream << "New HCAL Gains set" << std::endl;
170  }
171 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
std::unique_ptr< HcalGains > mGains
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::gainWidthsCallback ( const HcalGainWidthsRcd fRecord)

Definition at line 174 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mGainWidths, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

174  {
176  fRecord.get (item);
177 
178  mGainWidths.reset( new HcalGainWidths(*item));
180  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
181  const HcalTopology* topo=&(*htopo);
182  mGainWidths->setTopo(topo);
183 
184 
185  mService->setData (mGainWidths.get());
186  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
187  *mDumpStream << "New HCAL GainWidths set" << std::endl;
189  }
190 }
std::unique_ptr< HcalGainWidths > mGainWidths
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::L1triggerObjectsCallback ( const HcalL1TriggerObjectsRcd fRecord)

Definition at line 330 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mL1TriggerObjects, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

330  {
332  fRecord.get (item);
333 
334  mL1TriggerObjects.reset( new HcalL1TriggerObjects(*item) );
335 
337  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
338  const HcalTopology* topo=&(*htopo);
339  mL1TriggerObjects->setTopo(topo);
340 
341  mService->setData (mL1TriggerObjects.get());
342  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
343  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
345  }
346 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::unique_ptr< HcalL1TriggerObjects > mL1TriggerObjects
std::ostream * mDumpStream
void HcalDbProducer::LUTCorrsCallback ( const HcalLUTCorrsRcd fRecord)

Definition at line 258 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mLUTCorrs, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

258  {
260  fRecord.get (item);
261 
262  mLUTCorrs.reset( new HcalLUTCorrs(*item) );
263 
265  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
266  const HcalTopology* topo=&(*htopo);
267  mLUTCorrs->setTopo(topo);
268 
269  mService->setData (mLUTCorrs.get());
270  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
271  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
273  }
274 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalLUTCorrs > mLUTCorrs
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::lutMetadataCallback ( const HcalLutMetadataRcd fRecord)

Definition at line 368 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mLutMetadata, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

368  {
370  fRecord.get (item);
371 
372  mLutMetadata.reset( new HcalLutMetadata(*item) );
373 
375  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
376  const HcalTopology* topo=&(*htopo);
377  mLutMetadata->setTopo(topo);
378 
379  mService->setData (mLutMetadata.get());
380  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
381  *mDumpStream << "New HCAL LUT Metadata set" << std::endl;
383  }
384 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalLutMetadata > mLutMetadata
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::MCParamsCallback ( const HcalMCParamsRcd fRecord)

Definition at line 444 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mMCParams, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

444  {
446  fRecord.get (item);
447 
448  mMCParams.reset( new HcalMCParams(*item) );
449 
451  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
452  const HcalTopology* topo=&(*htopo);
453  mMCParams->setTopo(topo);
454 
455  mService->setData (mMCParams.get());
456  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("MCParams")) != mDumpRequest.end()) {
457  *mDumpStream << "New HCAL MCParams set" << std::endl;
459  }
460 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::unique_ptr< HcalMCParams > mMCParams
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::pedestalsCallback ( const HcalPedestalsRcd fRecord)

Definition at line 102 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mPedestals, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

102  {
104  fRecord.get (item);
105 
106  mPedestals.reset( new HcalPedestals(*item) );
107 
109  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
110  const HcalTopology* topo=&(*htopo);
111  mPedestals->setTopo(topo);
112 
113 
114  mService->setData (mPedestals.get());
115  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Pedestals")) != mDumpRequest.end()) {
116  *mDumpStream << "New HCAL Pedestals set" << std::endl;
118  }
119 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::unique_ptr< HcalPedestals > mPedestals
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::pedestalWidthsCallback ( const HcalPedestalWidthsRcd fRecord)

Definition at line 136 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mPedestalWidths, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

136  {
138  fRecord.get (item);
139 
140  mPedestalWidths.reset( new HcalPedestalWidths(*item));
141 
143  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
144  const HcalTopology* topo=&(*htopo);
145  mPedestalWidths->setTopo(topo);
146 
147  mService->setData (mPedestalWidths.get());
148  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
149  *mDumpStream << "New HCAL PedestalWidths set" << std::endl;
151  }
152 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalPedestalWidths > mPedestalWidths
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::PFCorrsCallback ( const HcalPFCorrsRcd fRecord)

Definition at line 276 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mPFCorrs, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

276  {
278  fRecord.get (item);
279 
280  mPFCorrs.reset( new HcalPFCorrs(*item) );
281 
283  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
284  const HcalTopology* topo=&(*htopo);
285  mPFCorrs->setTopo(topo);
286 
287  mService->setData (mPFCorrs.get());
288  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
289  *mDumpStream << "New HCAL PFCorrs set" << std::endl;
291  }
292 }
std::unique_ptr< HcalPFCorrs > mPFCorrs
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
std::shared_ptr< HcalDbService > HcalDbProducer::produce ( const HcalDbRecord )

Definition at line 97 of file HcalDbProducer.cc.

References mService.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

98 {
99  return mService;
100 }
std::shared_ptr< HcalDbService > mService
std::shared_ptr< HcalChannelQuality > HcalDbProducer::produceChannelQualityWithTopo ( const HcalChannelQualityRcd fRecord)

Definition at line 121 of file HcalDbProducer.cc.

References edm::eventsetup::EventSetupRecord::get(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().

Referenced by HcalDbProducer().

122 {
124  fRecord.get (item);
125 
126  auto channelQuality = std::make_shared<HcalChannelQuality>(*item);
127 
129  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
130  const HcalTopology* topo=&(*htopo);
131  channelQuality->setTopo(topo);
132 
133  return channelQuality;
134 }
void get(HolderT &iHolder) const
void HcalDbProducer::QIEDataCallback ( const HcalQIEDataRcd fRecord)

Definition at line 192 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mQIEData, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

192  {
194  fRecord.get (item);
195 
196  mQIEData.reset( new HcalQIEData(*item));
197 
198 
200  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
201  const HcalTopology* topo=&(*htopo);
202  mQIEData->setTopo(topo);
203 
204  mService->setData (mQIEData.get());
205  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIEData")) != mDumpRequest.end()) {
206  *mDumpStream << "New HCAL QIEData set" << std::endl;
208  }
209 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalQIEData > mQIEData
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::QIETypesCallback ( const HcalQIETypesRcd fRecord)

Definition at line 211 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mQIETypes, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

211  {
213  fRecord.get (item);
214 
215  mQIETypes.reset( new HcalQIETypes(*item) );
216 
218  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
219  const HcalTopology* topo=&(*htopo);
220  mQIETypes->setTopo(topo);
221 
222  mService->setData (mQIETypes.get());
223  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIETypes")) != mDumpRequest.end()) {
224  *mDumpStream << "New HCAL QIETypes set" << std::endl;
226  }
227 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalQIETypes > mQIETypes
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::respCorrsCallback ( const HcalRespCorrsRcd fRecord)

Definition at line 240 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mRespCorrs, mService, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

240  {
242  fRecord.get (item);
243 
244  mRespCorrs.reset( new HcalRespCorrs(*item) );
245 
247  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
248  const HcalTopology* topo=&(*htopo);
249  mRespCorrs->setTopo(topo);
250 
251  mService->setData (mRespCorrs.get());
252  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
253  *mDumpStream << "New HCAL RespCorrs set" << std::endl;
255  }
256 }
std::unique_ptr< HcalRespCorrs > mRespCorrs
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::SiPMCharacteristicsCallback ( const HcalSiPMCharacteristicsRcd fRecord)

Definition at line 404 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), mDumpRequest, mDumpStream, mService, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

404  {
406  fRecord.get (item);
407  mService->setData (item.product ());
408  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("SiPMCharacteristics")) != mDumpRequest.end()) {
409  *mDumpStream << "New HCAL SiPMCharacteristics set" << std::endl;
411  }
412 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
T const * product() const
Definition: ESHandle.h:86
void HcalDbProducer::SiPMParametersCallback ( const HcalSiPMParametersRcd fRecord)

Definition at line 386 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mService, mSiPMParameters, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

386  {
388  fRecord.get (item);
389 
390  mSiPMParameters.reset( new HcalSiPMParameters(*item) );
391 
393  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
394  const HcalTopology* topo=&(*htopo);
395  mSiPMParameters->setTopo(topo);
396 
397  mService->setData (mSiPMParameters.get());
398  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("SiPMParameters")) != mDumpRequest.end()) {
399  *mDumpStream << "New HCAL SiPMParameters set" << std::endl;
401  }
402 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
std::unique_ptr< HcalSiPMParameters > mSiPMParameters
void HcalDbProducer::timeCorrsCallback ( const HcalTimeCorrsRcd fRecord)

Definition at line 294 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mService, mTimeCorrs, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

294  {
296  fRecord.get (item);
297 
298  mTimeCorrs.reset( new HcalTimeCorrs(*item) );
299 
301  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
302  const HcalTopology* topo=&(*htopo);
303  mTimeCorrs->setTopo(topo);
304 
305  mService->setData (mTimeCorrs.get());
306  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TimeCorrs")) != mDumpRequest.end()) {
307  *mDumpStream << "New HCAL TimeCorrs set" << std::endl;
309  }
310 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalTimeCorrs > mTimeCorrs
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::TPChannelParametersCallback ( const HcalTPChannelParametersRcd fRecord)

Definition at line 414 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mService, mTPChannelParameters, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

414  {
416  fRecord.get (item);
417 
418  mTPChannelParameters.reset( new HcalTPChannelParameters(*item) );
419 
421  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
422  const HcalTopology* topo=&(*htopo);
423  mTPChannelParameters->setTopo(topo);
424 
425  mService->setData (mTPChannelParameters.get());
426  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TPChannelParameters")) != mDumpRequest.end()) {
427  *mDumpStream << "New HCAL TPChannelParameters set" << std::endl;
429  }
430 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
std::unique_ptr< HcalTPChannelParameters > mTPChannelParameters
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::TPParametersCallback ( const HcalTPParametersRcd fRecord)

Definition at line 432 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), mDumpRequest, mDumpStream, mService, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

432  {
433 
435  fRecord.get (item);
436  mService->setData (item.product ());
437  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TPParameters")) != mDumpRequest.end()) {
438  *mDumpStream << "New HCAL TPParameters set" << std::endl;
440  }
441 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
T const * product() const
Definition: ESHandle.h:86
void HcalDbProducer::zsThresholdsCallback ( const HcalZSThresholdsRcd fRecord)

Definition at line 312 of file HcalDbProducer.cc.

References HcalDbASCIIIO::dumpObject(), spr::find(), edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mDumpRequest, mDumpStream, mService, mZSThresholds, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

312  {
314  fRecord.get (item);
315 
316  mZSThresholds.reset( new HcalZSThresholds(*item) );
317 
319  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
320  const HcalTopology* topo=&(*htopo);
321  mZSThresholds->setTopo(topo);
322 
323  mService->setData (mZSThresholds.get());
324  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
325  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
327  }
328 }
std::unique_ptr< HcalZSThresholds > mZSThresholds
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
std::shared_ptr< HcalDbService > mService
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream

Member Data Documentation

std::vector<std::string> HcalDbProducer::mDumpRequest
private
std::ostream* HcalDbProducer::mDumpStream
private
std::unique_ptr<HcalGains> HcalDbProducer::mGains
private

Definition at line 74 of file HcalDbProducer.h.

Referenced by gainsCallback().

std::unique_ptr<HcalGainWidths> HcalDbProducer::mGainWidths
private

Definition at line 75 of file HcalDbProducer.h.

Referenced by gainWidthsCallback().

std::unique_ptr<HcalL1TriggerObjects> HcalDbProducer::mL1TriggerObjects
private

Definition at line 83 of file HcalDbProducer.h.

Referenced by L1triggerObjectsCallback().

std::unique_ptr<HcalLUTCorrs> HcalDbProducer::mLUTCorrs
private

Definition at line 79 of file HcalDbProducer.h.

Referenced by LUTCorrsCallback().

std::unique_ptr<HcalLutMetadata> HcalDbProducer::mLutMetadata
private

Definition at line 84 of file HcalDbProducer.h.

Referenced by lutMetadataCallback().

std::unique_ptr<HcalMCParams> HcalDbProducer::mMCParams
private

Definition at line 89 of file HcalDbProducer.h.

Referenced by MCParamsCallback().

std::unique_ptr<HcalPedestals> HcalDbProducer::mPedestals
private

Definition at line 72 of file HcalDbProducer.h.

Referenced by pedestalsCallback().

std::unique_ptr<HcalPedestalWidths> HcalDbProducer::mPedestalWidths
private

Definition at line 73 of file HcalDbProducer.h.

Referenced by pedestalWidthsCallback().

std::unique_ptr<HcalPFCorrs> HcalDbProducer::mPFCorrs
private

Definition at line 80 of file HcalDbProducer.h.

Referenced by PFCorrsCallback().

std::unique_ptr<HcalQIEData> HcalDbProducer::mQIEData
private

Definition at line 76 of file HcalDbProducer.h.

Referenced by QIEDataCallback().

std::unique_ptr<HcalQIETypes> HcalDbProducer::mQIETypes
private

Definition at line 77 of file HcalDbProducer.h.

Referenced by QIETypesCallback().

std::unique_ptr<HcalRespCorrs> HcalDbProducer::mRespCorrs
private

Definition at line 78 of file HcalDbProducer.h.

Referenced by respCorrsCallback().

std::shared_ptr<HcalDbService> HcalDbProducer::mService
private
std::unique_ptr<HcalSiPMCharacteristics> HcalDbProducer::mSiPMCharacteristics
private

Definition at line 86 of file HcalDbProducer.h.

std::unique_ptr<HcalSiPMParameters> HcalDbProducer::mSiPMParameters
private

Definition at line 85 of file HcalDbProducer.h.

Referenced by SiPMParametersCallback().

std::unique_ptr<HcalTimeCorrs> HcalDbProducer::mTimeCorrs
private

Definition at line 81 of file HcalDbProducer.h.

Referenced by timeCorrsCallback().

std::unique_ptr<HcalTPChannelParameters> HcalDbProducer::mTPChannelParameters
private

Definition at line 87 of file HcalDbProducer.h.

Referenced by TPChannelParametersCallback().

std::unique_ptr<HcalTPParameters> HcalDbProducer::mTPParameters
private

Definition at line 88 of file HcalDbProducer.h.

std::unique_ptr<HcalZSThresholds> HcalDbProducer::mZSThresholds
private

Definition at line 82 of file HcalDbProducer.h.

Referenced by zsThresholdsCallback().