test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

edm::EventEntryDescription::EventEntryDescription ( )

Definition at line 11 of file EventEntryDescription.cc.

11  :
12  parents_()
13  { }
std::vector< BranchID > parents_
edm::EventEntryDescription::~EventEntryDescription ( )
inline

Definition at line 32 of file EventEntryDescription.h.

32 {}

Member Function Documentation

EntryDescriptionID edm::EventEntryDescription::id ( ) const

Definition at line 16 of file EventEntryDescription.cc.

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

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

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  }
int i
Definition: DBlmapReader.cc:9
std::vector< BranchID > parents_
Hash< EntryDescriptionType > EntryDescriptionID
Hash< ModuleDescriptionType > moduleDescriptionID_
std::vector<BranchID> const& edm::EventEntryDescription::parents ( ) const
inline

Definition at line 39 of file EventEntryDescription.h.

References parents_.

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

39 {return parents_;}
std::vector< BranchID > parents_
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
void edm::EventEntryDescription::write ( std::ostream &  os) const

Definition at line 37 of file EventEntryDescription.cc.

Referenced by pkg.AbstractPkg::generate(), and edm::operator<<().

37  {
38  // This is grossly inadequate, but it is not critical for the
39  // first pass.
40  }

Member Data Documentation

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

Definition at line 48 of file EventEntryDescription.h.

Referenced by id().

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

Definition at line 46 of file EventEntryDescription.h.

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