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" 73 <<
"The encoded configuration string " 74 <<
"passed to a ParameterSet during construction is invalid:\n" 116 psettable::iterator it =
psetTable_.find(name);
118 auto pset = std::make_unique<ParameterSet>();
119 std::swap(*pset, it->second.psetForUpdate());
126 table::iterator it =
tbl_.find(name);
127 assert(it !=
tbl_.end());
133 psettable::iterator it =
psetTable_.find(name);
136 if (pset.isRegistered()) {
137 it->second.setIsTracked(
false);
147 std::vector<ParameterSet> vpset;
148 std::swap(vpset, it->second.vpsetForUpdate());
160 item.second.updateID();
165 i->second.registerPsetsAndUpdateIDs();
186 <<
"before ParameterSet::registerIt() has been called.\n";
203 if (result ==
nullptr)
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 <<
"'.";
262 psettable::const_iterator it =
psetTable_.find(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 <<
"'.";
281 psettable::const_iterator it =
psetTable_.find(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 <<
"'.";
301 vpsettable::const_iterator it =
vpsetTable_.find(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 <<
"'.";
315 vpsettable::const_iterator it =
vpsetTable_.find(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()) {
339 psettable::const_iterator it =
psetTable_.find(name);
347 vpsettable::const_iterator it =
vpsetTable_.find(name);
358 if (existsAs<ParameterSet>(name)) {
360 }
else if (
existsAs<std::vector<ParameterSet> >(name)) {
362 }
else if (
exists(name)) {
366 <<
"Cannot find parameter " << name <<
" in " << *
this;
380 table::iterator it =
tbl_.find(name);
382 if (it ==
tbl_.end()) {
383 if (!
tbl_.insert(std::make_pair(name, value)).second)
385 }
else if (okay_to_replace) {
393 psettable::iterator it =
psetTable_.find(name);
396 if (!
psetTable_.insert(std::make_pair(name, entry)).second)
398 }
else if (okay_to_replace) {
411 if (!
vpsetTable_.insert(std::make_pair(name, entry)).second)
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)) {
443 }
else if (from.
exists(name)) {
453 psettable::iterator it =
psetTable_.find(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();
507 rep.reserve(rep.size() +
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) {
609 if (!
psetTable_.insert(std::make_pair(name, psetEntry)).second) {
612 }
else if (
rep[1] ==
'q') {
614 if (!
vpsetTable_.insert(std::make_pair(name, vpsetEntry)).second) {
617 }
else if (
rep[1] ==
'P') {
620 if (!
psetTable_.insert(std::make_pair(name, psetEntry)).second) {
623 }
else if (
rep[1] ==
'p') {
626 if (!
vpsetTable_.insert(std::make_pair(name, vpsetEntry)).second) {
632 if (!
tbl_.insert(std::make_pair(name, value)).second) {
643 table::const_iterator it =
tbl_.begin();
644 table::const_iterator
end =
tbl_.end();
646 Entry const&
e = it->second;
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()) {
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);
723 return output.size();
727 for (vpsettable::const_iterator vpsetItr =
vpsetTable_.begin(); vpsetItr !=
vpsetTable_.end(); ++vpsetItr) {
728 if (vpsetItr->second.isTracked() == trackiness) {
729 output.push_back(vpsetItr->first);
732 return output.size();
743 table::const_iterator it =
tbl_.begin();
744 table::const_iterator
end =
tbl_.end();
746 Entry const&
e = it->second;
749 output.push_back(it->first);
757 std::vector<std::string> ParameterSet::getParameterNamesForType<FileInPath>(
bool trackiness)
const {
758 std::vector<std::string>
result;
765 return (a.
id() == b.
id());
771 if (a.
tbl().size() != b.
tbl().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;
791 if (
i->first != j->first) {
794 if (
i->second.isTracked() != j->second.isTracked()) {
801 typedef ParameterSet::vpsettable::const_iterator PVi;
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;
837 os << indentation <<
" " << n <<
": " << pe.
dump(indent + 2) << std::endl;
843 os << indentation <<
" " << n <<
": " << pe.
dump(indent + 2) << std::endl;
845 os << indentation <<
"}";
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 {
903 std::vector<long long> ParameterSet::getParameter<std::vector<long long> >(
std::string const&
name)
const {
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 {
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> >(
943 std::vector<double> ParameterSet::getParameter<std::vector<double> >(
std::string const&
name)
const {
956 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string> >(
std::string const&
name)
const {
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 {
1006 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag> >(
std::string const&
name)
const {
1022 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID> >(
std::string const&
name)
const {
1038 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID> >(
1055 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange> >(
std::string const&
name)
const {
1071 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange> >(
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 {
1123 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt32();
1127 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
std::string const&
name)
const {
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 {
1150 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt32();
1154 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
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 {
1178 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt64();
1182 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long> >(
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 {
1206 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt64();
1210 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
std::string const&
name)
const {
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 {
1232 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVDouble();
1236 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
std::string const&
name)
const {
1247 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getString();
1256 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
1257 std::string const&
name, std::vector<std::string>
const& defaultValue)
const {
1259 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVString();
1263 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
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 {
1301 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInputTag();
1305 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
std::string const&
name)
const {
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 {
1328 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVESInputTag();
1332 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
std::string const&
name)
const {
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 {
1354 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventID();
1358 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
std::string const&
name)
const {
1378 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1379 std::string const&
name, std::vector<LuminosityBlockID>
const& defaultValue)
const {
1385 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
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 {
1409 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventRange();
1413 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
std::string const&
name)
const {
1433 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
1434 std::string const&
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const {
1440 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
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 {
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 {
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 {
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 {
1510 double ParameterSet::getParameter<double>(
char const*
name)
const {
1515 std::vector<double> ParameterSet::getParameter<std::vector<double> >(
char const*
name)
const {
1528 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string> >(
char const*
name)
const {
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 {
1578 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag> >(
char const*
name)
const {
1594 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID> >(
char const*
name)
const {
1610 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID> >(
char const*
name)
const {
1626 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange> >(
char const*
name)
const {
1642 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange> >(
1643 char const*
name)
const {
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 {
1694 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt32();
1698 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int> >(
char const*
name)
const {
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 {
1721 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVUInt32();
1725 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int> >(
char const*
name)
const {
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 {
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 {
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 {
1775 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInt64();
1779 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long> >(
char const*
name)
const {
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 {
1801 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVDouble();
1805 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double> >(
char const*
name)
const {
1816 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getString();
1825 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
1826 char const*
name, std::vector<std::string>
const& defaultValue)
const {
1828 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVString();
1832 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string> >(
char const*
name)
const {
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 {
1868 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVInputTag();
1872 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag> >(
char const*
name)
const {
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 {
1894 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVESInputTag();
1898 std::vector<ESInputTag> ParameterSet::getUntrackedParameter<std::vector<ESInputTag> >(
char const*
name)
const {
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 {
1920 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventID();
1924 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID> >(
char const*
name)
const {
1944 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1945 char const*
name, std::vector<LuminosityBlockID>
const& defaultValue)
const {
1951 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID> >(
1952 char const*
name)
const {
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 {
1974 return entryPtr ==
nullptr ? defaultValue : entryPtr->
getVEventRange();
1978 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange> >(
char const*
name)
const {
1998 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
1999 char const*
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const {
2005 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange> >(
2006 char const*
name)
const {
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();
2147 if (result ==
nullptr)
2149 <<
"The required ParameterSet '" << name <<
"' was not specified.\n";
2150 return result->
pset();
2169 return entryPtr ==
nullptr ? defaultValue : entryPtr->
vpset();
2178 if (result ==
nullptr)
2180 <<
"The required ParameterSetVector '" << name <<
"' was not specified.\n";
2181 return result->
vpset();
std::vector< unsigned > getVUInt32() const
void setID(ParameterSetID const &id)
ParameterSetID const & mainParameterSetID() const
Entry const & retrieve(char const *) const
std::string toString() const
std::vector< double > getVDouble() const
VParameterSet const & getParameterSetVector(std::string const &name) const
ParameterSetEntry const & retrieveParameterSet(std::string const &) const
Entry const * getEntryPointerOrThrow_(std::string const &name) const
std::vector< unsigned long long > getVUInt64() const
std::vector< LuminosityBlockID > getVLuminosityBlockID() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ParameterSet getPSet() const
std::unique_ptr< ParameterSet > popParameterSet(std::string const &name)
std::string dump(unsigned int indent=0) const
std::string dump(unsigned int indent=0) const
ParameterSetEntry const * retrieveUntrackedParameterSet(std::string const &) const
bool fromString(std::string const &)
std::string dump(unsigned int indent=0) const
unsigned getUInt32() const
ParameterSetID id() const
VParameterSetEntry const * retrieveUntrackedVParameterSet(std::string const &) const
std::vector< ParameterSet > VParameterSet
size_t getParameterSetVectorNames(std::vector< std::string > &output, bool trackiness=true) const
std::vector< InputTag > getVInputTag() const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void toStringImp(std::string &, bool useAll) const
void insert(bool ok_to_replace, char const *, Entry const &)
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void swap(Hash< I > &other)
LuminosityBlockRange getLuminosityBlockRange() const
std::vector< EventID > getVEventID() const
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
ParameterSet trackedPart() const
void augment(ParameterSet const &from)
void eraseOrSetUntrackedParameterSet(std::string const &name)
void swap(ParameterSet &other)
U second(std::pair< T, U > const &p)
std::unique_ptr< ParameterDescriptionNode > operator&&(ParameterDescriptionNode const &node_left, ParameterDescriptionNode const &node_right)
unsigned long long getUInt64() const
std::vector< FileInPath >::size_type getAllFileInPaths(std::vector< FileInPath > &output) const
ParameterSet const & pset() const
returns the PSet
void copyFrom(ParameterSet const &from, std::string const &name)
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
long long getInt64() const
VParameterSetEntry * getPSetVectorForUpdate(std::string const &name)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void addParameter(std::string const &name, T const &value)
std::vector< ParameterSet > getVPSet() const
ParameterSetEntry const * retrieveUnknownParameterSet(std::string const &) const
void insertVParameterSet(bool okay_to_replace, std::string const &name, VParameterSetEntry const &entry)
InputTag getInputTag() const
std::vector< ParameterSet > const & vpset() const
returns the VPSet
bool insertMapped(value_type const &v, bool forceUpdate=false)
std::vector< long long > getVInt64() const
VParameterSetEntry const * retrieveUnknownVParameterSet(std::string const &) const
bool split(OutIter result, std::string const &string_to_split, char first, char sep, char last)
std::vector< ESInputTag > getVESInputTag() const
std::vector< std::string > getParameterNames() const
void eraseSimpleParameter(std::string const &name)
void copyForModify(ParameterSet const &other)
bool isRegistered() const
std::vector< EventRange > getVEventRange() const
Hash< ParameterSetType > ParameterSetID
void invalidateRegistration(std::string const &nameOfTracked)
friend std::ostream & operator<<(std::ostream &os, ParameterSet const &pset)
std::string toString() const
static void registerFromString(std::string const &rep)
std::string getParameterAsString(std::string const &name) const
FileInPath getFileInPath() const
psettable const & psetTable() const
void deprecatedInputTagWarning(std::string const &name, std::string const &label) const
ForwardSequence::const_iterator find_in_all(ForwardSequence const &s, Datum const &d)
wrappers for std::find
ParameterSet const & getParameterSet(std::string const &) const
std::string toString() const
size_t getNamesByCode_(char code, bool trackiness, std::vector< std::string > &output) const
void insertParameterSet(bool okay_to_replace, std::string const &name, ParameterSetEntry const &entry)
void toDigest(cms::Digest &digest) const
std::vector< int > getVInt32() const
std::string toString() const
VParameterSetEntry const & retrieveVParameterSet(std::string const &) const
LuminosityBlockID getLuminosityBlockID() const
void allToString(std::string &result) const
std::vector< ParameterSet > popVParameterSet(std::string const &name)
vpsettable const & vpsetTable() const
EventRange getEventRange() const
VParameterSet getUntrackedParameterSetVector(std::string const &name, VParameterSet const &defaultValue) const
std::vector< LuminosityBlockRange > getVLuminosityBlockRange() const
ESInputTag getESInputTag() const
Entry const * retrieveUntracked(char const *) const
size_t getParameterSetNames(std::vector< std::string > &output, bool trackiness=true) const
Entry const * retrieveUnknown(char const *) const
T first(std::pair< T, U > const &p)
table const & tbl() const
std::string toString() const
static ParameterSetID emptyParameterSetID()
ParameterSet const & registerIt()
bool isTransientEqual(ParameterSet const &a, ParameterSet const &b)
std::vector< std::string > getVString() const
std::string getString() const
static Registry * instance()
void append(std::string const &s)
ParameterSet * getPSetForUpdate(std::string const &name, bool &isTracked)
EventID getEventID() const