21 #include <type_traits> 24 namespace workerimpl {
61 template<
typename...
T>
79 template<
typename T,
typename P>
88 template<
typename T,
typename P>
133 return module_->prePrefetchSelection(
id,ep,mcc);
142 return module_->prePrefetchSelection(
id,ep,mcc);
151 return module_->prePrefetchSelection(
id,ep,mcc);
158 module_->doBeginRun(rp, c, mcc);
168 module_->doStreamBeginRun(
id, rp, c, mcc);
177 module_->doStreamEndRun(
id, rp, c, mcc);
189 might_call(
this,
id,rp,c, mcc);
201 might_call(
this,
id,rp,c, mcc);
219 module_->doBeginLuminosityBlock(lbp, c, mcc);
229 module_->doStreamBeginLuminosityBlock(
id, rp, c, mcc);
238 module_->doStreamEndLuminosityBlock(
id, rp, c, mcc);
250 might_call(
this,
id,lbp,c, mcc);
262 might_call(
this,
id,lbp,c,mcc);
272 module_->doEndLuminosityBlock(lbp, c, mcc);
333 module_->doRespondToOpenInputFile(fb);
340 module_->doRespondToCloseInputFile(fb);
348 module_->doRegisterThinnedAssociations(registry, helper);
357 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
360 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
363 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
366 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
369 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
372 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
375 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
378 return &(
module_->sharedResourcesAcquirer().serialQueueChain());
383 template <
typename T>
bool mustPrefetchMayGet();
385 template<>
bool mustPrefetchMayGet<EDAnalyzer>() {
return true;}
386 template<>
bool mustPrefetchMayGet<EDProducer>() {
return true;}
387 template<>
bool mustPrefetchMayGet<EDFilter>() {
return true;}
388 template<>
bool mustPrefetchMayGet<OutputModule>() {
return true;}
390 template<>
bool mustPrefetchMayGet<edm::one::EDProducerBase>() {
return true;}
391 template<>
bool mustPrefetchMayGet<edm::one::EDFilterBase>() {
return true;}
392 template<>
bool mustPrefetchMayGet<edm::one::EDAnalyzerBase>() {
return true;}
393 template<>
bool mustPrefetchMayGet<edm::one::OutputModuleBase>() {
return true;}
395 template<>
bool mustPrefetchMayGet<edm::global::EDProducerBase>() {
return true;}
396 template<>
bool mustPrefetchMayGet<edm::global::EDFilterBase>() {
return true;}
397 template<>
bool mustPrefetchMayGet<edm::global::EDAnalyzerBase>() {
return true;}
398 template<>
bool mustPrefetchMayGet<edm::global::OutputModuleBase>() {
return true;}
400 template<>
bool mustPrefetchMayGet<edm::stream::EDProducerAdaptorBase>() {
return true;}
401 template<>
bool mustPrefetchMayGet<edm::stream::EDFilterAdaptorBase>() {
return true;}
402 template<>
bool mustPrefetchMayGet<edm::stream::EDAnalyzerAdaptorBase>() {
return true;}
410 module_->updateLookup(iBranchType,iHelper,mustPrefetchMayGet<T>());
414 void resolvePutIndiciesImpl(
void*,
416 std::unordered_multimap<std::string, edm::ProductResolverIndex>
const& iIndicies,
423 std::unordered_multimap<std::string, edm::ProductResolverIndex>
const& iIndicies,
430 std::unordered_multimap<std::string, edm::ProductResolverIndex>
const& iIndicies,
436 std::unordered_multimap<std::string, edm::ProductResolverIndex>
const& iIndicies,
441 std::vector<ProductResolverIndex> s_emptyIndexList;
443 std::vector<ProductResolverIndex>
const& itemsShouldPutInEventImpl(
void const*) {
444 return s_emptyIndexList;
447 std::vector<ProductResolverIndex>
const& itemsShouldPutInEventImpl(
ProducerBase const* iProd) {
463 std::unordered_multimap<std::string, edm::ProductResolverIndex>
const& iIndicies) {
464 resolvePutIndiciesImpl(&
module(), iBranchType,iIndicies,
description().moduleLabel());
469 std::vector<ProductResolverIndex>
const&
471 return itemsShouldPutInEventImpl(&
module());
virtual bool implDoStreamEnd(StreamID id, RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
static const char module_[]
ModuleDescription const & description() const
roAction_t actions[nactions]
void callWorkerStreamEnd(D, StreamID id, RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc)
void resolvePutIndicies(BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
virtual void implEndJob() override
virtual void updateLookup(BranchType iBranchType, ProductResolverIndexHelper const &) override
virtual bool implDoStreamBegin(StreamID id, RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
ActivityRegistry * activityRegistry()
virtual bool implDo(EventPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *mcc) override
edm::propagate_const< std::shared_ptr< T > > module_
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts(BranchType iBranchType) const
virtual void implRespondToOpenInputFile(FileBlock const &fb) override
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts(BranchType iBranchType) const
virtual bool implDoPrePrefetchSelection(StreamID id, EventPrincipal const &ep, ModuleCallingContext const *mcc) override
virtual SerialTaskQueueChain * serializeRunModule() override
void resolvePutIndicies(BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
void callWorkerEndStream(D, StreamID)
void operator()(WorkerT< T > *iWorker, StreamID id)
void operator()(const T &...)
virtual void implBeginStream(StreamID) override
void operator()(WorkerT< T > *iWorker, StreamID id)
void callWorkerStreamBegin(D, StreamID id, RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc)
virtual bool implDoBegin(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
virtual std::vector< ProductResolverIndex > const & itemsShouldPutInEvent() const override
DecomposeProduct< arg, typename Div::arg > D
virtual void implEndStream(StreamID) override
virtual void implBeginJob() override
virtual void implRespondToCloseInputFile(FileBlock const &fb) override
std::pair< OmniClusterRef, TrackingParticleRef > P
void callWorkerBeginStream(D, StreamID)
void postDoEvent(EventPrincipal const &)
virtual void implRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &) override
virtual bool implDoEnd(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
virtual std::string workerType() const override
virtual void resolvePutIndicies(BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies) override
WorkerT(std::shared_ptr< T >, ModuleDescription const &, ExceptionToActionTable const *actions)
virtual Types moduleType() const override