Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-27 07:20:00

0001 #ifndef FWCore_Framework_test_makeDummyProcessConfiguration_h
0002 #define FWCore_Framework_test_makeDummyProcessConfiguration_h
0003 
0004 #include "DataFormats/Provenance/interface/HardwareResourcesDescription.h"
0005 #include "DataFormats/Provenance/interface/ParameterSetID.h"
0006 #include "DataFormats/Provenance/interface/ProcessConfiguration.h"
0007 #include "FWCore/Version/interface/GetReleaseVersion.h"
0008 
0009 #include <memory>
0010 
0011 namespace edmtest {
0012   inline edm::ProcessConfiguration makeDummyProcessConfiguration(
0013       std::string const& processName, edm::ParameterSetID const& pSetID = edm::ParameterSetID()) {
0014     return edm::ProcessConfiguration(
0015         processName, pSetID, edm::getReleaseVersion(), edm::HardwareResourcesDescription());
0016   }
0017 
0018   inline std::shared_ptr<edm::ProcessConfiguration> makeSharedDummyProcessConfiguration(
0019       std::string const& processName, edm::ParameterSetID const& pSetID = edm::ParameterSetID()) {
0020     return std::make_shared<edm::ProcessConfiguration>(
0021         processName, pSetID, edm::getReleaseVersion(), edm::HardwareResourcesDescription());
0022   }
0023 }  // namespace edmtest
0024 
0025 #endif