CMS 3D CMS Logo

ProductResolverBase.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 ----------------------------------------------------------------------*/
6 
9 
10 #include <cassert>
11 
12 namespace edm {
13 
15 
17 
19  // If this product is from a the current process,
20  // the provenance is available if and only if a product has been put.
21  if (branchDescription().produced()) {
22  return productResolved();
23  }
24  // If this product is from a prior process, the provenance is available,
25  // although the per event part may have been dropped.
26  return true;
27  }
28 
29  TypeID ProductResolverBase::productType() const { return TypeID(branchDescription().wrappedTypeID()); }
30 
32 
34 
36 
37  void ProductResolverBase::write(std::ostream& os) const {
38  // This is grossly inadequate. It is also not critical for the
39  // first pass.
40  os << std::string("ProductResolver for product with ID: ") << productID();
41  }
42 
44 
45 } // namespace edm
edm::ProductResolverBase::ProductResolverBase
ProductResolverBase()
Definition: ProductResolverBase.cc:14
edm::ProductResolverBase::provenance
Provenance const * provenance() const
Definition: ProductResolverBase.cc:31
ProductResolverBase.h
MessageLogger.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProductResolverBase::provenance_
virtual Provenance const * provenance_() const =0
TypeID.h
edm::Principal
Definition: Principal.h:56
edm::ProductResolverBase::productResolved
bool productResolved() const
Definition: ProductResolverBase.h:90
edm::ProductResolverBase::provenanceAvailable
bool provenanceAvailable() const
Definition: ProductResolverBase.cc:18
edm::ProductResolverBase::productType
TypeID productType() const
Definition: ProductResolverBase.cc:29
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::ProductResolverBase::write
void write(std::ostream &os) const
Definition: ProductResolverBase.cc:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Principal.h
edm::ProductResolverBase::setMergeableRunProductMetadata_
virtual void setMergeableRunProductMetadata_(MergeableRunProductMetadata const *)
Definition: ProductResolverBase.cc:35
edm::ProductResolverBase::~ProductResolverBase
virtual ~ProductResolverBase()
Definition: ProductResolverBase.cc:16
edm::ProductResolverBase::productID
ProductID const & productID() const
Definition: ProductResolverBase.h:160
edm::UnscheduledConfigurator
Definition: UnscheduledConfigurator.h:32
edm::ProductResolverBase::retrieveAndMerge_
virtual void retrieveAndMerge_(Principal const &principal, MergeableRunProductMetadata const *mergeableRunProductMetadata) const
Definition: ProductResolverBase.cc:33
edm::TypeID
Definition: TypeID.h:22
edm::ProductResolverBase::branchDescription
BranchDescription const & branchDescription() const
Definition: ProductResolverBase.h:110
ProductDeletedException.h
edm::ProductResolverBase::setupUnscheduled
virtual void setupUnscheduled(UnscheduledConfigurator const &)
Definition: ProductResolverBase.cc:43
edm::Provenance
Definition: Provenance.h:34