48 std::unique_ptr<SiPixelQuality> produceWithLabel(
const SiPixelQualityRcd& iRecord);
71 edm::LogInfo(
"SiPixelQualityESProducer::SiPixelQualityESProducer");
81 setConsumes(setWhatProduced(
this), defaultTokens_,
"");
82 if (
label ==
"forDigitizer") {
86 findingRecord<SiPixelQualityRcd>();
109 auto dbptr = std::make_unique<SiPixelQuality>(iRecord.
get(tokens.
dbobjectToken_));
117 return get_pointer(iRecord, defaultTokens_);
120 return get_pointer(iRecord, labelTokens_);
T getParameter(std::string const &) const
static const IOVSyncValue & endOfTime()
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::unique_ptr< SiPixelQuality > produceWithLabel(const SiPixelQualityRcd &iRecord)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static const IOVSyncValue & beginOfTime()
std::unique_ptr< SiPixelQuality > get_pointer(const SiPixelQualityRcd &iRecord, const Tokens &tokens)
edm::ESGetToken< SiStripDetVOff, SiPixelDetVOffRcd > voffToken_
edm::ESGetToken< SiPixelQuality, SiPixelQualityFromDbRcd > dbobjectToken_
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< SiPixelQuality > produce(const SiPixelQualityRcd &iRecord)
ESConsumesCollector & setConsumes(ESGetToken< Product, Record > &token, ESInputTag const &tag)
SiPixelQualityESProducer(const edm::ParameterSet &iConfig)
~SiPixelQualityESProducer() override