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 
18  bool
20  // If this product is from a the current process,
21  // the provenance is available if and only if a product has been put.
22  if(branchDescription().produced()) {
23  return productResolved();
24  }
25  // If this product is from a prior process, the provenance is available,
26  // although the per event part may have been dropped.
27  return true;
28  }
29 
30  TypeID
32  return TypeID(branchDescription().wrappedTypeID());
33  }
34 
35  Provenance const*
37  return provenance_();
38  }
39 
40  void
42  }
43 
44 
45  void
46  ProductResolverBase::write(std::ostream& os) const {
47  // This is grossly inadequate. It is also not critical for the
48  // first pass.
49  os << std::string("ProductResolver for product with ID: ")
50  << productID();
51  }
52 
53  void
55 
57 
58 }
Provenance const * provenance() const
virtual void setupUnscheduled(UnscheduledConfigurator const &)
ProductID const & productID() const
def principal(options)
virtual void resetFailedFromThisProcess()
HLT enums.
BranchDescription const & branchDescription() const
virtual void retrieveAndMerge_(Principal const &principal) const
virtual Provenance const * provenance_() const =0
const eventsetup::produce::Produce produced
Definition: ESProducts.cc:20
void write(std::ostream &os) const