Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-11 03:34:14

0001 // -*- C++ -*-
0002 //
0003 // Package:     FWCore/Framework
0004 // Class  :     edm::stream::EDProducerBase
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Fri, 02 Aug 2013 23:49:57 GMT
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "FWCore/Framework/interface/stream/EDProducerBase.h"
0017 #include "FWCore/Framework/src/edmodule_mightGet_config.h"
0018 
0019 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0021 
0022 using namespace edm::stream;
0023 //
0024 // constants, enums and typedefs
0025 //
0026 
0027 //
0028 // static data member definitions
0029 //
0030 
0031 //
0032 // constructors and destructor
0033 //
0034 EDProducerBase::EDProducerBase() : moduleDescriptionPtr_(nullptr) {}
0035 
0036 // EDProducerBase::EDProducerBase(const EDProducerBase& rhs)
0037 // {
0038 //    // do actual copying here;
0039 // }
0040 
0041 EDProducerBase::~EDProducerBase() {}
0042 
0043 //
0044 // assignment operators
0045 //
0046 // const EDProducerBase& EDProducerBase::operator=(const EDProducerBase& rhs)
0047 // {
0048 //   //An exception safe implementation is
0049 //   EDProducerBase temp(rhs);
0050 //   swap(rhs);
0051 //
0052 //   return *this;
0053 // }
0054 
0055 //
0056 // member functions
0057 //
0058 
0059 //
0060 // const member functions
0061 //
0062 
0063 //
0064 // static member functions
0065 //
0066 void EDProducerBase::fillDescriptions(ConfigurationDescriptions& descriptions) {
0067   ParameterSetDescription desc;
0068   desc.setUnknown();
0069   descriptions.addDefault(desc);
0070 }
0071 
0072 size_t EDProducerBase::transformIndex_(edm::BranchDescription const& iBranch) const noexcept { return -1; }
0073 edm::ProductResolverIndex EDProducerBase::transformPrefetch_(std::size_t iIndex) const noexcept { return 0; }
0074 void EDProducerBase::transformAsync_(WaitingTaskHolder iTask,
0075                                      std::size_t iIndex,
0076                                      edm::EventForTransformer& iEvent,
0077                                      edm::ActivityRegistry* iAct,
0078                                      ServiceWeakToken const& iToken) const noexcept {}
0079 
0080 void EDProducerBase::prevalidate(ConfigurationDescriptions& iConfig) { edmodule_mightGet_config(iConfig); }
0081 
0082 static const std::string kBaseType("EDProducer");
0083 
0084 const std::string& EDProducerBase::baseType() { return kBaseType; }