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
edm::EventEntryDescription
Definition: EventEntryDescription.h:28
mps_fire.i
i
Definition: mps_fire.py:428
cms::Digest::digest
MD5Result digest()
Definition: Digest.cc:171
edm::EventEntryDescription::EventEntryDescription
EventEntryDescription()
Definition: EventEntryDescription.cc:11
edm::EventEntryDescription::parents_
std::vector< BranchID > parents_
Definition: EventEntryDescription.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
cms::Digest
Definition: Digest.h:46
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition: debugging_allocator.h:72
edm::EventEntryDescription::moduleDescriptionID_
Hash< ModuleDescriptionType > moduleDescriptionID_
Definition: EventEntryDescription.h:47
edm::Hash< EntryDescriptionType >
b
double b
Definition: hdecay.h:118
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
a
double a
Definition: hdecay.h:119
edm::EventEntryDescription::write
void write(std::ostream &os) const
Definition: EventEntryDescription.cc:26
edm::EntryDescriptionID
Hash< EntryDescriptionType > EntryDescriptionID
Definition: EntryDescriptionID.h:8
Digest.h
EventEntryDescription.h
cms::MD5Result::toString
std::string toString() const
Definition: Digest.cc:95
edm::EventEntryDescription::id
EntryDescriptionID id() const
Definition: EventEntryDescription.cc:13
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37