CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::EventEntryDescription Class Reference

#include <EventEntryDescription.h>

Public Member Functions

 EventEntryDescription ()
 
EntryDescriptionID id () const
 
std::vector< BranchID > const & parents () const
 
void setParents (std::vector< BranchID > const &parents)
 
void write (std::ostream &os) const
 
 ~EventEntryDescription ()
 

Private Attributes

Hash< ModuleDescriptionTypemoduleDescriptionID_
 
std::vector< BranchIDparents_
 

Detailed Description

Definition at line 28 of file EventEntryDescription.h.

Constructor & Destructor Documentation

◆ EventEntryDescription()

edm::EventEntryDescription::EventEntryDescription ( )

Definition at line 11 of file EventEntryDescription.cc.

11 : parents_() {}
std::vector< BranchID > parents_

◆ ~EventEntryDescription()

edm::EventEntryDescription::~EventEntryDescription ( )
inline

Definition at line 32 of file EventEntryDescription.h.

32 {}

Member Function Documentation

◆ id()

EntryDescriptionID edm::EventEntryDescription::id ( ) const

Definition at line 13 of file EventEntryDescription.cc.

References cms::Digest::digest(), MillePedeFileConverter_cfg::e, mps_fire::i, moduleDescriptionID_, parents_, AlCaHLTBitMon_QueryRunRegistry::string, and cms::MD5Result::toString().

Referenced by edm::RootFile::readEntryDescriptionTree().

13  {
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  }
std::vector< BranchID > parents_
Hash< EntryDescriptionType > EntryDescriptionID
Hash< ModuleDescriptionType > moduleDescriptionID_

◆ parents()

std::vector<BranchID> const& edm::EventEntryDescription::parents ( ) const
inline

Definition at line 39 of file EventEntryDescription.h.

References parents_.

Referenced by edm::RootFile::readEntryDescriptionTree(), and setParents().

39 { return parents_; }
std::vector< BranchID > parents_

◆ setParents()

void edm::EventEntryDescription::setParents ( std::vector< BranchID > const &  parents)
inline

Definition at line 41 of file EventEntryDescription.h.

References parents(), and parents_.

41 { parents_ = parents; }
std::vector< BranchID > parents_
std::vector< BranchID > const & parents() const

◆ write()

void edm::EventEntryDescription::write ( std::ostream &  os) const

Definition at line 26 of file EventEntryDescription.cc.

Referenced by pkg.AbstractPkg::generate().

26  {
27  // This is grossly inadequate, but it is not critical for the
28  // first pass.
29  }

Member Data Documentation

◆ moduleDescriptionID_

Hash<ModuleDescriptionType> edm::EventEntryDescription::moduleDescriptionID_
private

Definition at line 47 of file EventEntryDescription.h.

Referenced by id().

◆ parents_

std::vector<BranchID> edm::EventEntryDescription::parents_
private

Definition at line 45 of file EventEntryDescription.h.

Referenced by id(), parents(), and setParents().