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 effectivePedestalsCallback (const HcalPedestalsRcd &fRecord)
 
void effectivePedestalWidthsCallback (const HcalPedestalWidthsRcd &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 RecoParamsCallback (const HcalRecoParamsRcd &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 () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- 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< HcalPedestalsmEffectivePedestals
 
std::unique_ptr< HcalPedestalWidthsmEffectivePedestalWidths
 
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< HcalRecoParamsmRecoParams
 
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())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 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(), effectivePedestalsCallback(), effectivePedestalWidthsCallback(), electronicsMapCallback(), frontEndMapCallback(), gainsCallback(), gainWidthsCallback(), edm::ParameterSet::getUntrackedParameter(), L1triggerObjectsCallback(), LUTCorrsCallback(), lutMetadataCallback(), MCParamsCallback(), mDumpRequest, mDumpStream, pedestalsCallback(), pedestalWidthsCallback(), PFCorrsCallback(), produceChannelQualityWithTopo(), QIEDataCallback(), QIETypesCallback(), RecoParamsCallback(), 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(nullptr)
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).
73  )
74  );
75 
77  //now do what ever other initialization is needed
78 
79  mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
80  if (!mDumpRequest.empty()) {
81  std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
82  mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
83  }
84 }
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 RecoParamsCallback(const HcalRecoParamsRcd &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 effectivePedestalWidthsCallback(const HcalPedestalWidthsRcd &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 effectivePedestalsCallback(const HcalPedestalsRcd &fRecord)
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)
HcalDbProducer::~HcalDbProducer ( )
override

Definition at line 87 of file HcalDbProducer.cc.

References gather_cfg::cout, and mDumpStream.

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

Member Function Documentation

void HcalDbProducer::channelQualityCallback ( const HcalChannelQualityRcd fRecord)

Definition at line 269 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().

269  {
271  fRecord.get ("withTopo", item );
272 
273  mService->setData (item.product());
274  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ChannelQuality")) != mDumpRequest.end()) {
275  *mDumpStream << "New HCAL ChannelQuality set" << std::endl;
277  }
278 }
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::effectivePedestalsCallback ( const HcalPedestalsRcd fRecord)

Definition at line 124 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

124  {
126  fRecord.get ("effective",item);
127 
128  mEffectivePedestals.reset( new HcalPedestals(*item) );
129 
131  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
132  const HcalTopology* topo=&(*htopo);
133  mEffectivePedestals->setTopo(topo);
134 
135 
136  mService->setData (mEffectivePedestals.get(),true);
137  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("EffectivePedestals")) != mDumpRequest.end()) {
138  *mDumpStream << "New HCAL EffectivePedestals set" << std::endl;
140  }
141 }
std::unique_ptr< HcalPedestals > mEffectivePedestals
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::effectivePedestalWidthsCallback ( const HcalPedestalWidthsRcd fRecord)

Definition at line 176 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

176  {
178  fRecord.get ("effective",item);
179 
180  mEffectivePedestalWidths.reset( new HcalPedestalWidths(*item));
181 
183  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
184  const HcalTopology* topo=&(*htopo);
185  mEffectivePedestalWidths->setTopo(topo);
186 
187  mService->setData (mEffectivePedestalWidths.get(),true);
188  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("EffectivePedestalWidths")) != mDumpRequest.end()) {
189  *mDumpStream << "New HCAL EffectivePedestalWidths set" << std::endl;
191  }
192 }
std::unique_ptr< HcalPedestalWidths > mEffectivePedestalWidths
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::electronicsMapCallback ( const HcalElectronicsMapRcd fRecord)

Definition at line 388 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().

388  {
390  fRecord.get (item);
391  mService->setData (item.product ());
392  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ElectronicsMap")) != mDumpRequest.end()) {
393  *mDumpStream << "New HCAL Electronics Map set" << std::endl;
395  }
396 }
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 398 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().

398  {
400  fRecord.get (item);
401  mService->setData (item.product ());
402  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("FrontEndMap")) != mDumpRequest.end()) {
403  *mDumpStream << "New HCAL FrontEnd Map set" << std::endl;
405  }
406 }
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 195 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().

195  {
197  fRecord.get (item);
198 
199  mGains.reset( new HcalGains(*item) );
201  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
202  const HcalTopology* topo=&(*htopo);
203  mGains->setTopo(topo);
204 
205 
206  mService->setData (mGains.get());
207  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Gains")) != mDumpRequest.end()) {
208  *mDumpStream << "New HCAL Gains set" << std::endl;
210  }
211 }
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 214 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().

214  {
216  fRecord.get (item);
217 
218  mGainWidths.reset( new HcalGainWidths(*item));
220  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
221  const HcalTopology* topo=&(*htopo);
222  mGainWidths->setTopo(topo);
223 
224 
225  mService->setData (mGainWidths.get());
226  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
227  *mDumpStream << "New HCAL GainWidths set" << std::endl;
229  }
230 }
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 370 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().

370  {
372  fRecord.get (item);
373 
374  mL1TriggerObjects.reset( new HcalL1TriggerObjects(*item) );
375 
377  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
378  const HcalTopology* topo=&(*htopo);
379  mL1TriggerObjects->setTopo(topo);
380 
381  mService->setData (mL1TriggerObjects.get());
382  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
383  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
385  }
386 }
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 298 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().

298  {
300  fRecord.get (item);
301 
302  mLUTCorrs.reset( new HcalLUTCorrs(*item) );
303 
305  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
306  const HcalTopology* topo=&(*htopo);
307  mLUTCorrs->setTopo(topo);
308 
309  mService->setData (mLUTCorrs.get());
310  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
311  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
313  }
314 }
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 408 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().

408  {
410  fRecord.get (item);
411 
412  mLutMetadata.reset( new HcalLutMetadata(*item) );
413 
415  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
416  const HcalTopology* topo=&(*htopo);
417  mLutMetadata->setTopo(topo);
418 
419  mService->setData (mLutMetadata.get());
420  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
421  *mDumpStream << "New HCAL LUT Metadata set" << std::endl;
423  }
424 }
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 484 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().

484  {
486  fRecord.get (item);
487 
488  mMCParams.reset( new HcalMCParams(*item) );
489 
491  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
492  const HcalTopology* topo=&(*htopo);
493  mMCParams->setTopo(topo);
494 
495  mService->setData (mMCParams.get());
496  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("MCParams")) != mDumpRequest.end()) {
497  *mDumpStream << "New HCAL MCParams set" << std::endl;
499  }
500 }
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 105 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().

105  {
107  fRecord.get (item);
108 
109  mPedestals.reset( new HcalPedestals(*item) );
110 
112  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
113  const HcalTopology* topo=&(*htopo);
114  mPedestals->setTopo(topo);
115 
116 
117  mService->setData (mPedestals.get());
118  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Pedestals")) != mDumpRequest.end()) {
119  *mDumpStream << "New HCAL Pedestals set" << std::endl;
121  }
122 }
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 158 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().

158  {
160  fRecord.get (item);
161 
162  mPedestalWidths.reset( new HcalPedestalWidths(*item));
163 
165  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
166  const HcalTopology* topo=&(*htopo);
167  mPedestalWidths->setTopo(topo);
168 
169  mService->setData (mPedestalWidths.get());
170  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
171  *mDumpStream << "New HCAL PedestalWidths set" << std::endl;
173  }
174 }
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 316 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().

316  {
318  fRecord.get (item);
319 
320  mPFCorrs.reset( new HcalPFCorrs(*item) );
321 
323  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
324  const HcalTopology* topo=&(*htopo);
325  mPFCorrs->setTopo(topo);
326 
327  mService->setData (mPFCorrs.get());
328  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
329  *mDumpStream << "New HCAL PFCorrs set" << std::endl;
331  }
332 }
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 100 of file HcalDbProducer.cc.

References mService.

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

101 {
102  return mService;
103 }
std::shared_ptr< HcalDbService > mService
std::shared_ptr< HcalChannelQuality > HcalDbProducer::produceChannelQualityWithTopo ( const HcalChannelQualityRcd fRecord)

Definition at line 143 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

144 {
146  fRecord.get (item);
147 
148  auto channelQuality = std::make_shared<HcalChannelQuality>(*item);
149 
151  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
152  const HcalTopology* topo=&(*htopo);
153  channelQuality->setTopo(topo);
154 
155  return channelQuality;
156 }
void get(HolderT &iHolder) const
void HcalDbProducer::QIEDataCallback ( const HcalQIEDataRcd fRecord)

Definition at line 232 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().

232  {
234  fRecord.get (item);
235 
236  mQIEData.reset( new HcalQIEData(*item));
237 
238 
240  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
241  const HcalTopology* topo=&(*htopo);
242  mQIEData->setTopo(topo);
243 
244  mService->setData (mQIEData.get());
245  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIEData")) != mDumpRequest.end()) {
246  *mDumpStream << "New HCAL QIEData set" << std::endl;
248  }
249 }
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 251 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().

251  {
253  fRecord.get (item);
254 
255  mQIETypes.reset( new HcalQIETypes(*item) );
256 
258  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
259  const HcalTopology* topo=&(*htopo);
260  mQIETypes->setTopo(topo);
261 
262  mService->setData (mQIETypes.get());
263  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIETypes")) != mDumpRequest.end()) {
264  *mDumpStream << "New HCAL QIETypes set" << std::endl;
266  }
267 }
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::RecoParamsCallback ( const HcalRecoParamsRcd fRecord)

Definition at line 502 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

502  {
504  fRecord.get (item);
505 
506  mRecoParams.reset( new HcalRecoParams(*item) );
507 
509  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
510  const HcalTopology* topo=&(*htopo);
511  mRecoParams->setTopo(topo);
512 
513  mService->setData (mRecoParams.get());
514  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RecoParams")) != mDumpRequest.end()) {
515  *mDumpStream << "New HCAL RecoParams set" << std::endl;
517  }
518 }
std::unique_ptr< HcalRecoParams > mRecoParams
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::respCorrsCallback ( const HcalRespCorrsRcd fRecord)

Definition at line 280 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().

280  {
282  fRecord.get (item);
283 
284  mRespCorrs.reset( new HcalRespCorrs(*item) );
285 
287  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
288  const HcalTopology* topo=&(*htopo);
289  mRespCorrs->setTopo(topo);
290 
291  mService->setData (mRespCorrs.get());
292  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
293  *mDumpStream << "New HCAL RespCorrs set" << std::endl;
295  }
296 }
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 444 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().

444  {
446  fRecord.get (item);
447  mService->setData (item.product ());
448  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("SiPMCharacteristics")) != mDumpRequest.end()) {
449  *mDumpStream << "New HCAL SiPMCharacteristics set" << std::endl;
451  }
452 }
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 426 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().

426  {
428  fRecord.get (item);
429 
430  mSiPMParameters.reset( new HcalSiPMParameters(*item) );
431 
433  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
434  const HcalTopology* topo=&(*htopo);
435  mSiPMParameters->setTopo(topo);
436 
437  mService->setData (mSiPMParameters.get());
438  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("SiPMParameters")) != mDumpRequest.end()) {
439  *mDumpStream << "New HCAL SiPMParameters set" << std::endl;
441  }
442 }
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 334 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().

334  {
336  fRecord.get (item);
337 
338  mTimeCorrs.reset( new HcalTimeCorrs(*item) );
339 
341  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
342  const HcalTopology* topo=&(*htopo);
343  mTimeCorrs->setTopo(topo);
344 
345  mService->setData (mTimeCorrs.get());
346  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TimeCorrs")) != mDumpRequest.end()) {
347  *mDumpStream << "New HCAL TimeCorrs set" << std::endl;
349  }
350 }
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 454 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().

454  {
456  fRecord.get (item);
457 
458  mTPChannelParameters.reset( new HcalTPChannelParameters(*item) );
459 
461  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
462  const HcalTopology* topo=&(*htopo);
463  mTPChannelParameters->setTopo(topo);
464 
465  mService->setData (mTPChannelParameters.get());
466  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TPChannelParameters")) != mDumpRequest.end()) {
467  *mDumpStream << "New HCAL TPChannelParameters set" << std::endl;
469  }
470 }
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 472 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().

472  {
473 
475  fRecord.get (item);
476  mService->setData (item.product ());
477  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TPParameters")) != mDumpRequest.end()) {
478  *mDumpStream << "New HCAL TPParameters set" << std::endl;
480  }
481 }
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 352 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().

352  {
354  fRecord.get (item);
355 
356  mZSThresholds.reset( new HcalZSThresholds(*item) );
357 
359  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
360  const HcalTopology* topo=&(*htopo);
361  mZSThresholds->setTopo(topo);
362 
363  mService->setData (mZSThresholds.get());
364  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
365  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
367  }
368 }
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<HcalPedestals> HcalDbProducer::mEffectivePedestals
private

Definition at line 77 of file HcalDbProducer.h.

Referenced by effectivePedestalsCallback().

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

Definition at line 78 of file HcalDbProducer.h.

Referenced by effectivePedestalWidthsCallback().

std::unique_ptr<HcalGains> HcalDbProducer::mGains
private

Definition at line 79 of file HcalDbProducer.h.

Referenced by gainsCallback().

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

Definition at line 80 of file HcalDbProducer.h.

Referenced by gainWidthsCallback().

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

Definition at line 88 of file HcalDbProducer.h.

Referenced by L1triggerObjectsCallback().

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

Definition at line 84 of file HcalDbProducer.h.

Referenced by LUTCorrsCallback().

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

Definition at line 89 of file HcalDbProducer.h.

Referenced by lutMetadataCallback().

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

Definition at line 94 of file HcalDbProducer.h.

Referenced by MCParamsCallback().

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

Definition at line 75 of file HcalDbProducer.h.

Referenced by pedestalsCallback().

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

Definition at line 76 of file HcalDbProducer.h.

Referenced by pedestalWidthsCallback().

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

Definition at line 85 of file HcalDbProducer.h.

Referenced by PFCorrsCallback().

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

Definition at line 81 of file HcalDbProducer.h.

Referenced by QIEDataCallback().

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

Definition at line 82 of file HcalDbProducer.h.

Referenced by QIETypesCallback().

std::unique_ptr<HcalRecoParams> HcalDbProducer::mRecoParams
private

Definition at line 95 of file HcalDbProducer.h.

Referenced by RecoParamsCallback().

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

Definition at line 83 of file HcalDbProducer.h.

Referenced by respCorrsCallback().

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

Definition at line 91 of file HcalDbProducer.h.

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

Definition at line 90 of file HcalDbProducer.h.

Referenced by SiPMParametersCallback().

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

Definition at line 86 of file HcalDbProducer.h.

Referenced by timeCorrsCallback().

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

Definition at line 92 of file HcalDbProducer.h.

Referenced by TPChannelParametersCallback().

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

Definition at line 93 of file HcalDbProducer.h.

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

Definition at line 87 of file HcalDbProducer.h.

Referenced by zsThresholdsCallback().