36 if (!nameOfTracked.empty()) {
38 LogInfo(
"ParameterSet") <<
"Warning: You have added a new tracked parameter\n"
39 <<
"'" << nameOfTracked <<
"' to a previously registered parameter set.\n"
40 <<
"This is a bad idea because the new parameter(s) will not be recorded.\n"
41 <<
"Use the forthcoming ParameterSetDescription facility instead.\n"
42 <<
"A warning is given only for the first such parameter in a pset.\n";
60 <<
"The encoded configuration string "
61 <<
"passed to a ParameterSet during construction is invalid:\n"
70 : tbl_(), psetTable_(), vpsetTable_(), id_(
id) {
73 <<
"The encoded configuration string "
74 <<
"passed to a ParameterSet during construction is invalid:\n"
118 auto pset = std::make_unique<ParameterSet>();
126 table::iterator it =
tbl_.find(
name);
136 if (
pset.isRegistered()) {
137 it->second.setIsTracked(
false);
147 std::vector<ParameterSet> vpset;
148 std::swap(vpset, it->second.vpsetForUpdate());
157 if (!
pset.isRegistered()) {
160 item.second.updateID();
165 i->second.registerPsetsAndUpdateIDs();
186 <<
"before ParameterSet::registerIt() has been called.\n";
205 <<
"The required parameter '" <<
name <<
"' was not specified.\n";
209 template <
typename T,
typename U>
214 template <
typename T,
typename U>
222 table::const_iterator it =
tbl_.find(
name);
223 if (it ==
tbl_.end()) {
226 if (it->second.isTracked() ==
false) {
227 if (
name[0] ==
'@') {
229 <<
"Framework Error: Parameter '" <<
name <<
"' is incorrectly designated as tracked in the framework.";
232 <<
"Parameter '" <<
name <<
"' is designated as tracked in the code,\n"
233 <<
"but is designated as untracked in the configuration file.\n"
234 <<
"Please remove 'untracked' from the configuration file for parameter '" <<
name <<
"'.";
243 table::const_iterator it =
tbl_.find(
name);
245 if (it ==
tbl_.end())
247 if (it->second.isTracked()) {
248 if (
name[0] ==
'@') {
250 <<
"Framework Error: Parameter '" <<
name <<
"' is incorrectly designated as untracked in the framework.";
253 <<
"Parameter '" <<
name <<
"' is designated as untracked in the code,\n"
254 <<
"but is not designated as untracked in the configuration file.\n"
255 <<
"Please change the configuration file to 'untracked <type> " <<
name <<
"'.";
266 if (it->second.isTracked() ==
false) {
267 if (
name[0] ==
'@') {
269 <<
"Framework Error: ParameterSet '" <<
name <<
"' is incorrectly designated as tracked in the framework.";
272 <<
"ParameterSet '" <<
name <<
"' is designated as tracked in the code,\n"
273 <<
"but is designated as untracked in the configuration file.\n"
274 <<
"Please remove 'untracked' from the configuration file for parameter '" <<
name <<
"'.";
285 if (it->second.isTracked()) {
286 if (
name[0] ==
'@') {
288 <<
"Framework Error: ParameterSet '" <<
name
289 <<
"' is incorrectly designated as untracked in the framework.";
292 <<
"ParameterSet '" <<
name <<
"' is designated as untracked in the code,\n"
293 <<
"but is not designated as untracked in the configuration file.\n"
294 <<
"Please change the configuration file to 'untracked <type> " <<
name <<
"'.";
305 if (it->second.isTracked() ==
false) {
307 <<
"VParameterSet '" <<
name <<
"' is designated as tracked in the code,\n"
308 <<
"but is designated as untracked in the configuration file.\n"
309 <<
"Please remove 'untracked' from the configuration file for parameter '" <<
name <<
"'.";
319 if (it->second.isTracked()) {
321 <<
"VParameterSet '" <<
name <<
"' is designated as untracked in the code,\n"
322 <<
"but is not designated as untracked in the configuration file.\n"
323 <<
"Please change the configuration file to 'untracked <type> " <<
name <<
"'.";
331 table::const_iterator it =
tbl_.find(
name);
332 if (it ==
tbl_.end()) {
358 if (existsAs<ParameterSet>(
name)) {
360 }
else if (
existsAs<std::vector<ParameterSet> >(
name)) {
366 <<
"Cannot find parameter " <<
name <<
" in " << *
this;
380 table::iterator it =
tbl_.find(
name);
382 if (it ==
tbl_.end()) {
385 }
else if (okay_to_replace) {
398 }
else if (okay_to_replace) {
413 <<
"cannot insert " <<
name <<
" into a VParameterSet\n";
414 }
else if (okay_to_replace) {
426 for (table::const_iterator
b = from.
tbl_.begin(),
e = from.
tbl_.end();
b !=
e; ++
b) {
427 this->
insert(
false,
b->first,
b->second);
441 }
else if (from.
existsAs<std::vector<ParameterSet> >(
name)) {
456 isTracked = it->second.isTracked();
457 return &it->second.psetForUpdate();
483 for (table::const_iterator
b =
tbl_.begin(),
e =
tbl_.end();
b !=
e; ++
b) {
484 if (useAll ||
b->second.isTracked()) {
486 size +=
b->first.size();
487 size +=
b->second.sizeOfString();
491 if (useAll ||
b->second.isTracked()) {
493 size +=
b->first.size();
494 size +=
b->first.size();
495 size +=
b->first.size();
500 if (useAll ||
b->second.isTracked()) {
502 size +=
b->first.size();
511 for (table::const_iterator
b =
tbl_.begin(),
e =
tbl_.end();
b !=
e; ++
b) {
512 if (useAll ||
b->second.isTracked()) {
516 b->second.toString(
rep);
521 if (useAll ||
b->second.isTracked()) {
525 b->second.toString(
rep);
530 if (useAll ||
b->second.isTracked()) {
534 b->second.toString(
rep);
544 bool started =
false;
545 for (table::const_iterator
b =
tbl_.begin(),
e =
tbl_.end();
b !=
e; ++
b) {
546 if (
b->second.isTracked()) {
551 b->second.toDigest(digest);
556 if (
b->second.isTracked()) {
561 b->second.toDigest(digest);
566 if (
b->second.isTracked()) {
571 b->second.toDigest(digest);
587 std::vector<std::string>
temp;
588 if (!
split(std::back_inserter(
temp), from,
'<',
';',
'>'))
592 for (std::vector<std::string>::const_iterator
b =
temp.begin(),
e =
temp.end();
b !=
e; ++
b) {
612 }
else if (
rep[1] ==
'q') {
617 }
else if (
rep[1] ==
'P') {
623 }
else if (
rep[1] ==
'p') {
643 table::const_iterator it =
tbl_.begin();
644 table::const_iterator
end =
tbl_.end();
646 Entry const&
e = it->second;
647 if (
e.typeCode() ==
'F') {
649 output.push_back(
e.getFileInPath());
657 using std::placeholders::_1;
658 std::vector<std::string> returnValue;
661 back_inserter(returnValue),
665 back_inserter(returnValue),
669 back_inserter(returnValue),
681 for (table::const_iterator tblItr =
tbl_.begin(); tblItr !=
tbl_.end(); ++tblItr) {
682 if (tblItr->second.isTracked()) {
683 result.tbl_.insert(*tblItr);
686 for (psettable::const_iterator psetItr =
psetTable_.begin(); psetItr !=
psetTable_.end(); ++psetItr) {
687 if (psetItr->second.isTracked()) {
688 result.addParameter<
ParameterSet>(psetItr->first, psetItr->second.pset().trackedPart());
691 for (vpsettable::const_iterator vpsetItr =
vpsetTable_.begin(); vpsetItr !=
vpsetTable_.end(); ++vpsetItr) {
692 if (vpsetItr->second.isTracked()) {
694 std::vector<ParameterSet>
const& this_vpset = vpsetItr->second.vpset();
696 typedef std::vector<ParameterSet>::const_iterator Iter;
697 for (Iter
i = this_vpset.begin(),
e = this_vpset.end();
i !=
e; ++
i) {
698 vresult.push_back(
i->trackedPart());
718 for (psettable::const_iterator psetItr =
psetTable_.begin(); psetItr !=
psetTable_.end(); ++psetItr) {
719 if (psetItr->second.isTracked() == trackiness) {
720 output.push_back(psetItr->first);
727 for (vpsettable::const_iterator vpsetItr =
vpsetTable_.begin(); vpsetItr !=
vpsetTable_.end(); ++vpsetItr) {
728 if (vpsetItr->second.isTracked() == trackiness) {
729 output.push_back(vpsetItr->first);
743 table::const_iterator it =
tbl_.begin();
744 table::const_iterator
end =
tbl_.end();
746 Entry const&
e = it->second;
747 if (
e.typeCode() == code &&
e.isTracked() == trackiness) {
749 output.push_back(it->first);
757 std::vector<std::string> ParameterSet::getParameterNamesForType<FileInPath>(
bool trackiness)
const {
758 std::vector<std::string>
result;
764 if (
a.isRegistered() &&
b.isRegistered()) {
765 return (
a.id() ==
b.id());
771 if (
a.tbl().size() !=
b.tbl().size()) {
774 if (
a.psetTable().size() !=
b.psetTable().size()) {
777 if (
a.vpsetTable().size() !=
b.vpsetTable().size()) {
780 typedef ParameterSet::table::const_iterator Ti;
781 for (Ti
i =
a.tbl().begin(),
e =
a.tbl().end(),
j =
b.tbl().begin(),
f =
b.tbl().end();
i !=
e &&
j !=
f;
787 typedef ParameterSet::psettable::const_iterator
Pi;
788 for (
Pi i =
a.psetTable().begin(),
e =
a.psetTable().end(),
j =
b.psetTable().begin(),
f =
b.psetTable().end();
791 if (
i->first !=
j->first) {
794 if (
i->second.isTracked() !=
j->second.isTracked()) {
801 typedef ParameterSet::vpsettable::const_iterator PVi;
802 for (PVi
i =
a.vpsetTable().begin(),
e =
a.vpsetTable().end(),
j =
b.vpsetTable().begin(),
f =
b.vpsetTable().end();
805 if (
i->first !=
j->first) {
808 if (
i->second.isTracked() !=
j->second.isTracked()) {
811 std::vector<ParameterSet>
const& iv =
i->second.vpset();
812 std::vector<ParameterSet>
const& jv =
j->second.vpset();
813 if (iv.size() != jv.size()) {
816 for (
size_t k = 0;
k < iv.size(); ++
k) {
826 std::ostringstream os;
829 os <<
"{" << std::endl;
830 for (table::const_iterator
i =
tbl_.begin(),
e =
tbl_.end();
i !=
e; ++
i) {
831 os <<
indentation <<
" " <<
i->first <<
": " <<
i->second << std::endl;
868 LogWarning(
"Configuration") <<
"Warning:\n\tstring " <<
name <<
" = \"" <<
label <<
"\"\nis deprecated, "
869 <<
"please update your config file to use\n\tInputTag " <<
name <<
" = " <<
label;
890 std::vector<int> ParameterSet::getParameter<std::vector<int> >(
std::string const&
name)
const {
891 return retrieve(
name).getVInt32();
903 std::vector<long long> ParameterSet::getParameter<std::vector<long long> >(
std::string const&
name)
const {
904 return retrieve(
name).getVInt64();
911 unsigned int ParameterSet::getParameter<unsigned int>(
std::string const&
name)
const {
916 std::vector<unsigned int> ParameterSet::getParameter<std::vector<unsigned int> >(
std::string const&
name)
const {
917 return retrieve(
name).getVUInt32();
924 unsigned long long ParameterSet::getParameter<unsigned long long>(
std::string const&
name)
const {
929 std::vector<unsigned long long> ParameterSet::getParameter<std::vector<unsigned long long> >(
931 return retrieve(
name).getVUInt64();
943 std::vector<double> ParameterSet::getParameter<std::vector<double> >(
std::string const&
name)
const {
944 return retrieve(
name).getVDouble();
952 return retrieve(
name).getString();
956 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string> >(
std::string const&
name)
const {
957 return retrieve(
name).getVString();
983 <<
"type of " <<
name <<
" is expected to be InputTag or string (deprecated)";
990 std::vector<InputTag> ParameterSet::getParameter<std::vector<InputTag> >(
std::string const&
name)
const {
991 return retrieve(
name).getVInputTag();
1006 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag> >(
std::string const&
name)
const {
1007 return retrieve(
name).getVESInputTag();
1022 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID> >(
std::string const&
name)
const {
1023 return retrieve(
name).getVEventID();
1038 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID> >(
1040 return retrieve(
name).getVLuminosityBlockID();
1055 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange> >(
std::string const&
name)
const {
1056 return retrieve(
name).getVEventRange();
1071 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange> >(
1073 return retrieve(
name).getVLuminosityBlockRange();
1095 bool ParameterSet::getUntrackedParameter<bool>(
std::string const&
name,
bool const& defaultValue)
const {
1097 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getBool();
1109 int ParameterSet::getUntrackedParameter<int>(
std::string const&
name,
int const& defaultValue)
const {
1111 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInt32();
1120 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
std::string const&
name,
1121 std::vector<int>
const& defaultValue)
const {
1122 Entry const* entryPtr = retrieveUntracked(
name);
1123 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt32();
1127 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
std::string const&
name)
const {
1128 return getEntryPointerOrThrow_(
name)->getVInt32();
1136 unsigned int const& defaultValue)
const {
1138 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getUInt32();
1142 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
std::string const&
name)
const {
1147 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
1148 std::string const&
name, std::vector<unsigned int>
const& defaultValue)
const {
1149 Entry const* entryPtr = retrieveUntracked(
name);
1150 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt32();
1154 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
1156 return getEntryPointerOrThrow_(
name)->getVUInt32();
1163 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
1164 std::string const&
name,
unsigned long long const& defaultValue)
const {
1166 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getUInt64();
1170 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
std::string const&
name)
const {
1175 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long> >(
1176 std::string const&
name, std::vector<unsigned long long>
const& defaultValue)
const {
1177 Entry const* entryPtr = retrieveUntracked(
name);
1178 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt64();
1182 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long> >(
1184 return getEntryPointerOrThrow_(
name)->getVUInt64();
1192 long long const& defaultValue)
const {
1194 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInt64();
1203 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
1204 std::string const&
name, std::vector<long long>
const& defaultValue)
const {
1205 Entry const* entryPtr = retrieveUntracked(
name);
1206 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt64();
1210 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
std::string const&
name)
const {
1211 return getEntryPointerOrThrow_(
name)->getVInt64();
1218 double ParameterSet::getUntrackedParameter<double>(
std::string const&
name,
double const& defaultValue)
const {
1220 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getDouble();
1229 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
1230 std::string const&
name, std::vector<double>
const& defaultValue)
const {
1231 Entry const* entryPtr = retrieveUntracked(
name);
1232 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVDouble();
1236 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
std::string const&
name)
const {
1237 return getEntryPointerOrThrow_(
name)->getVDouble();
1246 Entry const* entryPtr = retrieveUntracked(
name);
1247 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getString();
1252 return getEntryPointerOrThrow_(
name)->getString();
1256 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
1257 std::string const&
name, std::vector<std::string>
const& defaultValue)
const {
1258 Entry const* entryPtr = retrieveUntracked(
name);
1259 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVString();
1263 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
1265 return getEntryPointerOrThrow_(
name)->getVString();
1275 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getFileInPath();
1289 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInputTag();
1298 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
1299 std::string const&
name, std::vector<InputTag>
const& defaultValue)
const {
1300 Entry const* entryPtr = retrieveUntracked(
name);
1301 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInputTag();
1305 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
std::string const&
name)
const {
1306 return getEntryPointerOrThrow_(
name)->getVInputTag();
1316 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getESInputTag();
1325 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
1326 std::string const&
name, std::vector<ESInputTag>
const& defaultValue)
const {
1327 Entry const* entryPtr = retrieveUntracked(
name);
1328 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVESInputTag();
1332 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
std::string const&
name)
const {
1333 return getEntryPointerOrThrow_(
name)->getVESInputTag();
1342 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getEventID();
1351 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
1352 std::string const&
name, std::vector<EventID>
const& defaultValue)
const {
1353 Entry const* entryPtr = retrieveUntracked(
name);
1354 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventID();
1358 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
std::string const&
name)
const {
1359 return getEntryPointerOrThrow_(
name)->getVEventID();
1378 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1379 std::string const&
name, std::vector<LuminosityBlockID>
const& defaultValue)
const {
1380 Entry const* entryPtr = retrieveUntracked(
name);
1385 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1387 return getEntryPointerOrThrow_(
name)->getVLuminosityBlockID();
1397 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getEventRange();
1406 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
1407 std::string const&
name, std::vector<EventRange>
const& defaultValue)
const {
1408 Entry const* entryPtr = retrieveUntracked(
name);
1409 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventRange();
1413 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
std::string const&
name)
const {
1414 return getEntryPointerOrThrow_(
name)->getVEventRange();
1433 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
1434 std::string const&
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const {
1435 Entry const* entryPtr = retrieveUntracked(
name);
1440 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
1442 return getEntryPointerOrThrow_(
name)->getVLuminosityBlockRange();
1450 bool ParameterSet::getParameter<bool>(
char const*
name)
const {
1458 int ParameterSet::getParameter<int>(
char const*
name)
const {
1463 std::vector<int> ParameterSet::getParameter<std::vector<int> >(
char const*
name)
const {
1464 return retrieve(
name).getVInt32();
1471 long long ParameterSet::getParameter<long long>(
char const*
name)
const {
1476 std::vector<long long> ParameterSet::getParameter<std::vector<long long> >(
char const*
name)
const {
1477 return retrieve(
name).getVInt64();
1484 unsigned int ParameterSet::getParameter<unsigned int>(
char const*
name)
const {
1489 std::vector<unsigned int> ParameterSet::getParameter<std::vector<unsigned int> >(
char const*
name)
const {
1490 return retrieve(
name).getVUInt32();
1497 unsigned long long ParameterSet::getParameter<unsigned long long>(
char const*
name)
const {
1502 std::vector<unsigned long long> ParameterSet::getParameter<std::vector<unsigned long long> >(
char const*
name)
const {
1503 return retrieve(
name).getVUInt64();
1510 double ParameterSet::getParameter<double>(
char const*
name)
const {
1515 std::vector<double> ParameterSet::getParameter<std::vector<double> >(
char const*
name)
const {
1516 return retrieve(
name).getVDouble();
1524 return retrieve(
name).getString();
1528 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string> >(
char const*
name)
const {
1529 return retrieve(
name).getVString();
1555 <<
"type of " <<
name <<
" is expected to be InputTag or string (deprecated)";
1562 std::vector<InputTag> ParameterSet::getParameter<std::vector<InputTag> >(
char const*
name)
const {
1563 return retrieve(
name).getVInputTag();
1578 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag> >(
char const*
name)
const {
1579 return retrieve(
name).getVESInputTag();
1594 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID> >(
char const*
name)
const {
1595 return retrieve(
name).getVEventID();
1610 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID> >(
char const*
name)
const {
1611 return retrieve(
name).getVLuminosityBlockID();
1626 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange> >(
char const*
name)
const {
1627 return retrieve(
name).getVEventRange();
1642 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange> >(
1643 char const*
name)
const {
1644 return retrieve(
name).getVLuminosityBlockRange();
1666 bool ParameterSet::getUntrackedParameter<bool>(
char const*
name,
bool const& defaultValue)
const {
1668 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getBool();
1672 bool ParameterSet::getUntrackedParameter<bool>(
char const*
name)
const {
1680 int ParameterSet::getUntrackedParameter<int>(
char const*
name,
int const& defaultValue)
const {
1682 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInt32();
1686 int ParameterSet::getUntrackedParameter<int>(
char const*
name)
const {
1691 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
char const*
name,
1692 std::vector<int>
const& defaultValue)
const {
1693 Entry const* entryPtr = retrieveUntracked(
name);
1694 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt32();
1698 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
char const*
name)
const {
1699 return getEntryPointerOrThrow_(
name)->getVInt32();
1706 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name,
1707 unsigned int const& defaultValue)
const {
1709 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getUInt32();
1713 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name)
const {
1718 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
1719 char const*
name, std::vector<unsigned int>
const& defaultValue)
const {
1720 Entry const* entryPtr = retrieveUntracked(
name);
1721 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt32();
1725 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
char const*
name)
const {
1726 return getEntryPointerOrThrow_(
name)->getVUInt32();
1733 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
1734 char const*
name,
unsigned long long const& defaultValue)
const {
1736 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getUInt64();
1740 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
char const*
name)
const {
1745 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long> >(
1746 char const*
name, std::vector<unsigned long long>
const& defaultValue)
const {
1747 Entry const* entryPtr = retrieveUntracked(
name);
1748 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt64();
1752 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long> >(
1753 char const*
name)
const {
1754 return getEntryPointerOrThrow_(
name)->getVUInt64();
1761 long long ParameterSet::getUntrackedParameter<long long>(
char const*
name,
long long const& defaultValue)
const {
1763 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInt64();
1767 long long ParameterSet::getUntrackedParameter<long long>(
char const*
name)
const {
1772 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
1773 char const*
name, std::vector<long long>
const& defaultValue)
const {
1774 Entry const* entryPtr = retrieveUntracked(
name);
1775 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt64();
1779 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
char const*
name)
const {
1780 return getEntryPointerOrThrow_(
name)->getVInt64();
1787 double ParameterSet::getUntrackedParameter<double>(
char const*
name,
double const& defaultValue)
const {
1789 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getDouble();
1793 double ParameterSet::getUntrackedParameter<double>(
char const*
name)
const {
1798 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
1799 char const*
name, std::vector<double>
const& defaultValue)
const {
1800 Entry const* entryPtr = retrieveUntracked(
name);
1801 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVDouble();
1805 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
char const*
name)
const {
1806 return getEntryPointerOrThrow_(
name)->getVDouble();
1815 Entry const* entryPtr = retrieveUntracked(
name);
1816 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getString();
1821 return getEntryPointerOrThrow_(
name)->getString();
1825 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
1826 char const*
name, std::vector<std::string>
const& defaultValue)
const {
1827 Entry const* entryPtr = retrieveUntracked(
name);
1828 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVString();
1832 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
char const*
name)
const {
1833 return getEntryPointerOrThrow_(
name)->getVString();
1842 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getFileInPath();
1856 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getInputTag();
1860 InputTag ParameterSet::getUntrackedParameter<InputTag>(
char const*
name)
const {
1865 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
1866 char const*
name, std::vector<InputTag>
const& defaultValue)
const {
1867 Entry const* entryPtr = retrieveUntracked(
name);
1868 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInputTag();
1872 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
char const*
name)
const {
1873 return getEntryPointerOrThrow_(
name)->getVInputTag();
1882 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getESInputTag();
1891 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
1892 char const*
name, std::vector<ESInputTag>
const& defaultValue)
const {
1893 Entry const* entryPtr = retrieveUntracked(
name);
1894 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVESInputTag();
1898 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
char const*
name)
const {
1899 return getEntryPointerOrThrow_(
name)->getVESInputTag();
1906 EventID ParameterSet::getUntrackedParameter<EventID>(
char const*
name,
EventID const& defaultValue)
const {
1908 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getEventID();
1912 EventID ParameterSet::getUntrackedParameter<EventID>(
char const*
name)
const {
1917 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
1918 char const*
name, std::vector<EventID>
const& defaultValue)
const {
1919 Entry const* entryPtr = retrieveUntracked(
name);
1920 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventID();
1924 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
char const*
name)
const {
1925 return getEntryPointerOrThrow_(
name)->getVEventID();
1944 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1945 char const*
name, std::vector<LuminosityBlockID>
const& defaultValue)
const {
1946 Entry const* entryPtr = retrieveUntracked(
name);
1951 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1952 char const*
name)
const {
1953 return getEntryPointerOrThrow_(
name)->getVLuminosityBlockID();
1962 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getEventRange();
1971 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
1972 char const*
name, std::vector<EventRange>
const& defaultValue)
const {
1973 Entry const* entryPtr = retrieveUntracked(
name);
1974 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventRange();
1978 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
char const*
name)
const {
1979 return getEntryPointerOrThrow_(
name)->getVEventRange();
1998 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
1999 char const*
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const {
2000 Entry const* entryPtr = retrieveUntracked(
name);
2005 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
2006 char const*
name)
const {
2007 return getEntryPointerOrThrow_(
name)->getVLuminosityBlockRange();
2108 std::vector<std::string> ParameterSet::getParameterNamesForType<ParameterSet>(
bool trackiness)
const {
2109 std::vector<std::string>
output;
2115 std::vector<std::string> ParameterSet::getParameterNamesForType<VParameterSet>(
bool trackiness)
const {
2116 std::vector<std::string>
output;
2135 if (entryPtr ==
nullptr) {
2136 return defaultValue;
2138 return entryPtr->
pset();
2149 <<
"The required ParameterSet '" <<
name <<
"' was not specified.\n";
2169 return entryPtr ==
nullptr ? defaultValue : entryPtr->
vpset();
2180 <<
"The required ParameterSetVector '" <<
name <<
"' was not specified.\n";