Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-30 22:24:06

0001 #ifndef FWCore_Framework_ESModuleProducesInfo_h
0002 #define FWCore_Framework_ESModuleProducesInfo_h
0003 // -*- C++ -*-
0004 
0005 // Package:     Framework
0006 // Class  :     ESModuleProducesInfo
0007 //
0008 // Description: Contains information about which products
0009 // a module declares it will produce from the EventSetup.
0010 
0011 #include "FWCore/Framework/interface/DataKey.h"
0012 #include "FWCore/Framework/interface/EventSetupRecordKey.h"
0013 namespace edm::eventsetup {
0014   class ESModuleProducesInfo {
0015   public:
0016     ESModuleProducesInfo(EventSetupRecordKey const& iRecord, DataKey const& iDataKey, unsigned int iProduceMethodID)
0017         : record_(iRecord), dataKey_(iDataKey), produceMethodID_(iProduceMethodID) {}
0018 
0019     EventSetupRecordKey const& record() const { return record_; }
0020     DataKey const& dataKey() const { return dataKey_; }
0021     unsigned int produceMethodID() const { return produceMethodID_; }
0022 
0023   private:
0024     EventSetupRecordKey record_;
0025     DataKey dataKey_;
0026     unsigned int produceMethodID_;
0027   };
0028 }  // namespace edm::eventsetup
0029 #endif