1 #ifndef FWCore_Framework_one_outputmoduleAbilityToImplementor_h 2 #define FWCore_Framework_one_outputmoduleAbilityToImplementor_h 35 class ModuleCallingContext;
80 virtual void respondToOpenInputFile(
FileBlock const&) = 0;
81 virtual void respondToCloseInputFile(
FileBlock const&) = 0;
109 template <
typename C>
112 template <
typename...
A>
119 void preallocLumis(
unsigned int iNLumis)
final { caches_.reset(
new std::shared_ptr<C>[iNLumis]); }
126 caches_[lp.index()] = globalBeginLuminosityBlock(lp);
129 globalEndLuminosityBlock(lp);
130 caches_[lp.index()].reset();
135 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
138 template <
typename T>
161 template <
typename C>
166 template <
typename C>
edm::one::outputmodule::RunWatcher Type
virtual void endRun(edm::RunForOutput const &)=0
RunCacheHolder(edm::ParameterSet const &iPSet)
C const * runCache(edm::RunIndex iID) const
LuminosityBlockCacheHolder(edm::ParameterSet const &iPSet)
void doEndRun_(RunForOutput const &r) final
RunWatcher(edm::ParameterSet const &iPSet)
virtual void beginRun(edm::RunForOutput const &)=0
void doBeginRun_(RunForOutput const &r) final
edm::one::impl::SharedResourcesUser< edm::one::OutputModuleBase > Type
void doEndLuminosityBlock_(edm::LuminosityBlockForOutput const &lp) final
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doRespondToOpenInputFile_(FileBlock const &)
edm::one::outputmodule::RunCacheHolder< C > Type
std::unique_ptr< std::shared_ptr< C >[]> caches_
~LuminosityBlockCacheHolder()(false) override
C * luminosityBlockCache(edm::LuminosityBlockIndex iID)
void doBeginLuminosityBlock_(edm::LuminosityBlockForOutput const &lp) final
void doBeginRun_(edm::RunForOutput const &rp) final
edm::propagate_const< std::shared_ptr< C > > cache_
void doEndRun_(edm::RunForOutput const &rp) final
~LuminosityBlockWatcher()(false) override
~RunWatcher()(false) override
edm::one::outputmodule::LuminosityBlockWatcher Type
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
C * runCache(edm::RunIndex iID)
void preallocLumis(unsigned int iNLumis) final
~RunCacheHolder()(false) override
RunWatcher & operator=(RunWatcher const &)=delete
LuminosityBlockWatcher(edm::ParameterSet const &iPSet)
C const * luminosityBlockCache(edm::LuminosityBlockIndex iID) const
edm::one::outputmodule::LuminosityBlockCacheHolder< C > Type