CMS 3D CMS Logo

StableProvenance.cc
Go to the documentation of this file.
4 
5 #include <algorithm>
6 #include <cassert>
7 
8 /*----------------------------------------------------------------------
9 
10 ----------------------------------------------------------------------*/
11 
12 namespace edm {
13 
14  StableProvenance::StableProvenance() : StableProvenance{std::shared_ptr<BranchDescription const>(), ProductID()} {
15  }
16 
17  StableProvenance::StableProvenance(std::shared_ptr<BranchDescription const> const& p, ProductID const& pid) :
19  productID_(pid),
20  processHistory_() {
21  }
22 
23  bool
26  }
27 
31  assert(getProcessConfiguration(pc));
32  return pc.releaseVersion();
33  }
34 
35  void
36  StableProvenance::write(std::ostream& os) const {
37  // This is grossly inadequate, but it is not critical for the first pass.
39  }
40 
42  return a.branchDescription() == b.branchDescription();
43  }
44 
45 
46  void
49  productID_.swap(iOther.productID_);
51  }
52 }
ReleaseVersion releaseVersion() const
BranchDescription const & branchDescription() const
void write(std::ostream &os) const
void swap(ProductID &other)
Definition: ProductID.cc:17
bool getProcessConfiguration(ProcessConfiguration &pc) const
void write(std::ostream &os) const
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
void swap(StableProvenance &)
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ReleaseVersion const & releaseVersion() const
double b
Definition: hdecay.h:120
std::string ReleaseVersion
Definition: ReleaseVersion.h:7
HLT enums.
double a
Definition: hdecay.h:121
std::string const & processName() const
ProcessHistory const * processHistory_
std::shared_ptr< BranchDescription const > branchDescription_