diff --git a/IOPool/Streamer/interface/StreamerOutputModule.h b/IOPool/Streamer/interface/StreamerOutputModule.h index 599423678ffab..97c409d3a77f1 100644 --- a/IOPool/Streamer/interface/StreamerOutputModule.h +++ b/IOPool/Streamer/interface/StreamerOutputModule.h @@ -26,6 +26,8 @@ namespace edm { virtual void stop() const; virtual void doOutputHeader(InitMsgBuilder const& init_message) const; virtual void doOutputEvent(EventMsgBuilder const& msg) const; + virtual void beginLuminosityBlock(edm::LuminosityBlockPrincipal const&, edm::ModuleCallingContext const*) override; + virtual void endLuminosityBlock(edm::LuminosityBlockPrincipal const&, edm::ModuleCallingContext const*) override; private: std::auto_ptr c_; @@ -67,6 +69,14 @@ namespace edm { c_->doOutputEvent(msg); // You can't use msg in StreamerOutputModule after this point } + template + void + StreamerOutputModule::beginLuminosityBlock(edm::LuminosityBlockPrincipal const&, edm::ModuleCallingContext const*) {} + + template + void + StreamerOutputModule::endLuminosityBlock(edm::LuminosityBlockPrincipal const&, edm::ModuleCallingContext const*) {} + template void StreamerOutputModule::fillDescriptions(ConfigurationDescriptions& descriptions) { diff --git a/IOPool/Streamer/interface/StreamerOutputModuleBase.h b/IOPool/Streamer/interface/StreamerOutputModuleBase.h index bc36358693208..1a8e29f199174 100644 --- a/IOPool/Streamer/interface/StreamerOutputModuleBase.h +++ b/IOPool/Streamer/interface/StreamerOutputModuleBase.h @@ -16,7 +16,7 @@ namespace edm { typedef detail::TriggerResultsBasedEventSelector::handle_t Trig; - class StreamerOutputModuleBase : public one::OutputModule { + class StreamerOutputModuleBase : public one::OutputModule { public: explicit StreamerOutputModuleBase(ParameterSet const& ps); virtual ~StreamerOutputModuleBase(); diff --git a/IOPool/Streamer/src/StreamerOutputModuleBase.cc b/IOPool/Streamer/src/StreamerOutputModuleBase.cc index 1b6ada37277cf..de31a2f33eb1d 100644 --- a/IOPool/Streamer/src/StreamerOutputModuleBase.cc +++ b/IOPool/Streamer/src/StreamerOutputModuleBase.cc @@ -57,7 +57,7 @@ namespace { namespace edm { StreamerOutputModuleBase::StreamerOutputModuleBase(ParameterSet const& ps) : one::OutputModuleBase::OutputModuleBase(ps), - one::OutputModule(ps), + one::OutputModule(ps), selections_(&keptProducts()[InEvent]), maxEventSize_(ps.getUntrackedParameter("max_event_size")), useCompression_(ps.getUntrackedParameter("use_compression")), @@ -107,14 +107,14 @@ namespace edm { StreamerOutputModuleBase::~StreamerOutputModuleBase() {} void - StreamerOutputModuleBase::doBeginRun_(RunPrincipal const&, ModuleCallingContext const*) { + StreamerOutputModuleBase::beginRun(RunPrincipal const&, ModuleCallingContext const*) { start(); std::auto_ptr init_message = serializeRegistry(); doOutputHeader(*init_message); } void - StreamerOutputModuleBase::doEndRun_(RunPrincipal const&, ModuleCallingContext const*) { + StreamerOutputModuleBase::endRun(RunPrincipal const&, ModuleCallingContext const*) { stop(); }