1 #ifndef FWCore_Framework_Principal_h 2 #define FWCore_Framework_Principal_h 34 #include "boost/iterator/filter_iterator.hpp" 44 class HistoryAppender;
45 class MergeableRunProductMetadata;
46 class ModuleCallingContext;
47 class ProductResolverIndexHelper;
59 typedef boost::filter_iterator<FilledProductPtr, ProductResolverCollection::const_iterator>
const_iterator;
60 typedef boost::filter_iterator<FilledProductPtr, ProductResolverCollection::iterator>
iterator;
69 Principal(std::shared_ptr<ProductRegistry const> reg,
70 std::shared_ptr<ProductResolverIndexHelper const>
productLookup,
74 bool isForPrimaryProcess =
true);
123 bool skipCurrentProcess,
130 bool skipCurrentProcess,
201 void addProduct_(std::unique_ptr<ProductResolverBase> phb);
210 template <
typename F>
213 iFunc(resolver.get());
234 unsigned int)
const override;
236 std::vector<WrapperBase const*>&,
237 std::vector<unsigned int>&)
const override;
240 ProductID const& thinned)
const override;
272 std::shared_ptr<ProductRegistry const>
preg_;
292 template <
typename PROD>
299 return std::shared_ptr<Wrapper<PROD>
const>();
302 if (!(
result->wrapper()->dynamicTypeInfo() ==
typeid(
PROD))) {
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &, unsigned int) const override
collection_type::const_iterator const_iterator
void fillPrincipal(DelayedReader *reader)
ProductResolverBase * getModifiableProductResolver(BranchID const &oid)
void getAllProvenance(std::vector< Provenance const *> &provenances) const
ProcessHistoryID processHistoryIDBeforeConfig_
void setupUnscheduled(UnscheduledConfigurator const &)
unsigned int ProductResolverIndex
BasicHandle getByToken(KindOfType kindOfType, TypeID const &typeID, ProductResolverIndex index, bool skipCurrentProcess, bool &ambiguous, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
ProductResolverCollection productResolvers_
std::variant< unsigned int, detail::GetThinnedKeyFromExceptionFactory, std::monostate > OptionalThinnedKey
std::shared_ptr< ProcessHistory const > processHistoryPtr_
std::vector< unsigned int > const & lookupProcessOrder() const
static PFTauRenderPlugin instance
ProductRegistry const & productRegistry() const
std::shared_ptr< ProductResolverBase > SharedProductPtr
void addProduct_(std::unique_ptr< ProductResolverBase > phb)
StableProvenance const & getStableProvenance(BranchID const &bid) const
ProcessHistoryID processHistoryID_
ProductResolverBase * getExistingProduct(BranchID const &branchID)
void getThinnedProducts(ProductID const &, std::vector< WrapperBase const *> &, std::vector< unsigned int > &) const override
void applyToResolvers(F iFunc)
void prefetchAsync(WaitingTaskHolder waitTask, ProductResolverIndex index, bool skipCurrentProcess, ServiceToken const &token, ModuleCallingContext const *mcc) const
ProcessConfiguration const & processConfiguration() const
bool operator()(propagate_const< std::shared_ptr< ProductResolverBase >> const &iObj)
edm::propagate_const< HistoryAppender * > historyAppender_
Principal(std::shared_ptr< ProductRegistry const > reg, std::shared_ptr< ProductResolverIndexHelper const > productLookup, ProcessConfiguration const &pc, BranchType bt, HistoryAppender *historyAppender, bool isForPrimaryProcess=true)
CacheIdentifier_t cacheIdentifier() const
void addUnscheduledProduct(std::shared_ptr< BranchDescription const > bd)
ProductData const * findProductByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumer, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
boost::filter_iterator< FilledProductPtr, ProductResolverCollection::iterator > iterator
void addAliasedProduct(std::shared_ptr< BranchDescription const > bd)
std::vector< unsigned int > lookupProcessOrder_
virtual unsigned int processBlockIndex(std::string const &processName) const
std::vector< propagate_const< std::shared_ptr< ProductResolverBase > > > ProductResolverCollection
WrapperBase const * getIt(ProductID const &) const override
void throwConvertTypeError(std::type_info const &expected, std::type_info const &actual)
EDProductGetter const * prodGetter() const
std::shared_ptr< ProductResolverIndexHelper const > productLookup_
std::shared_ptr< Wrapper< PROD > const > getProductByTag(Principal const &ep, InputTag const &tag, ModuleCallingContext const *mcc)
void addProductOrThrow(std::unique_ptr< ProductResolverBase > phb)
std::shared_ptr< ProductRegistry const > preg_
CacheIdentifier_t cacheIdentifier_
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
void getAllStableProvenance(std::vector< StableProvenance const *> &provenances) const
ProcessHistoryID orderProcessHistoryID_
virtual void changedIndexes_()
void addSourceProduct(std::shared_ptr< BranchDescription const > bd)
void addPutOnReadInputProduct(std::shared_ptr< BranchDescription const > bd)
void deleteProduct(BranchID const &id) const
const_iterator begin() const
void addDelayedReaderInputProduct(std::shared_ptr< BranchDescription const > bd)
void put_(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
void addParentProcessProduct(std::shared_ptr< BranchDescription const > bd)
ProductData const * findProductByTag(TypeID const &typeID, InputTag const &tag, ModuleCallingContext const *mcc) const
void addScheduledProduct(std::shared_ptr< BranchDescription const > bd)
ProcessHistory::const_iterator ProcessNameConstIterator
ProcessHistory const & processHistory() const
void addSwitchProducerProduct(std::shared_ptr< BranchDescription const > bd)
ProductResolverBase const * ConstProductResolverPtr
void readAllFromSourceAndMergeImmediately(MergeableRunProductMetadata const *mergeableRunProductMetadata=nullptr)
unsigned long CacheIdentifier_t
boost::filter_iterator< FilledProductPtr, ProductResolverCollection::const_iterator > const_iterator
bool adjustToNewProductRegistry(ProductRegistry const ®)
ProcessHistoryID const & processHistoryID() const
Provenance const & getProvenance(BranchID const &bid) const
void adjustIndexesAfterProductRegistryAddition()
ProductResolverIndexHelper const & productLookup() const
void addTransformProduct(std::shared_ptr< BranchDescription const > bd)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
ProductResolverCollection::size_type size_type
const_iterator end() const
void recombine(Principal &other, std::vector< BranchID > const &bids)
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
ProcessConfiguration const * processConfiguration_
void addSwitchAliasProduct(std::shared_ptr< BranchDescription const > bd)
std::vector< BasicHandle > BasicHandleVec
DelayedReader * reader() const
BranchType const & branchType() const
ConstProductResolverPtr getProductResolver(BranchID const &oid) const