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>
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>>(
530 bool ParameterSet::getUntrackedParameter<bool>(
std::string const&
name)
const;
539 int ParameterSet::getUntrackedParameter<int>(
std::string const&
name)
const;
542 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
std::string const&
name,
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,
556 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
std::string const&
name)
const;
559 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
563 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
570 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
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>>(
581 std::vector<unsigned long long> ParameterSet::getUntrackedParameter<std::vector<unsigned long long>>(
588 long long ParameterSet::getUntrackedParameter<long long>(
std::string const&
name,
592 long long ParameterSet::getUntrackedParameter<long long>(
std::string const&
name)
const;
595 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
599 std::vector<long long> ParameterSet::getUntrackedParameter<std::vector<long long>>(
std::string const&
name)
const;
608 double ParameterSet::getUntrackedParameter<double>(
std::string const&
name)
const;
611 std::vector<double> ParameterSet::getUntrackedParameter<std::vector<double>>(
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>>(
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,
642 FileInPath ParameterSet::getUntrackedParameter<FileInPath>(
std::string const&
name)
const;
654 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
658 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
std::string const&
name)
const;
667 EventID ParameterSet::getUntrackedParameter<EventID>(
std::string const&
name)
const;
670 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
673 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
std::string const&
name)
const;
679 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
std::string const&
name,
683 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
std::string const&
name)
const;
686 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
689 std::vector<LuminosityBlockID> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockID>>(
696 EventRange ParameterSet::getUntrackedParameter<EventRange>(
std::string const&
name,
700 EventRange ParameterSet::getUntrackedParameter<EventRange>(
std::string const&
name)
const;
703 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
706 std::vector<EventRange> ParameterSet::getUntrackedParameter<std::vector<EventRange>>(
std::string const&
name)
const;
719 std::vector<LuminosityBlockRange> ParameterSet::getUntrackedParameter<std::vector<LuminosityBlockRange>>(
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,
899 std::vector<int> ParameterSet::getUntrackedParameter<std::vector<int>>(
char const*
name)
const;
905 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name,
909 unsigned int ParameterSet::getUntrackedParameter<unsigned int>(
char const*
name)
const;
912 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
916 std::vector<unsigned int> ParameterSet::getUntrackedParameter<std::vector<unsigned int>>(
char const*
name)
const;
922 unsigned long long ParameterSet::getUntrackedParameter<unsigned long long>(
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>>(
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>>(
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>>(
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;
1000 InputTag ParameterSet::getUntrackedParameter<InputTag>(
char const*
name)
const;
1003 std::vector<InputTag> ParameterSet::getUntrackedParameter<std::vector<InputTag>>(
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>>(
1022 std::vector<EventID> ParameterSet::getUntrackedParameter<std::vector<EventID>>(
char const*
name)
const;
1028 LuminosityBlockID ParameterSet::getUntrackedParameter<LuminosityBlockID>(
char const*
name,
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>>(
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;
std::vector< edm::ParameterSet > GetType
constexpr bool operator==(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void setID(ParameterSetID const &id)
ParameterSetID trackedID() const
T getParameter(std::string const &) const
table const & tbl() const
std::unique_ptr< ParameterSet > popParameterSet(std::string const &name)
std::map< std::string, ParameterSetEntry > psettable
bool fromString(std::string const &)
ret
prodAgent to be discontinued
std::vector< ParameterSet > VParameterSet
std::string toString() const
void toStringImp(std::string &, bool useAll) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
int exceptions(int argc, char *argv[])
ParameterSet const & getParameterSet(std::string const &) const
ParameterSet & operator=(ParameterSet const &other)=default
size_t getParameterSetVectorNames(std::vector< std::string > &output, bool trackiness=true) const
ParameterSet trackedPart() const
VParameterSetEntry const * retrieveUntrackedVParameterSet(std::string const &) const
VParameterSetEntry const & retrieveVParameterSet(std::string const &) const
void insert(bool ok_to_replace, char const *, Entry const &)
void addUntrackedParameter(char const *name, T const &value)
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const std::string names[nVars_]
void swap(Association< C > &lhs, Association< C > &rhs)
size_t getParameterSetNames(std::vector< std::string > &output, bool trackiness=true) const
TEMPL(T2) struct Divides void
Entry const * retrieveUntracked(char const *) const
void augment(ParameterSet const &from)
void eraseOrSetUntrackedParameterSet(std::string const &name)
T getUntrackedParameter(std::string const &, T const &) const
void swap(ParameterSet &other)
void allToString(std::string &result) const
ParameterSetID id() const
VParameterSet getUntrackedParameterSetVector(std::string const &name, VParameterSet const &defaultValue) const
void copyFrom(ParameterSet const &from, std::string const &name)
static std::array< T, N > convert(std::vector< T > iVec, std::string const &iName)
ParameterSet const & registerIt()
std::vector< FileInPath >::size_type getAllFileInPaths(std::vector< FileInPath > &output) const
VParameterSetEntry * getPSetVectorForUpdate(std::string const &name)
Entry const & retrieve(char const *) const
void addParameter(std::string const &name, T const &value)
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
static auto convert(std::vector< edm::ParameterSet > vpset, std::string const &iName)
void insertVParameterSet(bool okay_to_replace, std::string const &name, VParameterSetEntry const &entry)
VParameterSetEntry const * retrieveUnknownVParameterSet(std::string const &) const
ParameterSetEntry const * retrieveUntrackedParameterSet(std::string const &) const
constexpr bool operator!=(ELseverityLevel const &e1, ELseverityLevel const &e2) noexcept
void eraseSimpleParameter(std::string const &name)
void copyForModify(ParameterSet const &other)
def convert(infile, ofile)
Hash< ParameterSetType > ParameterSetID
void invalidateRegistration(std::string const &nameOfTracked)
friend std::ostream & operator<<(std::ostream &os, ParameterSet const &pset)
size_t getNamesByCode_(char code, bool trackiness, std::vector< std::string > &output) const
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
Namespace of DDCMS conversion namespace.
static void registerFromString(std::string const &rep)
void addParameter(char const *name, T const &value)
Entry const * retrieveUnknown(char const *) const
void addUntrackedParameter(std::string const &name, T const &value)
void insertParameterSet(bool okay_to_replace, std::string const &name, ParameterSetEntry const &entry)
void deprecatedInputTagWarning(std::string const &name, std::string const &label) const
ParameterSetEntry const * retrieveUnknownParameterSet(std::string const &) const
std::map< std::string, Entry > table
ParameterSet const & getParameterSet(ParameterSetID const &id)
std::vector< ParameterSet > popVParameterSet(std::string const &name)
std::map< std::string, VParameterSetEntry > vpsettable
VParameterSet const & getParameterSetVector(std::string const &name) const
std::string dump(unsigned int indent=0) const
std::string getParameterAsString(std::string const &name) const
bool isRegistered() const
Entry const * getEntryPointerOrThrow_(std::string const &name) const
void throwWrongNumberOfElements(std::string const &iParameterName, size_t iExpected, size_t iGot)
static ParameterSetID emptyParameterSetID()
ParameterSetEntry const & retrieveParameterSet(std::string const &) const
void toDigest(cms::Digest &digest) const
std::vector< std::string > getParameterNames() const
bool isTransientEqual(ParameterSet const &a, ParameterSet const &b)
vpsettable const & vpsetTable() const
ParameterSet * getPSetForUpdate(std::string const &name)
psettable const & psetTable() const
ParameterSet * getPSetForUpdate(std::string const &name, bool &isTracked)