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  public:
41  OutputModuleCommunicator() = default;
42  virtual ~OutputModuleCommunicator();
43 
44  virtual void closeFile() = 0;
45 
47  virtual bool shouldWeCloseFile() const = 0;
48 
50  virtual bool wantAllEvents() const = 0;
51 
52  virtual void openFile(FileBlock const& fb) = 0;
53 
54  virtual void writeRunAsync(WaitingTaskHolder iTask,
55  RunPrincipal const& rp,
56  ProcessContext const*,
58  MergeableRunProductMetadata const*) = 0;
59 
60  virtual void writeLumiAsync(WaitingTaskHolder iTask,
61  LuminosityBlockPrincipal const& lbp,
62  ProcessContext const*,
63  ActivityRegistry*) = 0;
64 
66  virtual bool limitReached() const = 0;
67 
68  virtual void configure(OutputModuleDescription const& desc) = 0;
69 
70  virtual SelectedProductsForBranchType const& keptProducts() const = 0;
71 
72  virtual void selectProducts(ProductRegistry const& preg, ThinnedAssociationsHelper const&) = 0;
73 
74  virtual void setEventSelectionInfo(
75  std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
76  bool anyProductProduced) = 0;
77 
78  virtual ModuleDescription const& description() const = 0;
79 
80  private:
81  OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default
82 
83  const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default
84 
85  // ---------- member data --------------------------------
86  };
87 } // namespace edm
88 
89 #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.