1 #ifndef FWCore_Framework_limited_outputmoduleAbilityToImplementor_h 2 #define FWCore_Framework_limited_outputmoduleAbilityToImplementor_h 31 class ModuleCallingContext;
50 template <
typename T,
typename C>
61 cache_ = globalBeginRun(rp);
68 virtual std::shared_ptr<C> globalBeginRun(
RunForOutput const&)
const = 0;
69 virtual void globalEndRun(
RunForOutput const&)
const = 0;
74 template <
typename T,
typename C>
85 caches_.reset(
new std::shared_ptr<C>[iNLumis]);
88 caches_[lp.index()] = globalBeginLuminosityBlock(lp);
91 globalEndLuminosityBlock(lp);
92 caches_[lp.index()].reset();
98 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
void doEndRun_(RunForOutput const &rp) final
void doBeginLuminosityBlock_(LuminosityBlockForOutput const &lp) final
C const * luminosityBlockCache(edm::LuminosityBlockIndex iID) const
~LuminosityBlockCacheHolder()(false) override
edm::propagate_const< std::shared_ptr< C > > cache_
void doBeginRun_(RunForOutput const &rp) final
std::unique_ptr< std::shared_ptr< C >[]> caches_
void doEndLuminosityBlock_(LuminosityBlockForOutput const &lp) final
LuminosityBlockCacheHolder(edm::ParameterSet const &iPSet)
edm::limited::outputmodule::RunCacheHolder< edm::limited::OutputModuleBase, C > Type
RunCacheHolder(edm::ParameterSet const &iPSet)
C const * runCache(edm::RunIndex iID) const
~RunCacheHolder()(false) override
edm::limited::outputmodule::LuminosityBlockCacheHolder< edm::limited::OutputModuleBase, C > Type
void preallocLumis(unsigned int iNLumis) final