CMS 3D CMS Logo

EventSetupRecordIntervalFinder.h
Go to the documentation of this file.
1 #ifndef Framework_EventSetupRecordIntervalFinder_h
2 #define Framework_EventSetupRecordIntervalFinder_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : EventSetupRecordIntervalFinder
7 //
16 //
17 // Author: Chris Jones
18 // Created: Tue Mar 29 16:15:11 EST 2005
19 //
20 
21 // system include files
22 #include <map>
23 #include <set>
24 
25 // user include files
29 
30 // forward declarations
31 namespace edm {
32 
34  public:
37 
38  // ---------- const member functions ---------------------
39  std::set<eventsetup::EventSetupRecordKey> findingForRecords() const;
40 
42  // ---------- static member functions --------------------
43 
44  // ---------- member functions ---------------------------
49 
50  void setDescriptionForFinder(const eventsetup::ComponentDescription& iDescription) { description_ = iDescription; }
51 
52  protected:
54 
55  template <class T>
56  void findingRecord() {
57  findingRecordWithKey(eventsetup::EventSetupRecordKey::makeKey<T>());
58  }
59 
61 
62  private:
63  EventSetupRecordIntervalFinder(const EventSetupRecordIntervalFinder&) = delete; // stop default
64 
65  const EventSetupRecordIntervalFinder& operator=(const EventSetupRecordIntervalFinder&) = delete; // stop default
66 
68  virtual void delaySettingRecords();
69  // ---------- member data --------------------------------
70  typedef std::map<eventsetup::EventSetupRecordKey, ValidityInterval> Intervals;
71  Intervals intervals_;
72 
74  };
75 
76 } // namespace edm
77 #endif
const eventsetup::ComponentDescription & descriptionForFinder() const
std::set< eventsetup::EventSetupRecordKey > findingForRecords() const
void setDescriptionForFinder(const eventsetup::ComponentDescription &iDescription)
#define noexcept
const ValidityInterval & findIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
std::map< eventsetup::EventSetupRecordKey, ValidityInterval > Intervals
HLT enums.
eventsetup::ComponentDescription description_
virtual void setIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &)=0
const EventSetupRecordIntervalFinder & operator=(const EventSetupRecordIntervalFinder &)=delete
void findingRecordWithKey(const eventsetup::EventSetupRecordKey &)