Main Page
Namespaces
Classes
Package Documentation
DataFormats
Provenance
src
EventEntryDescription.cc
Go to the documentation of this file.
1
#include "
DataFormats/Provenance/interface/EventEntryDescription.h
"
2
#include "
FWCore/Utilities/interface/Digest.h
"
3
#include <ostream>
4
#include <sstream>
5
6
/*----------------------------------------------------------------------
7
8
----------------------------------------------------------------------*/
9
10
namespace
edm
{
11
EventEntryDescription::EventEntryDescription
() :
12
parents_()
13
{ }
14
15
EntryDescriptionID
16
EventEntryDescription::id
()
const
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
43
operator==
(
EventEntryDescription
const
&
a
,
EventEntryDescription
const
&
b
) {
44
return
45
a.
parents
() == b.
parents
();
46
}
47
}
edm::EventEntryDescription::parents_
std::vector< BranchID > parents_
Definition:
EventEntryDescription.h:46
mps_fire.i
i
Definition:
mps_fire.py:156
edm::Hash< EntryDescriptionType >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::EventEntryDescription::EventEntryDescription
EventEntryDescription()
Definition:
EventEntryDescription.cc:11
edm::EventEntryDescription::parents
std::vector< BranchID > const & parents() const
Definition:
EventEntryDescription.h:39
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
cms::Digest::digest
MD5Result digest() const
Definition:
Digest.cc:194
edm::EntryDescriptionID
Hash< EntryDescriptionType > EntryDescriptionID
Definition:
EntryDescriptionID.h:9
edm::EventEntryDescription::moduleDescriptionID_
Hash< ModuleDescriptionType > moduleDescriptionID_
Definition:
EventEntryDescription.h:48
edm::EventEntryDescription
Definition:
EventEntryDescription.h:28
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition:
debugging_allocator.h:72
EventEntryDescription.h
Digest.h
edm::EventEntryDescription::id
EntryDescriptionID id() const
Definition:
EventEntryDescription.cc:16
edm::EventEntryDescription::write
void write(std::ostream &os) const
Definition:
EventEntryDescription.cc:37
cms::MD5Result::toString
std::string toString() const
Definition:
Digest.cc:87
cms::Digest
Definition:
Digest.h:54
b
double b
Definition:
hdecay.h:120
edm
HLT enums.
Definition:
AlignableModifier.h:17
a
double a
Definition:
hdecay.h:121
Generated for CMSSW Reference Manual by
1.8.11