DataFormats
Provenance
src
StableProvenance.cc
Go to the documentation of this file.
1
#include "
DataFormats/Provenance/interface/StableProvenance.h
"
2
#include "
DataFormats/Provenance/interface/ProcessConfiguration.h
"
3
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
4
5
#include <algorithm>
6
#include <cassert>
7
8
/*----------------------------------------------------------------------
9
10
----------------------------------------------------------------------*/
11
12
namespace
edm
{
13
14
StableProvenance::StableProvenance
() :
StableProvenance
{std::shared_ptr<BranchDescription const>(),
ProductID
()} {}
15
16
StableProvenance::StableProvenance
(std::shared_ptr<BranchDescription const>
const
&
p
,
ProductID
const
& pid)
17
: branchDescription_(
p
), productID_(pid) {}
18
19
void
StableProvenance::write
(std::ostream& os)
const
{
20
// This is grossly inadequate, but it is not critical for the first pass.
21
branchDescription
().
write
(os);
22
}
23
24
bool
operator==
(
StableProvenance
const
&
a
,
StableProvenance
const
&
b
) {
25
return
a
.branchDescription() ==
b
.branchDescription();
26
}
27
28
void
StableProvenance::swap
(
StableProvenance
& iOther) {
29
branchDescription_
.swap(iOther.
branchDescription_
);
30
productID_
.
swap
(iOther.
productID_
);
31
}
32
}
// namespace edm
edm::StableProvenance::branchDescription_
std::shared_ptr< BranchDescription const > branchDescription_
Definition:
StableProvenance.h:61
edm
HLT enums.
Definition:
AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::BranchDescription::write
void write(std::ostream &os) const
Definition:
BranchDescription.cc:257
ProcessConfiguration.h
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition:
debugging_allocator.h:72
edm::StableProvenance::branchDescription
BranchDescription const & branchDescription() const
Definition:
StableProvenance.h:36
b
double b
Definition:
hdecay.h:118
a
double a
Definition:
hdecay.h:119
edm::StableProvenance::swap
void swap(StableProvenance &)
Definition:
StableProvenance.cc:28
edm::StableProvenance
Definition:
StableProvenance.h:30
edm::StableProvenance::write
void write(std::ostream &os) const
Definition:
StableProvenance.cc:19
edm::ProductID::swap
void swap(ProductID &other)
Definition:
ProductID.cc:16
edm::StableProvenance::StableProvenance
StableProvenance()
Definition:
StableProvenance.cc:14
edm::StableProvenance::productID_
ProductID productID_
Definition:
StableProvenance.h:62
ParameterSet.h
StableProvenance.h
edm::ProductID
Definition:
ProductID.h:27
Generated for CMSSW Reference Manual by
1.8.16