75 bool needBuildCalibrations =
false;
76 bool needBuildCalibWidths =
false;
79 [
this,
h=
host.get()](
auto const& rec) {
83 [
this, h=
host.get()](
auto const& rec) {
88 &needBuildCalibWidths](
auto const& rec) {
90 needBuildCalibWidths =
true;
94 &needBuildCalibrations,
95 &needBuildCalibWidths](
auto const& rec) {
97 needBuildCalibrations =
true;
98 needBuildCalibWidths =
true;
102 &needBuildCalibWidths](
auto const& rec) {
104 needBuildCalibWidths =
true;
108 &needBuildCalibrations](
auto const& rec) {
110 needBuildCalibrations =
true;
114 &needBuildCalibrations](
auto const& rec) {
116 needBuildCalibrations =
true;
119 if (needBuildCalibWidths) {
120 host->buildCalibWidths();
123 if (needBuildCalibrations) {
124 host->buildCalibrations();
138 *
mDumpStream <<
"New HCAL/CASTOR Pedestals set" << std::endl;
149 *
mDumpStream <<
"New HCAL/CASTOR Pedestals set" << std::endl;
161 *
mDumpStream <<
"New HCAL/CASTOR Gains set" << std::endl;
173 *
mDumpStream <<
"New HCAL/CASTOR GainWidths set" << std::endl;
184 *
mDumpStream <<
"New HCAL/CASTOR QIEData set" << std::endl;
195 *
mDumpStream <<
"New HCAL/CASTOR ChannelQuality set" << std::endl;
206 *
mDumpStream <<
"New HCAL/CASTOR Electronics Map set" << std::endl;
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
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
edm::ESProductHost< CastorDbService, CastorPedestalsRcd, CastorPedestalWidthsRcd, CastorGainsRcd, CastorGainWidthsRcd, CastorQIEDataRcd, CastorChannelQualityRcd, CastorElectronicsMapRcd > HostType
void setupGains(const CastorGainsRcd &, CastorDbService *)
void setupChannelQuality(const CastorChannelQualityRcd &, CastorDbService *)
void get(HolderT &iHolder) const
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 &)