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 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< 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, boost::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(), 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).
63  )
64  );
65 
67  //now do what ever other initialization is needed
68 
69  mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
70  if (!mDumpRequest.empty()) {
71  std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
72  mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
73  }
74 }
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 gainsCallback(const HcalGainsRcd &fRecord)
void zsThresholdsCallback(const HcalZSThresholdsRcd &fRecord)
void timeCorrsCallback(const HcalTimeCorrsRcd &fRecord)
tuple cout
Definition: gather_cfg.py:121
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 77 of file HcalDbProducer.cc.

References gather_cfg::cout, and mDumpStream.

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

Member Function Documentation

void HcalDbProducer::channelQualityCallback ( const HcalChannelQualityRcd fRecord)

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

205  {
207  fRecord.get ("withTopo", item );
208 
209  mService->setData (item.product());
210  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ChannelQuality")) != mDumpRequest.end()) {
211  *mDumpStream << "New HCAL ChannelQuality set" << std::endl;
213  }
214 }
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 324 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().

324  {
326  fRecord.get (item);
327  mService->setData (item.product ());
328  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ElectronicsMap")) != mDumpRequest.end()) {
329  *mDumpStream << "New HCAL Electronics Map set" << std::endl;
331  }
332 }
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 149 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().

149  {
151  fRecord.get (item);
152 
153  mGains.reset( new HcalGains(*item) );
155  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
156  const HcalTopology* topo=&(*htopo);
157  mGains->setTopo(topo);
158 
159 
160  mService->setData (mGains.get());
161  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Gains")) != mDumpRequest.end()) {
162  *mDumpStream << "New HCAL Gains set" << std::endl;
164  }
165 }
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 168 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().

168  {
170  fRecord.get (item);
171 
172  mGainWidths.reset( new HcalGainWidths(*item));
174  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
175  const HcalTopology* topo=&(*htopo);
176  mGainWidths->setTopo(topo);
177 
178 
179  mService->setData (mGainWidths.get());
180  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
181  *mDumpStream << "New HCAL GainWidths set" << std::endl;
183  }
184 }
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 306 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().

306  {
308  fRecord.get (item);
309 
310  mL1TriggerObjects.reset( new HcalL1TriggerObjects(*item) );
311 
313  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
314  const HcalTopology* topo=&(*htopo);
315  mL1TriggerObjects->setTopo(topo);
316 
317  mService->setData (mL1TriggerObjects.get());
318  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
319  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
321  }
322 }
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 234 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().

234  {
236  fRecord.get (item);
237 
238  mLUTCorrs.reset( new HcalLUTCorrs(*item) );
239 
241  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
242  const HcalTopology* topo=&(*htopo);
243  mLUTCorrs->setTopo(topo);
244 
245  mService->setData (mLUTCorrs.get());
246  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
247  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
249  }
250 }
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 334 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().

334  {
336  fRecord.get (item);
337 
338  mLutMetadata.reset( new HcalLutMetadata(*item) );
339 
341  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
342  const HcalTopology* topo=&(*htopo);
343  mLutMetadata->setTopo(topo);
344 
345  mService->setData (mLutMetadata.get());
346  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
347  *mDumpStream << "New HCAL LUT Metadata 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: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 96 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().

96  {
98  fRecord.get (item);
99 
100  mPedestals.reset( new HcalPedestals(*item) );
101 
103  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
104  const HcalTopology* topo=&(*htopo);
105  mPedestals->setTopo(topo);
106 
107 
108  mService->setData (mPedestals.get());
109  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Pedestals")) != mDumpRequest.end()) {
110  *mDumpStream << "New HCAL Pedestals set" << std::endl;
112  }
113 }
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 130 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().

130  {
132  fRecord.get (item);
133 
134  mPedestalWidths.reset( new HcalPedestalWidths(*item));
135 
137  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
138  const HcalTopology* topo=&(*htopo);
139  mPedestalWidths->setTopo(topo);
140 
141  mService->setData (mPedestalWidths.get());
142  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
143  *mDumpStream << "New HCAL PedestalWidths set" << std::endl;
145  }
146 }
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 252 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().

252  {
254  fRecord.get (item);
255 
256  mPFCorrs.reset( new HcalPFCorrs(*item) );
257 
259  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
260  const HcalTopology* topo=&(*htopo);
261  mPFCorrs->setTopo(topo);
262 
263  mService->setData (mPFCorrs.get());
264  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
265  *mDumpStream << "New HCAL PFCorrs set" << std::endl;
267  }
268 }
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 91 of file HcalDbProducer.cc.

References mService.

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

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

Definition at line 115 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

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

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

186  {
188  fRecord.get (item);
189 
190  mQIEData.reset( new HcalQIEData(*item));
191 
192 
194  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
195  const HcalTopology* topo=&(*htopo);
196  mQIEData->setTopo(topo);
197 
198  mService->setData (mQIEData.get());
199  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIEData")) != mDumpRequest.end()) {
200  *mDumpStream << "New HCAL QIEData set" << std::endl;
202  }
203 }
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::respCorrsCallback ( const HcalRespCorrsRcd fRecord)

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

216  {
218  fRecord.get (item);
219 
220  mRespCorrs.reset( new HcalRespCorrs(*item) );
221 
223  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
224  const HcalTopology* topo=&(*htopo);
225  mRespCorrs->setTopo(topo);
226 
227  mService->setData (mRespCorrs.get());
228  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
229  *mDumpStream << "New HCAL RespCorrs set" << std::endl;
231  }
232 }
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 270 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().

270  {
272  fRecord.get (item);
273 
274  mTimeCorrs.reset( new HcalTimeCorrs(*item) );
275 
277  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
278  const HcalTopology* topo=&(*htopo);
279  mTimeCorrs->setTopo(topo);
280 
281  mService->setData (mTimeCorrs.get());
282  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TimeCorrs")) != mDumpRequest.end()) {
283  *mDumpStream << "New HCAL TimeCorrs set" << std::endl;
285  }
286 }
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 288 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().

288  {
290  fRecord.get (item);
291 
292  mZSThresholds.reset( new HcalZSThresholds(*item) );
293 
295  fRecord.getRecord<HcalRecNumberingRecord>().get(htopo);
296  const HcalTopology* topo=&(*htopo);
297  mZSThresholds->setTopo(topo);
298 
299  mService->setData (mZSThresholds.get());
300  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
301  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
303  }
304 }
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 68 of file HcalDbProducer.h.

Referenced by gainsCallback().

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

Definition at line 69 of file HcalDbProducer.h.

Referenced by gainWidthsCallback().

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

Definition at line 76 of file HcalDbProducer.h.

Referenced by L1triggerObjectsCallback().

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

Definition at line 72 of file HcalDbProducer.h.

Referenced by LUTCorrsCallback().

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

Definition at line 77 of file HcalDbProducer.h.

Referenced by lutMetadataCallback().

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

Definition at line 66 of file HcalDbProducer.h.

Referenced by pedestalsCallback().

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

Definition at line 67 of file HcalDbProducer.h.

Referenced by pedestalWidthsCallback().

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

Definition at line 73 of file HcalDbProducer.h.

Referenced by PFCorrsCallback().

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

Definition at line 70 of file HcalDbProducer.h.

Referenced by QIEDataCallback().

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

Definition at line 71 of file HcalDbProducer.h.

Referenced by respCorrsCallback().

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

Definition at line 74 of file HcalDbProducer.h.

Referenced by timeCorrsCallback().

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

Definition at line 75 of file HcalDbProducer.h.

Referenced by zsThresholdsCallback().