64 bool needBuildCalibrations =
false;
65 bool needBuildCalibWidths =
false;
73 needBuildCalibWidths =
true;
76 record, [
this, h =
host.get(), &needBuildCalibrations, &needBuildCalibWidths](
auto const& rec) {
78 needBuildCalibrations =
true;
79 needBuildCalibWidths =
true;
82 [
this, h =
host.get(), &needBuildCalibWidths](
auto const& rec) {
84 needBuildCalibWidths =
true;
88 needBuildCalibrations =
true;
92 needBuildCalibrations =
true;
95 if (needBuildCalibWidths) {
96 host->buildCalibWidths();
99 if (needBuildCalibrations) {
100 host->buildCalibrations();
112 *
mDumpStream <<
"New HCAL/CASTOR Pedestals set" << std::endl;
122 *
mDumpStream <<
"New HCAL/CASTOR Pedestals set" << std::endl;
132 *
mDumpStream <<
"New HCAL/CASTOR Gains set" << std::endl;
142 *
mDumpStream <<
"New HCAL/CASTOR GainWidths set" << std::endl;
152 *
mDumpStream <<
"New HCAL/CASTOR QIEData set" << std::endl;
162 *
mDumpStream <<
"New HCAL/CASTOR ChannelQuality set" << std::endl;
172 *
mDumpStream <<
"New HCAL/CASTOR Electronics Map set" << std::endl;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getUntrackedParameter(std::string const &, T const &) const
void setupElectronicsMap(const CastorElectronicsMapRcd &, CastorDbService *)
std::vector< std::string > mDumpRequest
void setupQIEData(const CastorQIEDataRcd &, CastorDbService *)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
~CastorDbProducer() override
std::shared_ptr< T > makeOrGet(F iFunc)
If there isn't an object already available, creates a new one using iFunc.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
edm::ESProductHost< CastorDbService, CastorPedestalsRcd, CastorPedestalWidthsRcd, CastorGainsRcd, CastorGainWidthsRcd, CastorQIEDataRcd, CastorChannelQualityRcd, CastorElectronicsMapRcd > HostType
void setupGains(const CastorGainsRcd &, CastorDbService *)
void setupChannelQuality(const CastorChannelQualityRcd &, CastorDbService *)
bool dumpObject(std::ostream &fOutput, const CastorPedestals &fObject)
void setupPedestalWidths(const CastorPedestalWidthsRcd &, CastorDbService *)
std::shared_ptr< CastorDbService > produce(const CastorDbRecord &)
void setupPedestals(const CastorPedestalsRcd &, CastorDbService *)
edm::ReusableObjectHolder< HostType > holder_
void setData(const CastorPedestals *fItem)
std::ostream * mDumpStream
void setupGainWidths(const CastorGainWidthsRcd &, CastorDbService *)
T const * product() const
CastorDbProducer(const edm::ParameterSet &)