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 ProcessContext;
35  class ThinnedAssociationsHelper;
36  class WaitingTaskHolder;
37 
39  {
40 
41  public:
42  OutputModuleCommunicator() = default;
43  virtual ~OutputModuleCommunicator();
44 
45  virtual void closeFile() = 0;
46 
48  virtual bool shouldWeCloseFile() const = 0;
49 
51  virtual bool wantAllEvents() const = 0;
52 
53  virtual void openFile(FileBlock const& fb) = 0;
54 
55  virtual void writeRunAsync(WaitingTaskHolder iTask,
56  RunPrincipal const& rp,
57  ProcessContext const*,
58  ActivityRegistry*) = 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(std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
75  bool anyProductProduced) = 0;
76 
77  virtual ModuleDescription const& description() const = 0;
78 
79  private:
80  OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default
81 
82  const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default
83 
84  // ---------- member data --------------------------------
85 
86  };
87 }
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 void writeRunAsync(WaitingTaskHolder iTask, RunPrincipal const &rp, ProcessContext const *, ActivityRegistry *)=0
virtual bool wantAllEvents() 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.