src
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
() : parents_() {}
12
13
EntryDescriptionID
EventEntryDescription::id
()
const
{
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::operator==
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
Definition:
ELseverityLevel.h:102
edm::EventEntryDescription::parents_
std::vector< BranchID > parents_
Definition:
EventEntryDescription.h:45
mps_fire.i
i
Definition:
mps_fire.py:429
edm::EventEntryDescription::id
EntryDescriptionID id() const
Definition:
EventEntryDescription.cc:13
edm::Hash< EntryDescriptionType >
edm::EventEntryDescription::EventEntryDescription
EventEntryDescription()
Definition:
EventEntryDescription.cc:11
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
edm::EntryDescriptionID
Hash< EntryDescriptionType > EntryDescriptionID
Definition:
EntryDescriptionID.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventEntryDescription::moduleDescriptionID_
Hash< ModuleDescriptionType > moduleDescriptionID_
Definition:
EventEntryDescription.h:47
edm::EventEntryDescription
Definition:
EventEntryDescription.h:28
cms::Digest::digest
MD5Result digest()
Definition:
Digest.cc:171
EventEntryDescription.h
Digest.h
edm::EventEntryDescription::write
void write(std::ostream &os) const
Definition:
EventEntryDescription.cc:26
cms::Digest
Definition:
Digest.h:47
b
double b
Definition:
hdecay.h:118
edm
HLT enums.
Definition:
AlignableModifier.h:19
a
double a
Definition:
hdecay.h:119
cms::MD5Result::toString
std::string toString() const
Definition:
Digest.cc:95
Generated for CMSSW Reference Manual by
1.8.14