CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 pedestalsCallback (const HcalPedestalsRcd &fRecord)
 
void pedestalWidthsCallback (const HcalPedestalWidthsRcd &fRecord)
 
void PFCorrsCallback (const HcalPFCorrsRcd &fRecord)
 
boost::shared_ptr< HcalDbServiceproduce (const HcalDbRecord &)
 
boost::shared_ptr
< HcalChannelQuality
produceChannelQualityWithTopo (const HcalChannelQualityRcd &)
 
void QIEDataCallback (const HcalQIEDataRcd &fRecord)
 
void QIETypesCallback (const HcalQIETypesRcd &fRecord)
 
void respCorrsCallback (const HcalRespCorrsRcd &fRecord)
 
void timeCorrsCallback (const HcalTimeCorrsRcd &fRecord)
 
void zsThresholdsCallback (const HcalZSThresholdsRcd &fRecord)
 
 ~HcalDbProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 

Private Attributes

std::vector< std::string > mDumpRequest
 
std::ostream * mDumpStream
 
std::unique_ptr< HcalGainsmGains
 
std::unique_ptr< HcalGainWidthsmGainWidths
 
std::unique_ptr
< HcalL1TriggerObjects
mL1TriggerObjects
 
std::unique_ptr< HcalLUTCorrsmLUTCorrs
 
std::unique_ptr< HcalLutMetadatamLutMetadata
 
std::unique_ptr< HcalPedestalsmPedestals
 
std::unique_ptr
< HcalPedestalWidths
mPedestalWidths
 
std::unique_ptr< HcalPFCorrsmPFCorrs
 
std::unique_ptr< HcalQIEDatamQIEData
 
std::unique_ptr< HcalQIETypesmQIETypes
 
std::unique_ptr< HcalRespCorrsmRespCorrs
 
boost::shared_ptr< HcalDbServicemService
 
std::unique_ptr< HcalTimeCorrsmTimeCorrs
 
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
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- 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::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_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 35 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(), gainsCallback(), gainWidthsCallback(), edm::ParameterSet::getUntrackedParameter(), L1triggerObjectsCallback(), LUTCorrsCallback(), lutMetadataCallback(), mDumpRequest, mDumpStream, pedestalsCallback(), pedestalWidthsCallback(), PFCorrsCallback(), produceChannelQualityWithTopo(), QIEDataCallback(), QIETypesCallback(), respCorrsCallback(), edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, timeCorrsCallback(), 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).
64  )
65  );
66 
68  //now do what ever other initialization is needed
69 
70  mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
71  if (!mDumpRequest.empty()) {
72  std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
73  mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
74  }
75 }
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 electronicsMapCallback(const HcalElectronicsMapRcd &fRecord)
void pedestalsCallback(const HcalPedestalsRcd &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::vector< std::string > mDumpRequest
void L1triggerObjectsCallback(const HcalL1TriggerObjectsRcd &fRecord)
void PFCorrsCallback(const HcalPFCorrsRcd &fRecord)
void channelQualityCallback(const HcalChannelQualityRcd &fRecord)
boost::shared_ptr< HcalDbService > mService
void respCorrsCallback(const HcalRespCorrsRcd &fRecord)
void QIETypesCallback(const HcalQIETypesRcd &fRecord)
void gainsCallback(const HcalGainsRcd &fRecord)
void zsThresholdsCallback(const HcalZSThresholdsRcd &fRecord)
void timeCorrsCallback(const HcalTimeCorrsRcd &fRecord)
tuple cout
Definition: gather_cfg.py:145
std::ostream * mDumpStream
void pedestalWidthsCallback(const HcalPedestalWidthsRcd &fRecord)
boost::shared_ptr< HcalChannelQuality > produceChannelQualityWithTopo(const HcalChannelQualityRcd &)
void lutMetadataCallback(const HcalLutMetadataRcd &fRecord)
HcalDbProducer::~HcalDbProducer ( )

Definition at line 78 of file HcalDbProducer.cc.

References gather_cfg::cout, and mDumpStream.

79 {
80 
81  // do anything here that needs to be done at desctruction time
82  // (e.g. close files, deallocate resources etc.)
83  if (mDumpStream != &std::cout) delete mDumpStream;
84 }
tuple cout
Definition: gather_cfg.py:145
std::ostream * mDumpStream

Member Function Documentation

void HcalDbProducer::channelQualityCallback ( const HcalChannelQualityRcd fRecord)

Definition at line 224 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

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

Definition at line 343 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

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

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

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

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

169  {
171  fRecord.get (item);
172 
173  mGainWidths.reset( new HcalGainWidths(*item));
175  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
176  const HcalTopology* topo=&(*htopo);
177  mGainWidths->setTopo(topo);
178 
179 
180  mService->setData (mGainWidths.get());
181  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
182  *mDumpStream << "New HCAL GainWidths set" << std::endl;
184  }
185 }
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:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::L1triggerObjectsCallback ( const HcalL1TriggerObjectsRcd fRecord)

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

325  {
327  fRecord.get (item);
328 
329  mL1TriggerObjects.reset( new HcalL1TriggerObjects(*item) );
330 
332  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
333  const HcalTopology* topo=&(*htopo);
334  mL1TriggerObjects->setTopo(topo);
335 
336  mService->setData (mL1TriggerObjects.get());
337  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
338  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
340  }
341 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
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 253 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().

253  {
255  fRecord.get (item);
256 
257  mLUTCorrs.reset( new HcalLUTCorrs(*item) );
258 
260  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
261  const HcalTopology* topo=&(*htopo);
262  mLUTCorrs->setTopo(topo);
263 
264  mService->setData (mLUTCorrs.get());
265  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
266  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
268  }
269 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
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 353 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().

353  {
355  fRecord.get (item);
356 
357  mLutMetadata.reset( new HcalLutMetadata(*item) );
358 
360  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
361  const HcalTopology* topo=&(*htopo);
362  mLutMetadata->setTopo(topo);
363 
364  mService->setData (mLutMetadata.get());
365  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
366  *mDumpStream << "New HCAL LUT Metadata set" << std::endl;
368  }
369 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
std::unique_ptr< HcalLutMetadata > mLutMetadata
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::pedestalsCallback ( const HcalPedestalsRcd fRecord)

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

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

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

131  {
133  fRecord.get (item);
134 
135  mPedestalWidths.reset( new HcalPedestalWidths(*item));
136 
138  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
139  const HcalTopology* topo=&(*htopo);
140  mPedestalWidths->setTopo(topo);
141 
142  mService->setData (mPedestalWidths.get());
143  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
144  *mDumpStream << "New HCAL PedestalWidths set" << std::endl;
146  }
147 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
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 271 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().

271  {
273  fRecord.get (item);
274 
275  mPFCorrs.reset( new HcalPFCorrs(*item) );
276 
278  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
279  const HcalTopology* topo=&(*htopo);
280  mPFCorrs->setTopo(topo);
281 
282  mService->setData (mPFCorrs.get());
283  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
284  *mDumpStream << "New HCAL PFCorrs set" << std::endl;
286  }
287 }
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:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
boost::shared_ptr< HcalDbService > HcalDbProducer::produce ( const HcalDbRecord )

Definition at line 92 of file HcalDbProducer.cc.

References mService.

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

93 {
94  return mService;
95 }
boost::shared_ptr< HcalDbService > mService
boost::shared_ptr< HcalChannelQuality > HcalDbProducer::produceChannelQualityWithTopo ( const HcalChannelQualityRcd fRecord)

Definition at line 116 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

117 {
119  fRecord.get (item);
120 
121  boost::shared_ptr<HcalChannelQuality> channelQuality( new HcalChannelQuality(*item) );
122 
124  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
125  const HcalTopology* topo=&(*htopo);
126  channelQuality->setTopo(topo);
127 
128  return channelQuality;
129 }
void get(HolderT &iHolder) const
void HcalDbProducer::QIEDataCallback ( const HcalQIEDataRcd fRecord)

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

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

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

206  {
208  fRecord.get (item);
209 
210  mQIETypes.reset( new HcalQIETypes(*item) );
211 
213  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
214  const HcalTopology* topo=&(*htopo);
215  mQIETypes->setTopo(topo);
216 
217  mService->setData (mQIETypes.get());
218  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIETypes")) != mDumpRequest.end()) {
219  *mDumpStream << "New HCAL QIETypes set" << std::endl;
221  }
222 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
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 235 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().

235  {
237  fRecord.get (item);
238 
239  mRespCorrs.reset( new HcalRespCorrs(*item) );
240 
242  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
243  const HcalTopology* topo=&(*htopo);
244  mRespCorrs->setTopo(topo);
245 
246  mService->setData (mRespCorrs.get());
247  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
248  *mDumpStream << "New HCAL RespCorrs set" << std::endl;
250  }
251 }
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:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::timeCorrsCallback ( const HcalTimeCorrsRcd fRecord)

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

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

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

307  {
309  fRecord.get (item);
310 
311  mZSThresholds.reset( new HcalZSThresholds(*item) );
312 
314  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
315  const HcalTopology* topo=&(*htopo);
316  mZSThresholds->setTopo(topo);
317 
318  mService->setData (mZSThresholds.get());
319  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
320  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
322  }
323 }
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:7
std::vector< std::string > mDumpRequest
void get(HolderT &iHolder) const
boost::shared_ptr< HcalDbService > mService
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 69 of file HcalDbProducer.h.

Referenced by gainsCallback().

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

Definition at line 70 of file HcalDbProducer.h.

Referenced by gainWidthsCallback().

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

Definition at line 78 of file HcalDbProducer.h.

Referenced by L1triggerObjectsCallback().

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

Definition at line 74 of file HcalDbProducer.h.

Referenced by LUTCorrsCallback().

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

Definition at line 79 of file HcalDbProducer.h.

Referenced by lutMetadataCallback().

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

Definition at line 67 of file HcalDbProducer.h.

Referenced by pedestalsCallback().

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

Definition at line 68 of file HcalDbProducer.h.

Referenced by pedestalWidthsCallback().

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

Definition at line 75 of file HcalDbProducer.h.

Referenced by PFCorrsCallback().

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

Definition at line 71 of file HcalDbProducer.h.

Referenced by QIEDataCallback().

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

Definition at line 72 of file HcalDbProducer.h.

Referenced by QIETypesCallback().

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

Definition at line 73 of file HcalDbProducer.h.

Referenced by respCorrsCallback().

boost::shared_ptr<HcalDbService> HcalDbProducer::mService
private
std::unique_ptr<HcalTimeCorrs> HcalDbProducer::mTimeCorrs
private

Definition at line 76 of file HcalDbProducer.h.

Referenced by timeCorrsCallback().

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

Definition at line 77 of file HcalDbProducer.h.

Referenced by zsThresholdsCallback().