Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:02:01

0001 #ifndef FWCore_Framework_EventSetupRecordDetails_h
0002 #define FWCore_Framework_EventSetupRecordDetails_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     EventSetupRecordDetails
0007 //
0008 /**\class EventSetupRecordDetails EventSetupRecordDetails.h "__incdir__EventSetupRecordDetails.h"
0009 
0010  Description: Provides access to meta data of an EventSetupRecord.
0011 
0012  Usage:
0013       This is used in the ESSourceDataProxyBase user interface.
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  18 May 2020
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "FWCore/Framework/interface/EventSetupRecordImpl.h"
0025 
0026 // forward declarations
0027 
0028 namespace edm {
0029   class EventSetupRecordDetails {
0030   public:
0031     EventSetupRecordDetails() = delete;
0032     explicit EventSetupRecordDetails(eventsetup::EventSetupRecordImpl const* iImpl) : m_impl(iImpl) {}
0033 
0034     // ---------- const member functions ---------------------
0035     ValidityInterval validityInterval() const { return m_impl->validityInterval(); }
0036 
0037     eventsetup::EventSetupRecordKey const& key() const { return m_impl->key(); }
0038 
0039     unsigned long long cacheIdentifier() const { return m_impl->cacheIdentifier(); }
0040 
0041     unsigned int iovIndex() const { return m_impl->iovIndex(); }
0042 
0043   private:
0044     // ---------- member data --------------------------------
0045     eventsetup::EventSetupRecordImpl const* m_impl;
0046   };
0047 }  // namespace edm
0048 
0049 #endif