File indexing completed on 2024-05-11 03:34:12
0001 #ifndef FWCore_Framework_stream_EDProducerAdaptorBase_h
0002 #define FWCore_Framework_stream_EDProducerAdaptorBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "FWCore/Framework/interface/stream/ProducingModuleAdaptorBase.h"
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026 #include "DataFormats/Provenance/interface/ModuleDescription.h"
0027 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0028 #include "FWCore/Concurrency/interface/WaitingTaskHolder.h"
0029 #include "FWCore/Utilities/interface/StreamID.h"
0030 #include "FWCore/Utilities/interface/RunIndex.h"
0031 #include "FWCore/Utilities/interface/LuminosityBlockIndex.h"
0032
0033
0034
0035 namespace edm {
0036
0037 class ModuleCallingContext;
0038 class ActivityRegistry;
0039 class WaitingTaskWithArenaHolder;
0040
0041 namespace maker {
0042 template <typename T>
0043 class ModuleHolderT;
0044 }
0045
0046 namespace stream {
0047 class EDProducerBase;
0048 class EDProducerAdaptorBase : public ProducingModuleAdaptorBase<EDProducerBase> {
0049 public:
0050 template <typename T>
0051 friend class edm::maker::ModuleHolderT;
0052 template <typename T>
0053 friend class edm::WorkerT;
0054
0055 EDProducerAdaptorBase();
0056 EDProducerAdaptorBase(const EDProducerAdaptorBase&) = delete;
0057 const EDProducerAdaptorBase& operator=(const EDProducerAdaptorBase&) = delete;
0058
0059
0060
0061
0062
0063
0064
0065 std::string workerType() const { return "WorkerT<EDProducerAdaptorBase>"; }
0066
0067 protected:
0068 using ProducingModuleAdaptorBase<EDProducerBase>::commit;
0069
0070 private:
0071 bool doEvent(EventTransitionInfo const&, ActivityRegistry*, ModuleCallingContext const*);
0072
0073 void doAcquire(EventTransitionInfo const&,
0074 ActivityRegistry*,
0075 ModuleCallingContext const*,
0076 WaitingTaskWithArenaHolder&);
0077
0078
0079 void preActionBeforeRunEventAsync(WaitingTaskHolder,
0080 ModuleCallingContext const&,
0081 Principal const&) const noexcept {}
0082 };
0083 }
0084 }
0085
0086 #endif