Go to the documentation of this file.
61 template <
typename RecordT,
typename TokenT>
79 :
ESProducer(), mDumpRequest(), mDumpStream(nullptr) {
115 bool needBuildCalibrations =
false;
116 bool needBuildCalibWidths =
false;
124 needBuildCalibWidths =
true;
127 record, [
this,
h =
host.get(), &needBuildCalibrations, &needBuildCalibWidths](
auto const& rec) {
129 needBuildCalibrations =
true;
130 needBuildCalibWidths =
true;
133 [
this,
h =
host.get(), &needBuildCalibWidths](
auto const& rec) {
135 needBuildCalibWidths =
true;
139 needBuildCalibrations =
true;
143 needBuildCalibrations =
true;
146 if (needBuildCalibWidths) {
147 host->buildCalibWidths();
150 if (needBuildCalibrations) {
151 host->buildCalibrations();
157 template <
typename RecordT,
typename TokenT>
edm::ESGetToken< CastorGainWidths, CastorGainWidthsRcd > gainWidthsToken_
edm::ESGetToken< CastorPedestalWidths, CastorPedestalWidthsRcd > pedestalWidthsToken_
edm::ESGetToken< CastorElectronicsMap, CastorElectronicsMapRcd > electronicsMapToken_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::shared_ptr< CastorDbService > produce(const CastorDbRecord &)
T getUntrackedParameter(std::string const &, T const &) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::ReusableObjectHolder< HostType > holder_
std::shared_ptr< T > makeOrGet(F iFunc)
If there isn't an object already available, creates a new one using iFunc.
std::ostream * mDumpStream
edm::ESGetToken< CastorGains, CastorGainsRcd > gainsToken_
CastorDbProducer(const edm::ParameterSet &)
std::vector< std::string > mDumpRequest
bool dumpObject(std::ostream &fOutput, const CastorPedestals &fObject)
void setupItem(const RecordT &fRecord, const TokenT &token, const char *name, CastorDbService *service)
~CastorDbProducer() override
edm::ESGetToken< CastorPedestals, CastorPedestalsRcd > pedestalsToken_
edm::ESGetToken< CastorQIEData, CastorQIEDataRcd > qieDataToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESProductHost< CastorDbService, CastorPedestalsRcd, CastorPedestalWidthsRcd, CastorGainsRcd, CastorGainWidthsRcd, CastorQIEDataRcd, CastorChannelQualityRcd, CastorElectronicsMapRcd > HostType
edm::ESGetToken< CastorChannelQuality, CastorChannelQualityRcd > channelQualityToken_