CMS 3D CMS Logo

OutputModuleCommunicator.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_OutputModuleCommunicator_h
2 #define FWCore_Framework_OutputModuleCommunicator_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : OutputModuleCommunicator
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 05 Jul 2013 17:36:51 GMT
19 //
20 
21 // system include files
22 #include <map>
23 #include <string>
24 #include <vector>
25 
26 // user include files
29 
30 // forward declarations
31 namespace edm {
32 
33  class ActivityRegistry;
34  class MergeableRunProductMetadata;
35  class ProcessContext;
36  class ThinnedAssociationsHelper;
37  class WaitingTaskHolder;
38 
40  {
41 
42  public:
43  OutputModuleCommunicator() = default;
44  virtual ~OutputModuleCommunicator();
45 
46  virtual void closeFile() = 0;
47 
49  virtual bool shouldWeCloseFile() const = 0;
50 
52  virtual bool wantAllEvents() const = 0;
53 
54  virtual void openFile(FileBlock const& fb) = 0;
55 
56  virtual void writeRunAsync(WaitingTaskHolder iTask,
57  RunPrincipal const& rp,
58  ProcessContext const*,
60  MergeableRunProductMetadata const*) = 0;
61 
62  virtual void writeLumiAsync(WaitingTaskHolder iTask,
63  LuminosityBlockPrincipal const& lbp,
64  ProcessContext const*,
65  ActivityRegistry*) = 0;
66 
68  virtual bool limitReached() const = 0;
69 
70  virtual void configure(OutputModuleDescription const& desc) = 0;
71 
72  virtual SelectedProductsForBranchType const& keptProducts() const = 0;
73 
74  virtual void selectProducts(ProductRegistry const& preg, ThinnedAssociationsHelper const&) = 0;
75 
76  virtual void setEventSelectionInfo(std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
77  bool anyProductProduced) = 0;
78 
79  virtual ModuleDescription const& description() const = 0;
80 
81  private:
82  OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default
83 
84  const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default
85 
86  // ---------- member data --------------------------------
87 
88  };
89 }
90 
91 #endif
virtual ModuleDescription const & description() const =0
virtual void openFile(FileBlock const &fb)=0
virtual void writeLumiAsync(WaitingTaskHolder iTask, LuminosityBlockPrincipal const &lbp, ProcessContext const *, ActivityRegistry *)=0
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
virtual SelectedProductsForBranchType const & keptProducts() const =0
virtual bool shouldWeCloseFile() const =0
virtual bool wantAllEvents() const =0
virtual void writeRunAsync(WaitingTaskHolder iTask, RunPrincipal const &rp, ProcessContext const *, ActivityRegistry *, MergeableRunProductMetadata const *)=0
virtual void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)=0
virtual bool limitReached() const =0
const OutputModuleCommunicator & operator=(const OutputModuleCommunicator &)=delete
virtual void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)=0
virtual void configure(OutputModuleDescription const &desc)=0
HLT enums.