1 #ifndef FWCore_Framework_global_implementors_h 2 #define FWCore_Framework_global_implementors_h 51 class WaitingTaskWithArenaHolder;
52 class ServiceWeakToken;
58 template <
typename T,
typename C>
105 template <
typename T,
typename... CacheTypes>
117 template <std::
size_t ICacheType,
typename DataType,
typename Func>
119 cacheImpl_.template registerProcessBlockCacheFiller<ICacheType, DataType, Func>(
token,
120 std::forward<Func>(
func));
123 template <
typename CacheType,
typename DataType,
typename Func>
125 cacheImpl_.template registerProcessBlockCacheFiller<CacheType, DataType, Func>(
token,
126 std::forward<Func>(
func));
135 cacheImpl_.selectInputProcessBlocks(productRegistry, processBlockHelperBase, *
this);
152 template <
typename T,
typename C>
174 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
177 template <
typename T,
typename C>
202 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
205 template <
typename T,
typename C>
208 template <
typename T,
typename C>
226 std::lock_guard<std::mutex> guard(
mutex_);
241 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
245 template <
typename T,
typename C>
248 template <
typename T,
typename C>
266 std::lock_guard<std::mutex> guard(
mutex_);
285 std::unique_ptr<std::shared_ptr<C>[]>
caches_;
289 template <
typename T>
305 template <
typename T>
319 template <
typename T>
333 template <
typename T>
347 template <
typename T>
361 template <
typename T,
typename C>
362 class EndRunSummaryProducer :
public RunSummaryCacheHolder<T, C> {
381 template <
typename T>
394 template <
typename T>
407 template <
typename T,
typename S>
408 class EndLuminosityBlockSummaryProducer :
public LuminosityBlockSummaryCacheHolder<T, S> {
427 template <
typename T>
443 template <
typename T>
459 template <
typename T>
467 template <
typename G,
typename F>
474 template <
typename G,
typename F>
476 using ReturnTypeT = decltype(iF(std::declval<G>()));
485 return std::make_unique<edm::Wrapper<ReturnTypeT>>(
490 template <
typename G,
typename P,
typename F>
496 using ReturnTypeT = decltype(iF(std::declval<CacheTypeT>()));
508 f(std::any_cast<CacheTypeT>(iCache)));
void preallocLumisSummary(unsigned int iNLumis) final
void doBeginLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
bool hasAcquire() const override
EndLuminosityBlockSummaryProducer & operator=(EndLuminosityBlockSummaryProducer const &)=delete
~LuminosityBlockSummaryCacheHolder() noexcept(false) override
unsigned int ProductResolverIndex
void doEndRunProduce_(Run &rp, EventSetup const &c) final
~EndRunProducer() noexcept(false) override
virtual void globalEndRun(edm::Run const &, edm::EventSetup const &) const =0
void preallocRunsSummary(unsigned int iNRuns) final
StreamCacheHolder< T, C > & operator=(StreamCacheHolder< T, C > const &)=delete
virtual void accumulate(StreamID streamID, Event const &ev, EventSetup const &es) const =0
virtual void streamEndRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const
void doEndLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
RunCacheHolder< T, C > & operator=(RunCacheHolder< T, C > const &)=delete
~EndRunSummaryProducer() noexcept(false) override
virtual void globalBeginRunProduce(edm::Run &, edm::EventSetup const &) const =0
~BeginProcessBlockProducer() noexcept(false) override
bool any(const std::vector< T > &v, const T &what)
void doBeginRunProduce_(Run &rp, EventSetup const &c) final
EndRunSummaryProducer()=default
WatchProcessBlock()=default
void maybeClearCache(LuminosityBlock const &) final
void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c) final
virtual void acquire(StreamID, Event const &, edm::EventSetup const &, WaitingTaskWithArenaHolder) const =0
~EndLuminosityBlockProducer() noexcept(false) override
C * streamCache(edm::StreamID iID) const
~EndProcessBlockProducer() noexcept(false) override
EndProcessBlockProducer & operator=(EndProcessBlockProducer const &)=delete
ExternalWork & operator=(ExternalWork const &)=delete
void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c) final
void maybeClearCache(Run const &) final
void doBeginLuminosityBlockSummary_(edm::LuminosityBlock const &lb, EventSetup const &c) final
RunSummaryCacheHolder()=default
virtual std::shared_ptr< C > globalBeginLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
WatchProcessBlock & operator=(WatchProcessBlock const &)=delete
std::unique_ptr< std::shared_ptr< C >[]> caches_
BeginRunProducer()=default
void doEndRunSummary_(Run const &rp, EventSetup const &c) final
~Accumulator() noexcept(false) override
virtual void globalEndRunProduce(edm::Run &, edm::EventSetup const &, C const *) const =0
virtual void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const =0
virtual void endProcessBlockProduce(edm::ProcessBlock &)=0
virtual void streamEndRunSummary(StreamID, edm::Run const &, edm::EventSetup const &, C *) const =0
virtual std::unique_ptr< C > beginStream(edm::StreamID) const =0
EndRunProducer & operator=(EndRunProducer const &)=delete
virtual void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
virtual void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, C *) const =0
~BeginRunProducer() noexcept(false) override
void preallocStreams(unsigned int iNStreams) final
void doEndStream_(StreamID id) final
~RunSummaryCacheHolder() noexcept(false) override
StreamCacheHolder()=default
EndLuminosityBlockSummaryProducer()=default
BeginLuminosityBlockProducer()=default
std::unique_ptr< std::shared_ptr< C >[]> caches_
virtual void beginProcessBlockProduce(edm::ProcessBlock &)=0
void doEndRunProduce_(Run &rp, EventSetup const &c) final
void doBeginProcessBlock_(ProcessBlock const &) final
virtual std::shared_ptr< C > globalBeginRun(edm::Run const &, edm::EventSetup const &) const =0
EndRunSummaryProducer & operator=(EndRunSummaryProducer const &)=delete
void doEndProcessBlock_(ProcessBlock const &) final
EndLuminosityBlockProducer & operator=(EndLuminosityBlockProducer const &)=delete
edm::TypeWithDict returnType(const edm::FunctionWithDict &)
void doAcquire_(StreamID, Event const &, edm::EventSetup const &, WaitingTaskWithArenaHolder &) final
virtual void streamEndLuminosityBlockSummary(StreamID, edm::LuminosityBlock const &, edm::EventSetup const &, C *) const =0
C const * luminosityBlockCache(edm::LuminosityBlockIndex iID) const
LuminosityBlockCacheHolder< T, C > & operator=(LuminosityBlockCacheHolder< T, C > const &)=delete
void doEndRun_(Run const &rp, EventSetup const &c) final
void doBeginProcessBlockProduce_(ProcessBlock &) final
virtual void maybeClearCache(Run const &rp)
virtual void beginProcessBlock(ProcessBlock const &)
virtual void streamEndLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const
virtual void endStream(edm::StreamID) const
BeginProcessBlockProducer()=default
~RunCacheHolder() noexcept(false) override
LuminosityBlockSummaryCacheHolder< T, C > & operator=(LuminosityBlockSummaryCacheHolder< T, C > const &)=delete
BeginLuminosityBlockProducer & operator=(BeginLuminosityBlockProducer const &)=delete
Accumulator & operator=(Accumulator const &)=delete
virtual std::shared_ptr< C > globalBeginRunSummary(edm::Run const &, edm::EventSetup const &) const =0
C const * runCache(edm::RunIndex iID) const
void doEndLuminosityBlockProduce_(LuminosityBlock &lb, EventSetup const &c) final
void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c) final
void doBeginLuminosityBlock_(LuminosityBlock const &lp, EventSetup const &c) final
RunSummaryCacheHolder< T, C > & operator=(RunSummaryCacheHolder< T, C > const &)=delete
void doEndLuminosityBlock_(LuminosityBlock const &lp, EventSetup const &c) final
bool hasAccumulator() const override
virtual void endProcessBlock(ProcessBlock const &)
virtual void globalEndRunProduce(edm::Run &, edm::EventSetup const &) const =0
std::vector< C * > caches_
std::unique_ptr< std::shared_ptr< C >[]> caches_
~EndLuminosityBlockSummaryProducer() noexcept(false) override
std::unique_ptr< std::shared_ptr< C >[]> caches_
void doEndProcessBlockProduce_(ProcessBlock &) final
BeginRunProducer & operator=(BeginRunProducer const &)=delete
void doBeginRun_(Run const &rp, EventSetup const &c) final
virtual void streamBeginLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const
virtual void globalEndLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &, S const *) const =0
void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c) final
std::pair< OmniClusterRef, TrackingParticleRef > P
LuminosityBlockCacheHolder()=default
virtual void maybeClearCache(LuminosityBlock const &lb)
virtual void streamBeginRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const
~StreamCacheHolder() override
~LuminosityBlockCacheHolder() noexcept(false) override
virtual void globalEndRunSummary(edm::Run const &, edm::EventSetup const &, C *) const =0
LuminosityBlockIndex index() const
BeginProcessBlockProducer & operator=(BeginProcessBlockProducer const &)=delete
void preallocLumis(unsigned int iNLumis) final
void doBeginStream_(StreamID id) final
void doBeginRunSummary_(edm::Run const &rp, EventSetup const &c) final
LuminosityBlockSummaryCacheHolder()=default
~ExternalWork() noexcept(false) override
EndProcessBlockProducer()=default
unsigned int value() const
void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lb, EventSetup const &c) final
EndLuminosityBlockProducer()=default
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
virtual void globalEndLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const =0
~WatchProcessBlock() noexcept(false) override
~BeginLuminosityBlockProducer() noexcept(false) override
void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c) final
void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c) final
virtual std::shared_ptr< C > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
void produce(StreamID streamID, Event &ev, EventSetup const &es) const final
void preallocRuns(unsigned int iNRuns) final