Manage collection of histograms, load histogram definitions from XML file and book histograms by calling MonitorObjectProvider routines.
More...
#include <CSCDQM_Collection.h>
|
static const bool | checkHistoValue (const CoHistoProps &h, const std::string &name, std::string &value) |
| Find string histogram value in map. More...
|
|
static const bool | checkHistoValue (const CoHistoProps &h, const std::string &name, int &value) |
| get Histogram int value out of the map and return boolean result More...
|
|
static const bool | checkHistoValue (const CoHistoProps &h, const std::string name, double &value) |
| get Histogram double value out of the map and return boolean result More...
|
|
static std::string & | getHistoValue (const CoHistoProps &h, const std::string &name, std::string &value, const std::string &def_value="") |
| Find string histogram value in map. More...
|
|
static int & | getHistoValue (const CoHistoProps &h, const std::string &name, int &value, const int &def_value=0) |
| get Histogram int value out of the map and More...
|
|
static double & | getHistoValue (const CoHistoProps &h, const std::string name, double &value, const int def_value=0.0) |
| get Histogram double value out of the map and More...
|
|
static void | getNodeProperties (DOMNode *&node, CoHistoProps &hp) |
| Extract and write single histogram properties from XML node to map. More...
|
|
static const int | ParseAxisLabels (const std::string &s, std::map< int, std::string > &labels) |
| Parse Axis label string and return values in vector. More...
|
|
Manage collection of histograms, load histogram definitions from XML file and book histograms by calling MonitorObjectProvider routines.
Definition at line 73 of file CSCDQM_Collection.h.
Constructor.
- Parameters
-
p_config | Pointer to Global configuration object |
Definition at line 28 of file CSCDQM_Collection.cc.
void cscdqm::Collection::book |
( |
const HistoDef & |
h, |
|
|
const CoHistoProps & |
p, |
|
|
const std::string & |
folder |
|
) |
| const |
|
private |
Book histogram.
- Parameters
-
h | Histogram definition to book |
p | Map of Histogram properties |
folder | folder to book histograms to |
- Returns
Check if this histogram is included in booking by filters
Put histogram into cache
Definition at line 418 of file CSCDQM_Collection.cc.
void cscdqm::Collection::bookCSCHistos |
( |
const HwId |
crateId, |
|
|
const HwId |
dmbId |
|
) |
| const |
void cscdqm::Collection::bookCSCHistos |
( |
const HistoId |
hid, |
|
|
const HwId |
crateId, |
|
|
const HwId |
dmbId, |
|
|
const HwId |
addId |
|
) |
| const |
Book Chamber Histogram with additional identifier (On Demand)
- Parameters
-
hid | Histogram Identifier |
crateId | CSC Crate Id |
dmbId | CSC DMB Id |
addId | CSC Additional identifier, ex. Layer Id, ALCT Id, etc. |
- Returns
Definition at line 400 of file CSCDQM_Collection.cc.
void cscdqm::Collection::bookDDUHistos |
( |
const HwId |
dduId | ) |
const |
void cscdqm::Collection::bookEMUHistos |
( |
| ) |
const |
void cscdqm::Collection::bookFEDHistos |
( |
const HwId |
fedId | ) |
const |
const bool cscdqm::Collection::checkHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string & |
name, |
|
|
std::string & |
value |
|
) |
| |
|
staticprivate |
Find string histogram value in map.
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
- Returns
- true if parameter found and filled, false - otherwise
Definition at line 176 of file CSCDQM_Collection.cc.
const bool cscdqm::Collection::checkHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string & |
name, |
|
|
int & |
value |
|
) |
| |
|
staticprivate |
get Histogram int value out of the map and return boolean result
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
- Returns
- true if parameter found and filled, false - otherwise
Definition at line 192 of file CSCDQM_Collection.cc.
const bool cscdqm::Collection::checkHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string |
name, |
|
|
double & |
value |
|
) |
| |
|
staticprivate |
get Histogram double value out of the map and return boolean result
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
- Returns
- true if parameter found and filled, false - otherwise
Definition at line 211 of file CSCDQM_Collection.cc.
std::string & cscdqm::Collection::getHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string & |
name, |
|
|
std::string & |
value, |
|
|
const std::string & |
def_value = "" |
|
) |
| |
|
staticprivate |
Find string histogram value in map.
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
def_value | default value if parameter not found |
- Returns
- pointer to value
Definition at line 230 of file CSCDQM_Collection.cc.
int & cscdqm::Collection::getHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string & |
name, |
|
|
int & |
value, |
|
|
const int & |
def_value = 0 |
|
) |
| |
|
staticprivate |
get Histogram int value out of the map and
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
def_value | default value if parameter not found |
- Returns
- pointer to value
Definition at line 245 of file CSCDQM_Collection.cc.
double & cscdqm::Collection::getHistoValue |
( |
const CoHistoProps & |
h, |
|
|
const std::string |
name, |
|
|
double & |
value, |
|
|
const int |
def_value = 0.0 |
|
) |
| |
|
staticprivate |
get Histogram double value out of the map and
- Parameters
-
h | Histogram map |
name | parameter name |
value | handler for parameter value |
def_value | default value if parameter not found |
- Returns
- pointer to value
Definition at line 260 of file CSCDQM_Collection.cc.
Extract and write single histogram properties from XML node to map.
- Parameters
-
node | XML node |
p | List of properties to fill |
- Returns
Definition at line 149 of file CSCDQM_Collection.cc.
const bool cscdqm::Collection::isOnDemand |
( |
const HistoName & |
name | ) |
const |
Check if the histogram is on demand (by histogram name)
- Parameters
-
name | name of the histogram |
- Returns
- true if this histogram is on demand, false - otherwise
Definition at line 599 of file CSCDQM_Collection.cc.
void cscdqm::Collection::load |
( |
| ) |
|
Load XML file and fill definition map(s)
- Returns
Load histogram definition
Load histogram
Definition at line 37 of file CSCDQM_Collection.cc.
const int cscdqm::Collection::ParseAxisLabels |
( |
const std::string & |
s, |
|
|
std::map< int, std::string > & |
labels |
|
) |
| |
|
staticprivate |
Parse Axis label string and return values in vector.
- Parameters
-
s | source string to parse |
labels | pointer to result vector |
- Returns
- number of labels found
Definition at line 273 of file CSCDQM_Collection.cc.
void cscdqm::Collection::printCollection |
( |
| ) |
const |
Print collection of available histograms and their parameters.
- Returns
Definition at line 616 of file CSCDQM_Collection.cc.