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_() {}

◆ ~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.

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  }

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

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

◆ parents()

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

Definition at line 39 of file EventEntryDescription.h.

39 { return parents_; }

References parents_.

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

◆ setParents()

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

Definition at line 41 of file EventEntryDescription.h.

41 { parents_ = parents; }

References parents(), and parents_.

◆ write()

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

Definition at line 26 of file EventEntryDescription.cc.

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

Referenced by pkg.AbstractPkg::generate().

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().

mps_fire.i
i
Definition: mps_fire.py:428
edm::EventEntryDescription::parents_
std::vector< BranchID > parents_
Definition: EventEntryDescription.h:45
cms::Digest
Definition: Digest.h:46
edm::EventEntryDescription::moduleDescriptionID_
Hash< ModuleDescriptionType > moduleDescriptionID_
Definition: EventEntryDescription.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventEntryDescription::parents
std::vector< BranchID > const & parents() const
Definition: EventEntryDescription.h:39
edm::EntryDescriptionID
Hash< EntryDescriptionType > EntryDescriptionID
Definition: EntryDescriptionID.h:8
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37