59 std::unique_ptr<test_acquire::WaitingServer>
server_;
65 : numberOfIOVsToAccumulate_(
pset.getUntrackedParameter<unsigned
int>(
"numberOfIOVsToAccumulate")),
66 secondsToWaitForWork_(
pset.getUntrackedParameter<unsigned
int>(
"secondsToWaitForWork")) {
81 if (
key == EventSetupRecordKey::makeKey<ESTestRecordI>()) {
82 caches_.resize(nConcurrentIOVs);
83 server_ = std::make_unique<test_acquire::WaitingServer>(
105 std::vector<int>& retrieved = iovCache.
retrieved();
118 throw cms::Exception(
"TestFailure") <<
"AcquireIntESProducer::acquire" 119 <<
"read values do not agree with record";
131 throw cms::Exception(
"TestFailure") <<
"AcquireIntESProducer::produce" 132 <<
"read values do not agree with record";
140 return std::make_unique<ESTestDataI>(sum);
144 return std::make_unique<ESTestDataB>(11);
149 desc.addUntracked<
unsigned int>(
"numberOfIOVsToAccumulate", 8);
150 desc.addUntracked<
unsigned int>(
"secondsToWaitForWork", 1);
std::unique_ptr< ESTestDataI > produce(ESTestRecordI const &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
const IOVSyncValue & last() const
LuminosityBlockNumber_t luminosityBlockNumber() const
const IOVSyncValue & first() const
const unsigned int numberOfIOVsToAccumulate_
auto setWhatAcquiredProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< test_acquire::WaitingServer > server_
void addDefault(ParameterSetDescription const &psetDescription)
edm::ESGetToken< IOVTestInfo, ESTestRecordI > token_
~AcquireIntESProducer() override
unsigned int iovStartLumi_
std::vector< test_acquire::Cache > caches_
const unsigned int secondsToWaitForWork_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void acquire(ESTestRecordI const &, edm::WaitingTaskWithArenaHolder)
unsigned long long cacheIdentifier_
static void fillDescriptions(edm::ConfigurationDescriptions &)
AcquireIntESProducer(edm::ParameterSet const &)
unsigned int iovStartRun_
std::vector< int > const & processed() const
std::unique_ptr< ESTestDataB > produceESTestDataB(ESTestRecordB const &)
AcquireIntESProducer & operator=(const AcquireIntESProducer &)=delete
void initConcurrentIOVs(EventSetupRecordKey const &, unsigned int nConcurrentIOVs) override
std::vector< int > const & retrieved() const