Abstract Base Histogram Definition. More...
#include <CSCDQM_HistoDef.h>
Public Member Functions | |
virtual const HwId | getAddId () const |
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers. | |
virtual const HwId | getCrateId () const |
Get CSC Crate ID. | |
virtual const HwId | getDDUId () const |
Get DDU ID. | |
virtual const HwId | getDMBId () const |
Get CSC DMB ID. | |
virtual const HwId | getFEDId () const |
Get FED ID. | |
const std::string | getFullPath () const |
Get full path of the histogram. It is being constructed by appending path and histogam name. | |
const HistoName & | getHistoName () const |
Get raw histogram name. | |
const HistoId | getId () const |
Get Histogram ID. | |
virtual const std::string | getName () const |
Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter. | |
virtual const std::string | getPath () const |
Get path part of the histogram (used only for DDUs and CSCs) | |
HistoDef (const HistoId p_id) | |
Base constructor. | |
const bool | operator< (const HistoDef &t) const |
Less (<) operator. | |
const HistoDef & | operator= (const HistoDef &t) |
Assignment (=) operator. | |
const bool | operator== (const HistoDef &t) const |
Comparison (==) operator. | |
virtual const std::string | processTitle (const std::string &p_title) const |
Process Title by Adding appropriate ID. | |
virtual | ~HistoDef () |
Base virtual destructor. | |
Static Public Member Functions | |
static const bool | getHistoIdByName (const std::string &p_name, HistoId &p_id) |
Get Histogram ID by name. | |
static const std::string | getHistoKeyById (const HistoId &p_id) |
Get Histogram key name by id. | |
static const std::string | processName (const HistoName &p_name, const HwId p_id) |
Process name by applying ID to d pattern (pattern is stored in REGEXP_ONDEMAND) | |
Private Attributes | |
HistoId | id |
Friends | |
std::ostream & | operator<< (std::ostream &out, const HistoDef &t) |
Printing (<<) operator that prints hisotgram full path. |
Abstract Base Histogram Definition.
Definition at line 62 of file CSCDQM_HistoDef.h.
cscdqm::HistoDef::HistoDef | ( | const HistoId | p_id | ) | [inline] |
Base constructor.
p_hname | Raw histogram name by HistoName |
Definition at line 76 of file CSCDQM_HistoDef.h.
: id(p_id) { }
virtual cscdqm::HistoDef::~HistoDef | ( | ) | [inline, virtual] |
virtual const HwId cscdqm::HistoDef::getAddId | ( | ) | const [inline, virtual] |
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
Reimplemented in cscdqm::CSCHistoDef.
Definition at line 188 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator==(), and cscdqm::Cache::put().
{ return 0; }
virtual const HwId cscdqm::HistoDef::getCrateId | ( | ) | const [inline, virtual] |
Get CSC Crate ID.
Reimplemented in cscdqm::CSCHistoDef.
Definition at line 175 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator==(), and cscdqm::Cache::put().
{ return 0; }
virtual const HwId cscdqm::HistoDef::getDDUId | ( | ) | const [inline, virtual] |
Get DDU ID.
Reimplemented in cscdqm::DDUHistoDef.
Definition at line 200 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator==(), and cscdqm::Cache::put().
{ return 0; }
virtual const HwId cscdqm::HistoDef::getDMBId | ( | ) | const [inline, virtual] |
Get CSC DMB ID.
Reimplemented in cscdqm::CSCHistoDef.
Definition at line 181 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator==(), and cscdqm::Cache::put().
{ return 0; }
virtual const HwId cscdqm::HistoDef::getFEDId | ( | ) | const [inline, virtual] |
Get FED ID.
Reimplemented in cscdqm::FEDHistoDef.
Definition at line 194 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator==(), and cscdqm::Cache::put().
{ return 0; }
const std::string cscdqm::HistoDef::getFullPath | ( | ) | const [inline] |
Get full path of the histogram. It is being constructed by appending path and histogam name.
Definition at line 108 of file CSCDQM_HistoDef.h.
References getName(), getPath(), and scaleCards::path.
Referenced by cscdqm::Collection::book().
static const bool cscdqm::HistoDef::getHistoIdByName | ( | const std::string & | p_name, |
HistoId & | p_id | ||
) | [inline, static] |
Get Histogram ID by name.
p_name | Histogram name |
p_id | Id to be filled in (return value) |
Definition at line 217 of file CSCDQM_HistoDef.h.
References i, h::names, and h::namesSize.
Referenced by cscdqm::Collection::bookCSCHistos(), cscdqm::Collection::bookDDUHistos(), cscdqm::Collection::bookEMUHistos(), cscdqm::Collection::bookFEDHistos(), and CSCOfflineClient::endRun().
static const std::string cscdqm::HistoDef::getHistoKeyById | ( | const HistoId & | p_id | ) | [inline, static] |
Get Histogram key name by id.
p_id | Histogram id |
Definition at line 232 of file CSCDQM_HistoDef.h.
References h::keys.
{ return h::keys[p_id]; }
const HistoName& cscdqm::HistoDef::getHistoName | ( | ) | const [inline] |
Get raw histogram name.
Reimplemented in cscdqm::ParHistoDef.
Definition at line 93 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Dispatcher::getHisto(), getName(), cscdqm::CSCHistoDef::getName(), and cscdqm::HistoBookRequest::HistoBookRequest().
const HistoId cscdqm::HistoDef::getId | ( | ) | const [inline] |
Get Histogram ID.
Definition at line 87 of file CSCDQM_HistoDef.h.
References id.
Referenced by cscdqm::Cache::get(), cscdqm::Dispatcher::getHisto(), operator<(), operator=(), operator==(), and cscdqm::Cache::put().
{ return id; }
virtual const std::string cscdqm::HistoDef::getName | ( | ) | const [inline, virtual] |
Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter.
Reimplemented in cscdqm::CSCHistoDef.
Definition at line 101 of file CSCDQM_HistoDef.h.
References getHistoName().
Referenced by cscdqm::Collection::book(), and getFullPath().
{ return getHistoName(); }
virtual const std::string cscdqm::HistoDef::getPath | ( | ) | const [inline, virtual] |
Get path part of the histogram (used only for DDUs and CSCs)
Reimplemented in cscdqm::FEDHistoDef, cscdqm::DDUHistoDef, and cscdqm::CSCHistoDef.
Definition at line 169 of file CSCDQM_HistoDef.h.
Referenced by getFullPath(), and cscdqm::LookupKeyType::LookupKeyType().
{ return ""; }
const bool cscdqm::HistoDef::operator< | ( | const HistoDef & | t | ) | const [inline] |
Less (<) operator.
t | Histogram to be compared to |
Definition at line 145 of file CSCDQM_HistoDef.h.
References getAddId(), getCrateId(), getDDUId(), getDMBId(), getFEDId(), and getId().
Assignment (=) operator.
t | Histogram to be taken data from |
Definition at line 135 of file CSCDQM_HistoDef.h.
References getId().
{ id = t.getId(); return *this; }
const bool cscdqm::HistoDef::operator== | ( | const HistoDef & | t | ) | const [inline] |
Comparison (==) operator.
t | Histogram to be compared to |
Definition at line 120 of file CSCDQM_HistoDef.h.
References getAddId(), getCrateId(), getDDUId(), getDMBId(), getFEDId(), and getId().
static const std::string cscdqm::HistoDef::processName | ( | const HistoName & | p_name, |
const HwId | p_id | ||
) | [inline, static] |
Process name by applying ID to d pattern (pattern is stored in REGEXP_ONDEMAND)
p_name | String value to process |
p_id | ID to include |
Definition at line 242 of file CSCDQM_HistoDef.h.
References cscdqm::Utility::regexMatch(), and cscdqm::REGEXP_ONDEMAND().
Referenced by cscdqm::CSCHistoDef::getName(), cscdqm::FEDHistoDef::processTitle(), cscdqm::CSCHistoDef::processTitle(), and cscdqm::DDUHistoDef::processTitle().
{ if (Utility::regexMatch(REGEXP_ONDEMAND, p_name)) { return Form(p_name.c_str(), p_id); } return p_name; }
virtual const std::string cscdqm::HistoDef::processTitle | ( | const std::string & | p_title | ) | const [inline, virtual] |
Process Title by Adding appropriate ID.
p_title | Title to process |
Reimplemented in cscdqm::FEDHistoDef, cscdqm::DDUHistoDef, and cscdqm::CSCHistoDef.
Definition at line 207 of file CSCDQM_HistoDef.h.
Referenced by cscdqm::Collection::book().
{
return p_title;
}
std::ostream& operator<< | ( | std::ostream & | out, |
const HistoDef & | t | ||
) | [friend] |
Printing (<<) operator that prints hisotgram full path.
out | output stream |
t | Histogram type to be printed |
Definition at line 161 of file CSCDQM_HistoDef.h.
{ return out << t.getFullPath(); }
HistoId cscdqm::HistoDef::id [private] |
Histogram Id
Definition at line 67 of file CSCDQM_HistoDef.h.
Referenced by getHistoName(), and getId().