#include <ProductResolvers.h>
Public Types | |
enum | ProductStatus { ProductStatus::ProductSet, ProductStatus::NotPut, ProductStatus::ResolveFailed, ProductStatus::ResolveNotRun, ProductStatus::ProductDeleted } |
Protected Member Functions | |
ProductStatus | defaultStatus () const |
ProductData const & | getProductData () const final |
template<bool callResolver, typename FUNC > | |
ProductResolverBase::Resolution | resolveProductImpl (FUNC resolver) const |
template<bool callResolver, typename FUNC > | |
Resolution | resolveProductImpl (FUNC resolver) const |
void | setFailedStatus () const |
void | setMergeableRunProductMetadataInProductData (MergeableRunProductMetadata const *) |
void | setProduct (std::unique_ptr< WrapperBase > edp) const |
ProductStatus | status () const |
Private Member Functions | |
BranchDescription const & | branchDescription_ () const final |
void | checkType (WrapperBase const &prod) const |
virtual bool | isFromCurrentProcess () const =0 |
void | mergeProduct (std::unique_ptr< WrapperBase > edp, MergeableRunProductMetadata const *) const |
ProductProvenance const * | productProvenancePtr_ () const final |
bool | productResolved_ () const final |
bool | productUnavailable_ () const final |
bool | productWasDeleted_ () const final |
bool | productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const final |
Provenance const * | provenance_ () const final |
void | putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod, MergeableRunProductMetadata const *mergeableRunProductMetadata) const final |
void | resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) final |
std::string const & | resolvedModuleLabel_ () const final |
void | setProductID_ (ProductID const &pid) final |
void | setProductProvenanceRetriever_ (ProductProvenanceRetriever const *provRetriever) final |
bool | singleProduct_ () const final |
void | throwProductDeletedException () const |
Private Attributes | |
const ProductStatus | defaultStatus_ |
ProductData | productData_ |
std::atomic< ProductStatus > | theStatus_ |
Definition at line 46 of file ProductResolvers.h.
|
strong |
Enumerator | |
---|---|
ProductSet | |
NotPut | |
ResolveFailed | |
ResolveNotRun | |
ProductDeleted |
Definition at line 48 of file ProductResolvers.h.
|
inline |
Definition at line 50 of file ProductResolvers.h.
|
inlinefinalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 87 of file ProductResolvers.h.
References edm::ProductData::branchDescription(), and getProductData().
Referenced by mergeProduct().
|
private |
Definition at line 506 of file ProductResolvers.cc.
References edm::ProductResolverBase::branchDescription(), edm::BranchDescription::branchName(), edm::BranchDescription::className(), edm::errors::EventCorruption, Exception, dumpMFGeometry_cfg::prod, edm::TypeWithDict::unvalidatedTypeInfo(), and edm::BranchDescription::unwrappedType().
Referenced by mergeProduct(), and setProduct().
|
finalvirtual |
Implements edm::ProductResolverBase.
Definition at line 491 of file ProductResolvers.cc.
References cms::cuda::assert().
|
inlineprotected |
Definition at line 65 of file ProductResolvers.h.
References defaultStatus_.
Referenced by productResolved_(), putOrMergeProduct_(), edm::ProducedProductResolver::putProduct_(), and edm::InputProductResolver::retrieveAndMerge_().
|
inlinefinalprotectedvirtual |
Implements edm::DataManagingOrAliasProductResolver.
Definition at line 70 of file ProductResolvers.h.
References productData_.
Referenced by branchDescription_(), mergeProduct(), productUnavailable_(), productWasFetchedAndIsValid_(), and resolveProductImpl().
|
privatepure virtual |
Implemented in edm::ProducedProductResolver, and edm::InputProductResolver.
Referenced by productWasFetchedAndIsValid_().
|
private |
Definition at line 80 of file ProductResolvers.cc.
References cms::cuda::assert(), edm::ProductResolverBase::branchDescription(), branchDescription_(), edm::BranchDescription::branchName(), checkType(), submitPVResolutionJobs::desc, Exception, edm::MergeableRunProductMetadata::getMergeDecision(), getProductData(), edm::InRun, edm::MergeableRunProductMetadata::MERGE, edm::errors::MismatchedInputFiles, eostools::move(), definitions::original, ProductSet, edm::MergeableRunProductMetadata::REPLACE, ResolveFailed, setProduct(), status(), and edm::ProductData::unsafe_wrapper().
Referenced by putOrMergeProduct_().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 569 of file ProductResolvers.cc.
References edm::Provenance::productProvenance(), and edm::ProductResolverBase::provenance().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 538 of file ProductResolvers.cc.
References defaultStatus(), or, ProductDeleted, alignCSCRings::s, and status().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 530 of file ProductResolvers.cc.
References getProductData(), edm::WrapperBase::isPresent(), ProductSet, ResolveNotRun, status(), and edm::ProductData::wrapper().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 544 of file ProductResolvers.cc.
References ProductDeleted, and status().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 546 of file ProductResolvers.cc.
References getProductData(), isFromCurrentProcess(), ProductSet, status(), and wrapper.
|
inlinefinalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 91 of file ProductResolvers.h.
References productData_, and edm::ProductData::provenance().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 493 of file ProductResolvers.cc.
References defaultStatus(), mergeProduct(), eostools::move(), dumpMFGeometry_cfg::prod, edm::ProductResolverBase::putProduct(), and status().
|
inlinefinalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 88 of file ProductResolvers.h.
References productData_, and edm::ProductData::resetBranchDescription().
|
overridevirtual |
Implements edm::DataManagingOrAliasProductResolver.
Reimplemented in edm::UnscheduledProductResolver, edm::PuttableProductResolver, and edm::InputProductResolver.
Definition at line 573 of file ProductResolvers.cc.
References productData_, ProductDeleted, ProductSet, edm::ProductData::resetProductData(), resetStatus(), and theStatus_.
Referenced by edm::InputProductResolver::resetProductData_(), edm::PuttableProductResolver::resetProductData_(), and edm::UnscheduledProductResolver::resetProductData_().
|
inline |
Definition at line 58 of file ProductResolvers.h.
References defaultStatus_, and theStatus_.
Referenced by resetProductData_().
|
inlinefinalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 93 of file ProductResolvers.h.
References edm::ProductResolverBase::moduleLabel().
|
protected |
Definition at line 48 of file ProductResolvers.cc.
References getProductData(), ProductSet, edm::ProductResolverBase::productWasDeleted(), Resolution, ResolveNotRun, setFailedStatus(), status(), and throwProductDeletedException().
|
protected |
|
inlineprotected |
Definition at line 66 of file ProductResolvers.h.
References ResolveFailed, and theStatus_.
Referenced by resolveProductImpl(), edm::InputProductResolver::retrieveAndMerge_(), and setProduct().
|
protected |
Definition at line 564 of file ProductResolvers.cc.
References productData_, and edm::ProductData::setMergeableRunProductMetadata().
Referenced by edm::InputProductResolver::setMergeableRunProductMetadata_().
|
protected |
Definition at line 518 of file ProductResolvers.cc.
References checkType(), eostools::move(), productData_, ProductSet, setFailedStatus(), theStatus_, and edm::ProductData::unsafe_setWrapper().
Referenced by mergeProduct(), edm::InputProductResolver::putProduct_(), and edm::ProducedProductResolver::putProduct_().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 562 of file ProductResolvers.cc.
References productData_, and edm::ProductData::setProductID().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 558 of file ProductResolvers.cc.
References productData_, and edm::ProductData::setProvenance().
|
finalprivatevirtual |
Implements edm::ProductResolverBase.
Definition at line 584 of file ProductResolvers.cc.
|
inlineprotected |
Definition at line 64 of file ProductResolvers.h.
References theStatus_.
Referenced by mergeProduct(), productResolved_(), productUnavailable_(), productWasDeleted_(), productWasFetchedAndIsValid_(), putOrMergeProduct_(), edm::ProducedProductResolver::putProduct_(), resolveProductImpl(), edm::InputProductResolver::retrieveAndMerge_(), and edm::UnscheduledProductResolver::unscheduledWasNotRun_().
|
private |
Definition at line 34 of file ProductResolvers.cc.
References edm::ProductResolverBase::branchDescription(), cppFunctionSkipper::exception, edm::ProductResolverBase::moduleLabel(), edm::ProductResolverBase::processName(), edm::ProductResolverBase::productInstanceName(), and edm::BranchDescription::unwrappedTypeID().
Referenced by resolveProductImpl().
|
private |
Definition at line 101 of file ProductResolvers.h.
Referenced by defaultStatus(), and resetStatus().
|
private |
Definition at line 99 of file ProductResolvers.h.
Referenced by edm::SwitchBaseProductResolver::branchDescription_(), getProductData(), edm::SwitchBaseProductResolver::getProductData(), provenance_(), edm::SwitchBaseProductResolver::provenance_(), resetBranchDescription_(), edm::SwitchBaseProductResolver::resetBranchDescription_(), resetProductData_(), setMergeableRunProductMetadataInProductData(), setProduct(), setProductID_(), and setProductProvenanceRetriever_().
|
mutableprivate |
Definition at line 100 of file ProductResolvers.h.
Referenced by resetProductData_(), resetStatus(), setFailedStatus(), setProduct(), and status().