CMS 3D CMS Logo

EventEntryDescription.cc
Go to the documentation of this file.
3 #include <ostream>
4 #include <sstream>
5 
6 /*----------------------------------------------------------------------
7 
8 ----------------------------------------------------------------------*/
9 
10 namespace edm {
12 
14  // This implementation is ripe for optimization.
15  std::ostringstream oss;
16  oss << moduleDescriptionID_ << ' ';
17  for (std::vector<BranchID>::const_iterator i = parents_.begin(), e = parents_.end(); i != e; ++i) {
18  oss << *i << ' ';
19  }
20 
21  std::string stringrep = oss.str();
22  cms::Digest md5alg(stringrep);
23  return EntryDescriptionID(md5alg.digest().toString());
24  }
25 
26  void EventEntryDescription::write(std::ostream&) const {
27  // This is grossly inadequate, but it is not critical for the
28  // first pass.
29  }
30 
31  bool operator==(EventEntryDescription const& a, EventEntryDescription const& b) { return a.parents() == b.parents(); }
32 } // namespace edm
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
std::vector< BranchID > parents_
EntryDescriptionID id() const
Hash< EntryDescriptionType > EntryDescriptionID
Hash< ModuleDescriptionType > moduleDescriptionID_
MD5Result digest()
Definition: Digest.cc:171
void write(std::ostream &os) const
double b
Definition: hdecay.h:120
HLT enums.
double a
Definition: hdecay.h:121
std::string toString() const
Definition: Digest.cc:95