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
30 
31 // forward declarations
32 namespace edm {
33 
34  class ActivityRegistry;
35  class MergeableRunProductMetadata;
36  class ProcessContext;
37  class ThinnedAssociationsHelper;
38  class WaitingTaskHolder;
39 
41  public:
42  OutputModuleCommunicator() = default;
45  virtual ~OutputModuleCommunicator();
46 
47  virtual void closeFile() = 0;
48 
50  virtual bool shouldWeCloseFile() const = 0;
51 
53  virtual bool wantAllEvents() const = 0;
54 
55  virtual void openFile(FileBlock const& fb) = 0;
56 
57  virtual void writeProcessBlockAsync(WaitingTaskHolder iTask,
58  ProcessBlockPrincipal const&,
59  ProcessContext const*,
60  ActivityRegistry*) = 0;
61 
62  virtual void writeRunAsync(WaitingTaskHolder iTask,
63  RunPrincipal const&,
64  ProcessContext const*,
66  MergeableRunProductMetadata const*) = 0;
67 
68  virtual void writeLumiAsync(WaitingTaskHolder iTask,
70  ProcessContext const*,
71  ActivityRegistry*) = 0;
72 
74  virtual bool limitReached() const = 0;
75 
76  virtual void configure(OutputModuleDescription const& desc) = 0;
77 
78  virtual SelectedProductsForBranchType const& keptProducts() const = 0;
79 
80  virtual void selectProducts(ProductRegistry const& preg,
82  ProcessBlockHelperBase const&) = 0;
83 
84  virtual void setEventSelectionInfo(
85  std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
86  bool anyProductProduced) = 0;
87 
88  virtual ModuleDescription const& description() const = 0;
89 
90  private:
91  // ---------- member data --------------------------------
92  };
93 } // namespace edm
94 
95 #endif
edm::OutputModuleCommunicator::writeProcessBlockAsync
virtual void writeProcessBlockAsync(WaitingTaskHolder iTask, ProcessBlockPrincipal const &, ProcessContext const *, ActivityRegistry *)=0
ActivityRegistry
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProcessContext
Definition: ProcessContext.h:27
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::OutputModuleCommunicator::writeRunAsync
virtual void writeRunAsync(WaitingTaskHolder iTask, RunPrincipal const &, ProcessContext const *, ActivityRegistry *, MergeableRunProductMetadata const *)=0
edm::ProcessBlockPrincipal
Definition: ProcessBlockPrincipal.h:22
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::ProductRegistry
Definition: ProductRegistry.h:37
edm::FileBlock
Definition: FileBlock.h:22
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::OutputModuleCommunicator::selectProducts
virtual void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)=0
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::OutputModuleCommunicator
Definition: OutputModuleCommunicator.h:40
WaitingTaskHolder
edm::OutputModuleCommunicator::configure
virtual void configure(OutputModuleDescription const &desc)=0
edm::OutputModuleCommunicator::setEventSelectionInfo
virtual void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)=0
edm::OutputModuleCommunicator::shouldWeCloseFile
virtual bool shouldWeCloseFile() const =0
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
edm::ProcessBlockHelperBase
Definition: ProcessBlockHelperBase.h:18
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:32
edm::OutputModuleCommunicator::openFile
virtual void openFile(FileBlock const &fb)=0
edm::OutputModuleCommunicator::OutputModuleCommunicator
OutputModuleCommunicator()=default
edm::OutputModuleCommunicator::description
virtual ModuleDescription const & description() const =0
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::OutputModuleCommunicator::wantAllEvents
virtual bool wantAllEvents() const =0
edm::OutputModuleCommunicator::operator=
OutputModuleCommunicator & operator=(const OutputModuleCommunicator &)=delete
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::OutputModuleCommunicator::~OutputModuleCommunicator
virtual ~OutputModuleCommunicator()
Definition: OutputModuleCommunicator.cc:20
edm::SelectedProductsForBranchType
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
Definition: SelectedProducts.h:13
Frameworkfwd.h
edm::OutputModuleCommunicator::keptProducts
virtual SelectedProductsForBranchType const & keptProducts() const =0
edm::OutputModuleCommunicator::closeFile
virtual void closeFile()=0
edm::OutputModuleCommunicator::limitReached
virtual bool limitReached() const =0
edm::OutputModuleCommunicator::writeLumiAsync
virtual void writeLumiAsync(WaitingTaskHolder iTask, LuminosityBlockPrincipal const &, ProcessContext const *, ActivityRegistry *)=0
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
edm::RunPrincipal
Definition: RunPrincipal.h:34
SelectedProducts.h
FWCoreCommonFwd.h