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>
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setupItem(const RecordT &fRecord, const TokenT &token, const char *name, CastorDbService *service)
std::vector< std::string > mDumpRequest
~CastorDbProducer() override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::ESGetToken< CastorPedestals, CastorPedestalsRcd > pedestalsToken_
edm::ESGetToken< CastorQIEData, CastorQIEDataRcd > qieDataToken_
T getUntrackedParameter(std::string const &, T const &) const
edm::ESProductHost< CastorDbService, CastorPedestalsRcd, CastorPedestalWidthsRcd, CastorGainsRcd, CastorGainWidthsRcd, CastorQIEDataRcd, CastorChannelQualityRcd, CastorElectronicsMapRcd > HostType
edm::ESGetToken< CastorChannelQuality, CastorChannelQualityRcd > channelQualityToken_
edm::ESGetToken< CastorPedestalWidths, CastorPedestalWidthsRcd > pedestalWidthsToken_
edm::ESGetToken< CastorGainWidths, CastorGainWidthsRcd > gainWidthsToken_
std::shared_ptr< T > makeOrGet(FM &&iMakeFunc)
Takes an object from the queue if one is available, or creates one using iMakeFunc.
edm::ESGetToken< CastorElectronicsMap, CastorElectronicsMapRcd > electronicsMapToken_
bool dumpObject(std::ostream &fOutput, const CastorPedestals &fObject)
std::shared_ptr< CastorDbService > produce(const CastorDbRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ReusableObjectHolder< HostType > holder_
std::ostream * mDumpStream
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
edm::ESGetToken< CastorGains, CastorGainsRcd > gainsToken_
CastorDbProducer(const edm::ParameterSet &)