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 &)
 
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
 
boost::shared_ptr< HcalDbServicemService
 

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 36 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(), QIEDataCallback(), respCorrsCallback(), edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, timeCorrsCallback(), and zsThresholdsCallback().

37  : ESProducer(),
38  mService (new HcalDbService (fConfig)),
39  mDumpRequest (),
40  mDumpStream(0)
41 {
42  //the following line is needed to tell the framework what data is being produced
43  // comments of dependsOn:
44  // 1) There are two ways one can use 'dependsOn' the first is passing it up to three arguments.
45  // However, one can also extend the dependencies by first calling 'dependsOn() and then using '&' to add additional dependencies. So
46  // dependsOn(&FooProd::func1, &FooProd::func2, &FooProd::func3)
47  // gives the same result as
48  // dependsOn(&FooProd::func1) & (&FooProd::func2) & (&FooProd::func3)
49  // 2) Upon IOV change, all callbacks are called, in the inverse order of their specification below (tested).
64  )
65  );
66 
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)
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 188 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

188  {
190  fRecord.get (item);
191 
192  if (item->topo()==0) {
194  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
195  const HcalTopology* topo=&(*htopo);
196  item->setTopo(topo);
197  }
198 
199  mService->setData (item.product ());
200  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ChannelQuality")) != mDumpRequest.end()) {
201  *mDumpStream << "New HCAL ChannelQuality 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
boost::shared_ptr< HcalDbService > mService
T const * product() const
Definition: ESHandle.h:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::electronicsMapCallback ( const HcalElectronicsMapRcd fRecord)

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

314  {
316  fRecord.get (item);
317  mService->setData (item.product ());
318  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ElectronicsMap")) != mDumpRequest.end()) {
319  *mDumpStream << "New HCAL Electronics Map 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
T const * product() const
Definition: ESHandle.h:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::gainsCallback ( const HcalGainsRcd fRecord)

Definition at line 133 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

133  {
135  fRecord.get (item);
136 
137  if (item->topo()==0) {
139  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
140  const HcalTopology* topo=&(*htopo);
141  item->setTopo(topo);
142  }
143 
144  mService->setData (item.product ());
145  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Gains")) != mDumpRequest.end()) {
146  *mDumpStream << "New HCAL Gains set" << std::endl;
148  }
149 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::gainWidthsCallback ( const HcalGainWidthsRcd fRecord)

Definition at line 152 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

152  {
154  fRecord.get (item);
155 
156  if (item->topo()==0) {
158  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
159  const HcalTopology* topo=&(*htopo);
160  item->setTopo(topo);
161  }
162 
163  mService->setData (item.product ());
164  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
165  *mDumpStream << "New HCAL GainWidths set" << std::endl;
167  }
168 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::L1triggerObjectsCallback ( const HcalL1TriggerObjectsRcd fRecord)

Definition at line 296 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

296  {
298  fRecord.get (item);
299 
300  if (item->topo()==0) {
302  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
303  const HcalTopology* topo=&(*htopo);
304  item->setTopo(topo);
305  }
306 
307  mService->setData (item.product ());
308  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
309  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
311  }
312 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::LUTCorrsCallback ( const HcalLUTCorrsRcd fRecord)

Definition at line 224 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

224  {
226  fRecord.get (item);
227 
228  if (item->topo()==0) {
230  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
231  const HcalTopology* topo=&(*htopo);
232  item->setTopo(topo);
233  }
234 
235  mService->setData (item.product ());
236  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
237  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
239  }
240 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::lutMetadataCallback ( const HcalLutMetadataRcd fRecord)

Definition at line 324 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

324  {
326  fRecord.get (item);
327 
328  if (item->topo()==0) {
330  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
331  const HcalTopology* topo=&(*htopo);
332  item->setTopo(topo);
333  }
334 
335  mService->setData (item.product ());
336  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
337  *mDumpStream << "New HCAL LUT Metadata set" << std::endl;
339  }
340 }
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:62
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, mService, edm::ESHandle< class >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

96  {
98  fRecord.get (item);
99 
100  if (item->topo()==0) {
102  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
103  const HcalTopology* topo=&(*htopo);
104  item->setTopo(topo);
105  }
106 
107  mService->setData (item.product ());
108  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Pedestals")) != mDumpRequest.end()) {
109  *mDumpStream << "New HCAL Pedestals set" << std::endl;
111  }
112 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::pedestalWidthsCallback ( const HcalPedestalWidthsRcd fRecord)

Definition at line 114 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

114  {
116  fRecord.get (item);
117 
118  if (item->topo()==0) {
120  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
121  const HcalTopology* topo=&(*htopo);
122  item->setTopo(topo);
123  }
124 
125  mService->setData (item.product ());
126  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
127  *mDumpStream << "New HCAL PedestalWidths set" << std::endl;
129  }
130 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::PFCorrsCallback ( const HcalPFCorrsRcd fRecord)

Definition at line 242 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

242  {
244  fRecord.get (item);
245 
246  if (item->topo()==0) {
248  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
249  const HcalTopology* topo=&(*htopo);
250  item->setTopo(topo);
251  }
252 
253  mService->setData (item.product ());
254  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
255  *mDumpStream << "New HCAL PFCorrs set" << std::endl;
257  }
258 }
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:62
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
void HcalDbProducer::QIEDataCallback ( const HcalQIEDataRcd fRecord)

Definition at line 170 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

170  {
172  fRecord.get (item);
173 
174  if (item->topo()==0) {
176  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
177  const HcalTopology* topo=&(*htopo);
178  item->setTopo(topo);
179  }
180 
181  mService->setData (item.product ());
182  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIEData")) != mDumpRequest.end()) {
183  *mDumpStream << "New HCAL QIEData set" << std::endl;
185  }
186 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::respCorrsCallback ( const HcalRespCorrsRcd 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, mService, edm::ESHandle< class >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDbProducer().

206  {
208  fRecord.get (item);
209 
210  if (item->topo()==0) {
212  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
213  const HcalTopology* topo=&(*htopo);
214  item->setTopo(topo);
215  }
216 
217  mService->setData (item.product ());
218  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
219  *mDumpStream << "New HCAL RespCorrs 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
T const * product() const
Definition: ESHandle.h:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::timeCorrsCallback ( const HcalTimeCorrsRcd fRecord)

Definition at line 260 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

260  {
262  fRecord.get (item);
263 
264  if (item->topo()==0) {
266  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
267  const HcalTopology* topo=&(*htopo);
268  item->setTopo(topo);
269  }
270 
271  mService->setData (item.product ());
272  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TimeCorrs")) != mDumpRequest.end()) {
273  *mDumpStream << "New HCAL TimeCorrs set" << std::endl;
275  }
276 }
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:62
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::ostream * mDumpStream
void HcalDbProducer::zsThresholdsCallback ( const HcalZSThresholdsRcd fRecord)

Definition at line 278 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

278  {
280  fRecord.get (item);
281 
282  if (item->topo()==0) {
284  fRecord.getRecord<IdealGeometryRecord>().get(htopo);
285  const HcalTopology* topo=&(*htopo);
286  item->setTopo(topo);
287  }
288 
289  mService->setData (item.product ());
290  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
291  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
293  }
294 }
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:62
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
boost::shared_ptr<HcalDbService> HcalDbProducer::mService
private