56 table_[
'F'] =
"FileInPath";
63 table_[
'm'] =
"VLuminosityBlockID";
64 table_[
'M'] =
"LuminosityBlockID";
65 table_[
'a'] =
"VLuminosityBlockRange";
66 table_[
'A'] =
"LuminosityBlockRange";
67 table_[
'r'] =
"VEventRange";
68 table_[
'R'] =
"EventRange";
70 for(CodeMap::const_iterator itCode =
table_.begin(), itCodeEnd =
table_.end();
102 std::vector<bool> val;
112 std::vector<int> val;
122 std::vector<unsigned> val;
132 std::vector<int> val;
142 std::vector<unsigned> val;
152 std::vector<std::string> val;
167 std::vector<InputTag> val;
177 std::vector<ESInputTag> val;
187 std::vector<EventID> val;
197 std::vector<LuminosityBlockID> val;
207 std::vector<double> val;
217 std::vector<ParameterSet> val;
227 std::vector<LuminosityBlockRange> val;
237 std::vector<EventRange> val;
243 assert (
"Invalid type code" == 0);
258 name_(name), rep(),
type(
'B'), tracked(is_tracked ?
'+' :
'-') {
267 name_(name), rep(),
type(
'I'), tracked(is_tracked ?
'+' :
'-') {
276 name_(name), rep(),
type(
'i'), tracked(is_tracked ?
'+' :
'-') {
285 name_(name), rep(),
type(
'U'), tracked(is_tracked ?
'+' :
'-') {
294 name_(name), rep(),
type(
'u'), tracked(is_tracked ?
'+' :
'-') {
303 name_(name), rep(),
type(
'L'), tracked(is_tracked ?
'+' :
'-') {
311 Entry::Entry(std::string
const&
name, std::vector<long long>
const& val,
bool is_tracked) :
312 name_(name), rep(),
type(
'l'), tracked(is_tracked ?
'+' :
'-') {
321 name_(name), rep(),
type(
'X'), tracked(is_tracked ?
'+' :
'-') {
329 Entry::Entry(std::string
const&
name, std::vector<unsigned long long>
const& val,
bool is_tracked) :
330 name_(name), rep(),
type(
'x'), tracked(is_tracked ?
'+' :
'-') {
339 name_(name), rep(),
type(
'D'), tracked(is_tracked ?
'+' :
'-') {
348 name_(name), rep(),
type(
'd'), tracked(is_tracked ?
'+' :
'-') {
357 name_(name), rep(),
type(
'S'), tracked(is_tracked ?
'+' :
'-') {
365 Entry::Entry(std::string
const&
name, std::vector<std::string>
const& val,
bool is_tracked) :
366 name_(name), rep(),
type(
's'), tracked(is_tracked ?
'+' :
'-') {
375 name_(name), rep(),
type(
'F'), tracked(is_tracked ?
'+' :
'-') {
384 name_(name), rep(),
type(
't'), tracked(is_tracked ?
'+' :
'-') {
394 name_(name), rep(),
type(
'v'), tracked(is_tracked ?
'+' :
'-') {
412 Entry::Entry(std::string
const&
name, std::vector<ESInputTag>
const& val,
bool is_tracked) :
423 name_(name), rep(),
type(
'E'), tracked(is_tracked ?
'+' :
'-') {
433 name_(name), rep(),
type(
'e'), tracked(is_tracked ?
'+' :
'-') {
444 name_(name), rep(),
type(
'M'), tracked(is_tracked ?
'+' :
'-') {
453 Entry::Entry(std::string
const&
name, std::vector<LuminosityBlockID>
const& val,
bool is_tracked) :
454 name_(name), rep(),
type(
'm'), tracked(is_tracked ?
'+' :
'-') {
463 name_(name), rep(),
type(
'A'), tracked(is_tracked ?
'+' :
'-') {
472 Entry::Entry(std::string
const&
name, std::vector<LuminosityBlockRange>
const& val,
bool is_tracked) :
473 name_(name), rep(),
type(
'a'), tracked(is_tracked ?
'+' :
'-') {
482 name_(name), rep(),
type(
'R'), tracked(is_tracked ?
'+' :
'-') {
490 Entry::Entry(std::string
const&
name, std::vector<EventRange>
const& val,
bool is_tracked) :
491 name_(name), rep(),
type(
'r'), tracked(is_tracked ?
'+' :
'-') {
501 name_(name), rep(),
type(
'P'), tracked(is_tracked ?
'+' :
'-') {
509 Entry::Entry(std::string
const&
name, std::vector<ParameterSet>
const& val,
bool is_tracked) :
510 name_(name), rep(),
type(
'p'), tracked(is_tracked ?
'+' :
'-') {
519 name_(name), rep(),
type(
'?'), tracked(
'?') {
528 name_(name), rep(), type(
'?'), tracked(
'?') {
529 std::string codedString(is_tracked ?
"-":
"+");
534 <<
"bad type name used for Entry : " <<
type;
537 codedString += itFound->second;
539 codedString +=
value;
542 if(!
fromString(codedString.begin(), codedString.end())) {
544 <<
"bad encoded Entry string " << codedString;
550 std::vector<std::string>
const&
value,
552 name_(name), rep() , type(
'?'), tracked(
'?') {
553 std::string codedString(is_tracked ?
"-":
"+");
555 Type2Code::const_iterator itFound =
559 <<
"bad type name used for Entry : " <<
type;
562 codedString += itFound->second;
565 std::vector<std::string>::const_iterator
i = value.begin();
566 std::vector<std::string>::const_iterator
e = value.end();
567 std::string
const kSeparator(
",");
577 if(!
fromString(codedString.begin(), codedString.end())) {
579 <<
"bad encoded Entry string " << codedString;
618 if(static_cast<unsigned int>(e - b) < 4u || b[2] !=
'(' || e[-1] !=
')')
624 rep = std::string(b+3, e-1);
663 std::vector<int> val;
683 std::vector<long long>
686 std::vector<long long> val;
707 std::vector<unsigned>
710 std::vector<unsigned> val;
722 unsigned long long val;
730 std::vector<unsigned long long>
733 std::vector<unsigned long long> val;
755 std::vector<double> val;
774 std::vector<std::string>
777 std::vector<std::string> val;
809 std::vector<InputTag>
812 std::vector<InputTag> val;
833 std::vector<ESInputTag>
836 std::vector<ESInputTag> val;
858 std::vector<EventID> val;
878 std::vector<LuminosityBlockID>
881 std::vector<LuminosityBlockID> val;
899 std::vector<LuminosityBlockRange>
902 std::vector<LuminosityBlockRange> val;
921 std::vector<EventRange>
924 std::vector<EventRange> val;
944 std::vector<ParameterSet>
947 std::vector<ParameterSet> val;
956 << (entry.
isTracked() ?
"tracked " :
"untracked ") <<
" = ";
969 std::vector<ParameterSet> whole = entry.
getVPSet();
970 std::vector<ParameterSet>::const_iterator
i = whole.begin();
971 std::vector<ParameterSet>::const_iterator
e = whole.end();
972 std::string
start =
"";
973 std::string
const between(
",\n");
974 os <<
"{"<<std::endl;
975 for (; i !=
e; ++
i) {
994 std::string
start =
"'";
995 std::string
const between(
",'");
996 std::vector<std::string> strings = entry.
getVString();
997 for(std::vector<std::string>::const_iterator it = strings.begin(), itEnd = strings.end();
1000 os << start << *it <<
"'";
1021 std::string
start =
"";
1022 std::string
const between(
",");
1024 for(std::vector<InputTag>::const_iterator it = tags.begin(), itEnd = tags.end();
1027 os << start << it->encode();
1038 std::string
start =
"";
1039 std::string
const between(
",");
1041 for(std::vector<ESInputTag>::const_iterator it = tags.begin(), itEnd = tags.end();
1044 os << start << it->encode();
1064 <<
"type of " <<
name_ <<
" is expected to be " << expectedType
1069 std::string
const& badRep)
const {
1071 <<
"can not convert representation of " <<
name_ <<
": "
1073 <<
" to value of type " << expectedType <<
" ";
1078 <<
"can not encode " <<
name_ <<
" as type: " <<
type;
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::pair< std::string, MonitorElement * > entry
std::vector< ParameterSet > getVPSet() const
std::map< std::string, char > Type2Code
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::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
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