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 ProcessContext;
34  class ThinnedAssociationsHelper;
35 
37  {
38 
39  public:
40  OutputModuleCommunicator() = default;
41  virtual ~OutputModuleCommunicator();
42 
43  virtual void closeFile() = 0;
44 
46  virtual bool shouldWeCloseFile() const = 0;
47 
49  virtual bool wantAllEvents() const = 0;
50 
51  virtual void openFile(FileBlock const& fb) = 0;
52 
53  virtual void writeRun(RunPrincipal const& rp, ProcessContext const*) = 0;
54 
55  virtual void writeLumi(LuminosityBlockPrincipal const& lbp, ProcessContext const*) = 0;
56 
58  virtual bool limitReached() const = 0;
59 
60  virtual void configure(OutputModuleDescription const& desc) = 0;
61 
62  virtual SelectedProductsForBranchType const& keptProducts() const = 0;
63 
64  virtual void selectProducts(ProductRegistry const& preg, ThinnedAssociationsHelper const&) = 0;
65 
66  virtual void setEventSelectionInfo(std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
67  bool anyProductProduced) = 0;
68 
69  virtual ModuleDescription const& description() const = 0;
70 
71  private:
72  OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default
73 
74  const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default
75 
76  // ---------- member data --------------------------------
77 
78  };
79 }
80 
81 #endif
virtual ModuleDescription const & description() const =0
virtual void openFile(FileBlock const &fb)=0
virtual void writeRun(RunPrincipal const &rp, ProcessContext const *)=0
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
virtual SelectedProductsForBranchType const & keptProducts() const =0
virtual bool shouldWeCloseFile() const =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
virtual void writeLumi(LuminosityBlockPrincipal const &lbp, ProcessContext 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.