14 std::vector<std::string> keys = pset.
get_names();
15 std::vector<std::string> modkeys;
16 for (
unsigned int i = 0; i < keys.size(); ++i) {
17 if (keys[i] ==
"DefaultPhysics") {
26 for (
unsigned i1 = 0; i1 < modkeys.size(); ++i1) {
27 std::string modkey = modkeys[i1];
28 for (
unsigned int ik = 0; ik < modkey.size(); ++ik)
29 modkey[ik] = std::tolower(modkey[ik]);
30 if (modkey ==
"underlyingmodels") {
32 std::vector<std::string> ukeys = umpset.
get_names();
33 for (
unsigned int iu = 0; iu < ukeys.size(); ++iu) {
35 std::vector<std::string> umconfig = umodel.
get_names();
36 for (
unsigned int iukm = 0; iukm < umconfig.size(); ++iukm) {
37 DoFill(ukeys[iu], umconfig[iukm], umodel);
41 DoFill(keys[i], modkeys[i1], mpset);
55 std::string mkey = modkey;
56 for (
unsigned int ik = 0; ik < modkey.size(); ++ik)
57 mkey[ik] = std::tolower(mkey[ik]);
58 if (mkey.find(
"use") != std::string::npos) {
59 int ivalue = mpset.
get<
int>(modkey, 0);
60 Insert(key, modkey, ivalue);
62 double value = mpset.
get<
double>(modkey);
63 Insert(key, modkey, value);
71 const std::string& param,
84 model,
std::vector<std::pair<std::string, double>>()));
87 std::map<std::string, std::vector<std::pair<std::string, double>>>
::iterator itr =
90 (itr->second).push_back(std::pair<std::string, double>(param, value));
95 std::vector<std::string>
99 std::vector<std::string> models;
101 std::map<std::string, std::vector<std::pair<std::string, double>>>
::const_iterator itr =
104 models.push_back(itr->first);
110 const std::vector<std::pair<std::string, double>>*
114 std::map<std::string, std::vector<std::pair<std::string, double>>>
::const_iterator itr =
124 return &(itr->second);
void DoFill(std::string &, std::string &, fhicl::ParameterSet &)
void Insert(const std::string &, const std::string &, const double &)
std::vector< std::string > GetConfiguredModels() const
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
T get(std::string const &key) const
std::map< std::string, std::vector< std::pair< std::string, double > > > fModelConfig
const std::vector< std::pair< std::string, double > > * GetConfig(const std::string &) const
std::vector< std::string > get_names() const
void Fill(const fhicl::ParameterSet &)