File indexing completed on 2024-04-06 12:12:01
0001 #ifndef Framework_ESProducerLooper_h
0002 #define Framework_ESProducerLooper_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <memory>
0023 #include <set>
0024 #include <string>
0025
0026
0027 #include "FWCore/Framework/interface/ESProducer.h"
0028 #include "FWCore/Framework/interface/EDLooper.h"
0029 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0030
0031
0032 namespace edm {
0033 class ESProducerLooper : public ESProducer, public EventSetupRecordIntervalFinder, public EDLooper {
0034 public:
0035 ESProducerLooper();
0036 ESProducerLooper(const ESProducerLooper&) = delete;
0037 const ESProducerLooper& operator=(const ESProducerLooper&) = delete;
0038
0039
0040
0041
0042
0043
0044
0045 std::set<eventsetup::EventSetupRecordKey> modifyingRecords() const override;
0046
0047
0048 protected:
0049 void setIntervalFor(const eventsetup::EventSetupRecordKey& iKey,
0050 const IOVSyncValue& iTime,
0051 ValidityInterval& oInterval) override;
0052
0053
0054 void registerFactoryWithKey(const eventsetup::EventSetupRecordKey& iRecord,
0055 std::unique_ptr<eventsetup::ESProductResolverFactoryBase> iFactory,
0056 const std::string& iLabel = std::string()) override;
0057
0058 private:
0059
0060 };
0061 }
0062
0063 #endif