16 #include "cetlib_except/demangle.h" 28 using namespace fhicl;
36 << cet::demangle_symbol(
typeid(t).
name()) <<
" with value \"" << t
53 <<
"=================================\n" 55 <<
"=================================\n\n";
58 auto const vs0 = pset.get<std::vector<std::string>>(
"vec0");
61 auto const array = pset.get<std::array<std::string, 4>>(
"vec0");
62 auto const vec_arrays =
63 pset.get<std::vector<std::array<std::string, 3>>>(
"vec_arrays");
67 auto const err0 = pset.get<std::array<std::string, 3>>(
"vec0");
78 <<
"=================================\n" 80 <<
"=================================\n\n";
83 auto const vs1 = pset.get<std::vector<std::string>>(
"vec1");
84 auto const pr_as_strings = pset.get<std::vector<std::string>>(
"pair1");
87 auto const pr = pset.get<std::pair<unsigned, std::string>>(
"pair1");
91 pset.get<std::vector<std::pair<std::string, unsigned>>>(
"pair2");
93 for (
auto const&
entry : vofp) {
99 pset.get<std::pair<std::pair<std::string, unsigned>,
100 std::pair<std::string, unsigned>>>(
"pair2");
102 std::cout << pofp.first.first <<
" " << pofp.first.second << std::endl
103 << pofp.second.first <<
" " << pofp.second.second <<
std::endl;
107 auto const err1 = pset.get<std::pair<std::string, std::string>>(
"pair3");
118 <<
"=================================\n" 120 <<
"=================================\n\n";
123 auto const vs2 = pset.get<std::vector<std::string>>(
"vec2");
124 auto const tup_as_strings = pset.get<std::vector<std::string>>(
"tup1");
127 auto const tup1 = pset.get<std::tuple<int, std::string, double>>(
"tup1");
129 print(std::get<0>(tup1));
130 print(std::get<1>(tup1));
131 print(std::get<2>(tup1));
134 auto const composers =
136 .get<std::vector<std::tuple<std::size_t, std::string, unsigned, double>>>(
139 for (
auto const& composer : composers) {
141 print(std::get<0>(composer));
142 print(std::get<1>(composer));
143 print(std::get<2>(composer));
144 print(std::get<3>(composer));
150 pset.get<std::vector<std::tuple<std::size_t, std::string, unsigned>>>(
158 auto const factoids = pset.get<
159 std::tuple<std::tuple<std::string, std::string, std::string, std::string>,
160 std::tuple<std::string, std::string, std::string, std::string>,
169 auto const nine_symphonies = std::get<0>(factoids);
171 print(std::get<0>(nine_symphonies));
172 print(std::get<1>(nine_symphonies));
173 print(std::get<2>(nine_symphonies));
174 print(std::get<3>(nine_symphonies));
176 auto const less_than_9_symphonies = std::get<1>(factoids);
178 print(std::get<0>(less_than_9_symphonies));
179 print(std::get<1>(less_than_9_symphonies));
180 print(std::get<2>(less_than_9_symphonies));
182 auto const piano_sonatas = std::get<2>(factoids);
184 print(std::get<0>(piano_sonatas));
185 print(std::get<1>(piano_sonatas));
186 print(std::get<2>(piano_sonatas));
187 print(std::get<3>(piano_sonatas));
188 print(std::get<4>(piano_sonatas));
189 print(std::get<5>(piano_sonatas));
190 print(std::get<6>(piano_sonatas));
static ParameterSet make(intermediate_table const &tbl)
QCollection::Item first()
Q_EXPORT QTSManip setw(int w)
auto array(Array const &a)
Returns a manipulator which will print the specified array.
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)