Main Page
Namespaces
Classes
Package Documentation
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
17
StableProvenance::StableProvenance
(std::shared_ptr<BranchDescription const>
const
&
p
,
ProductID
const
&
pid
) :
18
branchDescription_
(p),
19
productID_
(pid),
20
processHistory_
() {
21
}
22
23
bool
24
StableProvenance::getProcessConfiguration
(
ProcessConfiguration
& pc)
const
{
25
return
processHistory_
->
getConfigurationForProcess
(
processName
(), pc);
26
}
27
28
ReleaseVersion
29
StableProvenance::releaseVersion
()
const
{
30
ProcessConfiguration
pc;
31
assert(
getProcessConfiguration
(pc));
32
return
pc.
releaseVersion
();
33
}
34
35
void
36
StableProvenance::write
(std::ostream& os)
const
{
37
// This is grossly inadequate, but it is not critical for the first pass.
38
branchDescription
().
write
(os);
39
}
40
41
bool
operator==
(
StableProvenance
const
&
a
,
StableProvenance
const
&
b
) {
42
return
a.
branchDescription
() == b.
branchDescription
();
43
}
44
45
46
void
47
StableProvenance::swap
(
StableProvenance
& iOther) {
48
branchDescription_
.swap(iOther.
branchDescription_
);
49
productID_
.
swap
(iOther.
productID_
);
50
std::swap
(
processHistory_
, iOther.
processHistory_
);
51
}
52
}
sysUtil.pid
pid
Definition:
sysUtil.py:22
StableProvenance.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::StableProvenance::releaseVersion
ReleaseVersion releaseVersion() const
Definition:
StableProvenance.cc:29
edm::StableProvenance::branchDescription
BranchDescription const & branchDescription() const
Definition:
StableProvenance.h:36
edm::StableProvenance::write
void write(std::ostream &os) const
Definition:
StableProvenance.cc:36
edm::ProductID::swap
void swap(ProductID &other)
Definition:
ProductID.cc:17
edm::StableProvenance::getProcessConfiguration
bool getProcessConfiguration(ProcessConfiguration &pc) const
Definition:
StableProvenance.cc:24
edm::BranchDescription::write
void write(std::ostream &os) const
Definition:
BranchDescription.cc:240
ParameterSet.h
edm::ProcessHistory::getConfigurationForProcess
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
Definition:
ProcessHistory.cc:39
edm::StableProvenance::swap
void swap(StableProvenance &)
Definition:
StableProvenance.cc:47
edm::operator==
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
Definition:
debugging_allocator.h:72
edm::ProductID
Definition:
ProductID.h:27
edm::StableProvenance
Definition:
StableProvenance.h:30
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:236
ProcessConfiguration.h
edm::ProcessConfiguration::releaseVersion
ReleaseVersion const & releaseVersion() const
Definition:
ProcessConfiguration.h:29
b
double b
Definition:
hdecay.h:120
edm::ReleaseVersion
std::string ReleaseVersion
Definition:
ReleaseVersion.h:7
edm::StableProvenance::StableProvenance
StableProvenance()
Definition:
StableProvenance.cc:14
edm
HLT enums.
Definition:
AlignableModifier.h:17
a
double a
Definition:
hdecay.h:121
edm::StableProvenance::processName
std::string const & processName() const
Definition:
StableProvenance.h:45
edm::StableProvenance::productID_
ProductID productID_
Definition:
StableProvenance.h:71
edm::ProcessConfiguration
Definition:
ProcessConfiguration.h:14
edm::StableProvenance::processHistory_
ProcessHistory const * processHistory_
Definition:
StableProvenance.h:72
edm::StableProvenance::branchDescription_
std::shared_ptr< BranchDescription const > branchDescription_
Definition:
StableProvenance.h:70
Generated for CMSSW Reference Manual by
1.8.11