#include <string>
#include <sstream>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOMNodeList.hpp>
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/dom/DOMComment.hpp>
#include <xercesc/sax/ErrorHandler.hpp>
#include <xercesc/sax/SAXParseException.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/dom/DOM.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/comparison/equal.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/timer.hpp>
#include "DQM/CSCMonitorModule/interface/CSCDQM_MonitorObjectProvider.h"
#include "DQM/CSCMonitorModule/interface/CSCDQM_Exception.h"
#include "DQM/CSCMonitorModule/interface/CSCDQM_Utility.h"
#include "DQM/CSCMonitorModule/interface/CSCDQM_Logger.h"
Go to the source code of this file.
Namespaces | |
namespace | cscdqm |
Classes | |
class | cscdqm::Configuration |
Framework configuration. More... | |
struct | cscdqm::MOFilterItem |
Defines | |
#define | CONFIG_PARAMETER_DEFAULT_MACRO(r, data, i, elem) BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem) = BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 2, elem); |
#define | CONFIG_PARAMETER_DEFINE_MACRO(r, data, i, elem) BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem) BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem); |
#define | CONFIG_PARAMETER_GETTER_MACRO(r, data, i, elem) |
#define | CONFIG_PARAMETER_LOADPS_MACRO(r, data, i, elem) BOOST_PP_CAT(set, BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))(ps.getUntrackedParameter<BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem)>(BOOST_PP_STRINGIZE(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem)), BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 2, elem))); |
#define | CONFIG_PARAMETER_LOADXML_MACRO(r, data, i, elem) |
#define | CONFIG_PARAMETER_PRINTXML_MACRO(r, data, i, elem) |
#define | CONFIG_PARAMETER_SETTER_MACRO(r, data, i, elem) |
#define | CONFIG_PARAMETERS_SEQ |
#define | CONFIG_PARAMETERS_SEQ_LEN 4 |
#define | SEPFIELD |
#define | STATFIELD(caption, value, units) |
#define CONFIG_PARAMETER_DEFAULT_MACRO | ( | r, | |||
data, | |||||
i, | |||||
elem | ) | BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem) = BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 2, elem); |
Definition at line 101 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::Configuration().
#define CONFIG_PARAMETER_DEFINE_MACRO | ( | r, | |||
data, | |||||
i, | |||||
elem | ) | BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem) BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem); |
Definition at line 98 of file CSCDQM_Configuration.h.
Value:
const BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem) BOOST_PP_CAT(get, BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))() const { \ return BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem); \ } \
Definition at line 104 of file CSCDQM_Configuration.h.
#define CONFIG_PARAMETER_LOADPS_MACRO | ( | r, | |||
data, | |||||
i, | |||||
elem | ) | BOOST_PP_CAT(set, BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))(ps.getUntrackedParameter<BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem)>(BOOST_PP_STRINGIZE(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem)), BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 2, elem))); |
Definition at line 114 of file CSCDQM_Configuration.h.
Value:
if (nodeName.compare(BOOST_PP_STRINGIZE(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))) == 0) { \ stm >> BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem); \ continue; \ } \
Definition at line 117 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::load().
Value:
{ \ DOMComment* comment = doc->createComment(XERCES_TRANSCODE(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 3, elem))); \ DOMElement* el = doc->createElement(XERCES_TRANSCODE(BOOST_PP_STRINGIZE(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem)))); \ std::string value = toString(config.BOOST_PP_CAT(get, BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))()); \ DOMText* tdata = doc->createTextNode(XERCES_TRANSCODE(value.c_str())); \ el->appendChild(tdata); \ rootElem->appendChild(comment); \ rootElem->appendChild(el); \ } \
Definition at line 123 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::printXML().
Value:
void BOOST_PP_CAT(set, BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem))(BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 0, elem) p) { \ BOOST_PP_TUPLE_ELEM(CONFIG_PARAMETERS_SEQ_LEN, 1, elem) = p; \ } \
Definition at line 109 of file CSCDQM_Configuration.h.
#define CONFIG_PARAMETERS_SEQ |
Definition at line 61 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::Configuration(), cscdqm::Configuration::load(), and cscdqm::Configuration::printXML().
#define CONFIG_PARAMETERS_SEQ_LEN 4 |
Definition at line 59 of file CSCDQM_Configuration.h.
#define SEPFIELD |
Value:
logger << std::setfill('-'); \ logger << std::setw(25) << ""; \ logger << std::setw(10) << ""; \ logger << std::setw(2) << ""; \ logger << std::endl;
Definition at line 293 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::printStats().
#define STATFIELD | ( | caption, | |||
value, | |||||
units | ) |
Value:
logger << std::setfill(' '); \ logger << std::setiosflags(std::ios::right) << std::setw(25) << caption << ": "; \ logger << std::setiosflags(std::ios::right) << std::setw(12); \ if (value < 0) { \ logger << "NA"; \ } else { \ logger << value; \ } \ logger << std::setiosflags(std::ios::left) << std::setw(2) << units; \ logger << std::endl;
Definition at line 282 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Configuration::printStats().