File indexing completed on 2024-04-06 12:12:11
0001 #ifndef FWCore_Framework_IntersectingIOVRecordIntervalFinder_h
0002 #define FWCore_Framework_IntersectingIOVRecordIntervalFinder_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 <vector>
0024
0025
0026 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0027 #include "FWCore/Utilities/interface/propagate_const.h"
0028
0029
0030 namespace edm {
0031 namespace eventsetup {
0032
0033 class IntersectingIOVRecordIntervalFinder : public EventSetupRecordIntervalFinder {
0034 public:
0035 explicit IntersectingIOVRecordIntervalFinder(const EventSetupRecordKey&);
0036 IntersectingIOVRecordIntervalFinder(const IntersectingIOVRecordIntervalFinder&) = delete;
0037 const IntersectingIOVRecordIntervalFinder& operator=(const IntersectingIOVRecordIntervalFinder&) = delete;
0038 ~IntersectingIOVRecordIntervalFinder() override;
0039
0040 void swapFinders(std::vector<edm::propagate_const<std::shared_ptr<EventSetupRecordIntervalFinder>>>&);
0041
0042 protected:
0043 void setIntervalFor(const EventSetupRecordKey&, const IOVSyncValue&, ValidityInterval&) override;
0044
0045 private:
0046 void doResetInterval(const eventsetup::EventSetupRecordKey&) override;
0047
0048 bool isConcurrentFinder() const override;
0049
0050 bool isNonconcurrentAndIOVNeedsUpdate(const EventSetupRecordKey&, const IOVSyncValue&) const override;
0051
0052
0053 std::vector<edm::propagate_const<std::shared_ptr<EventSetupRecordIntervalFinder>>> finders_;
0054 };
0055 }
0056 }
0057
0058 #endif