Functions
ProcessHistory_t.cpp File Reference
#include "canvas/Persistency/Provenance/ProcessHistory.h"
#include "canvas/Version/GetReleaseVersion.h"
#include "fhiclcpp/ParameterSetID.h"
#include <cassert>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 8 of file ProcessHistory_t.cpp.

9 {
11  // assert(pnl1 == pnl1);
13  assert(pnl1 == pnl2);
14  art::ProcessConfiguration const iHLT{
16  art::ProcessConfiguration const iRECO{
18  pnl2.push_back(iHLT);
19  // assert(pnl1 != pnl2);
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 
33  pnl4.push_back(iHLT);
34  art::ProcessHistoryID id4 = pnl4.id();
35  assert(pnl4 == pnl2);
36  assert(id4 == id2);
37 
39  pnl5 = pnl3;
40  // assert(pnl5 == pnl3);
41  // assert(pnl5.id() == pnl3.id());
42 }
ProcessHistoryID id() const
std::string const & getCanvasReleaseVersion()
void push_back(const_reference t)