52 table_[
'F'] =
"FileInPath";
59 table_[
'm'] =
"VLuminosityBlockID";
60 table_[
'M'] =
"LuminosityBlockID";
61 table_[
'a'] =
"VLuminosityBlockRange";
62 table_[
'A'] =
"LuminosityBlockRange";
63 table_[
'r'] =
"VEventRange";
64 table_[
'R'] =
"EventRange";
66 for (CodeMap::const_iterator itCode =
table_.begin(), itCodeEnd =
table_.end(); itCode != itCodeEnd; ++itCode) {
81 assert(tracked ==
'+' || tracked ==
'-');
90 throwEntryError(
"bool",
rep);
94 std::vector<bool>
val;
96 throwEntryError(
"vector<bool>",
rep);
102 throwEntryError(
"int",
rep);
106 std::vector<int>
val;
108 throwEntryError(
"vector<int>",
rep);
114 throwEntryError(
"unsigned int",
rep);
118 std::vector<unsigned>
val;
120 throwEntryError(
"vector<unsigned int>",
rep);
126 throwEntryError(
"int64",
rep);
130 std::vector<int>
val;
132 throwEntryError(
"vector<int64>",
rep);
138 throwEntryError(
"unsigned int64",
rep);
142 std::vector<unsigned>
val;
144 throwEntryError(
"vector<unsigned int64>",
rep);
150 throwEntryError(
"string",
rep);
154 std::vector<std::string>
val;
156 throwEntryError(
"vector<string>",
rep);
162 throwEntryError(
"FileInPath",
rep);
168 throwEntryError(
"InputTag",
rep);
172 std::vector<InputTag>
val;
174 throwEntryError(
"VInputTag",
rep);
180 throwEntryError(
"ESInputTag",
rep);
184 std::vector<ESInputTag>
val;
186 throwEntryError(
"VESInputTag",
rep);
192 throwEntryError(
"EventID",
rep);
196 std::vector<EventID>
val;
198 throwEntryError(
"VEventID",
rep);
204 throwEntryError(
"LuminosityBlockID",
rep);
208 std::vector<LuminosityBlockID>
val;
210 throwEntryError(
"VLuminosityBlockID",
rep);
216 throwEntryError(
"double",
rep);
220 std::vector<double>
val;
222 throwEntryError(
"vector<double>",
rep);
228 throwEntryError(
"ParameterSet",
rep);
232 std::vector<ParameterSet>
val;
234 throwEntryError(
"vector<ParameterSet>",
rep);
240 throwEntryError(
"LuminosityBlockRange",
rep);
244 std::vector<LuminosityBlockRange>
val;
246 throwEntryError(
"VLuminosityBlockRange",
rep);
252 throwEntryError(
"EventRange",
rep);
256 std::vector<EventRange>
val;
258 throwEntryError(
"VEventRange",
rep);
263 assert(
"Invalid type code" ==
nullptr);
278 : name_(name),
rep(),
type(
'B'), tracked(is_tracked ?
'+' :
'-') {
567 Type2Code::const_iterator itFound = sTypeTranslations.
type2Code_.find(type);
568 if (itFound == sTypeTranslations.
type2Code_.end()) {
572 codedString += itFound->second;
574 codedString +=
value;
577 if (!
fromString(codedString.begin(), codedString.end())) {
587 Type2Code::const_iterator itFound = sTypeTranslations.
type2Code_.find(type);
588 if (itFound == sTypeTranslations.
type2Code_.end()) {
592 codedString += itFound->second;
595 std::vector<std::string>::const_iterator
i = value.begin();
596 std::vector<std::string>::const_iterator
e = value.end();
599 for (; i !=
e; ++
i) {
607 if (!
fromString(codedString.begin(), codedString.end())) {
643 if (static_cast<unsigned int>(e - b) < 4u || b[2] !=
'(' || e[-1] !=
')')
688 std::vector<int>
val;
712 std::vector<long long>
val;
736 std::vector<unsigned>
val;
748 unsigned long long val;
760 std::vector<unsigned long long>
val;
784 std::vector<double>
val;
808 std::vector<std::string>
val;
844 std::vector<InputTag>
val;
868 std::vector<ESInputTag>
val;
892 std::vector<EventID>
val;
916 std::vector<LuminosityBlockID>
val;
939 std::vector<LuminosityBlockRange>
val;
963 std::vector<EventRange>
val;
988 std::vector<ParameterSet>
val;
995 os << sTypeTranslations.
table_[entry.
typeCode()] <<
" " << (entry.
isTracked() ?
"tracked " :
"untracked ") <<
" = ";
1008 std::vector<ParameterSet> whole = entry.
getVPSet();
1009 std::vector<ParameterSet>::const_iterator
i = whole.begin();
1010 std::vector<ParameterSet>::const_iterator
e = whole.end();
1013 os <<
"{" << std::endl;
1014 for (; i !=
e; ++
i) {
1018 if (!whole.empty()) {
1033 for (std::vector<std::string>::const_iterator it = strings.begin(), itEnd = strings.end(); it != itEnd; ++it) {
1034 os << start << *it <<
"'";
1055 for (std::vector<InputTag>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it) {
1056 os << start << it->encode();
1069 for (std::vector<ESInputTag>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it) {
1070 os << start << it->encode();
1089 <<
" but declared as " << sTypeTranslations.
table_[
type];
1094 << badRep <<
" to value of type " << expectedType <<
" ";
std::vector< unsigned > getVUInt32() const
std::vector< double > getVDouble() const
std::vector< unsigned long long > getVUInt64() const
std::vector< LuminosityBlockID > getVLuminosityBlockID() const
ParameterSet getPSet() const
unsigned getUInt32() const
bool encode(std::string &, bool)
std::vector< InputTag > getVInputTag() const
Entry(std::string const &name, bool val, bool is_tracked)
void throwValueError(char const *expectedType) const
LuminosityBlockRange getLuminosityBlockRange() const
std::vector< EventID > getVEventID() const
size_t sizeOfString() const
void throwEntryError(char const *expectedType, std::string const &badRep) const
unsigned long long getUInt64() const
long long getInt64() const
std::vector< ParameterSet > getVPSet() const
std::map< std::string, char > Type2Code
friend std::ostream & operator<<(std::ostream &ost, Entry const &entry)
bool decode(bool &, std::string const &)
InputTag getInputTag() const
void throwEncodeError(char const *type) const
std::vector< long long > getVInt64() const
std::vector< ESInputTag > getVESInputTag() const
std::vector< EventRange > getVEventRange() const
FileInPath getFileInPath() const
bool fromString(std::string::const_iterator b, std::string::const_iterator e)
std::vector< int > getVInt32() const
LuminosityBlockID getLuminosityBlockID() const
EventRange getEventRange() const
std::vector< LuminosityBlockRange > getVLuminosityBlockRange() const
ESInputTag getESInputTag() const
void toDigest(cms::Digest &digest) const
std::string toString() const
std::vector< std::string > getVString() const
std::string getString() const
std::map< std::string, char > type2Code_
std::vector< std::string > CodeMap
static pset::TypeTrans const sTypeTranslations
void append(std::string const &s)
EventID getEventID() const