Go to the documentation of this file.
20 #ifndef CSCDQM_HistoDef_H
21 #define CSCDQM_HistoDef_H
52 static const char PATH_CSC[] =
"CSC_%03d_%02d";
56 #include "CSCDQM_HistoNames.icc"
248 return Form(p_name.c_str(), p_id);
301 HistoDef* h1 = const_cast<FEDHistoDef*>(
this);
346 HistoDef* h1 = const_cast<DDUHistoDef*>(
this);
397 return Form(
PATH_CSC, p_crateId, p_dmbId);
407 HistoDef* h1 = const_cast<CSCHistoDef*>(
this);
const std::string getFullPath() const
Get full path of the histogram. It is being constructed by appending path and histogam name.
HistoName name
Parameter name.
friend std::ostream & operator<<(std::ostream &out, const HistoDef &t)
Printing (<<) operator that prints hisotgram full path.
EMUHistoDef(const HistoId p_id)
Constructor. It calls Base constructor inline.
HistoDef(const HistoId p_id)
Base constructor.
Abstract Base Histogram Definition.
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)
const DDUHistoDef & operator=(const DDUHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns DDU-related data.
static const char PATH_FED[]
const HwId getCrateId() const override
Get CSC Crate ID.
const std::string getName() const override
Get processed histogram name. It can include additional parameter in formated name....
const bool operator<(const HistoDef &t) const
Less (<) operator.
const CSCHistoDef & operator=(const CSCHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns CSC-related data.
static bool regexMatch(const std::string &expression, const std::string &message)
Match RegExp expression string against string message and return result.
const FEDHistoDef & operator=(const FEDHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns FEd-related data.
CSC Level Histogram Type.
static const std::type_info & CSCHistoDefT
const HwId getAddId() const override
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
Parameter Histogram Definition.
static const char PATH_DDU[]
virtual const HwId getAddId() const
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
const HistoName HISTO_SKIP
const std::string names[nVars_]
const bool operator==(const HistoDef &t) const
Comparison (==) operator.
static const std::string getPath(const HwId p_fedId)
Static FED path formatter.
static const std::type_info & DDUHistoDefT
const std::string processTitle(const std::string &p_title) const override
Process Title by Adding appropriate ID.
virtual const HwId getCrateId() const
Get CSC Crate ID.
static const std::string getPath(const HwId p_crateId, const HwId p_dmbId)
Static CSC path formatter.
EMU Level Histogram Definition.
virtual const HwId getDDUId() const
Get DDU ID.
const HistoDef & operator=(const HistoDef &t)
Assignment (=) operator.
virtual const std::string processTitle(const std::string &p_title) const
Process Title by Adding appropriate ID.
static const std::string getHistoKeyById(const HistoId &p_id)
Get Histogram key name by id.
General and CSCDQM Framework related utility routines.
static const TPRegexp REGEXP_ONDEMAND("^.*%d.*$")
const HwId getDDUId() const override
Get DDU ID.
ParHistoDef(const HistoName &p_name)
Constructor. It calls Base constructor inline.
DDUHistoDef(const HistoId p_id, const HwId p_dduId)
Constructor. It calls Base constructor inline.
const HistoName & getHistoName() const
const std::string processTitle(const std::string &p_title) const override
Process Title by Adding appropriate ID.
DDU Level Histogram Definition.
const std::string processTitle(const std::string &p_title) const override
Process Title by Adding appropriate ID.
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....
static const char PATH_CSC[]
virtual ~HistoDef()
Base virtual destructor.
static const std::type_info & ParHistoDefT
FEDHistoDef(const HistoId p_id, const HwId p_fedId)
Constructor. It calls Base constructor inline.
static const std::type_info & FEDHistoDefT
const HistoName & getHistoName() const
Get raw histogram name.
virtual const std::string getPath() const
Get path part of the histogram (used only for DDUs and CSCs)
static const bool getHistoIdByName(const std::string &p_name, HistoId &p_id)
Get Histogram ID by name.
FED Level Histogram Definition.
const HwId getDMBId() const override
Get CSC DMB ID.
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
virtual const HwId getFEDId() const
Get FED ID.
static const std::string getPath(const HwId p_dduId)
Static DDU path formatter.
const HwId getFEDId() const override
Get FED ID.
CSCHistoDef(const HistoId p_id, const HwId p_crateId, const HwId p_dmbId, const HwId p_addId=0)
Constructor. It calls Base constructor inline.
static const std::type_info & EMUHistoDefT
ParHistoDef(const HistoId p_id)
Constructor. It calls Base constructor inline.
virtual const HwId getDMBId() const
Get CSC DMB ID.