Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:12

0001 // -*- C++ -*-
0002 //
0003 // Package:     Framework
0004 // Class  :     ModuleChanger
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Thu Jul 15 15:05:10 EDT 2010
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "FWCore/Framework/interface/ModuleChanger.h"
0017 #include "FWCore/Framework/interface/Schedule.h"
0018 
0019 using namespace edm;
0020 //
0021 // constants, enums and typedefs
0022 //
0023 
0024 //
0025 // static data member definitions
0026 //
0027 
0028 //
0029 // constructors and destructor
0030 //
0031 ModuleChanger::ModuleChanger(Schedule* iSchedule,
0032                              ProductRegistry const* iRegistry,
0033                              eventsetup::ESRecordsToProductResolverIndices iIndices)
0034     : schedule_(iSchedule), registry_(iRegistry), indices_(std::move(iIndices)) {}
0035 
0036 // ModuleChanger::ModuleChanger(const ModuleChanger& rhs)
0037 // {
0038 //    // do actual copying here;
0039 // }
0040 
0041 ModuleChanger::~ModuleChanger() {}
0042 
0043 //
0044 // assignment operators
0045 //
0046 // const ModuleChanger& ModuleChanger::operator=(const ModuleChanger& rhs)
0047 // {
0048 //   //An exception safe implementation is
0049 //   ModuleChanger temp(rhs);
0050 //   swap(rhs);
0051 //
0052 //   return *this;
0053 // }
0054 
0055 //
0056 // member functions
0057 //
0058 
0059 bool ModuleChanger::changeModule(const std::string& iLabel, const ParameterSet& iPSet) {
0060   return schedule_->changeModule(iLabel, iPSet, *registry_, indices_);
0061 }
0062 
0063 //
0064 // const member functions
0065 //
0066 
0067 //
0068 // static member functions
0069 //