Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
test
Persistency
Provenance
ProcessHistory_t.cpp
Go to the documentation of this file.
1
#include "
canvas/Persistency/Provenance/ProcessHistory.h
"
2
#include "
canvas/Version/GetReleaseVersion.h
"
3
#include "
fhiclcpp/ParameterSetID.h
"
4
5
#include <cassert>
6
7
int
8
main
()
9
{
10
art::ProcessHistory
pnl1;
11
// assert(pnl1 == pnl1);
12
art::ProcessHistory
pnl2;
13
assert(pnl1 == pnl2);
14
art::ProcessConfiguration
const
iHLT{
15
"HLT"
,
fhicl::ParameterSetID
{},
art::getCanvasReleaseVersion
()};
16
art::ProcessConfiguration
const
iRECO{
17
"RECO"
,
fhicl::ParameterSetID
{},
art::getCanvasReleaseVersion
()};
18
pnl2.
push_back
(iHLT);
19
// assert(pnl1 != pnl2);
20
art::ProcessHistory
pnl3;
21
pnl3.
push_back
(iHLT);
22
pnl3.
push_back
(iRECO);
23
24
art::ProcessHistoryID
const
id1{pnl1.
id
()};
25
art::ProcessHistoryID
const
id2{pnl2.
id
()};
26
art::ProcessHistoryID
const
id3{pnl3.
id
()};
27
28
// assert(id1 != id2);
29
// assert(id2 != id3);
30
// assert(id3 != id1);
31
32
art::ProcessHistory
pnl4;
33
pnl4.
push_back
(iHLT);
34
art::ProcessHistoryID
id4 = pnl4.
id
();
35
assert(pnl4 == pnl2);
36
assert(id4 == id2);
37
38
art::ProcessHistory
pnl5;
39
pnl5 = pnl3;
40
// assert(pnl5 == pnl3);
41
// assert(pnl5.id() == pnl3.id());
42
}
ProcessHistory.h
fhicl::ParameterSetID
Definition:
ParameterSetID.h:23
GetReleaseVersion.h
art::ProcessHistory::id
ProcessHistoryID id() const
Definition:
ProcessHistory.cc:198
main
int main()
Definition:
ProcessHistory_t.cpp:8
art::getCanvasReleaseVersion
std::string const & getCanvasReleaseVersion()
ParameterSetID.h
art::ProcessConfiguration
Definition:
ProcessConfiguration.h:15
art::ProcessHistory
Definition:
ProcessHistory.h:19
art::ProcessHistory::push_back
void push_back(const_reference t)
Definition:
ProcessHistory.cc:91
art::Hash< ProcessHistoryType >
Generated by
1.8.11