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 (WaitingTask *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 putOrMergeProduct (std::unique_ptr< WrapperBase > edp, MergeableRunProductMetadata const *mergeableRunProductMetadata=nullptr) const
 
void putProduct (std::unique_ptr< WrapperBase > edp) 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_ (WaitingTask *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 putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod, MergeableRunProductMetadata const *mergeableRunProductMetadata) const final
 
void putProduct_ (std::unique_ptr< WrapperBase > edp) 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 507 of file ProductResolvers.h.

Member Typedef Documentation

◆ ProductStatus

Definition at line 509 of file ProductResolvers.h.

Constructor & Destructor Documentation

◆ SingleChoiceNoProcessProductResolver()

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

Definition at line 510 of file ProductResolvers.h.

511  : ProductResolverBase(), realResolverIndex_(iChoice) {}

Member Function Documentation

◆ branchDescription_()

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

Implements edm::ProductResolverBase.

Definition at line 1243 of file ProductResolvers.cc.

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

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

◆ connectTo()

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

Implements edm::ProductResolverBase.

Definition at line 1261 of file ProductResolvers.cc.

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

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

◆ prefetchAsync_()

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

Implements edm::ProductResolverBase.

Definition at line 1179 of file ProductResolvers.cc.

1184  {
1185  principal.getProductResolverByIndex(realResolverIndex_)
1186  ->prefetchAsync(waitTask, principal, skipCurrentProcess, token, sra, mcc);
1187  }

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

◆ productProvenancePtr_()

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

Implements edm::ProductResolverBase.

Definition at line 1193 of file ProductResolvers.cc.

1193 { return nullptr; }

◆ productResolved_()

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

Implements edm::ProductResolverBase.

Definition at line 1211 of file ProductResolvers.cc.

1211  {
1213  << "SingleChoiceNoProcessProductResolver::productResolved_() not implemented and should never be called.\n"
1214  << "Contact a Framework developer\n";
1215  }

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

◆ productUnavailable_()

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

Implements edm::ProductResolverBase.

Definition at line 1205 of file ProductResolvers.cc.

1205  {
1207  << "SingleChoiceNoProcessProductResolver::productUnavailable_() not implemented and should never be called.\n"
1208  << "Contact a Framework developer\n";
1209  }

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

◆ productWasDeleted_()

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

Implements edm::ProductResolverBase.

Definition at line 1217 of file ProductResolvers.cc.

1217  {
1219  << "SingleChoiceNoProcessProductResolver::productWasDeleted_() not implemented and should never be called.\n"
1220  << "Contact a Framework developer\n";
1221  }

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

◆ productWasFetchedAndIsValid_()

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

Implements edm::ProductResolverBase.

Definition at line 1223 of file ProductResolvers.cc.

1223  {
1224  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::productWasFetchedAndIsValid_() not "
1225  "implemented and should never be called.\n"
1226  << "Contact a Framework developer\n";
1227  }

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

◆ provenance_()

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

Implements edm::ProductResolverBase.

Definition at line 1255 of file ProductResolvers.cc.

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

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

◆ putOrMergeProduct_()

void edm::SingleChoiceNoProcessProductResolver::putOrMergeProduct_ ( std::unique_ptr< WrapperBase prod,
MergeableRunProductMetadata const *  mergeableRunProductMetadata 
) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1235 of file ProductResolvers.cc.

1236  {
1238  << "SingleChoiceNoProcessProductResolver::putOrMergeProduct_(std::unique_ptr<WrapperBase> edp, "
1239  "MergeableRunProductMetadata const*) not implemented and should never be called.\n"
1240  << "Contact a Framework developer\n";
1241  }

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

◆ putProduct_()

void edm::SingleChoiceNoProcessProductResolver::putProduct_ ( std::unique_ptr< WrapperBase edp) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1229 of file ProductResolvers.cc.

1229  {
1231  << "SingleChoiceNoProcessProductResolver::putProduct_() not implemented and should never be called.\n"
1232  << "Contact a Framework developer\n";
1233  }

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

◆ resetBranchDescription_()

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

Implements edm::ProductResolverBase.

Definition at line 1249 of file ProductResolvers.cc.

1249  {
1250  throw Exception(errors::LogicError) << "SingleChoiceNoProcessProductResolver::resetBranchDescription_() not "
1251  "implemented and should never be called.\n"
1252  << "Contact a Framework developer\n";
1253  }

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

◆ resetProductData_()

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

Implements edm::ProductResolverBase.

Definition at line 1195 of file ProductResolvers.cc.

1195 {}

◆ resolvedModuleLabel_()

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

Implements edm::ProductResolverBase.

Definition at line 539 of file ProductResolvers.h.

539 { return moduleLabel(); }

References edm::ProductResolverBase::moduleLabel().

◆ resolveProduct_()

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

Implements edm::ProductResolverBase.

Definition at line 1168 of file ProductResolvers.cc.

1172  {
1173  //NOTE: Have to lookup the other ProductResolver each time rather than cache
1174  // it's pointer since it appears the pointer can change at some later stage
1175  return principal.getProductResolverByIndex(realResolverIndex_)
1176  ->resolveProduct(principal, skipCurrentProcess, sra, mcc);
1177  }

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

◆ setProductID_()

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

Implements edm::ProductResolverBase.

Definition at line 1191 of file ProductResolvers.cc.

1191 {}

◆ setProductProvenanceRetriever_()

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

Implements edm::ProductResolverBase.

Definition at line 1189 of file ProductResolvers.cc.

1189 {}

◆ singleProduct_()

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

Implements edm::ProductResolverBase.

Definition at line 1197 of file ProductResolvers.cc.

1197 { return false; }

◆ unscheduledWasNotRun_()

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

Implements edm::ProductResolverBase.

Definition at line 1199 of file ProductResolvers.cc.

1199  {
1201  << "SingleChoiceNoProcessProductResolver::unscheduledWasNotRun_() not implemented and should never be called.\n"
1202  << "Contact a Framework developer\n";
1203  }

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

Member Data Documentation

◆ realResolverIndex_

ProductResolverIndex edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
private

Definition at line 546 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resolveProduct_().

edm::ProductResolverBase::ProductResolverBase
ProductResolverBase()
Definition: ProductResolverBase.cc:14
edm::errors::LogicError
Definition: EDMException.h:37
edm::SingleChoiceNoProcessProductResolver::realResolverIndex_
ProductResolverIndex realResolverIndex_
Definition: ProductResolvers.h:546
edm::ProductResolverBase::moduleLabel
std::string const & moduleLabel() const
Definition: ProductResolverBase.h:119
Exception
Definition: hltDiff.cc:246
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316