1 #ifndef FWCore_ParameterSet_ParameterSet_h
2 #define FWCore_ParameterSet_ParameterSet_h
90 void insert(
bool ok_to_replace,
char const*,
Entry const&);
104 template <
typename T>
107 template <
typename T>
134 template <
typename T>
140 template <
typename T>
146 template <
typename T>
149 template <
typename T>
152 template <
typename T>
155 template <
typename T>
170 template <
typename T>
172 std::vector<std::string>
names = getParameterNamesForType<T>(trackiness);
178 template <
typename T>
180 std::vector<std::string>
result;
185 char type_code = type_translator.
typeCode();
191 template <
typename T>
196 template <
typename T>
232 typedef std::map<std::string, Entry>
table;
235 typedef std::map<std::string, ParameterSetEntry>
psettable;
238 typedef std::map<std::string, VParameterSetEntry>
vpsettable;
244 bool isTracked =
false;
302 template <
typename T>
308 template <
typename T>
315 namespace pset::exceptions {
319 template <
typename T, std::
size_t N>
323 if (iVec.size() !=
N) {
327 std::copy_n(std::make_move_iterator(iVec.begin()),
N,
a.begin());
332 template <
typename T>
334 using GetType = std::vector<edm::ParameterSet>;
336 std::vector<std::pair<std::string, T>>
ret(vpset.size());
355 std::vector<int> ParameterSet::getParameter<std::vector<int>>(
std::string const&
name)
const;
361 long long ParameterSet::getParameter<long long>(
std::string const&
name)
const;
364 std::vector<long long> ParameterSet::getParameter<std::vector<long long>>(
std::string const&
name)
const;
370 unsigned int ParameterSet::getParameter<unsigned int>(
std::string const&
name)
const;
373 std::vector<unsigned int> ParameterSet::getParameter<std::vector<unsigned int>>(
std::string const&
name)
const;
379 unsigned long long ParameterSet::getParameter<unsigned long long>(
std::string const&
name)
const;
382 std::vector<unsigned long long> ParameterSet::getParameter<std::vector<unsigned long long>>(
389 double ParameterSet::getParameter<double>(
std::string const&
name)
const;
392 std::vector<double> ParameterSet::getParameter<std::vector<double>>(
std::string const&
name)
const;
401 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string>>(
std::string const&
name)
const;
407 FileInPath ParameterSet::getParameter<FileInPath>(
std::string const&
name)
const;
412 std::vector<std::string> ParameterSet::getParameterNamesForType<FileInPath>(
bool trackiness)
const;
424 std::vector<InputTag> ParameterSet::getParameter<std::vector<InputTag>>(
std::string const&
name)
const;
436 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag>>(
std::string const&
name)
const;
442 EventID ParameterSet::getParameter<EventID>(
std::string const&
name)
const;
448 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID>>(
std::string const&
name)
const;
454 LuminosityBlockID ParameterSet::getParameter<LuminosityBlockID>(
std::string const&
name)
const;
460 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID>>(
467 EventRange ParameterSet::getParameter<EventRange>(
std::string const&
name)
const;
473 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange>>(
std::string const&
name)
const;
485 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange>>(
527 bool ParameterSet::getUntrackedParameter<bool>(
std::string const&
name,
bool const& defaultValue)
const;
530 bool ParameterSet::getUntrackedParameter<bool>(
std::string const&
name)
const;
536 int ParameterSet::getUntrackedParameter<int>(
std::string const&
name,
int const& defaultValue)
const;
539 int ParameterSet::getUntrackedParameter<int>(
std::string const&
name)
const;
542 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
std::string const&
name,
543 std::vector<int>
const& defaultValue)
const;
546 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
std::string const&
name)
const;
552 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
std::string const&
name,
553 unsigned int const& defaultValue)
const;
556 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
std::string const&
name)
const;
559 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
560 std::string const&
name, std::vector<unsigned int>
const& defaultValue)
const;
563 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
570 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
571 std::string const&
name,
unsigned long long const& defaultValue)
const;
574 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
std::string const&
name)
const;
577 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long>>(
578 std::string const&
name, std::vector<unsigned long long>
const& defaultValue)
const;
581 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long>>(
588 long long ParameterSet::getUntrackedParameter<long long>(
std::string const&
name,
589 long long const& defaultValue)
const;
592 long long ParameterSet::getUntrackedParameter<long long>(
std::string const&
name)
const;
595 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
596 std::string const&
name, std::vector<long long>
const& defaultValue)
const;
599 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
std::string const&
name)
const;
605 double ParameterSet::getUntrackedParameter<double>(
std::string const&
name,
double const& defaultValue)
const;
608 double ParameterSet::getUntrackedParameter<double>(
std::string const&
name)
const;
611 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double>>(
612 std::string const&
name, std::vector<double>
const& defaultValue)
const;
615 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double>>(
std::string const&
name)
const;
628 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string>>(
629 std::string const&
name, std::vector<std::string>
const& defaultValue)
const;
632 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string>>(
std::string const&
name)
const;
638 FileInPath ParameterSet::getUntrackedParameter<FileInPath>(
std::string const&
name,
639 FileInPath
const& defaultValue)
const;
642 FileInPath ParameterSet::getUntrackedParameter<FileInPath>(
std::string const&
name)
const;
654 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
655 std::string const&
name, std::vector<InputTag>
const& defaultValue)
const;
658 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
std::string const&
name)
const;
664 EventID ParameterSet::getUntrackedParameter<EventID>(
std::string const&
name, EventID
const& defaultValue)
const;
667 EventID ParameterSet::getUntrackedParameter<EventID>(
std::string const&
name)
const;
670 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
671 std::string const&
name, std::vector<EventID>
const& defaultValue)
const;
673 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
std::string const&
name)
const;
679 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
std::string const&
name,
680 LuminosityBlockID
const& defaultValue)
const;
683 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
std::string const&
name)
const;
686 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
687 std::string const&
name, std::vector<LuminosityBlockID>
const& defaultValue)
const;
689 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
696 EventRange ParameterSet::getUntrackedParameter<EventRange>(
std::string const&
name,
697 EventRange
const& defaultValue)
const;
700 EventRange ParameterSet::getUntrackedParameter<EventRange>(
std::string const&
name)
const;
703 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
704 std::string const&
name, std::vector<EventRange>
const& defaultValue)
const;
706 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
std::string const&
name)
const;
719 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange>>(
720 std::string const&
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const;
722 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange>>(
730 bool ParameterSet::getParameter<bool>(
char const*
name)
const;
736 int ParameterSet::getParameter<int>(
char const*
name)
const;
739 std::vector<int> ParameterSet::getParameter<std::vector<int>>(
char const*
name)
const;
745 long long ParameterSet::getParameter<long long>(
char const*
name)
const;
748 std::vector<long long> ParameterSet::getParameter<std::vector<long long>>(
char const*
name)
const;
754 unsigned int ParameterSet::getParameter<unsigned int>(
char const*
name)
const;
757 std::vector<unsigned int> ParameterSet::getParameter<std::vector<unsigned int>>(
char const*
name)
const;
763 unsigned long long ParameterSet::getParameter<unsigned long long>(
char const*
name)
const;
766 std::vector<unsigned long long> ParameterSet::getParameter<std::vector<unsigned long long>>(
char const*
name)
const;
772 double ParameterSet::getParameter<double>(
char const*
name)
const;
775 std::vector<double> ParameterSet::getParameter<std::vector<double>>(
char const*
name)
const;
781 std::string ParameterSet::getParameter<std::string>(
char const*
name)
const;
784 std::vector<std::string> ParameterSet::getParameter<std::vector<std::string>>(
char const*
name)
const;
790 FileInPath ParameterSet::getParameter<FileInPath>(
char const*
name)
const;
796 InputTag ParameterSet::getParameter<InputTag>(
char const*
name)
const;
802 std::vector<InputTag> ParameterSet::getParameter<std::vector<InputTag>>(
char const*
name)
const;
808 ESInputTag ParameterSet::getParameter<ESInputTag>(
char const*
name)
const;
814 std::vector<ESInputTag> ParameterSet::getParameter<std::vector<ESInputTag>>(
char const*
name)
const;
820 EventID ParameterSet::getParameter<EventID>(
char const*
name)
const;
826 std::vector<EventID> ParameterSet::getParameter<std::vector<EventID>>(
char const*
name)
const;
832 LuminosityBlockID ParameterSet::getParameter<LuminosityBlockID>(
char const*
name)
const;
838 std::vector<LuminosityBlockID> ParameterSet::getParameter<std::vector<LuminosityBlockID>>(
char const*
name)
const;
844 EventRange ParameterSet::getParameter<EventRange>(
char const*
name)
const;
850 std::vector<EventRange> ParameterSet::getParameter<std::vector<EventRange>>(
char const*
name)
const;
862 std::vector<LuminosityBlockRange> ParameterSet::getParameter<std::vector<LuminosityBlockRange>>(
863 char const*
name)
const;
869 ParameterSet ParameterSet::getParameter<ParameterSet>(
char const*
name)
const;
880 bool ParameterSet::getUntrackedParameter<bool>(
char const*
name,
bool const& defaultValue)
const;
883 bool ParameterSet::getUntrackedParameter<bool>(
char const*
name)
const;
889 int ParameterSet::getUntrackedParameter<int>(
char const*
name,
int const& defaultValue)
const;
892 int ParameterSet::getUntrackedParameter<int>(
char const*
name)
const;
895 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
char const*
name,
896 std::vector<int>
const& defaultValue)
const;
899 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
char const*
name)
const;
905 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name,
906 unsigned int const& defaultValue)
const;
909 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name)
const;
912 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
913 char const*
name, std::vector<unsigned int>
const& defaultValue)
const;
916 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
char const*
name)
const;
922 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
923 char const*
name,
unsigned long long const& defaultValue)
const;
926 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
char const*
name)
const;
929 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long>>(
930 char const*
name, std::vector<unsigned long long>
const& defaultValue)
const;
933 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long>>(
934 char const*
name)
const;
940 long long ParameterSet::getUntrackedParameter<long long>(
char const*
name,
long long const& defaultValue)
const;
943 long long ParameterSet::getUntrackedParameter<long long>(
char const*
name)
const;
946 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
947 char const*
name, std::vector<long long>
const& defaultValue)
const;
950 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
char const*
name)
const;
956 double ParameterSet::getUntrackedParameter<double>(
char const*
name,
double const& defaultValue)
const;
959 double ParameterSet::getUntrackedParameter<double>(
char const*
name)
const;
962 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double>>(
963 char const*
name, std::vector<double>
const& defaultValue)
const;
966 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double>>(
char const*
name)
const;
975 std::string ParameterSet::getUntrackedParameter<std::string>(
char const*
name)
const;
978 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string>>(
979 char const*
name, std::vector<std::string>
const& defaultValue)
const;
982 std::vector<std::string> ParameterSet::getUntrackedParameter<std::vector<std::string>>(
char const*
name)
const;
988 FileInPath ParameterSet::getUntrackedParameter<FileInPath>(
char const*
name, FileInPath
const& defaultValue)
const;
991 FileInPath ParameterSet::getUntrackedParameter<FileInPath>(
char const*
name)
const;
997 InputTag ParameterSet::getUntrackedParameter<InputTag>(
char const*
name,
InputTag const& defaultValue)
const;
1000 InputTag ParameterSet::getUntrackedParameter<InputTag>(
char const*
name)
const;
1003 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
1004 char const*
name, std::vector<InputTag>
const& defaultValue)
const;
1007 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
char const*
name)
const;
1013 EventID ParameterSet::getUntrackedParameter<EventID>(
char const*
name, EventID
const& defaultValue)
const;
1016 EventID ParameterSet::getUntrackedParameter<EventID>(
char const*
name)
const;
1019 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
1020 char const*
name, std::vector<EventID>
const& defaultValue)
const;
1022 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
char const*
name)
const;
1028 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
char const*
name,
1029 LuminosityBlockID
const& defaultValue)
const;
1032 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
char const*
name)
const;
1035 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
1036 char const*
name, std::vector<LuminosityBlockID>
const& defaultValue)
const;
1038 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
1039 char const*
name)
const;
1045 EventRange ParameterSet::getUntrackedParameter<EventRange>(
char const*
name, EventRange
const& defaultValue)
const;
1048 EventRange ParameterSet::getUntrackedParameter<EventRange>(
char const*
name)
const;
1051 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
1052 char const*
name, std::vector<EventRange>
const& defaultValue)
const;
1054 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
char const*
name)
const;
1067 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange>>(
1068 char const*
name, std::vector<LuminosityBlockRange>
const& defaultValue)
const;
1070 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange>>(
1071 char const*
name)
const;
1077 ParameterSet ParameterSet::getUntrackedParameter<ParameterSet>(
char const*
name,
1085 ParameterSet ParameterSet::getUntrackedParameter<ParameterSet>(
char const*
name)
const;
1091 VParameterSet ParameterSet::getUntrackedParameter<VParameterSet>(
char const*
name,
1095 VParameterSet ParameterSet::getUntrackedParameter<VParameterSet>(
char const*
name)
const;
1105 std::vector<std::string> ParameterSet::getParameterNamesForType<ParameterSet>(
bool trackiness)
const;
1108 std::vector<std::string> ParameterSet::getParameterNamesForType<VParameterSet>(
bool trackiness)
const;