CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::SingleChoiceNoProcessProductResolver Class Reference

#include <ProductResolvers.h>

Inheritance diagram for edm::SingleChoiceNoProcessProductResolver:
edm::ProductResolverBase

Public Types

typedef ProducedProductResolver::ProductStatus ProductStatus
 

Public Member Functions

void connectTo (ProductResolverBase const &iOther, Principal const *) final
 
 SingleChoiceNoProcessProductResolver (ProductResolverIndex iChoice)
 
- Public Member Functions inherited from edm::ProductResolverBase
BranchDescription const & branchDescription () const
 
std::string const & moduleLabel () const
 
ProductResolverBaseoperator= (ProductResolverBase const &)=delete
 
void prefetchAsync (WaitingTaskHolder waitTask, Principal const &principal, bool skipCurrentProcess, ServiceToken const &token, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ProductProvenance const * productProvenancePtr () const
 
bool productResolved () const
 
 ProductResolverBase ()
 
 ProductResolverBase (ProductResolverBase const &)=delete
 
TypeID productType () const
 
bool productUnavailable () const
 
bool productWasDeleted () const
 
bool productWasFetchedAndIsValid (bool iSkipCurrentProcess) const
 
Provenance const * provenance () const
 
bool provenanceAvailable () const
 
void resetBranchDescription (std::shared_ptr< BranchDescription const > bd)
 
void resetProductData ()
 
std::string const & resolvedModuleLabel () const
 
Resolution resolveProduct (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
void retrieveAndMerge (Principal const &principal, MergeableRunProductMetadata const *mergeableRunProductMetadata) const
 
void setMergeableRunProductMetadata (MergeableRunProductMetadata const *mrpm)
 
void setProductID (ProductID const &pid)
 
void setProductProvenanceRetriever (ProductProvenanceRetriever const *provRetriever)
 
virtual void setupUnscheduled (UnscheduledConfigurator const &)
 
bool singleProduct () const
 
StableProvenance const * stableProvenance () const
 
void unsafe_deleteProduct () const
 
bool unscheduledWasNotRun () const
 
void write (std::ostream &os) const
 
virtual ~ProductResolverBase ()
 

Private Member Functions

BranchDescription const & branchDescription_ () const override
 
void prefetchAsync_ (WaitingTaskHolder waitTask, Principal const &principal, bool skipCurrentProcess, ServiceToken const &token, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
ProductProvenance const * productProvenancePtr_ () const override
 
bool productResolved_ () const final
 
bool productUnavailable_ () const override
 
bool productWasDeleted_ () const override
 
bool productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const override
 
Provenance const * provenance_ () const override
 
void resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) override
 
void resetProductData_ (bool deleteEarly) override
 
std::string const & resolvedModuleLabel_ () const override
 
Resolution resolveProduct_ (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
void setProductID_ (ProductID const &pid) override
 
void setProductProvenanceRetriever_ (ProductProvenanceRetriever const *provRetriever) override
 
bool singleProduct_ () const override
 
bool unscheduledWasNotRun_ () const override
 

Private Attributes

ProductResolverIndex realResolverIndex_
 

Detailed Description

Definition at line 585 of file ProductResolvers.h.

Member Typedef Documentation

◆ ProductStatus

Definition at line 587 of file ProductResolvers.h.

Constructor & Destructor Documentation

◆ SingleChoiceNoProcessProductResolver()

edm::SingleChoiceNoProcessProductResolver::SingleChoiceNoProcessProductResolver ( ProductResolverIndex  iChoice)
inline

Definition at line 588 of file ProductResolvers.h.

Member Function Documentation

◆ branchDescription_()

BranchDescription const & edm::SingleChoiceNoProcessProductResolver::branchDescription_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1271 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1271  {
1273  << "SingleChoiceNoProcessProductResolver::branchDescription_() not implemented and should never be called.\n"
1274  << "Contact a Framework developer\n";
1275  }

◆ connectTo()

void edm::SingleChoiceNoProcessProductResolver::connectTo ( ProductResolverBase const &  iOther,
Principal const *   
)
finalvirtual

Implements edm::ProductResolverBase.

Definition at line 1289 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1289  {
1291  << "SingleChoiceNoProcessProductResolver::connectTo() not implemented and should never be called.\n"
1292  << "Contact a Framework developer\n";
1293  }

◆ prefetchAsync_()

void edm::SingleChoiceNoProcessProductResolver::prefetchAsync_ ( WaitingTaskHolder  waitTask,
Principal const &  principal,
bool  skipCurrentProcess,
ServiceToken const &  token,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1221 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex(), realResolverIndex_, and unpackBuffers-CaloStage2::token.

1226  {
1227  principal.getProductResolverByIndex(realResolverIndex_)
1228  ->prefetchAsync(waitTask, principal, skipCurrentProcess, token, sra, mcc);
1229  }

◆ productProvenancePtr_()

ProductProvenance const * edm::SingleChoiceNoProcessProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1235 of file ProductResolvers.cc.

1235 { return nullptr; }

◆ productResolved_()

bool edm::SingleChoiceNoProcessProductResolver::productResolved_ ( ) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1253 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1253  {
1255  << "SingleChoiceNoProcessProductResolver::productResolved_() not implemented and should never be called.\n"
1256  << "Contact a Framework developer\n";
1257  }

◆ productUnavailable_()

bool edm::SingleChoiceNoProcessProductResolver::productUnavailable_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1247 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1247  {
1249  << "SingleChoiceNoProcessProductResolver::productUnavailable_() not implemented and should never be called.\n"
1250  << "Contact a Framework developer\n";
1251  }

◆ productWasDeleted_()

bool edm::SingleChoiceNoProcessProductResolver::productWasDeleted_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1259 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1259  {
1261  << "SingleChoiceNoProcessProductResolver::productWasDeleted_() not implemented and should never be called.\n"
1262  << "Contact a Framework developer\n";
1263  }

◆ productWasFetchedAndIsValid_()

bool edm::SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_ ( bool  iSkipCurrentProcess) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1265 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1265  {
1266  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_() not "
1267  "implemented and should never be called.\n"
1268  << "Contact a Framework developer\n";
1269  }

◆ provenance_()

Provenance const * edm::SingleChoiceNoProcessProductResolver::provenance_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1283 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1283  {
1285  << "SingleChoiceNoProcessProductResolver::provenance_() not implemented and should never be called.\n"
1286  << "Contact a Framework developer\n";
1287  }

◆ resetBranchDescription_()

void edm::SingleChoiceNoProcessProductResolver::resetBranchDescription_ ( std::shared_ptr< BranchDescription const >  bd)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1277 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1277  {
1278  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::resetBranchDescription_() not "
1279  "implemented and should never be called.\n"
1280  << "Contact a Framework developer\n";
1281  }

◆ resetProductData_()

void edm::SingleChoiceNoProcessProductResolver::resetProductData_ ( bool  deleteEarly)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1237 of file ProductResolvers.cc.

1237 {}

◆ resolvedModuleLabel_()

std::string const& edm::SingleChoiceNoProcessProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 614 of file ProductResolvers.h.

References edm::ProductResolverBase::moduleLabel().

614 { return moduleLabel(); }
std::string const & moduleLabel() const

◆ resolveProduct_()

ProductResolverBase::Resolution edm::SingleChoiceNoProcessProductResolver::resolveProduct_ ( Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1210 of file ProductResolvers.cc.

References edm::Principal::getProductResolverByIndex(), and realResolverIndex_.

1214  {
1215  //NOTE: Have to lookup the other ProductResolver each time rather than cache
1216  // it's pointer since it appears the pointer can change at some later stage
1217  return principal.getProductResolverByIndex(realResolverIndex_)
1218  ->resolveProduct(principal, skipCurrentProcess, sra, mcc);
1219  }

◆ setProductID_()

void edm::SingleChoiceNoProcessProductResolver::setProductID_ ( ProductID const &  pid)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1233 of file ProductResolvers.cc.

1233 {}

◆ setProductProvenanceRetriever_()

void edm::SingleChoiceNoProcessProductResolver::setProductProvenanceRetriever_ ( ProductProvenanceRetriever const *  provRetriever)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1231 of file ProductResolvers.cc.

1231 {}

◆ singleProduct_()

bool edm::SingleChoiceNoProcessProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1239 of file ProductResolvers.cc.

1239 { return false; }

◆ unscheduledWasNotRun_()

bool edm::SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1241 of file ProductResolvers.cc.

References Exception, and edm::errors::LogicError.

1241  {
1243  << "SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_() not implemented and should never be called.\n"
1244  << "Contact a Framework developer\n";
1245  }

Member Data Documentation

◆ realResolverIndex_

ProductResolverIndex edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
private

Definition at line 621 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resolveProduct_().