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
std::vector< BranchID > parents_
std::vector< BranchID > const & parents() const
MD5Result digest() const
Definition: Digest.cc:171
Hash< EntryDescriptionType > EntryDescriptionID
Hash< ModuleDescriptionType > moduleDescriptionID_
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
EntryDescriptionID id() const
void write(std::ostream &os) const
std::string toString() const
Definition: Digest.cc:95
double b
Definition: hdecay.h:118
HLT enums.
double a
Definition: hdecay.h:119