CMS 3D CMS Logo

EDProducerBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_EDProducerBase_h
2 #define FWCore_Framework_stream_EDProducerBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : EDProducerBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 02 Aug 2013 00:11:27 GMT
19 //
20 
21 // system include files
22 
23 // user include files
30 
31 // forward declarations
32 namespace edm {
33  template <typename T>
34  class WorkerT;
35  class ProductRegistry;
36  class ThinnedAssociationsHelper;
37  class WaitingTaskWithArenaHolder;
38 
39  namespace stream {
40  class EDProducerAdaptorBase;
41  template <typename>
42  class ProducingModuleAdaptorBase;
43 
45  //This needs access to the parentage cache info
46  friend class EDProducerAdaptorBase;
48 
49  public:
51 
53  EDProducerBase(const EDProducerBase&) = delete; // stop default
54  const EDProducerBase& operator=(const EDProducerBase&) = delete; // stop default
55  ~EDProducerBase() override;
56 
57  static void fillDescriptions(ConfigurationDescriptions& descriptions);
58  static void prevalidate(ConfigurationDescriptions& descriptions);
59  static const std::string& baseType();
60 
61  // Warning: the returned moduleDescription will be invalid during construction
63 
64  private:
65  virtual void beginStream(StreamID) {}
66  virtual void beginRun(edm::Run const&, edm::EventSetup const&) {}
68  virtual void produce(Event&, EventSetup const&) = 0;
70  virtual void endRun(edm::Run const&, edm::EventSetup const&) {}
71  virtual void endStream() {}
72 
74 
75  virtual void doAcquire_(Event const&, EventSetup const&, WaitingTaskWithArenaHolder&) = 0;
76 
78  // ---------- member data --------------------------------
79  std::vector<BranchID> previousParentage_;
80  std::vector<BranchID> gotBranchIDsFromAcquire_;
83  };
84 
85  } // namespace stream
86 } // namespace edm
87 
88 #endif
virtual void doAcquire_(Event const &, EventSetup const &, WaitingTaskWithArenaHolder &)=0
virtual void produce(Event &, EventSetup const &)=0
static void prevalidate(ConfigurationDescriptions &descriptions)
std::vector< BranchID > previousParentage_
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
static const std::string & baseType()
const EDProducerBase & operator=(const EDProducerBase &)=delete
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void setModuleDescriptionPtr(ModuleDescription const *iDesc)
std::vector< BranchID > gotBranchIDsFromAcquire_
ModuleDescription const * moduleDescriptionPtr_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
virtual void registerThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
virtual void endRun(edm::Run const &, edm::EventSetup const &)
EDProducerAdaptorBase ModuleType
HLT enums.
virtual void beginStream(StreamID)
ModuleDescription const & moduleDescription() const
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: Run.h:45