51 hasXaxis ? &
xaxis :
nullptr,
52 hasYaxis ? &
yaxis :
nullptr,
53 hasZaxis ? &
zaxis :
nullptr);
64 unsigned logicalDimensions(-1);
67 logicalDimensions = 0;
71 logicalDimensions = 1;
75 logicalDimensions = 2;
84 logicalDimensions = 1;
95 hasXaxis ? &
xaxis :
nullptr,
96 hasYaxis ? &
yaxis :
nullptr,
97 hasZaxis ? &
zaxis :
nullptr);
98 else if (logicalDimensions == 0)
100 else if (logicalDimensions == 1)
102 else if (logicalDimensions == 2)
107 typedef std::vector<std::string> VString;
110 VString replacementNames(multiParams.getParameterNames());
111 if (replacementNames.empty())
112 throw cms::Exception(
"InvalidConfiguration") <<
"0 multiplicity for MESet at " <<
path;
115 for (
unsigned iD(0); iD != replacementNames.size(); ++iD) {
117 if (multiParams.existsAs<VString>(replacementNames[iD],
false))
118 reps = multiParams.getUntrackedParameter<VString>(replacementNames[iD]);
119 else if (multiParams.existsAs<std::vector<int>>(replacementNames[iD],
false)) {
120 std::vector<int> repInts(multiParams.getUntrackedParameter<std::vector<int>>(replacementNames[iD]));
121 for (
unsigned iR(0); iR != repInts.size(); ++iR)
122 reps.push_back(std::to_string(repInts[iR]));
126 throw cms::Exception(
"InvalidConfiguration") <<
"0 multiplicity for MESet at " <<
path;
136 throw cms::Exception(
"InvalidConfiguration") <<
"MESet " <<
path <<
" could not be initialized";