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  parents_()
13  { }
14 
17  {
18  // This implementation is ripe for optimization.
19  std::ostringstream oss;
20  oss << moduleDescriptionID_ << ' ';
21  for (std::vector<BranchID>::const_iterator
22  i = parents_.begin(),
23  e = parents_.end();
24  i != e;
25  ++i)
26  {
27  oss << *i << ' ';
28  }
29 
30  std::string stringrep = oss.str();
31  cms::Digest md5alg(stringrep);
32  return EntryDescriptionID(md5alg.digest().toString());
33  }
34 
35 
36  void
37  EventEntryDescription::write(std::ostream&) const {
38  // This is grossly inadequate, but it is not critical for the
39  // first pass.
40  }
41 
42  bool
44  return
45  a.parents() == b.parents();
46  }
47 }
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:120
HLT enums.
double a
Definition: hdecay.h:121