#include "cetlib/filepath_maker.h"
#include "fhiclcpp/ParameterSet.h"
#include <cassert>
#include <string>
Go to the source code of this file.
Definition at line 8 of file PSetSample.cc.
14 assert(pset.get<
int>(
"a") == 1);
15 assert(pset.get<
unsigned int>(
"a") == 1);
16 assert(pset.get<
int>(
"b") == -1);
19 assert(pset.get<
double>(
"c") == 0.0);
20 assert(pset.get<
double>(
"d") == 0.5);
22 assert(pset.get<
std::string>(
"e").compare(
"rain") == 0);
23 assert(pset.get<
std::string>(
"f").compare(
"32") == 0);
24 assert(pset.get<
int>(
"f") == 32);
26 assert(pset.get<std::vector<int>>(
"g")[2] == 3);
28 assert(pset.get<std::vector<fhicl::ParameterSet>>(
"h")[1]
35 .compare(
"test") == 0);
static ParameterSet make(intermediate_table const &tbl)
T get(std::string const &key) const