-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from Dr15Jones/outputModuleCommunicator
Moved functionality from OutputWorker to OutputModuleCommunicator
- Loading branch information
Showing
11 changed files
with
231 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: Package | ||
// Class : OutputModuleCommunicator | ||
// | ||
// Implementation: | ||
// [Notes on implementation] | ||
// | ||
// Original Author: Chris Jones | ||
// Created: Fri, 05 Jul 2013 17:36:58 GMT | ||
// $Id$ | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
#include "FWCore/Framework/src/OutputModuleCommunicator.h" | ||
|
||
using namespace edm; | ||
|
||
OutputModuleCommunicator::~OutputModuleCommunicator() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#ifndef FWCore_Framework_OutputModuleCommunicator_h | ||
#define FWCore_Framework_OutputModuleCommunicator_h | ||
// -*- C++ -*- | ||
// | ||
// Package: FWCore/Framework | ||
// Class : OutputModuleCommunicator | ||
// | ||
/**\class edm::OutputModuleCommunicator OutputModuleCommunicator.h "FWCore/Framework/interface/OutputModuleCommunicator.h" | ||
Description: Base class used by the framework to communicate with an OutputModule | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Original Author: Chris Jones | ||
// Created: Fri, 05 Jul 2013 17:36:51 GMT | ||
// $Id$ | ||
// | ||
|
||
// system include files | ||
#include <map> | ||
#include <string> | ||
#include <vector> | ||
|
||
// user include files | ||
#include "DataFormats/Provenance/interface/Selections.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
|
||
// forward declarations | ||
namespace edm { | ||
class OutputModuleCommunicator | ||
{ | ||
|
||
public: | ||
OutputModuleCommunicator() = default; | ||
virtual ~OutputModuleCommunicator(); | ||
|
||
virtual void closeFile() = 0; | ||
|
||
///\return true if output module wishes to close its file | ||
virtual bool shouldWeCloseFile() const = 0; | ||
|
||
virtual void openNewFileIfNeeded() = 0; | ||
|
||
///\return true if no event filtering is applied to OutputModule | ||
virtual bool wantAllEvents() const = 0; | ||
|
||
virtual void openFile(FileBlock const& fb) = 0; | ||
|
||
virtual void writeRun(RunPrincipal const& rp) = 0; | ||
|
||
virtual void writeLumi(LuminosityBlockPrincipal const& lbp) = 0; | ||
|
||
///\return true if OutputModule has reached its limit on maximum number of events it wants to see | ||
virtual bool limitReached() const = 0; | ||
|
||
virtual void configure(OutputModuleDescription const& desc) = 0; | ||
|
||
virtual SelectionsArray const& keptProducts() const = 0; | ||
|
||
virtual void selectProducts(ProductRegistry const& preg) = 0; | ||
|
||
virtual void setEventSelectionInfo(std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions, | ||
bool anyProductProduced) = 0; | ||
|
||
virtual ModuleDescription const& description() const = 0; | ||
|
||
private: | ||
OutputModuleCommunicator(const OutputModuleCommunicator&) = delete; // stop default | ||
|
||
const OutputModuleCommunicator& operator=(const OutputModuleCommunicator&) = delete; // stop default | ||
|
||
// ---------- member data -------------------------------- | ||
|
||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.