CMS 3D CMS Logo

Classes | Namespaces | Macros | Typedefs | Enumerations
CSCDQM_Configuration.h File Reference
#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/framework/StdOutFormatTarget.hpp>
#include <xercesc/dom/DOM.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include "boost/tuple/tuple.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 "CSCDQM_MonitorObjectProvider.h"
#include "CSCDQM_Exception.h"
#include "CSCDQM_Utility.h"
#include "CSCDQM_Logger.h"

Go to the source code of this file.

Classes

struct  cscdqm::ChamberCounterKeyType
 Chamber Counters key type. More...
 
class  cscdqm::Configuration
 CSCDQM Framework Global Configuration. More...
 
struct  cscdqm::MOFilterItem
 MO filter Item definition (loaded from XML/PSet) More...
 

Namespaces

 cscdqm
 

Macros

#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_SETTER_MACRO(r, data, i, elem)
 
#define CONFIG_PARAMETERS_SEQ
 
#define CONFIG_PARAMETERS_SEQ_LEN   4
 
#define SEPFIELD
 
#define STATFIELD(caption, value, units)
 

Typedefs

typedef std::map< ChamberCounterType, uint32_t > cscdqm::ChamberCounterMapType
 
typedef boost::multi_index_container< ChamberCounterKeyType, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::composite_key< ChamberCounterKeyType, boost::multi_index::member< ChamberCounterKeyType, HwId,&ChamberCounterKeyType::crateId >, boost::multi_index::member< ChamberCounterKeyType, HwId,&ChamberCounterKeyType::dmbId > > > > > cscdqm::ChamberMapCounterMapType
 

Enumerations

enum  cscdqm::ChamberCounterType {
  cscdqm::DMB_EVENTS, cscdqm::BAD_EVENTS, cscdqm::DMB_TRIGGERS, cscdqm::ALCT_TRIGGERS,
  cscdqm::CLCT_TRIGGERS, cscdqm::CFEB_TRIGGERS, cscdqm::EVENT_DISPLAY_PLOT
}
 Chamber level counter types. More...
 

Macro Definition Documentation

#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);

Parameter Default value definition (in constructor)

Definition at line 121 of file CSCDQM_Configuration.h.

Referenced by cscdqm::Configuration::init().

#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);

Global Parameter Manipulation macros.Parameter as class property definition

Definition at line 117 of file CSCDQM_Configuration.h.

#define CONFIG_PARAMETER_GETTER_MACRO (   r,
  data,
  i,
  elem 
)
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); \
}
#define CONFIG_PARAMETERS_SEQ_LEN
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
T get(const Candidate &c)
Definition: component.h:55

Parameter Getter method

Definition at line 125 of file CSCDQM_Configuration.h.

#define CONFIG_PARAMETER_SETTER_MACRO (   r,
  data,
  i,
  elem 
)
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; \
}
#define CONFIG_PARAMETERS_SEQ_LEN
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19

Parameter Setter method

Definition at line 131 of file CSCDQM_Configuration.h.

#define CONFIG_PARAMETERS_SEQ

Sequence of Global Parameters. Add new line or edit existing in form: (( type (C++), name (upper case), default value, "description" )) \

Definition at line 72 of file CSCDQM_Configuration.h.

Referenced by cscdqm::Configuration::init(), and cscdqm::Configuration::~Configuration().

#define CONFIG_PARAMETERS_SEQ_LEN   4

Headers for Global DQM Only Length of Global Parameter sequence

Definition at line 66 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: logger.py:1

Statistics separator definition

Definition at line 449 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 (((double) value) < 0) { \
logger << "NA"; \
} else { \
logger << value; \
} \
logger << std::setiosflags(std::ios::left) << std::setw(2) << units; \
logger << std::endl;
Definition: value.py:1
Definition: logger.py:1
TString units(TString variable, Char_t axis)

Statistics field definition

Definition at line 436 of file CSCDQM_Configuration.h.

Referenced by cscdqm::Configuration::printStats().