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
 
- 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(), 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:41
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:41
std::ostream * mDumpStream

Member Function Documentation

void HcalDbProducer::channelQualityCallback ( const HcalChannelQualityRcd fRecord)

Definition at line 148 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

148  {
150  fRecord.get (item);
151  mService->setData (item.product ());
152  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ChannelQuality")) != mDumpRequest.end()) {
153  *mDumpStream << "New HCAL ChannelQuality set" << std::endl;
155  }
156 }
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 218 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

218  {
220  fRecord.get (item);
221  mService->setData (item.product ());
222  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ElectronicsMap")) != mDumpRequest.end()) {
223  *mDumpStream << "New HCAL Electronics Map set" << std::endl;
225  }
226 }
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 117 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

117  {
119  fRecord.get (item);
120  mService->setData (item.product ());
121  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Gains")) != mDumpRequest.end()) {
122  *mDumpStream << "New HCAL Gains set" << std::endl;
124  }
125 }
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 128 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

128  {
130  fRecord.get (item);
131  mService->setData (item.product ());
132  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("GainWidths")) != mDumpRequest.end()) {
133  *mDumpStream << "New HCAL GainWidths set" << std::endl;
135  }
136 }
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 208 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

208  {
210  fRecord.get (item);
211  mService->setData (item.product ());
212  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("L1TriggerObjects")) != mDumpRequest.end()) {
213  *mDumpStream << "New HCAL L1TriggerObjects set" << std::endl;
215  }
216 }
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 168 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

168  {
170  fRecord.get (item);
171  mService->setData (item.product ());
172  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LUTCorrs")) != mDumpRequest.end()) {
173  *mDumpStream << "New HCAL LUTCorrs set" << std::endl;
175  }
176 }
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 228 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

228  {
230  fRecord.get (item);
231  mService->setData (item.product ());
232  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("LutMetadata")) != mDumpRequest.end()) {
233  *mDumpStream << "New HCAL LUT Metadata set" << std::endl;
235  }
236 }
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(), mDumpRequest, mDumpStream, mService, and edm::ESHandle< class >::product().

Referenced by HcalDbProducer().

96  {
98  fRecord.get (item);
99  mService->setData (item.product ());
100  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("Pedestals")) != mDumpRequest.end()) {
101  *mDumpStream << "New HCAL Pedestals set" << std::endl;
103  }
104 }
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 106 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

106  {
108  fRecord.get (item);
109  mService->setData (item.product ());
110  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PedestalWidths")) != mDumpRequest.end()) {
111  *mDumpStream << "New HCAL PedestalWidths 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::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 178 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

178  {
180  fRecord.get (item);
181  mService->setData (item.product ());
182  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("PFCorrs")) != mDumpRequest.end()) {
183  *mDumpStream << "New HCAL PFCorrs 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
boost::shared_ptr< HcalDbService > HcalDbProducer::produce ( const HcalDbRecord )

Definition at line 91 of file HcalDbProducer.cc.

References mService.

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

92 {
93  return mService;
94 }
boost::shared_ptr< HcalDbService > mService
void HcalDbProducer::QIEDataCallback ( const HcalQIEDataRcd fRecord)

Definition at line 138 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

138  {
140  fRecord.get (item);
141  mService->setData (item.product ());
142  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("QIEData")) != mDumpRequest.end()) {
143  *mDumpStream << "New HCAL QIEData 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
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 158 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

158  {
160  fRecord.get (item);
161  mService->setData (item.product ());
162  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("RespCorrs")) != mDumpRequest.end()) {
163  *mDumpStream << "New HCAL RespCorrs 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
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 188 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

188  {
190  fRecord.get (item);
191  mService->setData (item.product ());
192  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("TimeCorrs")) != mDumpRequest.end()) {
193  *mDumpStream << "New HCAL TimeCorrs set" << std::endl;
195  }
196 }
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 198 of file HcalDbProducer.cc.

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

Referenced by HcalDbProducer().

198  {
200  fRecord.get (item);
201  mService->setData (item.product ());
202  if (std::find (mDumpRequest.begin(), mDumpRequest.end(), std::string ("ZSThresholds")) != mDumpRequest.end()) {
203  *mDumpStream << "New HCAL ZSThresholds set" << std::endl;
205  }
206 }
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