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